Sfoglia il codice sorgente

:fire: removing references to sortBy recent

tags/0.9.0
j 4 anni fa
parent
commit
febc10292e

+ 3
- 6
vue-theme/src/components/sidebars/sidebar.vue Vedi File

56
     data() {
56
     data() {
57
         return {
57
         return {
58
             sortTypes: {
58
             sortTypes: {
59
-                'most recent': `${sortTypes.recent}`,
60
                 'alphabetized': `${sortTypes.alpha}`,
59
                 'alphabetized': `${sortTypes.alpha}`,
61
                 'by material': `${sortTypes.material}`,
60
                 'by material': `${sortTypes.material}`,
62
                 'by artist': `${sortTypes.artist}`,
61
                 'by artist': `${sortTypes.artist}`,
72
                     opts = [
71
                     opts = [
73
                         Object.keys(this.sortTypes)[0],
72
                         Object.keys(this.sortTypes)[0],
74
                         Object.keys(this.sortTypes)[1],
73
                         Object.keys(this.sortTypes)[1],
75
-                        Object.keys(this.sortTypes)[2],
76
                     ]
74
                     ]
77
                     break
75
                     break
78
                 case 'shorts':
76
                 case 'shorts':
79
                     opts = [
77
                     opts = [
80
-                        Object.keys(this.sortTypes)[3],
81
                         Object.keys(this.sortTypes)[2],
78
                         Object.keys(this.sortTypes)[2],
79
+                        Object.keys(this.sortTypes)[3],
82
                     ]
80
                     ]
83
                     break
81
                     break
84
                 case 'guides':
82
                 case 'guides':
85
                     opts = [
83
                     opts = [
86
-                        Object.keys(this.sortTypes)[0],
87
-                        Object.keys(this.sortTypes)[4],
88
-                        Object.keys(this.sortTypes)[2],
84
+                        Object.keys(this.sortTypes)[3],
85
+                        Object.keys(this.sortTypes)[1],
89
                     ]
86
                     ]
90
                     break
87
                     break
91
             }
88
             }

+ 1
- 0
vue-theme/src/pages/list.vue Vedi File

77
              * so if a sortBy is specified we return it sorted or
77
              * so if a sortBy is specified we return it sorted or
78
              * we fail over to sorted by date
78
              * we fail over to sorted by date
79
              */
79
              */
80
+            console.log(this.sortBy)
80
             return this.sortBy ? this[`all${type}`] : sortedByRecent
81
             return this.sortBy ? this[`all${type}`] : sortedByRecent
81
         },
82
         },
82
     },
83
     },

+ 1
- 6
vue-theme/src/router/routes.js Vedi File

26
         props: { sidebar: true, grid: true, sortBy: `${sortTypes.alpha}` },
26
         props: { sidebar: true, grid: true, sortBy: `${sortTypes.alpha}` },
27
     },
27
     },
28
     {
28
     {
29
-        path: `/artists/${sortTypes.recent}`,
29
+        path: `/artists/${sortTypes.material}`,
30
         component: listPage,
30
         component: listPage,
31
         props: { sidebar: true, grid: true, sortBy: `${sortTypes.material}` },
31
         props: { sidebar: true, grid: true, sortBy: `${sortTypes.material}` },
32
     },
32
     },
35
         component: listPage,
35
         component: listPage,
36
         props: { sidebar: true, sortBy: `${sortTypes.alpha}` },
36
         props: { sidebar: true, sortBy: `${sortTypes.alpha}` },
37
     },
37
     },
38
-    {
39
-        path: `/:type/${sortTypes.recent}`,
40
-        component: listPage,
41
-        props: { sidebar: true, sortBy: `${sortTypes.recent}` },
42
-    },
43
     {
38
     {
44
         path: `/:type/${sortTypes.material}`,
39
         path: `/:type/${sortTypes.material}`,
45
         component: listPage,
40
         component: listPage,

Loading…
Annulla
Salva