Bladeren bron

update sort sets and fix epsode typo

tags/1.0.3
Alej 3 jaren geleden
bovenliggende
commit
59bb7c8238
1 gewijzigde bestanden met toevoegingen van 39 en 31 verwijderingen
  1. 39
    31
      vue-theme/src/components/sidebars/sidebar.vue

+ 39
- 31
vue-theme/src/components/sidebars/sidebar.vue Bestand weergeven

@@ -28,7 +28,7 @@ aside.sidebar
28 28
                 li 
29 29
                     //- event?type=workshops //
30 30
                     router-link(v-if="type === 'event' " :to="`/${type}?type=workshops`")
31
-                        p workshops 
31
+                        p workshops
32 32
 
33 33
                     //- by type //
34 34
                 li(v-for="option in sortOptions")
@@ -41,8 +41,16 @@ aside.sidebar
41 41
                 //-     router-link(v-if="type === ('event', 'exhibition') " :to="`/${type}/sorted/by-past`")
42 42
                 //-         p by past 
43 43
 
44
+        //- if artist has sorted by-alpha show alpha sets           
45
+        .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
46
+            h3.t-up {{ type }} by alpha 
47
+            ul.t-up
48
+                li.f-row.start.wrap
49
+                    template(v-for="charaSet in charaSets") 
50
+                        router-link(:to="`/${type}/sorted/by-alpha#${charaSet[0]}`")
51
+                            p.alpha {{ charaSet }}
44 52
         
45
-        //- if {{type}} has sorted by-material show material options
53
+        //- if {{type}} has sorted by-material show material sets
46 54
         .shadow(v-if="shouldShowMaterialSort.includes(type) && layout !== 'single'")
47 55
             h3.t-up {{ type }} by material
48 56
             ul.t-up
@@ -51,23 +59,23 @@ aside.sidebar
51 59
                         router-link(:to="`/${type}/sorted/by-material#${material}`")
52 60
                             p {{ material }}
53 61
 
54
-        //- if artist has sorted by-alpha show alpha options           
55
-        .shadow(v-if="['artist'].includes(type) && layout !== 'single'")
56
-            h3.t-up {{ type }} alpha 
57
-            ul.t-up
58
-                li.f-row.start.wrap
59
-                    template(v-for="charaSet in charaSets") 
60
-                        router-link(:to="`/${type}/sorted/by-alpha#${charaSet[0]}`")
61
-                            p.alpha {{ charaSet }}
62
-
63
-        //- if type has sorted by-episode show episode options           
62
+        //- if {{type}} has sorted by-episode show episode sets           
64 63
         .shadow(v-if="shouldShowEpisodeSort.includes(type) && layout !== 'single'")
65
-            h3.t-up {{ type }} episode  
64
+            h3.t-up {{ type }} by episode  
66 65
             ul.t-up
67 66
                 li.f-row.start.wrap
68 67
                     template(v-for="episodeSet in episodeSets") 
69 68
                         router-link(:to="`/${type}/sorted/by-episode#${episodeSet}`")
70
-                            p {{ episodeSet }}  
69
+                            p {{ episodeSet }}   
70
+
71
+        //- if {{type}} has sorted by-type show subtype sets           
72
+        .shadow(v-if="shouldShowTypeSort.includes(type) && layout !== 'single'")
73
+            h3.t-up {{ type }} type  
74
+            ul.t-up
75
+                li
76
+                    template(v-for="subtypeSet in subtypeSets") 
77
+                        router-link(:to="`/${type}/sorted/by-type#${subtypeSet}`")
78
+                            p {{ subtypeSet }}
71 79
 
72 80
         //- p2p types and related posts
73 81
         .shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
@@ -127,34 +135,35 @@ export default {
127 135
                 'by episode': `${sortTypes.episode}`,   //:3
128 136
                 'by type': `${sortTypes.subtype}`,      //:4
129 137
                 'by past': `${sortTypes.past}`,         //:5
130
-                // 'by articles': `articles`,           
131
-                subtype: 'by-type',
138
+                // subtype: 'by-type',
132 139
             },
133 140
             charaSets: [
134 141
                 '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 
135 142
                 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
136 143
             ],
137 144
             episodeSets: [
138
-                'inspiration', 'home', 'jewelery', 'harmony', 'storytellers', 
145
+                'inspiration', 'home', 'jewelry', 'harmony', 'storytellers', 
139 146
                 'democracy', 'identity', 'quilts', 'visionaries', 'california', 
140 147
                 'neighbors', 'borders', 'nature', 'teachers', 'music', 
141
-                'celebration', 'service', 'industry', 'holiday', 'forge',
148
+                'celebration', 'service', 'industry', 'holiday', 'forge', 
149
+                'crossroads', 'threads', 'family', 'messages', 'process', 
150
+                'origins', 'community', 'landscape', 'memory' 
151
+            ],
152
+            subtypeSets: [
153
+                'schools', 'museums', 'collectors', 'organizations', 'galleries'  
142 154
             ],
143 155
             materials: materials,
144 156
             shouldShowListSort: [
145
-                'artist', 'exhibition', 'event', 
146
-                'short', 'guide', 'object',
147
-                'publication', 'technique', 'post'
157
+                'artist', 'exhibition', 'event', 'short',
158
+                'technique', 'guide', 'object', 'publication', 'post'
148 159
             ],
149 160
             shouldShowMaterialSort: [
150
-                'artist',
151
-                'short', 'guide',
152
-                'technique', 'publication',
161
+                'artist', 'exhibition', 'short', 'technique', 
162
+                'guide', 'object', 'publication'
153 163
             ],
154 164
             shouldShowEpisodeSort: [
155
-                'artist',
156
-                'short', 'guide',
157
-                'technique'
165
+                'artist', 'short', 'technique', 'guide'
166
+                
158 167
             ],
159 168
             shouldShowAlphaSort: [
160 169
                 'artist'
@@ -163,8 +172,7 @@ export default {
163 172
                 'exhibition', 'event'
164 173
             ],
165 174
             shouldShowTypeSort: [
166
-                'short', 'guide', 'object',
167
-                'publication', 'technique', 'post', 'event'
175
+                'artist'
168 176
             ]
169 177
         }
170 178
     },
@@ -175,8 +183,8 @@ export default {
175 183
                 case 'artist':
176 184
                     opts = [
177 185
                         Object.keys(this.sortTypes)[0],
178
-                        Object.keys(this.sortTypes)[3],
179 186
                         Object.keys(this.sortTypes)[1],
187
+                        Object.keys(this.sortTypes)[3],
180 188
                         Object.keys(this.sortTypes)[4],
181 189
                         // `by ${this.type} type`,
182 190
                     ]
@@ -184,7 +192,7 @@ export default {
184 192
                 case 'exhibition':
185 193
                     opts = [
186 194
                         // Object.keys(this.sortTypes)[4],
187
-                        // Object.keys(this.sortTypes)[1],
195
+                        Object.keys(this.sortTypes)[1],
188 196
                         Object.keys(this.sortTypes)[5],
189 197
                     ]
190 198
                     break

Laden…
Annuleren
Opslaan