Просмотр исходного кода

:fire: removing some logs

tags/0.9.0
J 4 лет назад
Родитель
Сommit
54102c0050

+ 1
- 1
vue-theme/src/pages/index.vue Просмотреть файл

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

+ 11
- 11
vue-theme/src/pages/list.vue Просмотреть файл

@@ -116,28 +116,28 @@ export default {
116 116
             const page = this.allPages.filter(
117 117
                 page => page.slug == type + 's',
118 118
             )[0]
119
-            const blankHero = { url: null, heroType: null }
119
+            let hero = { url: null, heroType: null }
120
+            
120 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 126
             if (
127 127
                 page.hero &&
128 128
                 JSON.parse(page.hero) &&
129 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 134
             // No featured or youTube
135
-            if (!json.url) {
136
-                json.heroType = null
135
+            if (!hero.url) {
136
+                hero.heroType = null
137 137
             }
138 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 142
         scrollTo(hashtag) {
143 143
             setTimeout(() => {

+ 1
- 1
vue-theme/src/store/modules/artist.js Просмотреть файл

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

+ 1
- 2
vue-theme/src/utils/api.js Просмотреть файл

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

+ 1
- 1
vue-theme/src/utils/helpers.js Просмотреть файл

@@ -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

Загрузка…
Отмена
Сохранить