Skip to content

Commit

Permalink
Removes some console.logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuswetah committed Aug 4, 2022
1 parent 2bb8027 commit 1a3be36
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
6 changes: 4 additions & 2 deletions src/locales/translation-strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export const translationStrings = {
label_option_delete_item: 'Send item to trash',
error_label_fetch_collections: 'Collections loading error',
error_label_fetch_items_collections: 'Items collections loading error',
error_label_fetch_items: 'Items loading error'
error_label_fetch_items: 'Items loading error',
error_delete_item: 'Error while deleting item'
},
pt: {
collections: "Coleções",
Expand Down Expand Up @@ -75,6 +76,7 @@ export const translationStrings = {
label_option_delete_item: 'Enviar item para lixeira',
error_label_fetch_collections: 'Erro no carregamento das coleções',
error_label_fetch_items_collections: 'Erro no carregamento dos itens da coleção',
error_label_fetch_items: 'Erro no carregamento dos itens'
error_label_fetch_items: 'Erro no carregamento dos itens',
error_delete_item: 'Erro ao tentar remover item'
}
}
6 changes: 3 additions & 3 deletions src/pages/CollectionPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
} from '../store/storeTainacan';
import { useWpStore } from '../store/storeWp';
import { ref, defineComponent } from 'vue';
import { add, documentOutline, documentsOutline } from "ionicons/icons";
import { add, documentOutline } from "ionicons/icons";
import {
IonLoading,
IonRefresher,
Expand Down Expand Up @@ -182,8 +182,8 @@ export default defineComponent({
],
});
await actionSheet.present();
const { role, data } = await actionSheet.onDidDismiss();
console.log('onDidDismiss resolved with role and data', role, data);
//const { role, data } = await actionSheet.onDidDismiss();
// console.log('onDidDismiss resolved with role and data', role, data);
}
let tainacanStore = useTainacanStore();
Expand Down
2 changes: 1 addition & 1 deletion src/pages/LoginPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default {
}
},
async handleBrowserLoadStop(event: InAppBrowserEvent) {
console.log(event)
// console.log(event)
if (
event.url &&
typeof event.url == "string" &&
Expand Down
15 changes: 9 additions & 6 deletions src/store/storeTainacan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const useTainacanStore = defineStore("tainacan", {
this.totalCollections = 0;
this.errorMessage = "error_label_fetch_collections";
this.errorStatus = true;
console.error("Collections loading error: ", err);
// console.error("Collections loading error: ", err);
return err;
}
},
Expand All @@ -76,7 +76,7 @@ const useTainacanStore = defineStore("tainacan", {
this.totalHomeCollections = 0;
this.errorMessage = "error_label_fetch_collections";
this.errorStatus = true;
console.error("Home collections loading error: ", err);
//console.error("Home collections loading error: ", err);
return err;
}
},
Expand Down Expand Up @@ -127,7 +127,7 @@ const useTainacanStore = defineStore("tainacan", {
this.nextItemsByCollectionPage = 1;
this.errorMessage = "error_label_fetch_items_collections";
this.errorStatus = true;
console.error("Items collections loading error: ", err);
//console.error("Items collections loading error: ", err);
return false;
}
},
Expand All @@ -152,7 +152,7 @@ const useTainacanStore = defineStore("tainacan", {
this.totalHomeItems = 0;
this.errorMessage = "error_label_fetch_items_collections";
this.errorStatus = true;
console.error("Items collections loading error: ", err);
//console.error("Items collections loading error: ", err);
return err;
}
},
Expand Down Expand Up @@ -199,7 +199,7 @@ const useTainacanStore = defineStore("tainacan", {
this.nextItemsPage = 1;
this.errorMessage = "error_label_fetch_items";
this.errorStatus = true;
console.error("Items loading error: ", err);
//console.error("Items loading error: ", err);
return err;
}
},
Expand Down Expand Up @@ -232,7 +232,10 @@ const useTainacanStore = defineStore("tainacan", {
}

} catch (err) {
console.error("Erro ao deletar item:", err);
//console.error("Erro ao deletar item:", err);
this.errorMessage = "error_delete_item";
this.errorStatus = true;

return err;
}
}
Expand Down
8 changes: 4 additions & 4 deletions src/store/storeWp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const useWpStore = defineStore("wp", {
this.userToken = "";
this.userLogin = "";
delete this.inAppBrowser;
console.error("Erro no login:", err);
//console.error("Erro no login:", err);
return err;
}
},
Expand All @@ -57,7 +57,7 @@ const useWpStore = defineStore("wp", {
this.userToken = "";
this.userToken = "";
delete this.inAppBrowser;
console.error("Erro no logoff:", err);
//console.error("Erro no logoff:", err);
return err;
}
},
Expand All @@ -80,7 +80,7 @@ const useWpStore = defineStore("wp", {
].endpoints.authorization;
else return false;
} catch (err) {
console.error("Error trying to fetch application authorization");
//console.error("Error trying to fetch application authorization");
return err;
}
},
Expand Down Expand Up @@ -118,7 +118,7 @@ const useWpStore = defineStore("wp", {
);
window.history.go(0);
} catch(err){
console.log('catch', err);
//console.log('catch', err);
}`;
this.inAppBrowser.executeScript({ code: urlRedirectionScript });

Expand Down

0 comments on commit 1a3be36

Please sign in to comment.