@paris-ias/list 1.0.25 → 1.0.27

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.25",
4
+ "version": "1.0.27",
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,6 +26,7 @@
26
26
  </template>
27
27
 
28
28
  <script setup>
29
+ import { useLocalePath, useI18n } from "#imports";
29
30
  const { locale } = useI18n();
30
31
  const localePath = useLocalePath();
31
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: {
@@ -28,14 +28,15 @@
28
28
  {{ item.description }}
29
29
  </div>
30
30
  </template>
31
- </v-col></v-row
32
- ></v-sheet
33
- >
31
+ </v-col>
32
+ </v-row>
33
+ </v-sheet>
34
34
  </template>
35
35
 
36
36
  <script setup>
37
37
  import { useDisplay } from "vuetify";
38
38
  import { useRootStore } from "../../stores/root";
39
+ import { useLocalePath } from "#imports";
39
40
  const localePath = useLocalePath();
40
41
  const rootStore = useRootStore();
41
42
  const { lgAndUp } = useDisplay();
@@ -19,11 +19,13 @@
19
19
  : []),
20
20
  ]"
21
21
  class="mt-2"
22
- /></v-col>
22
+ />
23
+ </v-col>
23
24
  </v-row>
24
25
  </template>
25
26
 
26
27
  <script setup>
28
+ import { useLocalePath, useI18n } from "#imports";
27
29
  const { locale } = useI18n();
28
30
  const localePath = useLocalePath();
29
31
  const props = defineProps({
@@ -43,6 +43,7 @@
43
43
 
44
44
  <script setup>
45
45
  import { useDisplay } from "vuetify";
46
+ import { useLocalePath, useI18n } from "#imports";
46
47
  const { name } = useDisplay();
47
48
  const localePath = useLocalePath();
48
49
  const { locale } = useI18n();
@@ -1,27 +1,28 @@
1
1
  <template>
2
2
  <v-list-item :to="localePath(getPath(item.id))" class="search-item py-2">
3
- <template v-slot:item :key="index.toString() + item.id"></template>
4
- <template v-slot:prepend v-if="item.prependAvatar">
5
- <v-avatar rounded="0" :image="item.prependAvatar"> </v-avatar>
3
+ <template #item :key="index.toString() + item.id" />
4
+ <template v-if="item.prependAvatar" #prepend>
5
+ <v-avatar rounded="0" :image="item.prependAvatar" />
6
6
  </template>
7
- <template v-slot:title>
8
- <div v-html="item.title" class="text-black black-text"></div>
7
+ <template #title>
8
+ <div class="text-black black-text" v-html="item.title" />
9
9
  </template>
10
- <template v-slot:subtitle>
11
- <div v-html="item.subtitle" class="text-black black-text"></div>
10
+ <template #subtitle>
11
+ <div class="text-black black-text" v-html="item.subtitle" />
12
12
  </template>
13
- <template v-slot:append>
13
+ <template #append>
14
14
  <v-btn
15
15
  icon="mdi-open-in-new"
16
16
  variant="text"
17
17
  :to="localePath(getPath(item.id))"
18
18
  target="_blank"
19
- ></v-btn>
19
+ />
20
20
  </template>
21
21
  </v-list-item>
22
22
  </template>
23
23
 
24
24
  <script setup>
25
+ import { useLocalePath } from "#imports";
25
26
  const localePath = useLocalePath();
26
27
  const props = defineProps({
27
28
  item: {
@@ -35,9 +35,14 @@
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 {
40
+ useNuxtApp,
41
+ useI18n,
42
+ onMounted,
43
+ resolveComponent,
44
+ useI18n
45
+ } from "#imports";
41
46
  const { smAndDown } = useDisplay();
42
47
  const i18n = useI18n();
43
48
  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 } 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);
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <v-row> <v-col cols="12" /> </v-row>
2
+ <v-row> <v-col cols="12" /> header</v-row>
3
3
  </template>
4
4
 
5
- <script setup>
5
+ <script setup lang="ts"></script>
6
6
 
7
- </script>
7
+ <style lang="scss"></style>
@@ -28,14 +28,15 @@
28
28
  {{ item.description }}
29
29
  </div>
30
30
  </template>
31
- </v-col></v-row
32
- ></v-sheet
33
- >
31
+ </v-col>
32
+ </v-row>
33
+ </v-sheet>
34
34
  </template>
35
35
 
36
36
  <script setup>
37
37
  import { useDisplay } from "vuetify";
38
38
  import { useRootStore } from "../../stores/root";
39
+ import { useLocalePath } from "#imports";
39
40
  const localePath = useLocalePath();
40
41
  const rootStore = useRootStore();
41
42
  const { lgAndUp } = useDisplay();
@@ -134,7 +134,7 @@
134
134
  import { useDisplay } from "vuetify";
135
135
  import { computed } from "vue";
136
136
  import { useRootStore } from "../../stores/root";
137
- import { useNuxtApp, useI18n } from "#imports";
137
+ import { useNuxtApp, useI18n, useLocalePath } from "#imports";
138
138
  const { $stores } = useNuxtApp();
139
139
  const { locale } = useI18n();
140
140
  const localePath = useLocalePath();
@@ -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,7 @@
33
33
  <script setup>
34
34
  import { useDisplay } from "vuetify";
35
35
  import { useRootStore } from "../../stores/root";
36
- import { slugify } from "../../../composables/useUtils";
36
+ import { useLocalePath } from "#imports";
37
37
  const localePath = useLocalePath();
38
38
  const rootStore = useRootStore();
39
39
  const { lgAndUp } = useDisplay();
@@ -66,7 +66,7 @@
66
66
 
67
67
  <script setup>
68
68
  import { useDisplay } from "vuetify";
69
- import { computed } from "vue";
69
+ import { useLocalePath, computed } from "#imports";
70
70
  const { name, mdAndUp } = useDisplay();
71
71
  const localePath = useLocalePath();
72
72
  const props = defineProps({
@@ -36,6 +36,7 @@
36
36
  <script setup>
37
37
  import { useDisplay } from "vuetify";
38
38
  import { useRootStore } from "../../stores/root";
39
+ import { useLocalePath } from "#imports";
39
40
  const localePath = useLocalePath();
40
41
  const rootStore = useRootStore();
41
42
  const { lgAndUp } = useDisplay();
@@ -85,7 +85,7 @@
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, useLocalePath } from "#imports";
89
89
  const { locale } = useI18n();
90
90
  const { name } = useDisplay();
91
91
  const rootStore = useRootStore();
@@ -36,6 +36,7 @@
36
36
  <script setup>
37
37
  import { useDisplay } from "vuetify";
38
38
  import { useRootStore } from "../../stores/root";
39
+ import { useLocalePath } from "#imports";
39
40
  const localePath = useLocalePath();
40
41
  const rootStore = useRootStore();
41
42
  const { lgAndUp } = useDisplay();
@@ -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.25",
4
+ "version": "1.0.27",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": "IEA-Paris/list",
7
7
  "dependencies": {