Remove logging

This commit is contained in:
James Cole
2021-06-30 06:45:54 +02:00
parent 1d6e05f7cf
commit 27c90bd217
3 changed files with 13 additions and 13 deletions

View File

@@ -239,7 +239,7 @@ export default {
axios.post(url, submission) axios.post(url, submission)
.then(response => { .then(response => {
this.errors = lodashClonedeep(this.defaultErrors); this.errors = lodashClonedeep(this.defaultErrors);
console.log('success!'); // console.log('success!');
this.returnedId = parseInt(response.data.data.id); this.returnedId = parseInt(response.data.data.id);
this.returnedTitle = response.data.data.attributes.name; this.returnedTitle = response.data.data.attributes.name;
this.successMessage = this.$t('firefly.stored_new_account_js', {ID: this.returnedId, name: this.returnedTitle}); this.successMessage = this.$t('firefly.stored_new_account_js', {ID: this.returnedId, name: this.returnedTitle});

View File

@@ -253,7 +253,7 @@ export default {
let parts = pathName.split('/'); let parts = pathName.split('/');
this.type = parts[parts.length - 1]; this.type = parts[parts.length - 1];
this.perPage = this.listPageSize ?? 51; this.perPage = this.listPageSize ?? 51;
console.log('Per page: ' + this.perPage); // console.log('Per page: ' + this.perPage);
let params = new URLSearchParams(window.location.search); let params = new URLSearchParams(window.location.search);
this.currentPage = params.get('page') ? parseInt(params.get('page')) : 1; this.currentPage = params.get('page') ? parseInt(params.get('page')) : 1;
@@ -369,9 +369,9 @@ export default {
this.fields.push({key: 'menu', label: ' ', sortable: false}); this.fields.push({key: 'menu', label: ' ', sortable: false});
}, },
getAccountList: function () { getAccountList: function () {
console.log('getAccountList()'); // console.log('getAccountList()');
if (this.indexReady && !this.loading && !this.downloaded) { if (this.indexReady && !this.loading && !this.downloaded) {
console.log('Index ready, not loading and not already downloaded. Reset.'); // console.log('Index ready, not loading and not already downloaded. Reset.');
this.loading = true; this.loading = true;
this.perPage = this.listPageSize ?? 51; this.perPage = this.listPageSize ?? 51;
this.accounts = []; this.accounts = [];
@@ -379,13 +379,13 @@ export default {
this.downloadAccountList(1); this.downloadAccountList(1);
} }
if (this.indexReady && !this.loading && this.downloaded) { if (this.indexReady && !this.loading && this.downloaded) {
console.log('Index ready, not loading and not downloaded.'); // console.log('Index ready, not loading and not downloaded.');
this.loading = true; this.loading = true;
this.filterAccountList(); this.filterAccountList();
} }
}, },
downloadAccountList: function (page) { downloadAccountList: function (page) {
console.log('downloadAccountList(' + page + ')'); // console.log('downloadAccountList(' + page + ')');
configureAxios().then(async (api) => { configureAxios().then(async (api) => {
api.get('./api/v1/accounts?type=' + this.type + '&page=' + page + '&key=' + this.cacheKey) api.get('./api/v1/accounts?type=' + this.type + '&page=' + page + '&key=' + this.cacheKey)
.then(response => { .then(response => {
@@ -407,7 +407,7 @@ export default {
}); });
}, },
filterAccountListAndReturn: function (allAccounts) { filterAccountListAndReturn: function (allAccounts) {
console.log('filterAccountListAndReturn()'); // console.log('filterAccountListAndReturn()');
let accounts = []; let accounts = [];
for (let i in allAccounts) { for (let i in allAccounts) {
if (allAccounts.hasOwnProperty(i) && /^0$|^[1-9]\d*$/.test(i) && i <= 4294967294) { if (allAccounts.hasOwnProperty(i) && /^0$|^[1-9]\d*$/.test(i) && i <= 4294967294) {
@@ -461,7 +461,7 @@ export default {
}, },
parsePages: function (data) { parsePages: function (data) {
this.total = parseInt(data.pagination.total); this.total = parseInt(data.pagination.total);
console.log('Total is now ' + this.total); // console.log('Total is now ' + this.total);
}, },
// parseAccountsAndReturn: function (data) { // parseAccountsAndReturn: function (data) {
// console.log('In parseAccountsAndReturn()'); // console.log('In parseAccountsAndReturn()');

View File

@@ -102,7 +102,7 @@ Vue.component('date-picker', DatePicker)
export default { export default {
name: "Calendar", name: "Calendar",
created() { created() {
console.log('Now in calendar created'); // console.log('Now in calendar created');
this.ready = true; this.ready = true;
this.locale = localStorage.locale ?? 'en-US'; this.locale = localStorage.locale ?? 'en-US';
}, },
@@ -129,9 +129,9 @@ export default {
], ],
), ),
resetDate: function () { resetDate: function () {
console.log('Reset date to'); // console.log('Reset date to');
console.log(this.defaultStart); // console.log(this.defaultStart);
console.log(this.defaultEnd); // console.log(this.defaultEnd);
this.range.start = this.defaultStart; this.range.start = this.defaultStart;
this.range.end = this.defaultEnd; this.range.end = this.defaultEnd;
this.setStart(this.defaultStart); this.setStart(this.defaultStart);
@@ -512,7 +512,7 @@ export default {
}, },
generatePeriods: function () { generatePeriods: function () {
this.periods = []; this.periods = [];
console.log('The view range is "' + this.viewRange + '".'); // console.log('The view range is "' + this.viewRange + '".');
switch (this.viewRange) { switch (this.viewRange) {
case '1D': case '1D':
this.generateDaily(); this.generateDaily();