Selaa lähdekoodia

:fire: commenting out all console.logs

tags/0.9.0
J 4 vuotta sitten
vanhempi
commit
d513e74364

+ 8
- 8
vue-theme/src/pages/list.vue Näytä tiedosto

@@ -69,13 +69,13 @@ export default {
69 69
                 : this.$route.path.split('/').pop()
70 70
             // !: BUG
71 71
             // if(this.type !== sort || !Object.values(sortTypes).includes(sort)) sort = null
72
-            if (Object.values(sortTypes).includes(sort)) {
73
-                console.log('trying to sort by:', sort)
74
-                console.log(
75
-                    `sortTypes includes ${sort}:`,
76
-                    Object.values(sortTypes).includes(sort),
77
-                )
78
-            }
72
+            // if (Object.values(sortTypes).includes(sort)) {
73
+            //     console.log('trying to sort by:', sort)
74
+            //     console.log(
75
+            //         `sortTypes includes ${sort}:`,
76
+            //         Object.values(sortTypes).includes(sort),
77
+            //     )
78
+            // }
79 79
 
80 80
             // Don't dispatch if there's no type
81 81
             if (this.type && this.dispatchName) {
@@ -131,7 +131,7 @@ export default {
131 131
     },
132 132
     created() {
133 133
         let type = convertTitleCase(this.type)
134
-        console.log(`${type} already loaded?:`, this[`all${type}Loaded`])
134
+        // console.log(`${type} already loaded?:`, this[`all${type}Loaded`])
135 135
 
136 136
         this.checkAndSetHero(this.type)
137 137
 

+ 1
- 1
vue-theme/src/pages/single.vue Näytä tiedosto

@@ -218,7 +218,7 @@ export default {
218 218
                 post => post.slug == this.$route.params.slug,
219 219
             )[0]
220 220
 
221
-            console.log(this)
221
+            // console.log(this)
222 222
             if (!singlePostData) return
223 223
             await this.$store.dispatch(
224 224
                 `getSingle${dePluralize(type)}`,

+ 1
- 1
vue-theme/src/store/modules/artist.js Näytä tiedosto

@@ -26,7 +26,7 @@ const actions = {
26 26
         })
27 27
     },
28 28
     getSingleArtist({ commit }, id) {
29
-        console.log('getting single Artist...')
29
+        // console.log('getting single Artist...')
30 30
         commit('CLEAR_SINGLE_ARTIST')
31 31
         commit('ARTISTS_LOADED', false)
32 32
         api.getSingleType('artists', id, artist => {

+ 1
- 1
vue-theme/src/utils/helpers.js Näytä tiedosto

@@ -50,7 +50,7 @@ const typeFromRoute = route => {
50 50
 
51 51
         // Only take the first match
52 52
         type = type[0]
53
-        console.log(`type derived from route.path: ${type}`)
53
+        // console.log(`type derived from route.path: ${type}`)
54 54
     }
55 55
 
56 56
     return type

Loading…
Peruuta
Tallenna