Explorar el Código

:fire: removing some logs

tags/0.9.0
J hace 4 años
padre
commit
54102c0050

+ 1
- 1
vue-theme/src/pages/index.vue Ver fichero

57
             // Limit the amount of posts because we
57
             // Limit the amount of posts because we
58
             // only need the most recent
58
             // only need the most recent
59
             const params = { limit: 1 }
59
             const params = { limit: 1 }
60
-            console.log(action)
60
+            
61
             // We try and fetch EVERYTHING except
61
             // We try and fetch EVERYTHING except
62
             // for EVENTS and EXHIBITIONS
62
             // for EVENTS and EXHIBITIONS
63
             if (!omit.includes(type)) {
63
             if (!omit.includes(type)) {

+ 11
- 11
vue-theme/src/pages/list.vue Ver fichero

116
             const page = this.allPages.filter(
116
             const page = this.allPages.filter(
117
                 page => page.slug == type + 's',
117
                 page => page.slug == type + 's',
118
             )[0]
118
             )[0]
119
-            const blankHero = { url: null, heroType: null }
119
+            let hero = { url: null, heroType: null }
120
+            
120
             // Clear the hero and bail
121
             // Clear the hero and bail
121
-            if(!page) return this.$store.commit('SET_HERO', blankHero)
122
+            if(!page) return this.$store.commit('SET_HERO', hero)
122
 
123
 
123
-            blankHero.url = page.featured
124
-            blankHero.heroType = 'image'
125
-            let json = hero = blankHero
124
+            hero.url = page.featured
125
+            hero.heroType = 'image'
126
             if (
126
             if (
127
                 page.hero &&
127
                 page.hero &&
128
                 JSON.parse(page.hero) &&
128
                 JSON.parse(page.hero) &&
129
                 JSON.parse(page.hero).url
129
                 JSON.parse(page.hero).url
130
             ) {
130
             ) {
131
-                json = JSON.parse(page.hero)
132
-                json.heroType = 'video'
131
+                hero = JSON.parse(page.hero)
132
+                hero.heroType = 'video'
133
             }
133
             }
134
             // No featured or youTube
134
             // No featured or youTube
135
-            if (!json.url) {
136
-                json.heroType = null
135
+            if (!hero.url) {
136
+                hero.heroType = null
137
             }
137
             }
138
             // Set the hero text to the post title or excerpt
138
             // Set the hero text to the post title or excerpt
139
-            json.text = page && page.excerpt ? page.excerpt : page.title
140
-            this.$store.commit('SET_HERO', json)
139
+            hero.text = page && page.excerpt ? page.excerpt : page.title
140
+            this.$store.commit('SET_HERO', hero)
141
         },
141
         },
142
         scrollTo(hashtag) {
142
         scrollTo(hashtag) {
143
             setTimeout(() => {
143
             setTimeout(() => {

+ 1
- 1
vue-theme/src/store/modules/artist.js Ver fichero

29
     getSingleArtist({ commit }, id) {
29
     getSingleArtist({ commit }, id) {
30
         commit('CLEAR_SINGLE_ARTISTS')
30
         commit('CLEAR_SINGLE_ARTISTS')
31
         commit('ARTISTS_LOADED', false)
31
         commit('ARTISTS_LOADED', false)
32
-        console.log(id)
32
+
33
         api.getSingleType('artist', id, artist => {
33
         api.getSingleType('artist', id, artist => {
34
             commit('STORE_FETCHED_SINGLE_ARTIST', artist)
34
             commit('STORE_FETCHED_SINGLE_ARTIST', artist)
35
             commit('ARTISTS_LOADED', true)
35
             commit('ARTISTS_LOADED', true)

+ 1
- 2
vue-theme/src/utils/api.js Ver fichero

10
 export default {
10
 export default {
11
     getByType({ type, sort, params, cb }) {
11
     getByType({ type, sort, params, cb }) {
12
         let query = params && params.limit ? `?limit=${params.limit}`: ''
12
         let query = params && params.limit ? `?limit=${params.limit}`: ''
13
-        console.log('params')
14
-        console.log(params)
13
+
15
         if (sort && Object.values(sortTypes).includes(sort)) {
14
         if (sort && Object.values(sortTypes).includes(sort)) {
16
             return axios
15
             return axios
17
                 .get(SETTINGS.API_BASE_PATH + `sort/${type}/${sort}${query}`)
16
                 .get(SETTINGS.API_BASE_PATH + `sort/${type}/${sort}${query}`)

+ 1
- 1
vue-theme/src/utils/helpers.js Ver fichero

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…
Cancelar
Guardar