Преглед изворни кода

:art: tweaking logs | adjusting some styling on single

tags/0.9.0
J пре 4 година
родитељ
комит
b58e600860
2 измењених фајлова са 21 додато и 27 уклоњено
  1. 11
    15
      vue-theme/src/pages/list.vue
  2. 10
    12
      vue-theme/src/pages/single.vue

+ 11
- 15
vue-theme/src/pages/list.vue Прегледај датотеку

18
             section(v-for="(post, i) in posts" :key="post.slug").shadow.post
18
             section(v-for="(post, i) in posts" :key="post.slug").shadow.post
19
                 card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
19
                 card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
20
 
20
 
21
-        footer
21
+        footer(v-if="loadingFetched || showMeta")
22
             p(v-if="loadingFetched") loading more {{ type }} ...
22
             p(v-if="loadingFetched") loading more {{ type }} ...
23
             p {{ `${type} count: ${Object.values(posts).length}` }}
23
             p {{ `${type} count: ${Object.values(posts).length}` }}
24
             p {{ `show sidebar: ${sidebar}` }}
24
             p {{ `show sidebar: ${sidebar}` }}
25
-                    
26
-    //- sidebar(v-if="sidebar" :type="`${type}`" layout="list")
25
+
26
+    sidebar(v-if="sidebar" :type="`${type}`" layout="list")
27
     
27
     
28
 </template>
28
 </template>
29
 
29
 
47
     mixins: [postTypeGetters, scrollTop, heroUtils],
47
     mixins: [postTypeGetters, scrollTop, heroUtils],
48
     data() {
48
     data() {
49
         return {
49
         return {
50
+            showMeta: false,
50
             page: 0,
51
             page: 0,
51
             perPage: 15,
52
             perPage: 15,
52
             keepFetching: true,
53
             keepFetching: true,
84
             if(!type) return console.error(`type: ${type} not found...`)
85
             if(!type) return console.error(`type: ${type} not found...`)
85
             if(!this.keepFetching) return console.warn('nothing left to fetch...')
86
             if(!this.keepFetching) return console.warn('nothing left to fetch...')
86
 
87
 
87
-            console.warn(`loading more ${type} posts...`)
88
+            console.warn(`loading page ${this.page} of ${type} posts: ${this.page * this.perPage} through ${this.perPage}`)
88
             this.loadingFetched = true
89
             this.loadingFetched = true
89
             this.page++
90
             this.page++
90
             await this.getPosts()
91
             await this.getPosts()
185
         // This only fires navigating from
186
         // This only fires navigating from
186
         // a list page, to another list page
187
         // a list page, to another list page
187
         type(newType, oldType){
188
         type(newType, oldType){
188
-            console.log('old:', oldType)
189
-            console.log('new:', newType)
190
-            
191
             if(!postTypes.includes(newType)) return console.warn('type not found...')
189
             if(!postTypes.includes(newType)) return console.warn('type not found...')
192
             this.clearAndInitPostList()
190
             this.clearAndInitPostList()
193
             this.setIntersectionLoader()
191
             this.setIntersectionLoader()
218
             > .content
216
             > .content
219
                 padding: 0
217
                 padding: 0
220
                 width: 100%
218
                 width: 100%
219
+        > footer
220
+            background-color:white
221
+            padding: $ms-0
221
         /* posts not grid list */
222
         /* posts not grid list */
222
-        ul
223
-            img
224
-                max-width: 50%
223
+        ul img
224
+            max-width: 50%
225
 
225
 
226
         .is-grid
226
         .is-grid
227
             display: flex
227
             display: flex
228
             flex-direction: row
228
             flex-direction: row
229
             flex-wrap: wrap
229
             flex-wrap: wrap
230
             justify-content: space-between
230
             justify-content: space-between
231
-            /* extra padding required? */
232
-            /* padding: $ms-0 */
233
-            /* background-color: white */
234
             section
231
             section
235
                 width: 32.5%
232
                 width: 32.5%
236
-                /* 4 column grid see how dense this becomes */
237
-                /* width: 24% */
238
             ul
233
             ul
239
                 flex-wrap: wrap
234
                 flex-wrap: wrap
240
                 list-style: none
235
                 list-style: none
241
                 img
236
                 img
242
                     max-width: 100%
237
                     max-width: 100%
238
+
243
 @media (min-width: $medium)
239
 @media (min-width: $medium)
244
     .page--list.f-col
240
     .page--list.f-col
245
         flex-direction: row
241
         flex-direction: row

+ 10
- 12
vue-theme/src/pages/single.vue Прегледај датотеку

240
 @import '../sss/variables.sss'
240
 @import '../sss/variables.sss'
241
 @import '../sss/theme.sss'
241
 @import '../sss/theme.sss'
242
 .page--single
242
 .page--single
243
-    /* background-color: $cia_white2 */
244
     article
243
     article
245
         background-color: white
244
         background-color: white
246
         padding: $ms-0
245
         padding: $ms-0
285
             margin: $ms-2 auto
284
             margin: $ms-2 auto
286
             outline-style: auto
285
             outline-style: auto
287
 
286
 
288
-            &.is-style-default
289
-                height: 1px
290
-                width: 15vw
291
-
292
-            &.is-style-wide
293
-                height: 1px
294
-                width: 50vw
295
-        
296
-            &.is-style-dots
297
-                outline-style: none
298
-                font-weight: bolder
287
+            &.is-style
288
+                &-default
289
+                    height: 1px
290
+                    width: 15vw
291
+                &-wide
292
+                    height: 1px
293
+                    width: 50vw
294
+                &-dots
295
+                    outline-style: none
296
+                    font-weight: bolder
299
 
297
 
300
         breadcrumb
298
         breadcrumb
301
             h5
299
             h5

Loading…
Откажи
Сачувај