@explorer-1/vue 0.2.37 → 0.2.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorer-1/vue",
3
- "version": "0.2.37",
3
+ "version": "0.2.38",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -63,6 +63,8 @@
63
63
  <script lang="ts">
64
64
  // @ts-nocheck
65
65
  import isEqual from 'lodash/isEqual.js'
66
+ import { mapStores } from 'pinia'
67
+ import { useThemeStore } from '../../store/theme'
66
68
  import { lookupContentType } from './../../utils/lookupContentType'
67
69
 
68
70
  export default {
@@ -99,6 +101,7 @@ export default {
99
101
  }
100
102
  },
101
103
  computed: {
104
+ ...mapStores(useThemeStore),
102
105
  // to sync both ways parent <--> child
103
106
  // ensures accurate filter visual state when using URL query strings
104
107
  filterByHandler: {
@@ -156,7 +159,10 @@ export default {
156
159
  }
157
160
  },
158
161
  prettyFilterNames(key) {
159
- const name = lookupContentType(key, 'model', 'label')
162
+ let name = lookupContentType(key, 'model', 'label')
163
+ if (this.themeStore.isEdu && name) {
164
+ name = name.replace('EDU ', '')
165
+ }
160
166
  return name ? name : key
161
167
  }
162
168
  }
package/src/constants.ts CHANGED
@@ -162,63 +162,67 @@ export const contentTypes: contentTypeObject[] = [
162
162
  },
163
163
  {
164
164
  model: 'edu_information_pages.EDUContentPage',
165
- label: 'Information Pages'
165
+ label: 'EDU Information Pages'
166
166
  },
167
167
  {
168
168
  model: 'edu_news.EDUNewsIndexPage',
169
- label: 'News Index'
169
+ label: 'EDU News Index'
170
170
  },
171
171
  {
172
172
  model: 'edu_events.EDUEventsIndexPage',
173
- label: 'Events Index'
173
+ label: 'EDU Events Index'
174
174
  },
175
175
  {
176
176
  model: 'edu_events.EDUEventPage',
177
- label: 'Events'
177
+ label: 'EDU Events'
178
178
  },
179
179
  {
180
180
  model: 'edu_news.EDUNewsPage',
181
- label: 'News'
181
+ label: 'EDU News'
182
182
  },
183
183
  {
184
184
  model: 'edu_resources.EDUExplainerArticlePage',
185
- label: 'Explainer Articles'
185
+ label: 'EDU Explainer Articles'
186
186
  },
187
187
  {
188
188
  model: 'edu_resources.EDUResourceLibraryIndexPage',
189
- label: 'Resource Library Index'
189
+ label: 'EDU Resource Library Index'
190
190
  },
191
191
  {
192
192
  model: 'edu_resources.EDULessonPage',
193
- label: 'Lesson Plans'
193
+ label: 'EDU Lesson Plans'
194
+ },
195
+ {
196
+ model: 'edu_resources.EDUStudentProjectPage',
197
+ label: 'EDU Student Projects'
194
198
  },
195
199
  {
196
200
  model: 'edu_resources.EDUTeachableMomentPage',
197
- label: 'Teachable Moments'
201
+ label: 'EDU Teachable Moments'
198
202
  },
199
203
  {
200
204
  model: 'edu_resources.EDUCollectionsDetailPage',
201
- label: 'Collections'
205
+ label: 'EDU Collections'
202
206
  },
203
207
  {
204
208
  model: 'edu_resources.EDUGalleryDetailPage',
205
- label: 'Galleries'
209
+ label: 'EDU Galleries'
206
210
  },
207
211
  {
208
212
  model: 'edu_resources.EDUImageDetailPage',
209
- label: 'Images'
213
+ label: 'EDU Images'
210
214
  },
211
215
  {
212
216
  model: 'edu_resources.EDUInfographicDetailPage',
213
- label: 'Infographics'
217
+ label: 'EDU Infographics'
214
218
  },
215
219
  {
216
220
  model: 'edu_resources.EDUDocumentDetailPage',
217
- label: 'Documents'
221
+ label: 'EDU Documents'
218
222
  },
219
223
  {
220
224
  model: 'edu_resources.EDUVideoDetailPage',
221
- label: 'Videos'
225
+ label: 'EDU Videos'
222
226
  }
223
227
  ]
224
228