@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,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-row
|
|
3
|
+
v-ripple
|
|
4
|
+
no-gutters
|
|
5
|
+
class="cursor-pointer highlight-on-hover"
|
|
6
|
+
@click="
|
|
7
|
+
$router.push(
|
|
8
|
+
localePath({
|
|
9
|
+
name: 'people-slug',
|
|
10
|
+
params: { slug: item.slug },
|
|
11
|
+
}),
|
|
12
|
+
)
|
|
13
|
+
"
|
|
14
|
+
>
|
|
15
|
+
<v-col v-if="mdAndUp" align-self="center" cols="1">
|
|
16
|
+
<MiscAtomsImageContainer
|
|
17
|
+
cover
|
|
18
|
+
:loading="$stores.people.loading"
|
|
19
|
+
:src="item.image.url ? item.image : '/default.png'"
|
|
20
|
+
:ratio="1 / 1"
|
|
21
|
+
:name="item.lastname + ' ' + item.firstname"
|
|
22
|
+
:slug="item.slug"
|
|
23
|
+
link="people-slug"
|
|
24
|
+
width="80px"
|
|
25
|
+
/>
|
|
26
|
+
</v-col>
|
|
27
|
+
<v-col align-self="center" class="text-h6 dense pl-2">
|
|
28
|
+
<v-skeleton-loader v-if="rootStore.loading" type="heading" />
|
|
29
|
+
<div v-else class="text-h5">
|
|
30
|
+
{{ item.firstname + " " + item.lastname }}
|
|
31
|
+
</div>
|
|
32
|
+
<div class="mt-2 text-body-2 font-weight-light">
|
|
33
|
+
{{ item.groups.vintage ? item.groups.vintage[0].theme : "" }}
|
|
34
|
+
</div>
|
|
35
|
+
</v-col>
|
|
36
|
+
<v-col align-self="center" cols="auto">
|
|
37
|
+
<PeopleGroupBadges :item="item" />
|
|
38
|
+
</v-col>
|
|
39
|
+
</v-row>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script setup>
|
|
43
|
+
import { useRootStore } from "../../stores/root";
|
|
44
|
+
import { useNuxtApp, useLocalePath } from "#imports";
|
|
45
|
+
import { useDisplay } from "vuetify";
|
|
46
|
+
const { mdAndUp } = useDisplay();
|
|
47
|
+
const { $stores } = useNuxtApp();
|
|
48
|
+
const localePath = useLocalePath();
|
|
49
|
+
const rootStore = useRootStore();
|
|
50
|
+
const props = defineProps({
|
|
51
|
+
item: {
|
|
52
|
+
type: Object,
|
|
53
|
+
required: true
|
|
54
|
+
},
|
|
55
|
+
index: {
|
|
56
|
+
type: Number,
|
|
57
|
+
required: true
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
</script>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-sheet
|
|
3
|
+
:to="
|
|
4
|
+
localePath({
|
|
5
|
+
name: 'people-slug',
|
|
6
|
+
params: { slug: item.slug },
|
|
7
|
+
})
|
|
8
|
+
"
|
|
9
|
+
>
|
|
10
|
+
<v-row>
|
|
11
|
+
<v-col v-if="lgAndUp" cols="3">
|
|
12
|
+
<MiscAtomsImageContainer
|
|
13
|
+
cover
|
|
14
|
+
:loading="rootStore.loading"
|
|
15
|
+
:src="item.image"
|
|
16
|
+
:ratio="1 / 1"
|
|
17
|
+
:link="item.firstname + item.lastname"
|
|
18
|
+
:name="people - slug"
|
|
19
|
+
/>
|
|
20
|
+
</v-col>
|
|
21
|
+
<v-col cols="12" lg="9">
|
|
22
|
+
<v-skeleton-loader v-if="rootStore.loading" type="heading" />
|
|
23
|
+
<template v-else>
|
|
24
|
+
<div class="text-h6">
|
|
25
|
+
{{ item.firstname + " " + item.lastname }}
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
</v-col>
|
|
29
|
+
</v-row>
|
|
30
|
+
</v-sheet>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script setup>
|
|
34
|
+
import { useDisplay } from "vuetify";
|
|
35
|
+
import { useRootStore } from "../../stores/root";
|
|
36
|
+
import { useLocalePath } from "#imports";
|
|
37
|
+
const localePath = useLocalePath();
|
|
38
|
+
const rootStore = useRootStore();
|
|
39
|
+
const { lgAndUp } = useDisplay();
|
|
40
|
+
const props = defineProps({ item: { type: Object, required: true } });
|
|
41
|
+
</script>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-divider v-if="index > 0" />
|
|
3
|
+
<v-row
|
|
4
|
+
class="my-6 ml-md-1 px-3 px-md-0 highlight-on-hover"
|
|
5
|
+
@click="
|
|
6
|
+
$router.push(
|
|
7
|
+
localePath({
|
|
8
|
+
name: 'people-slug',
|
|
9
|
+
params: { slug: item.slug },
|
|
10
|
+
})
|
|
11
|
+
)
|
|
12
|
+
"
|
|
13
|
+
>
|
|
14
|
+
<v-col v-if="mdAndUp" cols="12" md="3">
|
|
15
|
+
<MiscAtomsImageContainer
|
|
16
|
+
cover
|
|
17
|
+
:loading="$stores.people.loading"
|
|
18
|
+
:src="item.image.url ? item.image : '/default.png'"
|
|
19
|
+
:ratio="1 / 1"
|
|
20
|
+
:name="item.lastname + ' ' + item.firstname"
|
|
21
|
+
:slug="item.slug"
|
|
22
|
+
link="people-slug"
|
|
23
|
+
/>
|
|
24
|
+
</v-col>
|
|
25
|
+
|
|
26
|
+
<v-col cols="12" md="8">
|
|
27
|
+
<v-skeleton-loader
|
|
28
|
+
v-if="$stores.people.loading"
|
|
29
|
+
:type="
|
|
30
|
+
[
|
|
31
|
+
'heading, subtitle, text@5',
|
|
32
|
+
'heading, subtitle, text@5',
|
|
33
|
+
'heading, subtitle, text@3',
|
|
34
|
+
'heading, subtitle, text@6',
|
|
35
|
+
'heading, subtitle, text@9',
|
|
36
|
+
'heading, subtitle, text@9',
|
|
37
|
+
][['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')]
|
|
38
|
+
"
|
|
39
|
+
/>
|
|
40
|
+
|
|
41
|
+
<div v-else class="ml-md-8">
|
|
42
|
+
<NuxtLink
|
|
43
|
+
:to="
|
|
44
|
+
localePath({
|
|
45
|
+
name: 'people-slug',
|
|
46
|
+
params: { slug: item.slug },
|
|
47
|
+
})
|
|
48
|
+
"
|
|
49
|
+
class="text-wrap text-h5 text-md-h4 text-black"
|
|
50
|
+
>
|
|
51
|
+
{{ item.firstname + " " + item.lastname }}
|
|
52
|
+
</NuxtLink>
|
|
53
|
+
<MiscAtomsSocials v-if="item.socials" :socials="item.socials" />
|
|
54
|
+
<PeopleGroupBadges :item="item" />
|
|
55
|
+
<div
|
|
56
|
+
v-if="item.biography && item.biography.length > 0"
|
|
57
|
+
class="text-wrap clamped-text text-black"
|
|
58
|
+
:style="'-webkit-line-clamp:' + lineClamp"
|
|
59
|
+
>
|
|
60
|
+
<MDC :value="item.biography" />
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div v-else class="text-body-2">
|
|
64
|
+
{{ $t("no-biography") }}
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</v-col>
|
|
68
|
+
</v-row>
|
|
69
|
+
</template>
|
|
70
|
+
|
|
71
|
+
<script setup>
|
|
72
|
+
import { useDisplay } from "vuetify";
|
|
73
|
+
import { useLocalePath, computed } from "#imports";
|
|
74
|
+
const { name, mdAndUp } = useDisplay();
|
|
75
|
+
const localePath = useLocalePath();
|
|
76
|
+
const props = defineProps({
|
|
77
|
+
item: {
|
|
78
|
+
type: Object,
|
|
79
|
+
required: true
|
|
80
|
+
},
|
|
81
|
+
index: {
|
|
82
|
+
type: Number,
|
|
83
|
+
required: true
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
const lineClamp = computed(() => {
|
|
87
|
+
let base = [5, 6, 3, 6, 8, 10][["xs", "sm", "md", "lg", "xl", "xxl"].indexOf(name.value || "md")];
|
|
88
|
+
if (props.item?.socials && Object.keys(props.item.socials).length > 0) {
|
|
89
|
+
base = base - [0, 0, 1, 1, 1, 2][["xs", "sm", "md", "lg", "xl", "xxl"].indexOf(name.value || "md")];
|
|
90
|
+
}
|
|
91
|
+
return base;
|
|
92
|
+
});
|
|
93
|
+
</script>
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-row justify="center">
|
|
3
|
+
<v-col cols="12" sm="11" md="8" lg="8" xl="6">
|
|
4
|
+
<v-row no-gutters class="justify-center">
|
|
5
|
+
<v-col cols="12" sm="10" md="6" class="text-center">
|
|
6
|
+
<!-- PEOPLE IMAGE -->
|
|
7
|
+
<MiscAtomsImageContainer
|
|
8
|
+
v-if="mdAndUp && item && item.image"
|
|
9
|
+
cover
|
|
10
|
+
:loading="loading"
|
|
11
|
+
:src="item.image"
|
|
12
|
+
:ratio="1 / 1"
|
|
13
|
+
:width="
|
|
14
|
+
[200, 250, 250, 300][
|
|
15
|
+
['md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
16
|
+
]
|
|
17
|
+
"
|
|
18
|
+
/>
|
|
19
|
+
</v-col>
|
|
20
|
+
<v-col cols="12" class="text-center">
|
|
21
|
+
<!-- FIRSTNAME LASTNAME -->
|
|
22
|
+
<v-skeleton-loader
|
|
23
|
+
v-if="loading"
|
|
24
|
+
class="mx-auto"
|
|
25
|
+
:max-width="
|
|
26
|
+
['300', '400', '340', '400', '600', '600'][
|
|
27
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
28
|
+
]
|
|
29
|
+
"
|
|
30
|
+
:type="
|
|
31
|
+
[
|
|
32
|
+
'heading@2, ossein, avatar@4, ossein, chip@3',
|
|
33
|
+
'heading, ossein, avatar@6, ossein, chip@4',
|
|
34
|
+
'heading, ossein, avatar@5, ossein, chip@3',
|
|
35
|
+
'heading, ossein, avatar@6, ossein, chip@4',
|
|
36
|
+
'heading, ossein, avatar@9, ossein, chip@6',
|
|
37
|
+
'heading, ossein, avatar@9, ossein, chip@6',
|
|
38
|
+
][['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')]
|
|
39
|
+
"
|
|
40
|
+
/>
|
|
41
|
+
|
|
42
|
+
<template v-else>
|
|
43
|
+
<div
|
|
44
|
+
v-if="item && item.firstname && item.lastname"
|
|
45
|
+
class="my-8 text-h3 align-self-center text-wrap"
|
|
46
|
+
>
|
|
47
|
+
{{ item.firstname + " " + item.lastname
|
|
48
|
+
}}<!-- TODO : call a composable to format people names (multiple, initials, capped & al. ) -->
|
|
49
|
+
</div>
|
|
50
|
+
<!-- SOCIALS -->
|
|
51
|
+
<div class="text-center">
|
|
52
|
+
<MiscAtomsSocials
|
|
53
|
+
v-if="item && item.socials"
|
|
54
|
+
:socials="item.socials"
|
|
55
|
+
/>
|
|
56
|
+
</div>
|
|
57
|
+
<!-- GROUPS -->
|
|
58
|
+
<div class="mt-6 align-self-center">
|
|
59
|
+
<PeopleGroupBadges v-if="item && item.groups" :item="item" />
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
</v-col>
|
|
63
|
+
</v-row>
|
|
64
|
+
|
|
65
|
+
<!-- DIVIDERS -->
|
|
66
|
+
<v-responsive class="mx-auto my-6" width="120">
|
|
67
|
+
<v-divider class="mb-1" />
|
|
68
|
+
<v-divider />
|
|
69
|
+
</v-responsive>
|
|
70
|
+
|
|
71
|
+
<div class="text-overline mt-6">
|
|
72
|
+
<v-skeleton-loader v-if="loading" width="200" type="heading" />
|
|
73
|
+
<div v-else>
|
|
74
|
+
{{ $t("biography") }}
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<v-skeleton-loader
|
|
79
|
+
v-if="loading"
|
|
80
|
+
:type="
|
|
81
|
+
['text@16', 'text@16', 'text@16', 'text@12', 'text@12', 'text@12'][
|
|
82
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
83
|
+
]
|
|
84
|
+
"
|
|
85
|
+
/>
|
|
86
|
+
<template v-else class="my-6 flex-wrap">
|
|
87
|
+
<MDC
|
|
88
|
+
v-if="item.biography && item.biography.length > 0"
|
|
89
|
+
:value="item.biography"
|
|
90
|
+
/>
|
|
91
|
+
<div v-else class="text-body-2">
|
|
92
|
+
{{ $t("no-biography") }}
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
95
|
+
|
|
96
|
+
<!-- DIVIDERS -->
|
|
97
|
+
<v-responsive class="mx-auto my-9" width="120">
|
|
98
|
+
<v-divider class="mb-1" />
|
|
99
|
+
<v-divider />
|
|
100
|
+
</v-responsive>
|
|
101
|
+
|
|
102
|
+
<!-- POSITIONS AND AFFILIATIONS -->
|
|
103
|
+
<div class="text-overline mt-6">
|
|
104
|
+
<v-skeleton-loader v-if="loading" width="200" type="heading" />
|
|
105
|
+
<div v-else>
|
|
106
|
+
{{ $t("positions-and-affiliations") }}
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<!-- BIOGRAPHY -->
|
|
111
|
+
<v-skeleton-loader v-if="loading" type="subtitle, text@2" width="300" />
|
|
112
|
+
|
|
113
|
+
<v-card
|
|
114
|
+
v-for="record in item.affiliations"
|
|
115
|
+
v-else-if="item && item.affiliations"
|
|
116
|
+
:key="record.affiliation"
|
|
117
|
+
flat
|
|
118
|
+
>
|
|
119
|
+
<v-card-item class="px-0">
|
|
120
|
+
<v-card-title class="text-wrap">
|
|
121
|
+
{{ record.affiliation.name }}
|
|
122
|
+
</v-card-title>
|
|
123
|
+
<div
|
|
124
|
+
v-for="(position, index) in record.positions"
|
|
125
|
+
:key="position.role + index"
|
|
126
|
+
class="text-body-2"
|
|
127
|
+
>
|
|
128
|
+
<template v-if="position.role === 'Fellow'">
|
|
129
|
+
<span class="text-caption text-uppercase">
|
|
130
|
+
{{ $t("fellow") }}
|
|
131
|
+
</span>
|
|
132
|
+
</template>
|
|
133
|
+
<template v-else>
|
|
134
|
+
{{ position.role + " " + (position.department || "") }}
|
|
135
|
+
</template>
|
|
136
|
+
<span v-if="position.start" class="">
|
|
137
|
+
<!-- TODO FIx dates display -->
|
|
138
|
+
-
|
|
139
|
+
{{
|
|
140
|
+
$t("from {0} to {1}", [
|
|
141
|
+
formatDate(position.start, locale),
|
|
142
|
+
(position.stop && formatDate(position.stop, locale)) ||
|
|
143
|
+
$t("present"),
|
|
144
|
+
])
|
|
145
|
+
}}
|
|
146
|
+
</span>
|
|
147
|
+
</div>
|
|
148
|
+
</v-card-item>
|
|
149
|
+
</v-card>
|
|
150
|
+
</v-col>
|
|
151
|
+
</v-row>
|
|
152
|
+
|
|
153
|
+
<!-- DIVIDERS -->
|
|
154
|
+
<v-responsive class="mx-auto my-9" width="120">
|
|
155
|
+
<v-divider class="mb-1" />
|
|
156
|
+
<v-divider />
|
|
157
|
+
</v-responsive>
|
|
158
|
+
<MiscMoleculesRelated v-if="item && item.related" :related="item.related" />
|
|
159
|
+
</template>
|
|
160
|
+
|
|
161
|
+
<script setup>
|
|
162
|
+
import { useDisplay } from "vuetify";
|
|
163
|
+
import { useNuxtApp, useI18n } from "#imports";
|
|
164
|
+
const { locale } = useI18n();
|
|
165
|
+
const { $stores } = useNuxtApp();
|
|
166
|
+
const { name, mdAndUp } = useDisplay();
|
|
167
|
+
const props = defineProps({
|
|
168
|
+
item: { type: Object, required: true },
|
|
169
|
+
loading: { type: Boolean, default: false }
|
|
170
|
+
});
|
|
171
|
+
$stores.people.loading = false;
|
|
172
|
+
</script>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-row
|
|
3
|
+
v-ripple
|
|
4
|
+
no-gutters
|
|
5
|
+
class="cursor-pointer highlight-on-hover"
|
|
6
|
+
@click="
|
|
7
|
+
$router.push(
|
|
8
|
+
localePath({
|
|
9
|
+
name: 'activities-projects-slug',
|
|
10
|
+
params: { slug: item.slug[locale] },
|
|
11
|
+
}),
|
|
12
|
+
)
|
|
13
|
+
"
|
|
14
|
+
>
|
|
15
|
+
<v-col v-if="mdAndUp" align-self="center" cols="1">
|
|
16
|
+
<MiscAtomsImageContainer
|
|
17
|
+
cover
|
|
18
|
+
:loading="$stores.projects.loading"
|
|
19
|
+
:src="item.image.url ? item.image : '/default.png'"
|
|
20
|
+
:ratio="1 / 1"
|
|
21
|
+
:name="item.name"
|
|
22
|
+
:slug="item.slug[locale]"
|
|
23
|
+
link="activities-projects-slug"
|
|
24
|
+
width="50"
|
|
25
|
+
/>
|
|
26
|
+
</v-col>
|
|
27
|
+
<v-col align-self="center" class="text-h5 dense pl-2">
|
|
28
|
+
<v-skeleton-loader v-if="rootStore.loading" type="heading" />
|
|
29
|
+
<template v-else>
|
|
30
|
+
{{ item.name }}
|
|
31
|
+
</template>
|
|
32
|
+
</v-col>
|
|
33
|
+
|
|
34
|
+
<v-col align-self="center" cols="5" class="dense">
|
|
35
|
+
<v-skeleton-loader
|
|
36
|
+
v-if="rootStore.loading"
|
|
37
|
+
:type="
|
|
38
|
+
['chip', 'chip@2', 'chip@3', 'chip@4', 'chip@4', 'chip@4'][
|
|
39
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
40
|
+
]
|
|
41
|
+
"
|
|
42
|
+
/>
|
|
43
|
+
|
|
44
|
+
<template v-else>
|
|
45
|
+
<MiscMoleculesChipContainer :items="item.tags" size="small" />
|
|
46
|
+
</template>
|
|
47
|
+
</v-col>
|
|
48
|
+
</v-row>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script setup>
|
|
52
|
+
import { useDisplay } from "vuetify";
|
|
53
|
+
import { useRootStore } from "../../stores/root";
|
|
54
|
+
import { computed, useNuxtApp, useI18n, useLocalePath } from "#imports";
|
|
55
|
+
const { $stores } = useNuxtApp();
|
|
56
|
+
const { name, mdAndUp } = useDisplay();
|
|
57
|
+
const localePath = useLocalePath();
|
|
58
|
+
const { locale } = useI18n();
|
|
59
|
+
const rootStore = useRootStore();
|
|
60
|
+
const props = defineProps({
|
|
61
|
+
item: {
|
|
62
|
+
type: Object,
|
|
63
|
+
required: true
|
|
64
|
+
},
|
|
65
|
+
index: {
|
|
66
|
+
type: Number,
|
|
67
|
+
required: true
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
const eventCategory = computed(() => {
|
|
71
|
+
if (props.item.category) {
|
|
72
|
+
return "list.filters.news.category." + props.item.category;
|
|
73
|
+
} else {
|
|
74
|
+
return "list.filters.news.category.others";
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
</script>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-sheet
|
|
3
|
+
:to="
|
|
4
|
+
localePath({
|
|
5
|
+
name: 'activities-projects-slug',
|
|
6
|
+
params: { slug: item.name },
|
|
7
|
+
})
|
|
8
|
+
"
|
|
9
|
+
>
|
|
10
|
+
<v-row>
|
|
11
|
+
<v-col v-if="lgAndUp" cols="3">
|
|
12
|
+
<MiscAtomsImageContainer
|
|
13
|
+
contain
|
|
14
|
+
:src="item.image"
|
|
15
|
+
:loading="rootStore.loading"
|
|
16
|
+
:ratio="1 / 1"
|
|
17
|
+
:link="item.name"
|
|
18
|
+
name="activities-projects-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.shortDescription }}
|
|
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,103 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-row class="highlight-on-hover pa-3">
|
|
3
|
+
<v-col v-ripple cols="12" sm="6" md="4" lg="3" xl="2">
|
|
4
|
+
<MiscAtomsImageContainer
|
|
5
|
+
contain
|
|
6
|
+
:src="item.image"
|
|
7
|
+
:loading="$stores.projects.loading"
|
|
8
|
+
:ratio="1 / 1"
|
|
9
|
+
:title="item.name"
|
|
10
|
+
link="activities-projects-slug"
|
|
11
|
+
:slug="item.slug[locale]"
|
|
12
|
+
/>
|
|
13
|
+
</v-col>
|
|
14
|
+
<v-col
|
|
15
|
+
v-ripple
|
|
16
|
+
cols="12"
|
|
17
|
+
sm="6"
|
|
18
|
+
md="8"
|
|
19
|
+
lg="9"
|
|
20
|
+
xl="10"
|
|
21
|
+
class="px-6 cursor-pointer"
|
|
22
|
+
@click="
|
|
23
|
+
router.push(localePath('/activities/projects/' + item.slug[locale]))
|
|
24
|
+
"
|
|
25
|
+
>
|
|
26
|
+
<v-skeleton-loader
|
|
27
|
+
v-if="rootStore.loading"
|
|
28
|
+
type="heading,ossein,text@8,ossein,button,button"
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
<template v-else>
|
|
32
|
+
<div class="text-h5 text-sm-h3 text-md-h4 text-md-h4 my-6">
|
|
33
|
+
{{ item.name }}
|
|
34
|
+
</div>
|
|
35
|
+
<div
|
|
36
|
+
v-if="item.summary"
|
|
37
|
+
class="mt-n3 text-wrap clamped-text"
|
|
38
|
+
:style="
|
|
39
|
+
'-webkit-line-clamp:' +
|
|
40
|
+
[5, 5, 4, 8, 10][
|
|
41
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
42
|
+
]
|
|
43
|
+
"
|
|
44
|
+
>
|
|
45
|
+
<MDC :value="item.summary" />
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<v-btn
|
|
49
|
+
class="mt-4"
|
|
50
|
+
variant="outlined"
|
|
51
|
+
tile
|
|
52
|
+
:to="
|
|
53
|
+
localePath({
|
|
54
|
+
name: 'project-slug',
|
|
55
|
+
params: { slug: item.slug[locale] },
|
|
56
|
+
})
|
|
57
|
+
"
|
|
58
|
+
:size="
|
|
59
|
+
['small', 'small', 'small', 'default', 'default', 'large'][
|
|
60
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
61
|
+
]
|
|
62
|
+
"
|
|
63
|
+
>
|
|
64
|
+
{{ $t("read-more") }}
|
|
65
|
+
</v-btn>
|
|
66
|
+
<v-btn
|
|
67
|
+
variant="outlined"
|
|
68
|
+
tile
|
|
69
|
+
class="mt-4 ml-4"
|
|
70
|
+
prepend-icon="mdi-web"
|
|
71
|
+
:size="
|
|
72
|
+
['small', 'small', 'small', 'default', 'default', 'large'][
|
|
73
|
+
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].indexOf(name || 'md')
|
|
74
|
+
]
|
|
75
|
+
"
|
|
76
|
+
>
|
|
77
|
+
{{ $t("visit-the-project-website") }}
|
|
78
|
+
</v-btn>
|
|
79
|
+
</template>
|
|
80
|
+
</v-col>
|
|
81
|
+
</v-row>
|
|
82
|
+
<v-divider />
|
|
83
|
+
</template>
|
|
84
|
+
|
|
85
|
+
<script setup>
|
|
86
|
+
import { useDisplay } from "vuetify";
|
|
87
|
+
import { useRootStore } from "../../stores/root";
|
|
88
|
+
import { useRouter, useLocalePath, useI18n } from "#imports";
|
|
89
|
+
const { locale } = useI18n();
|
|
90
|
+
const { name } = useDisplay();
|
|
91
|
+
const rootStore = useRootStore();
|
|
92
|
+
const router = useRouter();
|
|
93
|
+
const localePath = useLocalePath();
|
|
94
|
+
const props = defineProps({
|
|
95
|
+
item: {
|
|
96
|
+
type: Object,
|
|
97
|
+
default: () => {
|
|
98
|
+
return {};
|
|
99
|
+
},
|
|
100
|
+
required: true
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
</script>
|