@paris-ias/list 1.0.24 → 1.0.26

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.24",
4
+ "version": "1.0.26",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.0",
7
7
  "unbuild": "3.5.0"
@@ -26,6 +26,7 @@
26
26
  </template>
27
27
 
28
28
  <script setup>
29
+ import { useLocalePath } from "#imports";
29
30
  const { locale } = useI18n();
30
31
  const localePath = useLocalePath();
31
32
  const props = defineProps({
@@ -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 } 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 } 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: {
@@ -77,9 +77,8 @@
77
77
  </template>
78
78
 
79
79
  <script setup>
80
- import { computed } from "vue";
81
80
  import { useRootStore } from "../../../stores/root";
82
- import { useRoute } from "#imports";
81
+ import { useRoute, computed, watch } from "#imports";
83
82
  const route = useRoute();
84
83
  const rootStore = useRootStore();
85
84
  const props = defineProps({
@@ -51,7 +51,7 @@
51
51
 
52
52
  <script setup>
53
53
  import { slugify } from "../../../composables/useUtils";
54
- import { computed } from "#imports";
54
+ import { computed, useLocalePath } from "#imports";
55
55
  const localePath = useLocalePath();
56
56
  const img = useImage();
57
57
  const computedSrc = computed(() => {
@@ -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();
@@ -34,6 +34,7 @@
34
34
  import { useDisplay } from "vuetify";
35
35
  import { useRootStore } from "../../stores/root";
36
36
  import { slugify } from "../../../composables/useUtils";
37
+ import { useLocalePath } from "#imports";
37
38
  const localePath = useLocalePath();
38
39
  const rootStore = useRootStore();
39
40
  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();
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.24",
4
+ "version": "1.0.26",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": "IEA-Paris/list",
7
7
  "dependencies": {