@paris-ias/list 1.0.98 → 1.0.100
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 +1 -1
- package/dist/runtime/components/events/SlidingItem.vue +12 -1
- package/dist/runtime/components/list/molecules/Pagination.vue +0 -9
- package/dist/runtime/components/list/organisms/List.vue +1 -0
- package/dist/runtime/components/news/RowsItem.vue +0 -2
- package/dist/runtime/stores/root.d.ts +1 -0
- package/dist/runtime/stores/root.js +14 -4
- package/dist/runtime/translations/en.json +10 -9
- package/dist/runtime/translations/fr.json +10 -9
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-sheet
|
|
2
|
+
<v-sheet
|
|
3
|
+
v-motion
|
|
4
|
+
class="d-flex sliding-item flex-md-row flex-column px-6"
|
|
5
|
+
:initial="{
|
|
6
|
+
opacity: 0,
|
|
7
|
+
x: 100,
|
|
8
|
+
}"
|
|
9
|
+
:enter="{
|
|
10
|
+
opacity: 1,
|
|
11
|
+
x: 0,
|
|
12
|
+
}"
|
|
13
|
+
>
|
|
3
14
|
<MiscAtomsDateStamp
|
|
4
15
|
:date-start="item.start"
|
|
5
16
|
:date-stop="item.stop"
|
|
@@ -184,15 +184,6 @@ const getGapPage = (index) => {
|
|
|
184
184
|
renderPages.value[index - 1].key + ((renderPages.value[index + 1].key || props.totalPages) - renderPages.value[index - 1].key) / 2
|
|
185
185
|
);
|
|
186
186
|
};
|
|
187
|
-
watch(
|
|
188
|
-
() => route.query.page,
|
|
189
|
-
(newPage) => {
|
|
190
|
-
if (newPage) {
|
|
191
|
-
props.currentPage = Number.parseInt(newPage, 10);
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
{ immediate: true }
|
|
195
|
-
);
|
|
196
187
|
</script>
|
|
197
188
|
|
|
198
189
|
<style>
|
|
@@ -83,6 +83,7 @@ const itemTemplate = computed(
|
|
|
83
83
|
const numberOfPages = computed(() => $stores[props.type].numberOfPages);
|
|
84
84
|
const page = computed(() => +$stores[props.type].page);
|
|
85
85
|
const items = computed(() => $stores[props.type].items);
|
|
86
|
+
rootStore.initializePageFromRoute();
|
|
86
87
|
try {
|
|
87
88
|
await rootStore.update(props.type, locale.value);
|
|
88
89
|
} catch (error) {
|
|
@@ -170,8 +170,6 @@ const processedSummary = computed(() => {
|
|
|
170
170
|
name: "news-slug",
|
|
171
171
|
params: { slug: props.item.slug[locale.value] }
|
|
172
172
|
});
|
|
173
|
-
console.log("Raw summary:", raw);
|
|
174
|
-
console.log("Slug path:", slugPath);
|
|
175
173
|
return replaceMarkdownLinksWithSlug(raw, slugPath);
|
|
176
174
|
});
|
|
177
175
|
function replaceMarkdownLinksWithSlug(markdownText, slugPath) {
|
|
@@ -186,13 +186,23 @@ export const useRootStore = defineStore("rootStore", {
|
|
|
186
186
|
this.update(type);
|
|
187
187
|
},
|
|
188
188
|
updatePage({ page, type }) {
|
|
189
|
-
this.page = page;
|
|
190
189
|
const router = useRouter();
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
190
|
+
const currentQuery = router.currentRoute.value.query;
|
|
191
|
+
const newQuery = { ...currentQuery };
|
|
192
|
+
if (page > 1) {
|
|
193
|
+
newQuery.page = page.toString();
|
|
194
|
+
} else {
|
|
195
|
+
delete newQuery.page;
|
|
196
|
+
}
|
|
197
|
+
router.replace({ query: newQuery });
|
|
198
|
+
this.page = page;
|
|
194
199
|
this.update(type);
|
|
195
200
|
},
|
|
201
|
+
initializePageFromRoute() {
|
|
202
|
+
const { query } = useRouter().currentRoute.value;
|
|
203
|
+
const page = Number.parseInt(query.page, 10);
|
|
204
|
+
this.page = isNaN(page) || page < 1 ? 1 : page;
|
|
205
|
+
},
|
|
196
206
|
async updateSearch({
|
|
197
207
|
type = "all",
|
|
198
208
|
search = "",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"learn-more": "read more",
|
|
32
32
|
"list": {
|
|
33
33
|
"reset-filters": "Reset filters",
|
|
34
|
-
"0-items-found": "No {1} found. | One {1} found. | {0} {1} found.",
|
|
35
|
-
"0-items-found-f": "No {1} found. | One {1} found. | {0} {1} found.",
|
|
36
|
-
"0-items-found-searching-for": "No {1} found for \"{2}\". | One {1} found for \"{2}\". | {0} {1} found for \"{2}\".",
|
|
37
|
-
"0-items-found-searching-for-f": "No {1} found for \"{2}\". | One {1} found for \"{2}\". | {0} {1} found for \"{2}\".",
|
|
38
|
-
"0-items-found-searching-for-with-1-filter": "No {1} found for \"{2}\" with {3} {4}. | One {1} found for \"{2}\" with {3} {4}. | {0} {1} found for \"{2}\" with {3} {4}.",
|
|
39
|
-
"0-items-found-searching-for-with-1-filter-f": "No {1} found for \"{2}\" with {3} {4}. | One {1} found for \"{2}\" with {3} {4}. | {0} {1} found for \"{2}\" with {3} {4}.",
|
|
40
|
-
"0-items-found-with-1-filter": "No {1} found with {2} {3}. | One {1} found with {2} {3}. | {0} {1} found with {2} {3}.",
|
|
41
|
-
"0-items-found-with-1-filter-f": "No {1} found with {2} {3}. | One {1} found with {2} {3}. | {0} {1} found with {2} {3}.",
|
|
34
|
+
"0-items-found": "No {1} found. | One {1} found. | {0} {1} found. ",
|
|
35
|
+
"0-items-found-f": "No {1} found. | One {1} found. | {0} {1} found. ",
|
|
36
|
+
"0-items-found-searching-for": "No {1} found for \"{2}\". | One {1} found for \"{2}\". | {0} {1} found for \"{2}\". ",
|
|
37
|
+
"0-items-found-searching-for-f": "No {1} found for \"{2}\". | One {1} found for \"{2}\". | {0} {1} found for \"{2}\". ",
|
|
38
|
+
"0-items-found-searching-for-with-1-filter": "No {1} found for \"{2}\" with {3} {4}. | One {1} found for \"{2}\" with {3} {4}. | {0} {1} found for \"{2}\" with {3} {4}. ",
|
|
39
|
+
"0-items-found-searching-for-with-1-filter-f": "No {1} found for \"{2}\" with {3} {4}. | One {1} found for \"{2}\" with {3} {4}. | {0} {1} found for \"{2}\" with {3} {4}. ",
|
|
40
|
+
"0-items-found-with-1-filter": "No {1} found with {2} {3}. | One {1} found with {2} {3}. | {0} {1} found with {2} {3}. ",
|
|
41
|
+
"0-items-found-with-1-filter-f": "No {1} found with {2} {3}. | One {1} found with {2} {3}. | {0} {1} found with {2} {3}. ",
|
|
42
42
|
"by-date-most-recent-first": "Latest",
|
|
43
43
|
"by-date-oldest-first": "Oldest",
|
|
44
44
|
"by-name-from-a-to-z": "By Name, from A to Z",
|
|
@@ -339,5 +339,6 @@
|
|
|
339
339
|
"close-the-filter-panel": "Close the filter panel",
|
|
340
340
|
"list.by-vintage-from-recent-to-old": "By Year, from recent to old",
|
|
341
341
|
"list.by-vintage-from-old-to-recent": "By Year, from old to recent",
|
|
342
|
-
"no-biography": "No biography available"
|
|
342
|
+
"no-biography": "No biography available",
|
|
343
|
+
"search": "Search"
|
|
343
344
|
}
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"learn-more": "En savoir plus",
|
|
32
32
|
"list": {
|
|
33
33
|
"reset-filters": "Réinitialiser les filtres",
|
|
34
|
-
"0-items-found": "Aucun {1} trouvé. | Un seul {1} trouvé. | {0} {1} trouvés.",
|
|
35
|
-
"0-items-found-f": "Aucune {1} trouvée. | Une seule {1} trouvée. | {0} {1} trouvées.",
|
|
36
|
-
"0-items-found-searching-for": "Aucun {1} trouvé pour la recherche de \"{2}\". | Un seul {1} trouvé pour la recherche de \"{2}\".| {0} {1} trouvés pour la recherche de \"{2}\".",
|
|
37
|
-
"0-items-found-searching-for-f": "Aucune {1} trouvée pour la recherche de \"{2}\". | Une seule {1} trouvée pour la recherche de \"{2}\".| {0} {1} trouvées pour la recherche de \"{2}\".",
|
|
38
|
-
"0-items-found-searching-for-with-1-filter": "Aucun {1} trouvé pour la recherche de \"{2}\" avec {3} {4}.| Un seul {1} trouvé pour la recherche de \"{2}\" avec {3} {4}. | {0} {1} trouvés pour la recherche de \"{2}\" avec {3} {4}.",
|
|
39
|
-
"0-items-found-searching-for-with-1-filter-f": "Aucune {1} trouvée pour la recherche de \"{2}\" avec {3} {4}. | Une seule {1} trouvée pour la recherche de \"{2}\" avec {3} {4}. | {0} {1} trouvées pour la recherche de \"{2}\" avec {3} {4}.",
|
|
40
|
-
"0-items-found-with-1-filter": "Aucun {1} trouvé avec {2} {3}. | Un seul {1} trouvé avec {2} {3}. | {0} {1} trouvés avec {2} {3}.",
|
|
41
|
-
"0-items-found-with-1-filter-f": "Aucune {1} trouvée avec {2} {3}. | Une seule {1} trouvée avec {2} {3}. | {0} {1} trouvées avec {2} {3}.",
|
|
34
|
+
"0-items-found": "Aucun {1} trouvé. | Un seul {1} trouvé. | {0} {1} trouvés. ",
|
|
35
|
+
"0-items-found-f": "Aucune {1} trouvée. | Une seule {1} trouvée. | {0} {1} trouvées. ",
|
|
36
|
+
"0-items-found-searching-for": "Aucun {1} trouvé pour la recherche de \"{2}\". | Un seul {1} trouvé pour la recherche de \"{2}\".| {0} {1} trouvés pour la recherche de \"{2}\". ",
|
|
37
|
+
"0-items-found-searching-for-f": "Aucune {1} trouvée pour la recherche de \"{2}\". | Une seule {1} trouvée pour la recherche de \"{2}\".| {0} {1} trouvées pour la recherche de \"{2}\". ",
|
|
38
|
+
"0-items-found-searching-for-with-1-filter": "Aucun {1} trouvé pour la recherche de \"{2}\" avec {3} {4}.| Un seul {1} trouvé pour la recherche de \"{2}\" avec {3} {4}. | {0} {1} trouvés pour la recherche de \"{2}\" avec {3} {4}. ",
|
|
39
|
+
"0-items-found-searching-for-with-1-filter-f": "Aucune {1} trouvée pour la recherche de \"{2}\" avec {3} {4}. | Une seule {1} trouvée pour la recherche de \"{2}\" avec {3} {4}. | {0} {1} trouvées pour la recherche de \"{2}\" avec {3} {4}. ",
|
|
40
|
+
"0-items-found-with-1-filter": "Aucun {1} trouvé avec {2} {3}. | Un seul {1} trouvé avec {2} {3}. | {0} {1} trouvés avec {2} {3}. ",
|
|
41
|
+
"0-items-found-with-1-filter-f": "Aucune {1} trouvée avec {2} {3}. | Une seule {1} trouvée avec {2} {3}. | {0} {1} trouvées avec {2} {3}. ",
|
|
42
42
|
"by-date-most-recent-first": "Dernier",
|
|
43
43
|
"by-date-oldest-first": "Le plus ancien",
|
|
44
44
|
"by-name-from-a-to-z": "Par nom, de A à Z",
|
|
@@ -337,5 +337,6 @@
|
|
|
337
337
|
"present": "aujourd'hui",
|
|
338
338
|
"visit-this-project-website": "Visitez le site Web du projet",
|
|
339
339
|
"visit-this-publications-website": "Visitez la page Web de cette publication",
|
|
340
|
-
"no-biography": "Aucune biographie disponible"
|
|
340
|
+
"no-biography": "Aucune biographie disponible",
|
|
341
|
+
"search": "Rechercher"
|
|
341
342
|
}
|