@paris-ias/list 1.1.5 → 1.1.6
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/dist/module.json
CHANGED
|
@@ -51,6 +51,7 @@ const i18n = useI18n()
|
|
|
51
51
|
const { locale, messages } = useI18n()
|
|
52
52
|
const { $stores, $filters } = useNuxtApp()
|
|
53
53
|
const props = defineProps(["type", "expanded"])
|
|
54
|
+
console.log("$filters: ", $filters)
|
|
54
55
|
|
|
55
56
|
const ComponentName = (name) => {
|
|
56
57
|
return resolveComponent(
|
|
@@ -63,13 +64,16 @@ const getItems = (name) => {
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
if ($filters?.[props.type]?.[name]) {
|
|
67
|
+
console.log("name: ", name)
|
|
68
|
+
// Disciplines and thematics have their own namespace for translations
|
|
66
69
|
if (["disciplines", "thematics"].includes(name)) {
|
|
67
|
-
return
|
|
70
|
+
return Object.keys(messages.value[locale.value].list.filters?.[name])
|
|
68
71
|
.filter((key) => key !== "label")
|
|
69
72
|
.map((item) => ({
|
|
70
73
|
title: i18n.t(`list.filters.${name}.${item}`),
|
|
71
74
|
value: item,
|
|
72
75
|
}))
|
|
76
|
+
.sort((a, b) => a.title.localeCompare(b.title))
|
|
73
77
|
} else {
|
|
74
78
|
return $filters[props.type][name]
|
|
75
79
|
.filter((key) => key !== "label")
|
|
@@ -28,16 +28,17 @@
|
|
|
28
28
|
"fellow": "fellow | fellow | fellows",
|
|
29
29
|
"fellowships": "fellowship | fellowship | fellowships",
|
|
30
30
|
"file": "document | document | documents",
|
|
31
|
+
"initiatives": "initiative | initiative | initiatives",
|
|
31
32
|
"mailing": "mailing | mailing | mailings",
|
|
33
|
+
"media": "media | media | media",
|
|
32
34
|
"news": "news | news | news",
|
|
33
35
|
"people": "fellow | fellow | fellows",
|
|
36
|
+
"platforms": "platform | platform | platforms",
|
|
34
37
|
"projects": "project | project | projects",
|
|
35
|
-
"videos": "video | video | videos",
|
|
36
38
|
"publications": "publication | publication | publications",
|
|
37
39
|
"tags": "tag | tag | tags",
|
|
38
40
|
"user": "user | user | users",
|
|
39
|
-
"
|
|
40
|
-
"platforms": "platform | platform | platforms"
|
|
41
|
+
"videos": "video | video | videos"
|
|
41
42
|
},
|
|
42
43
|
"learn-more": "read more",
|
|
43
44
|
"list": {
|
|
@@ -19,25 +19,26 @@
|
|
|
19
19
|
"inscription-gratuite-et-obligatoire": "Enregistrement gratuit et obligatoire",
|
|
20
20
|
"inscription-ouverte": "Inscription ouverte",
|
|
21
21
|
"items": {
|
|
22
|
+
"activities": "activité | activité | activités",
|
|
23
|
+
"affiliations": "affiliation | affiliation | affiliations",
|
|
22
24
|
"all": "Tout",
|
|
25
|
+
"app": "application | application | applications",
|
|
26
|
+
"disciplines": "discipline | discipline | disciplines",
|
|
23
27
|
"events": "événement |événement | événements",
|
|
24
28
|
"fellow": "résident | résident | résidents",
|
|
25
29
|
"fellowships": "programme d'accueil | programme d'accueil | programmes d'accueil",
|
|
30
|
+
"file": "document | document | documents",
|
|
31
|
+
"initiatives": "initiative | initiative | initiatives",
|
|
32
|
+
"mailing": "mailing | mailing | mailings",
|
|
33
|
+
"media": "média | média | médias",
|
|
26
34
|
"news": "actualité | actualités | actualités",
|
|
27
35
|
"people": "résident | résident | résidents",
|
|
36
|
+
"platforms": "plateforme | plateforme | plateformes",
|
|
28
37
|
"projects": "projet | projet | projets",
|
|
29
38
|
"publications": "publication | publications | publications",
|
|
30
|
-
"activities": "activité | activité | activités",
|
|
31
|
-
"affiliations": "affiliation | affiliation | affiliations",
|
|
32
|
-
"app": "application | application | applications",
|
|
33
|
-
"disciplines": "discipline | discipline | disciplines",
|
|
34
|
-
"file": "document | document | documents",
|
|
35
|
-
"mailing": "mailing | mailing | mailings",
|
|
36
|
-
"videos": "vidéo | vidéo | vidéos",
|
|
37
39
|
"tags": "tag | tag | tags",
|
|
38
40
|
"user": "utilisateur | utilisateur | utilisateurs",
|
|
39
|
-
"
|
|
40
|
-
"platforms": "plateforme | plateforme | plateformes"
|
|
41
|
+
"videos": "vidéo | vidéo | vidéos"
|
|
41
42
|
},
|
|
42
43
|
"learn-more": "En savoir plus",
|
|
43
44
|
"list": {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"license": "AGPL-3.0-only",
|
|
3
3
|
"main": "./dist/module.mjs",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.6",
|
|
5
5
|
"name": "@paris-ias/list",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "git+https://github.com/IEA-Paris/list.git",
|
|
8
8
|
"type": "git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@paris-ias/trees": "^2.1.
|
|
11
|
+
"@paris-ias/trees": "^2.1.6"
|
|
12
12
|
},
|
|
13
13
|
"description": "Paris IAS List Module",
|
|
14
14
|
"peerDependencies": {
|