Kaynağa Gözat

update sort sets and fix epsode typo

tags/1.0.3
Alej 3 yıl önce
ebeveyn
işleme
59bb7c8238
1 değiştirilmiş dosya ile 39 ekleme ve 31 silme
  1. 39
    31
      vue-theme/src/components/sidebars/sidebar.vue

+ 39
- 31
vue-theme/src/components/sidebars/sidebar.vue Dosyayı Görüntüle

28
                 li 
28
                 li 
29
                     //- event?type=workshops //
29
                     //- event?type=workshops //
30
                     router-link(v-if="type === 'event' " :to="`/${type}?type=workshops`")
30
                     router-link(v-if="type === 'event' " :to="`/${type}?type=workshops`")
31
-                        p workshops 
31
+                        p workshops
32
 
32
 
33
                     //- by type //
33
                     //- by type //
34
                 li(v-for="option in sortOptions")
34
                 li(v-for="option in sortOptions")
41
                 //-     router-link(v-if="type === ('event', 'exhibition') " :to="`/${type}/sorted/by-past`")
41
                 //-     router-link(v-if="type === ('event', 'exhibition') " :to="`/${type}/sorted/by-past`")
42
                 //-         p by past 
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
         .shadow(v-if="shouldShowMaterialSort.includes(type) && layout !== 'single'")
54
         .shadow(v-if="shouldShowMaterialSort.includes(type) && layout !== 'single'")
47
             h3.t-up {{ type }} by material
55
             h3.t-up {{ type }} by material
48
             ul.t-up
56
             ul.t-up
51
                         router-link(:to="`/${type}/sorted/by-material#${material}`")
59
                         router-link(:to="`/${type}/sorted/by-material#${material}`")
52
                             p {{ material }}
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
         .shadow(v-if="shouldShowEpisodeSort.includes(type) && layout !== 'single'")
63
         .shadow(v-if="shouldShowEpisodeSort.includes(type) && layout !== 'single'")
65
-            h3.t-up {{ type }} episode  
64
+            h3.t-up {{ type }} by episode  
66
             ul.t-up
65
             ul.t-up
67
                 li.f-row.start.wrap
66
                 li.f-row.start.wrap
68
                     template(v-for="episodeSet in episodeSets") 
67
                     template(v-for="episodeSet in episodeSets") 
69
                         router-link(:to="`/${type}/sorted/by-episode#${episodeSet}`")
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
         //- p2p types and related posts
80
         //- p2p types and related posts
73
         .shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
81
         .shadow(v-if="layout === 'single' && Object.keys(related).length" v-for="p2pPostType in Object.keys(related)")
127
                 'by episode': `${sortTypes.episode}`,   //:3
135
                 'by episode': `${sortTypes.episode}`,   //:3
128
                 'by type': `${sortTypes.subtype}`,      //:4
136
                 'by type': `${sortTypes.subtype}`,      //:4
129
                 'by past': `${sortTypes.past}`,         //:5
137
                 'by past': `${sortTypes.past}`,         //:5
130
-                // 'by articles': `articles`,           
131
-                subtype: 'by-type',
138
+                // subtype: 'by-type',
132
             },
139
             },
133
             charaSets: [
140
             charaSets: [
134
                 '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 
141
                 '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 
135
                 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
142
                 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'
136
             ],
143
             ],
137
             episodeSets: [
144
             episodeSets: [
138
-                'inspiration', 'home', 'jewelery', 'harmony', 'storytellers', 
145
+                'inspiration', 'home', 'jewelry', 'harmony', 'storytellers', 
139
                 'democracy', 'identity', 'quilts', 'visionaries', 'california', 
146
                 'democracy', 'identity', 'quilts', 'visionaries', 'california', 
140
                 'neighbors', 'borders', 'nature', 'teachers', 'music', 
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
             materials: materials,
155
             materials: materials,
144
             shouldShowListSort: [
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
             shouldShowMaterialSort: [
160
             shouldShowMaterialSort: [
150
-                'artist',
151
-                'short', 'guide',
152
-                'technique', 'publication',
161
+                'artist', 'exhibition', 'short', 'technique', 
162
+                'guide', 'object', 'publication'
153
             ],
163
             ],
154
             shouldShowEpisodeSort: [
164
             shouldShowEpisodeSort: [
155
-                'artist',
156
-                'short', 'guide',
157
-                'technique'
165
+                'artist', 'short', 'technique', 'guide'
166
+                
158
             ],
167
             ],
159
             shouldShowAlphaSort: [
168
             shouldShowAlphaSort: [
160
                 'artist'
169
                 'artist'
163
                 'exhibition', 'event'
172
                 'exhibition', 'event'
164
             ],
173
             ],
165
             shouldShowTypeSort: [
174
             shouldShowTypeSort: [
166
-                'short', 'guide', 'object',
167
-                'publication', 'technique', 'post', 'event'
175
+                'artist'
168
             ]
176
             ]
169
         }
177
         }
170
     },
178
     },
175
                 case 'artist':
183
                 case 'artist':
176
                     opts = [
184
                     opts = [
177
                         Object.keys(this.sortTypes)[0],
185
                         Object.keys(this.sortTypes)[0],
178
-                        Object.keys(this.sortTypes)[3],
179
                         Object.keys(this.sortTypes)[1],
186
                         Object.keys(this.sortTypes)[1],
187
+                        Object.keys(this.sortTypes)[3],
180
                         Object.keys(this.sortTypes)[4],
188
                         Object.keys(this.sortTypes)[4],
181
                         // `by ${this.type} type`,
189
                         // `by ${this.type} type`,
182
                     ]
190
                     ]
184
                 case 'exhibition':
192
                 case 'exhibition':
185
                     opts = [
193
                     opts = [
186
                         // Object.keys(this.sortTypes)[4],
194
                         // Object.keys(this.sortTypes)[4],
187
-                        // Object.keys(this.sortTypes)[1],
195
+                        Object.keys(this.sortTypes)[1],
188
                         Object.keys(this.sortTypes)[5],
196
                         Object.keys(this.sortTypes)[5],
189
                     ]
197
                     ]
190
                     break
198
                     break

Loading…
İptal
Kaydet