@paris-ias/list 1.0.26 → 1.0.28

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paris-ias/list",
3
3
  "configKey": "list",
4
- "version": "1.0.26",
4
+ "version": "1.0.28",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -13,8 +13,8 @@
13
13
  <template #prepend>
14
14
  <v-icon size="large" color="danger" />
15
15
  </template>
16
- {{ $t("event-full") }}</v-btn
17
- >
16
+ {{ $t("event-full") }}
17
+ </v-btn>
18
18
 
19
19
  <v-divider v-if="smAndUp" vertical class="mx-3" />
20
20
  <v-btn
@@ -32,8 +32,8 @@
32
32
  })
33
33
  "
34
34
  >
35
- {{ $t("live-stream-available") }}</v-btn
36
- >
35
+ {{ $t("live-stream-available") }}
36
+ </v-btn>
37
37
 
38
38
  <v-btn
39
39
  v-if="item.outside"
@@ -44,8 +44,8 @@
44
44
  size="small"
45
45
  class="my-xs-2"
46
46
  >
47
- {{ $t("outside-event") }}</v-btn
48
- >
47
+ {{ $t("outside-event") }}
48
+ </v-btn>
49
49
 
50
50
  <v-btn
51
51
  v-if="item.type === 'HYBRID'"
@@ -56,13 +56,14 @@
56
56
  size="small"
57
57
  class="my-xs-2"
58
58
  >
59
- {{ $t("hybrid-event") }}</v-btn
60
- >
59
+ {{ $t("hybrid-event") }}
60
+ </v-btn>
61
61
  </div>
62
62
  </template>
63
63
 
64
64
  <script setup>
65
65
  import { useDisplay } from "vuetify";
66
+ import { useI18n } from "#imports";
66
67
  const { smAndUp } = useDisplay();
67
68
  const { locale } = useI18n();
68
69
  const props = defineProps({
@@ -58,6 +58,7 @@
58
58
  <script setup>
59
59
  import { ref } from "vue";
60
60
  import { getDetailedFormatedDate } from "../../composables/useUtils";
61
+ import { useI18n } from "#imports";
61
62
  const { locale } = useI18n();
62
63
  const props = defineProps({
63
64
  item: {
@@ -26,7 +26,7 @@
26
26
  </template>
27
27
 
28
28
  <script setup>
29
- import { useLocalePath } from "#imports";
29
+ import { useLocalePath, useI18n } from "#imports";
30
30
  const { locale } = useI18n();
31
31
  const localePath = useLocalePath();
32
32
  const props = defineProps({
@@ -4,7 +4,7 @@
4
4
  :value="event"
5
5
  style="cursor: pointer"
6
6
  @click="
7
- $router.push(localePath('/activities/events/' + slugify(event.title)))
7
+ $router.push(localePath('/activities/events/' + event.slug[locale]))
8
8
  "
9
9
  >
10
10
  <v-col cols="3">
@@ -31,6 +31,8 @@
31
31
 
32
32
  <script setup>
33
33
  import { useRootStore } from "../../stores/root";
34
+ import { useI18n } from "#imports";
35
+ const { locale } = useI18n();
34
36
  const rootStore = useRootStore();
35
37
  const props = defineProps({
36
38
  events: {
@@ -25,7 +25,7 @@
25
25
  </template>
26
26
 
27
27
  <script setup>
28
- import { useLocalePath } from "#imports";
28
+ import { useLocalePath, useI18n } from "#imports";
29
29
  const { locale } = useI18n();
30
30
  const localePath = useLocalePath();
31
31
  const props = defineProps({
@@ -43,7 +43,7 @@
43
43
 
44
44
  <script setup>
45
45
  import { useDisplay } from "vuetify";
46
- import { useLocalePath } from "#imports";
46
+ import { useLocalePath, useI18n } from "#imports";
47
47
  const { name } = useDisplay();
48
48
  const localePath = useLocalePath();
49
49
  const { locale } = useI18n();
@@ -35,9 +35,8 @@
35
35
 
36
36
  <script setup>
37
37
  import { useDisplay } from "vuetify";
38
- import { resolveComponent } from "vue";
39
38
  import { useRootStore } from "../../../stores/root";
40
- import { useNuxtApp, useI18n, onMounted } from "#imports";
39
+ import { useNuxtApp, onMounted, resolveComponent, useI18n } from "#imports";
41
40
  const { smAndDown } = useDisplay();
42
41
  const i18n = useI18n();
43
42
  const { locale, messages } = useI18n();
@@ -14,7 +14,7 @@
14
14
  link
15
15
  ? localePath({
16
16
  name: link,
17
- params: { slug: slugify(slug) },
17
+ params: { slug },
18
18
  })
19
19
  : null
20
20
  "
@@ -50,8 +50,7 @@
50
50
  </template>
51
51
 
52
52
  <script setup>
53
- import { slugify } from "../../../composables/useUtils";
54
- import { computed, useLocalePath } from "#imports";
53
+ import { computed, useLocalePath, useImage } from "#imports";
55
54
  const localePath = useLocalePath();
56
55
  const img = useImage();
57
56
  const computedSrc = computed(() => {
@@ -85,7 +85,8 @@
85
85
  <script setup>
86
86
  import { useDisplay } from "vuetify";
87
87
  import { useRootStore } from "../../stores/root";
88
- import { useRouter } from "#imports";
88
+ import { useRouter, useI18n, useLocalePath } from "#imports";
89
+ const localePath = useLocalePath();
89
90
  const router = useRouter();
90
91
  const rootStore = useRootStore();
91
92
  const expanded = ref(false);
@@ -3,7 +3,7 @@
3
3
  :to="
4
4
  localePath({
5
5
  name: 'people-slug',
6
- params: { slug: slugify(item.firstname + item.lastname) }, //TODO à modifier
6
+ params: { slug: item.slug },
7
7
  })
8
8
  "
9
9
  >
@@ -33,7 +33,6 @@
33
33
  <script setup>
34
34
  import { useDisplay } from "vuetify";
35
35
  import { useRootStore } from "../../stores/root";
36
- import { slugify } from "../../../composables/useUtils";
37
36
  import { useLocalePath } from "#imports";
38
37
  const localePath = useLocalePath();
39
38
  const rootStore = useRootStore();
@@ -1,4 +1,4 @@
1
- import { useRoute, useAsyncQuery } from "#imports";
1
+ import { useRoute, useAsyncQuery, useI18n, useSetI18nParams } from "#imports";
2
2
  export const useFetchItem = () => {
3
3
  const fetchItem = async (payload) => {
4
4
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "license": "AGPL-3.0-only",
3
3
  "main": "./dist/module.mjs",
4
- "version": "1.0.26",
4
+ "version": "1.0.28",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": "IEA-Paris/list",
7
7
  "dependencies": {