Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 89c437b

Browse files
committed
removed console.log statements
1 parent 1a0223b commit 89c437b

File tree

14 files changed

+67
-90
lines changed

14 files changed

+67
-90
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
describe('Test redis connection', function() {
2-
it("can set value to redis key", function() {
1+
describe("Test redis connection", function () {
2+
it("can set value to redis key", function () {
33
cy.login();
44
cy.visit("/examples/redis");
55
cy.get("#clear").click();
6-
cy.get('#val').should('be.empty');
6+
cy.get("#val").should("be.empty");
77

88
cy.get("#input").type(8);
99
cy.get("#set").click();
1010
cy.wait(500);
11-
cy.get(".redis-debug").find("#val")
11+
cy.get(".redis-debug")
12+
.find("#val")
1213
.then(($identifier) => {
1314
const value = $identifier.text();
14-
console.log(value);
15-
expect(value).to.equal("8")
16-
})
15+
expect(value).to.equal("8");
16+
});
1717
});
1818
});

quasar/src-pwa/register-service-worker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import { register } from "register-service-worker";
23

34
// The ready(), registered(), cached(), updatefound() and updated()
@@ -39,5 +40,5 @@ register(process.env.SERVICE_WORKER_FILE, {
3940

4041
error(err) {
4142
console.error("Error during service worker registration:", err);
42-
}
43+
},
4344
});

quasar/src/boot/axios.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import axios from "axios";
22

33
export default async ({ Vue, store, router }) => {
44
const apiCall = axios.create({
5-
baseURL: process.env.API_URL
5+
baseURL: process.env.API_URL,
66
});
77

88
apiCall.interceptors.request.use(
9-
config => {
9+
(config) => {
1010
const c = config;
1111
if (store.getters.isAuthenticated) {
1212
c.headers.Authorization = `Bearer ${store.getters.getToken}`;
1313
}
1414
return c;
1515
},
16-
error => {
16+
(error) => {
1717
Promise.reject(error);
1818
}
1919
);
@@ -23,7 +23,6 @@ export default async ({ Vue, store, router }) => {
2323
}
2424

2525
function handleError(error) {
26-
console.log(error);
2726
switch (error.response.status) {
2827
case 400:
2928
break;

quasar/src/layouts/primary/MainHeader.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export default {
118118
},
119119
watch: {
120120
lang(lang) {
121-
console.log(lang);
122121
this.$i18n.locale = lang.value;
123122
// import(`quasar/i18n/${lang}`).then(language => {
124123
// this.$q.lang.set(language.default)

quasar/src/pages/Banking/StatementFileTable.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export default {
3333
return this.$store.getters["banking/statements/getPagination"];
3434
},
3535
set(v) {
36-
console.log(v);
3736
this.$store.commit("banking/statements/setPagination", v);
3837
}
3938
},

quasar/src/pages/Banking/StatementUploadForm.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export default {
6969
return this.$store.getters["banking/upload/getDate"];
7070
},
7171
set(v) {
72-
console.log(v);
7372
return this.$store.commit("banking/upload/setDate", v);
7473
}
7574
}

quasar/src/pages/Examples/Redis.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,12 @@ export default {
3535
created() {
3636
this.getCachedValue();
3737
if (this.valueFromCache) {
38-
console.log("here.");
3938
this.valueToSet = this.valueFromCache;
4039
}
4140
},
4241
methods: {
4342
clearCacheValue() {
44-
this.$axios.delete("/api/debug/redis/").then(resp => {
45-
console.log(resp);
46-
console.log("getting here..");
43+
this.$axios.delete("/api/debug/redis/").then(() => {
4744
this.valueFromCache = null;
4845
});
4946
},

quasar/src/pages/Examples/Websockets.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export default {
3838
created() {
3939
this.$connect(this.wsUrl, { format: "json" });
4040
this.$socket.onmessage = i => {
41-
console.log(i);
4241
const data = JSON.parse(i["data"]);
4342
data.vue_recv_pong = new Date().getTime();
4443
this.pongs.unshift(data);

quasar/src/pages/Transactions/TransactionsTable.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export default {
3636
return this.$store.getters["banking/transactions/getPagination"];
3737
},
3838
set(v) {
39-
console.log(v);
4039
this.$store.commit("banking/transactions/setPagination", v);
4140
}
4241
},

quasar/src/store/auth/gqljwt.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import gql from "graphql-tag";
22
import { Cookies } from "quasar";
33

44
const state = {
5-
token: Cookies.get("user-token-gql") || ""
5+
token: Cookies.get("user-token-gql") || "",
66
};
77

88
const getters = {
9-
getToken: s => s.token,
10-
isAuthenticated: s => !!s.token
9+
getToken: (s) => s.token,
10+
isAuthenticated: (s) => !!s.token,
1111
};
1212

1313
const actions = {
@@ -22,25 +22,24 @@ const actions = {
2222
`,
2323
variables: {
2424
email,
25-
password
26-
}
25+
password,
26+
},
2727
});
2828
commit("authSuccess", resp.data);
29-
}
29+
},
3030
};
3131

3232
const mutations = {
3333
authSuccess: (state, payload) => {
34-
console.log(payload.tokenAuth.token);
3534
Cookies.set("user-token-gql", payload.tokenAuth.token);
3635
state.token = payload.tokenAuth.token;
37-
}
36+
},
3837
};
3938

4039
export default {
4140
namespaced: true,
4241
state,
4342
getters,
4443
actions,
45-
mutations
44+
mutations,
4645
};

0 commit comments

Comments
 (0)