removed unneeded comments
This commit is contained in:
@@ -35,8 +35,6 @@ export const startLogin = (email, password, currentRoute) => {
|
||||
|
||||
//window.localStorage.setItem("token", token);
|
||||
|
||||
console.log("USER SERVICE LOGIN RESPONSE", response.data.user);
|
||||
|
||||
if (emailVerified) {
|
||||
|
||||
dispatch(setLoginFailed(false))
|
||||
@@ -115,8 +113,6 @@ export const startLoginCheck = (currentRoute) => {
|
||||
return (dispatch) => {
|
||||
|
||||
axios.get("/user-service/user").then((response) => {
|
||||
|
||||
console.log("USER SERVICE LOGIN CHECK RESPONSE", response.data);
|
||||
|
||||
const emailVerified = response.data.emailVerified;
|
||||
|
||||
|
||||
@@ -67,8 +67,6 @@ export const startSetFileAndFolderItems = (historyKey, parent="/", sortby="DEFAU
|
||||
if (search && search !== "") {
|
||||
|
||||
//fileURL =
|
||||
console.log("Searching");
|
||||
|
||||
// if (storageType === "stripe") {
|
||||
|
||||
// console.log("Pied Search")
|
||||
@@ -190,8 +188,6 @@ export const startSetAllItems = (clearCache, parent="/", sortby="DEFAULT", searc
|
||||
|
||||
const quickItemsURL = !env.googleDriveEnabled ? `/file-service/quick-list` : `/file-service-google-mongo/quick-list`;
|
||||
|
||||
console.log("google drive enabled", env.googleDriveEnabled);
|
||||
|
||||
dispatch(setFiles([]))
|
||||
dispatch(setFolders([]))
|
||||
dispatch(setQuickFiles([]))
|
||||
@@ -235,12 +231,8 @@ export const startSetFiles = (parent="/", sortby="DEFAULT", search="", isGoogle=
|
||||
dispatch(setFiles([]))
|
||||
dispatch(setLoading(true))
|
||||
|
||||
console.log("Fetching file list");
|
||||
|
||||
if (env.googleDriveEnabled) {
|
||||
|
||||
console.log("is google")
|
||||
|
||||
axios.get(`/file-service-google/list?parent=${parent}&sortby=${sortby}&search=${search}&limit=${limit}&storageType=${storageType}`).then((results) => {
|
||||
|
||||
const googleList = results.data;
|
||||
@@ -259,8 +251,6 @@ export const startSetFiles = (parent="/", sortby="DEFAULT", search="", isGoogle=
|
||||
})
|
||||
} else if (env.googleDriveEnabled && parent === "/") {
|
||||
|
||||
console.log("is not google")
|
||||
|
||||
// Temp Google Drive API
|
||||
axios.get(`/file-service-google-mongo/list?parent=${parent}&sortby=${sortby}&search=${search}&limit=${limit}&storageType=${storageType}`).then((results) => {
|
||||
// console.log("Google Data", results.data.data.files);
|
||||
@@ -283,9 +273,6 @@ export const startSetFiles = (parent="/", sortby="DEFAULT", search="", isGoogle=
|
||||
})
|
||||
} else {
|
||||
|
||||
console.log("is not google")
|
||||
|
||||
|
||||
axios.get(`/file-service/list?parent=${parent}&sortby=${sortby}&search=${search}&limit=${limit}&storageType=${storageType}`).then((results) => {
|
||||
|
||||
const mongoData = results.data;
|
||||
@@ -316,10 +303,6 @@ export const startLoadMoreFiles = (parent="/", sortby="DEFAULT", search="", star
|
||||
|
||||
return (dispatch) => {
|
||||
|
||||
console.log("search", search)
|
||||
|
||||
//dispatch(setLoading(true))
|
||||
|
||||
dispatch(setLoadingMoreItems(true));
|
||||
|
||||
let limit = window.localStorage.getItem("list-size") || 50
|
||||
@@ -327,8 +310,6 @@ export const startLoadMoreFiles = (parent="/", sortby="DEFAULT", search="", star
|
||||
|
||||
if (isGoogle) {
|
||||
|
||||
console.log("is google")
|
||||
|
||||
// Temp Google Drive API
|
||||
axios.get(`/file-service-google/list?limit=${limit}&parent=${parent}&sortby=${sortby}&search=${search}&startAt=${true}&startAtDate=${startAtDate}&startAtName=${startAtName}&pageToken=${pageToken}`).then((results) => {
|
||||
|
||||
@@ -351,8 +332,6 @@ export const startLoadMoreFiles = (parent="/", sortby="DEFAULT", search="", star
|
||||
|
||||
} else {
|
||||
|
||||
console.log("is not google")
|
||||
|
||||
axios.get(`/file-service/list?limit=${limit}&parent=${parent}&sortby=${sortby}&search=${search}&startAt=${true}&startAtDate=${startAtDate}&startAtName=${startAtName}`).then((results) => {
|
||||
|
||||
//console.log("load more files result", results.data.length)
|
||||
|
||||
@@ -112,8 +112,6 @@ export const startRemoveFolder = (id, parentList, isGoogle=false, parent, person
|
||||
|
||||
const url = isGoogle ? `/folder-service-google/remove` : personalFolder ? `/folder-service-personal/remove` : `/folder-service/remove`;
|
||||
|
||||
console.log("personal folder", personalFolder);
|
||||
|
||||
axios.delete(url, {
|
||||
data
|
||||
}).then((response) => {
|
||||
|
||||
@@ -25,8 +25,6 @@ export const startSetSelectedItem = (id, file, fromQuickItems, isGoogleDrive) =>
|
||||
|
||||
axios.get(`/file-service-google/info/${id}`).then((results) => {
|
||||
|
||||
console.log("file info google", results.data, results.data.id);
|
||||
|
||||
const data = results.data;
|
||||
|
||||
const {filename: name, length: size, uploadDate: date, parentName: location, metadata, _id: id} = results.data;
|
||||
|
||||
@@ -17,8 +17,6 @@ class DataFormContainer extends React.Component {
|
||||
|
||||
changeListViewMode = () => {
|
||||
|
||||
console.log("changing list view", this.props.listView);
|
||||
|
||||
if (!this.props.listView) {
|
||||
this.props.dispatch(enableListView())
|
||||
} else {
|
||||
@@ -55,10 +53,6 @@ class DataFormContainer extends React.Component {
|
||||
|
||||
loadMoreItems = () => {
|
||||
|
||||
// return;
|
||||
|
||||
console.log("load more items dataform");
|
||||
|
||||
let limit = window.localStorage.getItem("list-size") || 50
|
||||
limit = parseInt(limit)
|
||||
|
||||
|
||||
@@ -52,9 +52,6 @@ class HeaderContainer extends React.Component {
|
||||
const value = e.target.value;
|
||||
this.searchValue = value;
|
||||
|
||||
console.log("search on change", value);
|
||||
|
||||
|
||||
this.props.dispatch(setSearch(value))
|
||||
this.searchSuggested()
|
||||
}
|
||||
|
||||
@@ -48,7 +48,6 @@ class HomePageContainer extends React.Component {
|
||||
this.props.dispatch(startResetParentList());
|
||||
|
||||
} else if (pathname.includes("/search")) {
|
||||
console.log("login check set search")
|
||||
this.setSearchItems();
|
||||
return;
|
||||
|
||||
@@ -189,8 +188,6 @@ class HomePageContainer extends React.Component {
|
||||
const storageType = url.searchParams.get("storageType") || undefined;
|
||||
const folderSearch = url.searchParams.get("folder_search") || undefined;
|
||||
|
||||
console.log("Search", value, parent, storageType, folderSearch);
|
||||
|
||||
this.props.dispatch(startResetCache())
|
||||
this.props.dispatch(setCurrentRouteType("search"))
|
||||
this.props.dispatch(setCachedSearch(value))
|
||||
|
||||
@@ -70,8 +70,6 @@ class SettingsPageContainer extends React.Component {
|
||||
env.emailAddress = response.data.email
|
||||
this.props.dispatch(setParent(uuid.v4()))
|
||||
|
||||
console.log("user detailed", response.data)
|
||||
|
||||
this.setState(() => {
|
||||
return {
|
||||
...this.state,
|
||||
|
||||
Reference in New Issue
Block a user