@paris-ias/list 1.0.111 → 1.0.113
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/DenseItem.vue +24 -15
- package/dist/runtime/components/fellowships/DenseItem.vue +1 -1
- package/dist/runtime/components/list/atoms/SearchInput.vue +4 -2
- package/dist/runtime/components/list/molecules/Pagination.vue +2 -0
- package/dist/runtime/components/list/organisms/List.vue +16 -2
- package/dist/runtime/components/list/views/Dense.vue +0 -1
- package/dist/runtime/components/news/DenseItem.vue +24 -23
- package/dist/runtime/components/people/Badges.vue +74 -0
- package/dist/runtime/components/people/DenseItem.vue +11 -8
- package/dist/runtime/components/people/RowsItem.vue +2 -2
- package/dist/runtime/components/people/View.vue +1 -1
- package/dist/runtime/components/publications/DenseItem.vue +14 -7
- package/dist/runtime/graphql/list/publications.gql +2 -0
- package/dist/runtime/runtime/components/actions/ExpandedItem.vue +14 -0
- package/dist/runtime/runtime/components/actions/RowsItem.vue +12 -0
- package/dist/runtime/runtime/components/actions/View.vue +20 -0
- package/dist/runtime/runtime/components/affiliations/ExpandedItem.vue +14 -0
- package/dist/runtime/runtime/components/affiliations/RowsItem.vue +12 -0
- package/dist/runtime/runtime/components/affiliations/View.vue +20 -0
- package/dist/runtime/runtime/components/apps/ExpandedItem.vue +14 -0
- package/dist/runtime/runtime/components/apps/RowsItem.vue +12 -0
- package/dist/runtime/runtime/components/apps/View.vue +20 -0
- package/dist/runtime/runtime/components/disciplines/ExpandedItem.vue +14 -0
- package/dist/runtime/runtime/components/disciplines/RowsItem.vue +12 -0
- package/dist/runtime/runtime/components/disciplines/View.vue +20 -0
- package/dist/runtime/runtime/components/events/Badges.vue +73 -0
- package/dist/runtime/runtime/components/events/DateTimePlace.vue +77 -0
- package/dist/runtime/runtime/components/events/DenseItem.vue +60 -0
- package/dist/runtime/runtime/components/events/ExpandedItem.vue +9 -0
- package/dist/runtime/runtime/components/events/RegisterModal.vue +50 -0
- package/dist/runtime/runtime/components/events/RelatedItem.vue +44 -0
- package/dist/runtime/runtime/components/events/RowsItem.vue +118 -0
- package/dist/runtime/runtime/components/events/SlidingItem.vue +63 -0
- package/dist/runtime/runtime/components/events/View.vue +333 -0
- package/dist/runtime/runtime/components/fellowships/Badges.vue +47 -0
- package/dist/runtime/runtime/components/fellowships/DenseItem.vue +42 -0
- package/dist/runtime/runtime/components/fellowships/ExpandedItem.vue +7 -0
- package/dist/runtime/runtime/components/fellowships/RegisterModal.vue +41 -0
- package/dist/runtime/runtime/components/fellowships/RowsItem.vue +58 -0
- package/dist/runtime/runtime/components/fellowships/View.vue +203 -0
- package/dist/runtime/runtime/components/files/ExpandedItem.vue +14 -0
- package/dist/runtime/runtime/components/files/RowsItem.vue +12 -0
- package/dist/runtime/runtime/components/files/View.vue +20 -0
- package/dist/runtime/runtime/components/list/atoms/FiltersMenu.vue +44 -0
- package/dist/runtime/runtime/components/list/atoms/ResetButton.vue +33 -0
- package/dist/runtime/runtime/components/list/atoms/ResultsList.vue +27 -0
- package/dist/runtime/runtime/components/list/atoms/SearchInput.vue +59 -0
- package/dist/runtime/runtime/components/list/atoms/SearchItem.vue +65 -0
- package/dist/runtime/runtime/components/list/atoms/SearchString.vue +160 -0
- package/dist/runtime/runtime/components/list/atoms/SortMenu.vue +80 -0
- package/dist/runtime/runtime/components/list/atoms/ViewMenu.vue +63 -0
- package/dist/runtime/runtime/components/list/atoms/itemsPerPage.vue +33 -0
- package/dist/runtime/runtime/components/list/inputs/AutoComplete.vue +24 -0
- package/dist/runtime/runtime/components/list/inputs/BooleanSwitch.vue +20 -0
- package/dist/runtime/runtime/components/list/inputs/Checkbox.vue +20 -0
- package/dist/runtime/runtime/components/list/inputs/Select.vue +28 -0
- package/dist/runtime/runtime/components/list/molecules/Filters.vue +98 -0
- package/dist/runtime/runtime/components/list/molecules/GlobalSearchInput.vue +131 -0
- package/dist/runtime/runtime/components/list/molecules/Header.vue +51 -0
- package/dist/runtime/runtime/components/list/molecules/Pagination.vue +194 -0
- package/dist/runtime/runtime/components/list/molecules/ResultsContainer.vue +78 -0
- package/dist/runtime/runtime/components/list/organisms/List.vue +110 -0
- package/dist/runtime/runtime/components/list/organisms/Results.vue +72 -0
- package/dist/runtime/runtime/components/list/organisms/Slider.vue +180 -0
- package/dist/runtime/runtime/components/list/views/Dense.vue +12 -0
- package/dist/runtime/runtime/components/list/views/Expanded.vue +10 -0
- package/dist/runtime/runtime/components/list/views/Grid.vue +13 -0
- package/dist/runtime/runtime/components/list/views/Rows.vue +12 -0
- package/dist/runtime/runtime/components/list/views/Slider.vue +147 -0
- package/dist/runtime/runtime/components/list/views/Table.vue +13 -0
- package/dist/runtime/runtime/components/mailing/ExpandedItem.vue +14 -0
- package/dist/runtime/runtime/components/mailing/RowsItem.vue +12 -0
- package/dist/runtime/runtime/components/mailing/View.vue +20 -0
- package/dist/runtime/runtime/components/misc/atoms/DateStamp.vue +101 -0
- package/dist/runtime/runtime/components/misc/atoms/ImageContainer.vue +127 -0
- package/dist/runtime/runtime/components/misc/atoms/ShareMenu.vue +61 -0
- package/dist/runtime/runtime/components/misc/atoms/Socials.vue +120 -0
- package/dist/runtime/runtime/components/misc/molecules/ChipContainer.vue +31 -0
- package/dist/runtime/runtime/components/misc/molecules/Related.vue +28 -0
- package/dist/runtime/runtime/components/misc/molecules/RelatedItems.vue +27 -0
- package/dist/runtime/runtime/components/misc/molecules/SearchItem.vue +26 -0
- package/dist/runtime/runtime/components/news/DenseItem.vue +73 -0
- package/dist/runtime/runtime/components/news/ExpandedItem.vue +145 -0
- package/dist/runtime/runtime/components/news/Header.vue +7 -0
- package/dist/runtime/runtime/components/news/RelatedItem.vue +44 -0
- package/dist/runtime/runtime/components/news/RowsItem.vue +182 -0
- package/dist/runtime/runtime/components/news/View.vue +174 -0
- package/dist/runtime/runtime/components/people/DenseItem.vue +60 -0
- package/dist/runtime/runtime/components/people/ExpandedItem.vue +14 -0
- package/dist/runtime/runtime/components/people/RelatedItem.vue +41 -0
- package/dist/runtime/runtime/components/people/RowsItem.vue +93 -0
- package/dist/runtime/runtime/components/people/View.vue +172 -0
- package/dist/runtime/runtime/components/projects/DenseItem.vue +77 -0
- package/dist/runtime/runtime/components/projects/ExpandedItem.vue +12 -0
- package/dist/runtime/runtime/components/projects/RelatedItem.vue +44 -0
- package/dist/runtime/runtime/components/projects/RowsItem.vue +103 -0
- package/dist/runtime/runtime/components/projects/View.vue +130 -0
- package/dist/runtime/runtime/components/publications/DenseItem.vue +89 -0
- package/dist/runtime/runtime/components/publications/RelatedItem.vue +44 -0
- package/dist/runtime/runtime/components/publications/RowsItem.vue +105 -0
- package/dist/runtime/runtime/components/publications/View.vue +132 -0
- package/dist/runtime/runtime/components/tags/ExpandedItem.vue +14 -0
- package/dist/runtime/runtime/components/tags/RowsItem.vue +12 -0
- package/dist/runtime/runtime/components/tags/View.vue +20 -0
- package/dist/runtime/runtime/components/users/ExpandedItem.vue +14 -0
- package/dist/runtime/runtime/components/users/RowsItem.vue +12 -0
- package/dist/runtime/runtime/components/users/View.vue +20 -0
- package/dist/runtime/runtime/composables/useFetchItem.d.ts +6 -0
- package/dist/runtime/runtime/composables/useFetchItem.js +49 -0
- package/dist/runtime/runtime/composables/useIcons.d.ts +1 -0
- package/dist/runtime/runtime/composables/useIcons.js +30 -0
- package/dist/runtime/runtime/composables/useUtils.d.ts +12 -0
- package/dist/runtime/runtime/composables/useUtils.js +48 -0
- package/dist/runtime/runtime/graphql/buildFiltersValues.gql +35 -0
- package/dist/runtime/runtime/graphql/item/action.gql +22 -0
- package/dist/runtime/runtime/graphql/item/affiliations.gql +37 -0
- package/dist/runtime/runtime/graphql/item/apps.gql +34 -0
- package/dist/runtime/runtime/graphql/item/disciplines.gql +17 -0
- package/dist/runtime/runtime/graphql/item/events.gql +120 -0
- package/dist/runtime/runtime/graphql/item/fellowships.gql +164 -0
- package/dist/runtime/runtime/graphql/item/files.gql +25 -0
- package/dist/runtime/runtime/graphql/item/mailing.gql +10 -0
- package/dist/runtime/runtime/graphql/item/news.gql +129 -0
- package/dist/runtime/runtime/graphql/item/people.gql +174 -0
- package/dist/runtime/runtime/graphql/item/projects.gql +171 -0
- package/dist/runtime/runtime/graphql/item/publications.gql +169 -0
- package/dist/runtime/runtime/graphql/item/tags.gql +13 -0
- package/dist/runtime/runtime/graphql/item/users.gql +14 -0
- package/dist/runtime/runtime/graphql/list/action.gql +31 -0
- package/dist/runtime/runtime/graphql/list/affiliations.gql +42 -0
- package/dist/runtime/runtime/graphql/list/apps.gql +42 -0
- package/dist/runtime/runtime/graphql/list/disciplines.gql +22 -0
- package/dist/runtime/runtime/graphql/list/events.gql +44 -0
- package/dist/runtime/runtime/graphql/list/fellowships.gql +53 -0
- package/dist/runtime/runtime/graphql/list/files.gql +37 -0
- package/dist/runtime/runtime/graphql/list/mailing.gql +22 -0
- package/dist/runtime/runtime/graphql/list/news.gql +40 -0
- package/dist/runtime/runtime/graphql/list/people.gql +50 -0
- package/dist/runtime/runtime/graphql/list/projects.gql +37 -0
- package/dist/runtime/runtime/graphql/list/publications.gql +38 -0
- package/dist/runtime/runtime/graphql/list/search.gql +161 -0
- package/dist/runtime/runtime/graphql/list/tags.gql +22 -0
- package/dist/runtime/runtime/graphql/list/users.gql +38 -0
- package/dist/runtime/runtime/graphql/login.gql +0 -0
- package/dist/runtime/runtime/plugins/pinia.d.ts +2 -0
- package/dist/runtime/runtime/plugins/pinia.js +134 -0
- package/dist/runtime/runtime/plugins/vuetify.d.ts +2 -0
- package/dist/runtime/runtime/plugins/vuetify.js +21 -0
- package/dist/runtime/runtime/public/default.png +0 -0
- package/dist/runtime/runtime/public/filters.json +72 -0
- package/dist/runtime/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/runtime/stores/factory.d.ts +25 -0
- package/dist/runtime/runtime/stores/factory.js +19 -0
- package/dist/runtime/runtime/stores/root.d.ts +60 -0
- package/dist/runtime/runtime/stores/root.js +315 -0
- package/dist/runtime/runtime/translations/en.json +350 -0
- package/dist/runtime/runtime/translations/fr.json +349 -0
- package/dist/runtime/runtime/types/imports.d.ts +13 -0
- package/dist/runtime/runtime/types/stores.d.ts +11 -0
- package/dist/runtime/translations/en.json +1 -1
- package/package.json +2 -2
- /package/dist/runtime/{components → runtime/components}/people/GroupBadges.vue +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="pa-6 border-thin w-100">
|
|
3
|
+
<div class="text-overline">{{ $t("related." + type) }}</div>
|
|
4
|
+
<component
|
|
5
|
+
:is="capitalize(type) + 'RelatedItem'"
|
|
6
|
+
v-for="item in items"
|
|
7
|
+
:key="item.id || item.slug || item.name"
|
|
8
|
+
:item="item"
|
|
9
|
+
/>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script setup>
|
|
14
|
+
import { useRootStore } from "../../../stores/root";
|
|
15
|
+
import { capitalize } from "../../../composables/useUtils";
|
|
16
|
+
const rootStore = useRootStore();
|
|
17
|
+
const props = defineProps({
|
|
18
|
+
type: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
items: {
|
|
23
|
+
type: Array,
|
|
24
|
+
required: true
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
</script>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-card class="mx-auto" variant="flat">
|
|
3
|
+
<v-row>
|
|
4
|
+
<v-col cols="12" md="2">
|
|
5
|
+
<MiscAtomsImageContainer
|
|
6
|
+
cover
|
|
7
|
+
:loading="rootStore.loading"
|
|
8
|
+
:src="item.image"
|
|
9
|
+
:ratio="1 / 1"
|
|
10
|
+
/>
|
|
11
|
+
</v-col>
|
|
12
|
+
<v-col cols="12" md="10">
|
|
13
|
+
<div class="text-body-1">{{ item.name }}</div>
|
|
14
|
+
<div>
|
|
15
|
+
<span class="text-primary text-body-2"> {{ item.name }}</span> —
|
|
16
|
+
<span class="text-body-2"> {{ item.subtitle }}</span>
|
|
17
|
+
</div>
|
|
18
|
+
</v-col>
|
|
19
|
+
</v-row>
|
|
20
|
+
</v-card>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup>
|
|
24
|
+
import { useRootStore } from "../../../stores/root";
|
|
25
|
+
const rootStore = useRootStore();
|
|
26
|
+
</script>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-row
|
|
3
|
+
v-ripple
|
|
4
|
+
no-gutters
|
|
5
|
+
class="cursor-pointer highlight-on-hover"
|
|
6
|
+
@click="$router.push(localePath('/activities/news/' + item.slug[locale]))"
|
|
7
|
+
>
|
|
8
|
+
<v-col v-if="mdAndUp" align-self="center" cols="1">
|
|
9
|
+
<MiscAtomsImageContainer
|
|
10
|
+
cover
|
|
11
|
+
:loading="$stores.people.loading"
|
|
12
|
+
:src="item.image.url ? item.image : '/default.png'"
|
|
13
|
+
:ratio="1 / 1"
|
|
14
|
+
:name="item.lastname + ' ' + item.firstname"
|
|
15
|
+
:slug="item.slug"
|
|
16
|
+
link="people-slug"
|
|
17
|
+
width="80px"
|
|
18
|
+
/>
|
|
19
|
+
</v-col>
|
|
20
|
+
<v-col align-self="center" class="text-h5 dense pl-2">
|
|
21
|
+
<v-skeleton-loader v-if="rootStore.loading" type="heading" />
|
|
22
|
+
<template v-else>
|
|
23
|
+
{{ item.name }}
|
|
24
|
+
</template>
|
|
25
|
+
</v-col>
|
|
26
|
+
|
|
27
|
+
<v-col align-self="center">
|
|
28
|
+
<v-skeleton-loader
|
|
29
|
+
v-if="rootStore.loading"
|
|
30
|
+
:type="
|
|
31
|
+
['chip', 'chip@2', 'chip@3', 'chip@4', 'chip@4', 'chip@4'][
|
|
32
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
33
|
+
]
|
|
34
|
+
"
|
|
35
|
+
/>
|
|
36
|
+
|
|
37
|
+
<template v-else>
|
|
38
|
+
<v-chip class="ma-2" style="background-color: white; color: black">
|
|
39
|
+
{{ $t(eventCategory) }}
|
|
40
|
+
</v-chip>
|
|
41
|
+
<MiscMoleculesChipContainer :items="item.tags" size="small" />
|
|
42
|
+
</template>
|
|
43
|
+
</v-col>
|
|
44
|
+
</v-row>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<script setup>
|
|
48
|
+
import { useDisplay } from "vuetify";
|
|
49
|
+
import { useRootStore } from "../../stores/root";
|
|
50
|
+
import { computed, useNuxtApp, useI18n, useLocalePath } from "#imports";
|
|
51
|
+
const { $stores } = useNuxtApp();
|
|
52
|
+
const { name, mdAndUp } = useDisplay();
|
|
53
|
+
const localePath = useLocalePath();
|
|
54
|
+
const { locale } = useI18n();
|
|
55
|
+
const rootStore = useRootStore();
|
|
56
|
+
const props = defineProps({
|
|
57
|
+
item: {
|
|
58
|
+
type: Object,
|
|
59
|
+
required: true
|
|
60
|
+
},
|
|
61
|
+
index: {
|
|
62
|
+
type: Number,
|
|
63
|
+
required: true
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
const eventCategory = computed(() => {
|
|
67
|
+
if (props.item.category) {
|
|
68
|
+
return "list.filters.news.category." + props.item.category;
|
|
69
|
+
} else {
|
|
70
|
+
return "list.filters.news.category.others";
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
</script>
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-row
|
|
3
|
+
v-ripple
|
|
4
|
+
class="expanded-item my-6 cursor-pointer"
|
|
5
|
+
:class="expanded ? 'expanded' : 'collapsed'"
|
|
6
|
+
@click="expanded = !expanded"
|
|
7
|
+
>
|
|
8
|
+
<v-col
|
|
9
|
+
cols="12"
|
|
10
|
+
:md="expanded ? '4' : '2'"
|
|
11
|
+
class="animated-col"
|
|
12
|
+
@click.prevent="
|
|
13
|
+
expanded
|
|
14
|
+
? router.push(
|
|
15
|
+
localePath({
|
|
16
|
+
name: 'news-slug',
|
|
17
|
+
params: { slug: item.slug[locale] },
|
|
18
|
+
})
|
|
19
|
+
)
|
|
20
|
+
: null
|
|
21
|
+
"
|
|
22
|
+
>
|
|
23
|
+
<MiscAtomsImageContainer
|
|
24
|
+
cover
|
|
25
|
+
:loading="rootStore.loading"
|
|
26
|
+
:src="item.image"
|
|
27
|
+
:ratio="1 / 1"
|
|
28
|
+
/>
|
|
29
|
+
</v-col>
|
|
30
|
+
<v-col class="text-h5" cols="12" :md="expanded ? '8' : '9'">
|
|
31
|
+
<div
|
|
32
|
+
:class="expanded ? 'text-h4' : 'text-h5'"
|
|
33
|
+
@click.prevent="
|
|
34
|
+
expanded
|
|
35
|
+
? router.push(
|
|
36
|
+
localePath({
|
|
37
|
+
name: 'news-slug',
|
|
38
|
+
params: { slug: item.slug[locale] },
|
|
39
|
+
})
|
|
40
|
+
)
|
|
41
|
+
: null
|
|
42
|
+
"
|
|
43
|
+
>
|
|
44
|
+
<MDC v-if="item.name" :value="item.name" />
|
|
45
|
+
</div>
|
|
46
|
+
<v-expand-transition v-if="lgAndUp">
|
|
47
|
+
<div v-show="expanded">
|
|
48
|
+
<MiscMoleculesChipContainer :items="item.tags" />
|
|
49
|
+
</div>
|
|
50
|
+
</v-expand-transition>
|
|
51
|
+
<div
|
|
52
|
+
v-if="item.summary"
|
|
53
|
+
class="text-body-1 text-wrap clamped-text"
|
|
54
|
+
:style="
|
|
55
|
+
'-webkit-line-clamp:' +
|
|
56
|
+
(expanded ? [5, 5, 3, 6, 9, 11] : [5, 5, 2, 4, 6, 8])[
|
|
57
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
58
|
+
]
|
|
59
|
+
"
|
|
60
|
+
>
|
|
61
|
+
<MDC :value="item.summary" />
|
|
62
|
+
</div>
|
|
63
|
+
<v-expand-transition>
|
|
64
|
+
<v-btn
|
|
65
|
+
v-show="expanded"
|
|
66
|
+
class="mt-4"
|
|
67
|
+
variant="outlined"
|
|
68
|
+
tile
|
|
69
|
+
@click.prevent="
|
|
70
|
+
router.push(
|
|
71
|
+
localePath({
|
|
72
|
+
name: 'news-slug',
|
|
73
|
+
params: { slug: item.slug[locale] },
|
|
74
|
+
})
|
|
75
|
+
)
|
|
76
|
+
"
|
|
77
|
+
>
|
|
78
|
+
{{ $t("read-more") }}
|
|
79
|
+
</v-btn>
|
|
80
|
+
</v-expand-transition>
|
|
81
|
+
</v-col>
|
|
82
|
+
</v-row>
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<script setup>
|
|
86
|
+
import { useDisplay } from "vuetify";
|
|
87
|
+
import { useRootStore } from "../../stores/root";
|
|
88
|
+
import { useRouter, useI18n, useLocalePath } from "#imports";
|
|
89
|
+
const localePath = useLocalePath();
|
|
90
|
+
const router = useRouter();
|
|
91
|
+
const rootStore = useRootStore();
|
|
92
|
+
const expanded = ref(false);
|
|
93
|
+
const { name, lgAndUp } = useDisplay();
|
|
94
|
+
const { locale } = useI18n();
|
|
95
|
+
const props = defineProps({
|
|
96
|
+
item: {
|
|
97
|
+
type: Object,
|
|
98
|
+
required: true
|
|
99
|
+
},
|
|
100
|
+
index: {
|
|
101
|
+
type: Number,
|
|
102
|
+
required: true
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
</script>
|
|
106
|
+
|
|
107
|
+
<style scoped>
|
|
108
|
+
.expanded-item {
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
transition: all 0.3s ease-in-out;
|
|
111
|
+
}
|
|
112
|
+
.expanded-item.expanded .v-col:first-child {
|
|
113
|
+
flex: 0 0 33.333%;
|
|
114
|
+
max-width: 33.333%;
|
|
115
|
+
}
|
|
116
|
+
.expanded-item.expanded .v-col:last-child {
|
|
117
|
+
flex: 0 0 66.666%;
|
|
118
|
+
max-width: 66.666%;
|
|
119
|
+
}
|
|
120
|
+
.expanded-item.collapsed .v-col:first-child {
|
|
121
|
+
flex: 0 0 16.666%;
|
|
122
|
+
max-width: 16.666%;
|
|
123
|
+
}
|
|
124
|
+
.expanded-item.collapsed .v-col:last-child {
|
|
125
|
+
flex: 0 0 83.333%;
|
|
126
|
+
max-width: 83.333%;
|
|
127
|
+
}
|
|
128
|
+
.expanded-item .animated-col {
|
|
129
|
+
transition: flex 0.3s ease-in-out, max-width 0.3s ease-in-out;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.fade-in {
|
|
133
|
+
animation: fadeIn 1s ease-in-out;
|
|
134
|
+
}
|
|
135
|
+
@keyframes fadeIn {
|
|
136
|
+
from {
|
|
137
|
+
opacity: 0;
|
|
138
|
+
transform: scale(0.9);
|
|
139
|
+
}
|
|
140
|
+
to {
|
|
141
|
+
opacity: 1;
|
|
142
|
+
transform: scale(1);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
</style>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-sheet
|
|
3
|
+
:to="
|
|
4
|
+
localePath({
|
|
5
|
+
name: 'news-slug',
|
|
6
|
+
params: { slug: item.name },
|
|
7
|
+
})
|
|
8
|
+
"
|
|
9
|
+
>
|
|
10
|
+
<v-row>
|
|
11
|
+
<v-col v-if="lgAndUp" cols="3">
|
|
12
|
+
<MiscAtomsImageContainer
|
|
13
|
+
cover
|
|
14
|
+
:src="item.image"
|
|
15
|
+
:loading="rootStore.loading"
|
|
16
|
+
:ratio="1 / 1"
|
|
17
|
+
:link="item.name"
|
|
18
|
+
name="news-slug"
|
|
19
|
+
/>
|
|
20
|
+
</v-col>
|
|
21
|
+
<v-col cols="12" lg="9">
|
|
22
|
+
<v-skeleton-loader v-if="rootStore.loading" type="heading, text@3" />
|
|
23
|
+
<template v-else>
|
|
24
|
+
<div class="text-h6">
|
|
25
|
+
{{ item.name }}
|
|
26
|
+
</div>
|
|
27
|
+
<div class="text-body-1">
|
|
28
|
+
{{ item.description }}
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
</v-col>
|
|
32
|
+
</v-row>
|
|
33
|
+
</v-sheet>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script setup>
|
|
37
|
+
import { useDisplay } from "vuetify";
|
|
38
|
+
import { useRootStore } from "../../stores/root";
|
|
39
|
+
import { useLocalePath } from "#imports";
|
|
40
|
+
const localePath = useLocalePath();
|
|
41
|
+
const rootStore = useRootStore();
|
|
42
|
+
const { lgAndUp } = useDisplay();
|
|
43
|
+
const props = defineProps({ item: { type: Object, required: true } });
|
|
44
|
+
</script>
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-divider v-if="index > 0" />
|
|
3
|
+
<v-row class="my-4 mx-2 mx-md-0 highlight-on-hover">
|
|
4
|
+
<v-col v-if="mdAndUp" cols="12" md="4" lg="3" class="pr-md-0">
|
|
5
|
+
<MiscAtomsImageContainer
|
|
6
|
+
cover
|
|
7
|
+
:src="item.image.url ? item.image : '/default.png'"
|
|
8
|
+
:ratio="1 / 1"
|
|
9
|
+
:loading="$stores.news.loading"
|
|
10
|
+
link="news-slug"
|
|
11
|
+
:slug="item._path && item._path.split('/').pop()"
|
|
12
|
+
>
|
|
13
|
+
<v-chip class="ma-2" style="background-color: white; color: black">
|
|
14
|
+
{{ $t(eventCategory) }}
|
|
15
|
+
</v-chip>
|
|
16
|
+
</MiscAtomsImageContainer>
|
|
17
|
+
</v-col>
|
|
18
|
+
<v-col cols="12" md="8" lg="4" class="pl-md-6">
|
|
19
|
+
<v-skeleton-loader
|
|
20
|
+
v-if="rootStore.loading || $stores.news.loading"
|
|
21
|
+
:type="
|
|
22
|
+
[
|
|
23
|
+
'heading, subtitle, text@5, ossein, button',
|
|
24
|
+
'heading, subtitle, text@5, ossein, button',
|
|
25
|
+
'heading, subtitle, text@3, ossein, button',
|
|
26
|
+
'heading@2, subtitle',
|
|
27
|
+
'heading@2, subtitle',
|
|
28
|
+
'heading@2, subtitle',
|
|
29
|
+
][['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')]
|
|
30
|
+
"
|
|
31
|
+
/>
|
|
32
|
+
|
|
33
|
+
<template v-else>
|
|
34
|
+
<template v-if="smAndDown && item.category">
|
|
35
|
+
<v-chip class="mb-4">
|
|
36
|
+
{{ $t("list.filters.news.category." + item.category) }}
|
|
37
|
+
</v-chip>
|
|
38
|
+
<br />
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<NuxtLink
|
|
42
|
+
:to="
|
|
43
|
+
localePath({
|
|
44
|
+
name: 'news-slug',
|
|
45
|
+
params: { slug: item.slug[locale] },
|
|
46
|
+
})
|
|
47
|
+
"
|
|
48
|
+
class="text-wrap text-h5 text-md-h4 text-black"
|
|
49
|
+
>
|
|
50
|
+
{{ item.name }}
|
|
51
|
+
</NuxtLink>
|
|
52
|
+
<div class="tex-overline mt-3">
|
|
53
|
+
{{ formatDateValue(item.date, locale) }}
|
|
54
|
+
</div>
|
|
55
|
+
<MiscMoleculesChipContainer
|
|
56
|
+
v-if="item.tags && item.tags.length"
|
|
57
|
+
:items="item.tags"
|
|
58
|
+
class="mt-4"
|
|
59
|
+
/>
|
|
60
|
+
<template v-if="mdAndDown">
|
|
61
|
+
<div
|
|
62
|
+
v-if="item.summary"
|
|
63
|
+
class="text-body-1 text-wrap clamped-text"
|
|
64
|
+
:style="
|
|
65
|
+
'-webkit-line-clamp:' +
|
|
66
|
+
[5, 5, 3, 6, 10, 10][
|
|
67
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
68
|
+
]
|
|
69
|
+
"
|
|
70
|
+
>
|
|
71
|
+
<MDC :value="processedSummary" />
|
|
72
|
+
</div>
|
|
73
|
+
<v-btn
|
|
74
|
+
class="mt-4"
|
|
75
|
+
variant="outlined"
|
|
76
|
+
tile
|
|
77
|
+
size="small"
|
|
78
|
+
:to="
|
|
79
|
+
localePath({
|
|
80
|
+
name: 'activities-news-slug',
|
|
81
|
+
params: { slug: item.slug[locale] },
|
|
82
|
+
})
|
|
83
|
+
"
|
|
84
|
+
>
|
|
85
|
+
{{ $t("read-more") }}
|
|
86
|
+
</v-btn>
|
|
87
|
+
</template>
|
|
88
|
+
</template>
|
|
89
|
+
</v-col>
|
|
90
|
+
|
|
91
|
+
<v-col v-if="lgAndUp" cols="12" lg="5">
|
|
92
|
+
<v-skeleton-loader
|
|
93
|
+
v-if="rootStore.loading || $stores.news.loading"
|
|
94
|
+
type="text@8, ossein, button"
|
|
95
|
+
/>
|
|
96
|
+
|
|
97
|
+
<template v-else>
|
|
98
|
+
<div
|
|
99
|
+
v-if="item.summary"
|
|
100
|
+
class="text-body-1 text-wrap clamped-text"
|
|
101
|
+
:style="
|
|
102
|
+
'-webkit-line-clamp:' +
|
|
103
|
+
[5, 5, 4, 7, 8, 10][
|
|
104
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
105
|
+
]
|
|
106
|
+
"
|
|
107
|
+
>
|
|
108
|
+
<MDC :value="processedSummary" />
|
|
109
|
+
</div>
|
|
110
|
+
<br />
|
|
111
|
+
<v-btn
|
|
112
|
+
class="mt-4"
|
|
113
|
+
variant="outlined"
|
|
114
|
+
tile
|
|
115
|
+
:to="
|
|
116
|
+
localePath({
|
|
117
|
+
name: 'activities-news-slug',
|
|
118
|
+
params: { slug: item.slug[locale] },
|
|
119
|
+
})
|
|
120
|
+
"
|
|
121
|
+
:size="
|
|
122
|
+
['small', 'small', 'small', 'default', 'default', 'large'][
|
|
123
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
124
|
+
]
|
|
125
|
+
"
|
|
126
|
+
>
|
|
127
|
+
{{ $t("read-more") }}
|
|
128
|
+
</v-btn>
|
|
129
|
+
</template>
|
|
130
|
+
</v-col>
|
|
131
|
+
</v-row>
|
|
132
|
+
<!-- <MiscMoleculesSearchItem></MiscMoleculesSearchItem> -->
|
|
133
|
+
</template>
|
|
134
|
+
|
|
135
|
+
<script setup>
|
|
136
|
+
import { useDisplay } from "vuetify";
|
|
137
|
+
import { useRootStore } from "../../stores/root";
|
|
138
|
+
import {
|
|
139
|
+
useNuxtApp,
|
|
140
|
+
useI18n,
|
|
141
|
+
useLocalePath,
|
|
142
|
+
computed,
|
|
143
|
+
useRouter
|
|
144
|
+
} from "#imports";
|
|
145
|
+
const { $stores } = useNuxtApp();
|
|
146
|
+
const { locale } = useI18n();
|
|
147
|
+
const localePath = useLocalePath();
|
|
148
|
+
const rootStore = useRootStore();
|
|
149
|
+
const { name, smAndDown, mdAndDown, mdAndUp, lgAndUp } = useDisplay();
|
|
150
|
+
const eventCategory = computed(() => {
|
|
151
|
+
if (props.item.category) {
|
|
152
|
+
return "list.filters.news.category." + props.item.category;
|
|
153
|
+
} else {
|
|
154
|
+
return "list.filters.news.category.others";
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
const props = defineProps({
|
|
158
|
+
item: {
|
|
159
|
+
type: Object,
|
|
160
|
+
required: true
|
|
161
|
+
},
|
|
162
|
+
index: {
|
|
163
|
+
type: Number,
|
|
164
|
+
required: true
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
const processedSummary = computed(() => {
|
|
168
|
+
const raw = props.item.summary || "";
|
|
169
|
+
const slugPath = localePath({
|
|
170
|
+
name: "news-slug",
|
|
171
|
+
params: { slug: props.item.slug[locale.value] }
|
|
172
|
+
});
|
|
173
|
+
return replaceMarkdownLinksWithSlug(raw, slugPath);
|
|
174
|
+
});
|
|
175
|
+
function replaceMarkdownLinksWithSlug(markdownText, slugPath) {
|
|
176
|
+
const regex = /\[([^\]]+)\]\(([^)]+)\)/g;
|
|
177
|
+
return markdownText.replace(regex, (_match, text, url) => {
|
|
178
|
+
const encodedUrl = encodeURIComponent(url);
|
|
179
|
+
return `[${text}](${slugPath}?redirect=${encodedUrl})`;
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
</script>
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-row>
|
|
3
|
+
<v-col
|
|
4
|
+
v-if="smAndDown"
|
|
5
|
+
cols="12"
|
|
6
|
+
class="text-wrap text-h4 text-black mx-sm-6"
|
|
7
|
+
>
|
|
8
|
+
<v-skeleton-loader
|
|
9
|
+
v-if="loading"
|
|
10
|
+
:type="['heading', 'heading'][['xs', 'sm'].indexOf(name || 'sm')]"
|
|
11
|
+
/>
|
|
12
|
+
<template v-else>
|
|
13
|
+
<v-chip v-if="item && item.category && item.name" class="mb-4">
|
|
14
|
+
{{ $t("list.filters.news.category." + item.category) }}
|
|
15
|
+
</v-chip>
|
|
16
|
+
<br />
|
|
17
|
+
{{ item.name }}
|
|
18
|
+
</template>
|
|
19
|
+
</v-col>
|
|
20
|
+
<v-col cols="12" md="4" class="pb-0">
|
|
21
|
+
<v-skeleton-loader v-if="loading" height="100%" type="image" />
|
|
22
|
+
|
|
23
|
+
<div v-else class="mx-sm-6">
|
|
24
|
+
<MiscAtomsImageContainer
|
|
25
|
+
v-if="item && item.image"
|
|
26
|
+
cover
|
|
27
|
+
:loading="loading"
|
|
28
|
+
:src="item.image.url ? item.image : '/default.png'"
|
|
29
|
+
:ratio="1 / 1"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
</v-col>
|
|
33
|
+
|
|
34
|
+
<v-col cols="12" md="8" class="pl-0 pb-0 d-flex flex-column justify-md-end">
|
|
35
|
+
<v-skeleton-loader
|
|
36
|
+
v-if="loading"
|
|
37
|
+
:type="
|
|
38
|
+
[
|
|
39
|
+
'text, chip@4',
|
|
40
|
+
'text, chip@4',
|
|
41
|
+
'heading, text',
|
|
42
|
+
'heading, text',
|
|
43
|
+
'heading, text',
|
|
44
|
+
'heading',
|
|
45
|
+
][['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')]
|
|
46
|
+
"
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
<div v-else class="mx-4 mx-md-0 justify-md-end">
|
|
50
|
+
<v-chip v-if="item && item.category && mdAndUp" class="mb-4">
|
|
51
|
+
{{ $t("list.filters.news.category." + item.category) }}
|
|
52
|
+
</v-chip>
|
|
53
|
+
<div
|
|
54
|
+
v-if="item && item.name && mdAndUp"
|
|
55
|
+
class="d-flex text-wrap text-h4 text-black"
|
|
56
|
+
>
|
|
57
|
+
{{ item.name }}
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
<div
|
|
61
|
+
v-if="item.description && mdAndUp"
|
|
62
|
+
class="mt-md-n2 mx-4 mx-sm-8 mx-md-0 d-flex text-wrap text-h6 text-black mt-3"
|
|
63
|
+
>
|
|
64
|
+
<MDC v-if="item.description" :value="item.description" class="" />
|
|
65
|
+
</div>
|
|
66
|
+
<div
|
|
67
|
+
class="d-flex flex-column flex-md-row align-md-center mt-6 mx-sm-4 mx-md-6"
|
|
68
|
+
>
|
|
69
|
+
<div class="ml-md-n6">
|
|
70
|
+
<div
|
|
71
|
+
v-if="item && item.authors && item.authors[0]"
|
|
72
|
+
class="text-body-2 text-lg-body-1 text-black"
|
|
73
|
+
>
|
|
74
|
+
<!-- TODO use a proper & conditional formatting of names (depending on number of authors) -->
|
|
75
|
+
{{
|
|
76
|
+
$t("by-author", [
|
|
77
|
+
item.authors[0].firstname + " " + item.authors[0].firstname,
|
|
78
|
+
])
|
|
79
|
+
}}
|
|
80
|
+
</div>
|
|
81
|
+
<div v-if="smAndDown" class="">
|
|
82
|
+
<MiscMoleculesChipContainer
|
|
83
|
+
v-if="item && item.tags"
|
|
84
|
+
:items="item.tags"
|
|
85
|
+
class="mt-4"
|
|
86
|
+
/>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</v-col>
|
|
92
|
+
</v-row>
|
|
93
|
+
|
|
94
|
+
<v-row class="mt-12">
|
|
95
|
+
<v-col cols="12" md="4" :order="mdAndUp ? 'first' : 'last'" class="pt-0">
|
|
96
|
+
<v-skeleton-loader
|
|
97
|
+
v-if="loading"
|
|
98
|
+
:type="
|
|
99
|
+
['chip@2', 'chip@3', 'chip@4', 'chip@5'][
|
|
100
|
+
['md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
101
|
+
]
|
|
102
|
+
"
|
|
103
|
+
/>
|
|
104
|
+
<template v-else>
|
|
105
|
+
<div v-if="mdAndUp" class="mt-2 mx-sm-6">
|
|
106
|
+
<MiscMoleculesChipContainer
|
|
107
|
+
v-if="item && item.tags"
|
|
108
|
+
:items="item.tags"
|
|
109
|
+
class="mt-4"
|
|
110
|
+
/>
|
|
111
|
+
</div>
|
|
112
|
+
</template>
|
|
113
|
+
</v-col>
|
|
114
|
+
<v-col cols="12" md="8" class="pl-0 pt-0">
|
|
115
|
+
<v-skeleton-loader
|
|
116
|
+
v-if="loading"
|
|
117
|
+
:type="
|
|
118
|
+
['text@50', 'text@50', 'text@50', 'text@50', 'text@50', 'text@50'][
|
|
119
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
120
|
+
]
|
|
121
|
+
"
|
|
122
|
+
/>
|
|
123
|
+
<div v-if="item.description" class="mt-md-n2 mx-4 mx-sm-8 mx-md-0">
|
|
124
|
+
<MDC :value="item.description" />
|
|
125
|
+
</div>
|
|
126
|
+
</v-col>
|
|
127
|
+
</v-row>
|
|
128
|
+
|
|
129
|
+
<!-- DIVIDERS -->
|
|
130
|
+
<v-responsive class="mx-auto my-9" width="120">
|
|
131
|
+
<v-divider class="mb-1" />
|
|
132
|
+
<v-divider />
|
|
133
|
+
</v-responsive>
|
|
134
|
+
<MiscAtomsSlidingCarousel
|
|
135
|
+
v-if="item && item.gallery && item.gallery.length"
|
|
136
|
+
ref="MiscAtomsImage"
|
|
137
|
+
key="MiscAtomsImage"
|
|
138
|
+
:items="item.gallery"
|
|
139
|
+
type="MiscAtomsImage"
|
|
140
|
+
:loading="false"
|
|
141
|
+
:more="false"
|
|
142
|
+
>
|
|
143
|
+
<div :class="mdAndUp ? 'text-h5' : 'text-h6'">
|
|
144
|
+
{{ $t("gallery") }}
|
|
145
|
+
</div>
|
|
146
|
+
</MiscAtomsSlidingCarousel>
|
|
147
|
+
<!-- DIVIDERS -->
|
|
148
|
+
<v-responsive class="mx-auto my-9" width="120">
|
|
149
|
+
<v-divider class="mb-1" />
|
|
150
|
+
<v-divider />
|
|
151
|
+
</v-responsive>
|
|
152
|
+
|
|
153
|
+
<MiscMoleculesRelated v-if="item && item.related" :related="item.related" />
|
|
154
|
+
</template>
|
|
155
|
+
|
|
156
|
+
<script setup>
|
|
157
|
+
import { useDisplay } from "vuetify";
|
|
158
|
+
import { useNuxtApp } from "#imports";
|
|
159
|
+
const { $stores } = useNuxtApp();
|
|
160
|
+
const { name, mdAndUp, smAndDown } = useDisplay();
|
|
161
|
+
const props = defineProps({
|
|
162
|
+
item: {
|
|
163
|
+
type: Object,
|
|
164
|
+
required: true
|
|
165
|
+
},
|
|
166
|
+
loading: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
required: false,
|
|
169
|
+
default: false
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
const today = /* @__PURE__ */ new Date();
|
|
173
|
+
$stores.news.loading = false;
|
|
174
|
+
</script>
|