Kaynağa Gözat

:fire: commenting out all console.logs

tags/0.9.0
J 4 yıl önce
ebeveyn
işleme
d513e74364

+ 8
- 8
vue-theme/src/pages/list.vue Dosyayı Görüntüle

69
                 : this.$route.path.split('/').pop()
69
                 : this.$route.path.split('/').pop()
70
             // !: BUG
70
             // !: BUG
71
             // if(this.type !== sort || !Object.values(sortTypes).includes(sort)) sort = null
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
             // Don't dispatch if there's no type
80
             // Don't dispatch if there's no type
81
             if (this.type && this.dispatchName) {
81
             if (this.type && this.dispatchName) {
131
     },
131
     },
132
     created() {
132
     created() {
133
         let type = convertTitleCase(this.type)
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
         this.checkAndSetHero(this.type)
136
         this.checkAndSetHero(this.type)
137
 
137
 

+ 1
- 1
vue-theme/src/pages/single.vue Dosyayı Görüntüle

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

+ 1
- 1
vue-theme/src/store/modules/artist.js Dosyayı Görüntüle

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

+ 1
- 1
vue-theme/src/utils/helpers.js Dosyayı Görüntüle

50
 
50
 
51
         // Only take the first match
51
         // Only take the first match
52
         type = type[0]
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
     return type
56
     return type

Loading…
İptal
Kaydet