itube-specs 0.0.391 → 0.0.392

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.
@@ -12,14 +12,14 @@
12
12
  <SSelect
13
13
  name="duration"
14
14
  v-model="durationValue"
15
- :items="durationItems"
15
+ :items="translateTitle(durationItems)"
16
16
  :placeholder="t('duration')"
17
17
  icon="tape"
18
18
  />
19
19
  <SSelect
20
20
  name="added"
21
21
  v-model="addedValue"
22
- :items="addedItems"
22
+ :items="translateTitle(addedItems)"
23
23
  :placeholder="t('added')"
24
24
  icon="clock"
25
25
  />
@@ -156,4 +156,12 @@ const filterTitle = computed(() => {
156
156
  })
157
157
 
158
158
  const isFiltered = computed(() => !!route.query[ 'categories' ] || Object.keys(filterValue.value).length > 0);
159
+
160
+ function translateTitle(array: ISelectItem[]) {
161
+ return array.map((item: ISelectItem) => ({
162
+ title: t(item.title),
163
+ key: item.key,
164
+ value: item.value
165
+ }))
166
+ }
159
167
  </script>
@@ -7,37 +7,37 @@ export const selectAddedItems: Array<ISelectItem> = [
7
7
  value: 'all',
8
8
  },
9
9
  {
10
- title: '1 day ago',
10
+ title: '1_day_ago',
11
11
  key: 'added',
12
12
  value: '1d',
13
13
  query: '1d',
14
14
  },
15
15
  {
16
- title: '3 day ago',
16
+ title: '3_day_ago',
17
17
  key: 'added',
18
18
  value: '3d',
19
19
  query: '3d',
20
20
  },
21
21
  {
22
- title: '7 day ago',
22
+ title: '7_day_ago',
23
23
  key: 'added',
24
24
  value: '7d',
25
25
  query: '7d',
26
26
  },
27
27
  {
28
- title: '1 month ago',
28
+ title: '1_month_ago',
29
29
  key: 'added',
30
30
  value: '30d',
31
31
  query: '30d',
32
32
  },
33
33
  {
34
- title: '3 months ago',
34
+ title: '3_months_ago',
35
35
  key: 'added',
36
36
  value: '90d',
37
37
  query: '90d',
38
38
  },
39
39
  {
40
- title: 'other 1 year ago',
40
+ title: 'other_1_year_ago',
41
41
  key: 'added',
42
42
  value: '360d',
43
43
  query: '360d',
@@ -7,31 +7,31 @@ export const selectDurationItems: Array<ISelectItem> = [
7
7
  value: 'all',
8
8
  },
9
9
  {
10
- title: '< 10 minutes',
10
+ title: 'less_10_minutes',
11
11
  key: 'duration',
12
12
  value: '600',
13
13
  query: '599s',
14
14
  },
15
15
  {
16
- title: '10 - 30 minutes',
16
+ title: '10_30_minutes',
17
17
  key: 'duration',
18
18
  value: '1800',
19
19
  query: ['600s', '1800s'],
20
20
  },
21
21
  {
22
- title: '30 - 45 minutes',
22
+ title: '30_45_minutes',
23
23
  key: 'duration',
24
24
  value: '2700',
25
25
  query: ['1800s', '2700s'],
26
26
  },
27
27
  {
28
- title: '45 - 1 hours',
28
+ title: '45_1_hours',
29
29
  key: 'duration',
30
30
  value: '3600',
31
31
  query: ['2700s', '3600s'],
32
32
  },
33
33
  {
34
- title: 'other 1 hours',
34
+ title: 'other_1_hours',
35
35
  key: 'duration',
36
36
  value: '3601',
37
37
  query: '3601s',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.391",
4
+ "version": "0.0.392",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {