Skip to content
Snippets Groups Projects
Commit 649d3844 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Add client only for articleDOI component

parent 02b78808
No related branches found
No related tags found
No related merge requests found
Pipeline #111520 passed with stages
in 3 minutes and 53 seconds
...@@ -22,39 +22,41 @@ const articleAbstract = computed(() => { return props.abstract ?? article.value? ...@@ -22,39 +22,41 @@ const articleAbstract = computed(() => { return props.abstract ?? article.value?
</script> </script>
<template> <template>
<v-list-item :href="article?.href" :target="article?.target" density="compact" class="px-1"> <ClientOnly>
<template #prepend v-if="!mobile && enumerate"> <v-list-item :href="article?.href" :target="article?.target" density="compact" class="px-1">
<v-avatar color="primary" size="small" density="compact" variant="tonal"> <template #prepend v-if="!mobile && enumerate">
{{ props.index }} <v-avatar color="primary" size="small" density="compact" variant="tonal">
</v-avatar> {{ props.index }}
</template> </v-avatar>
<!-- <template #append v-if="!mobile"> </template>
<!-- <template #append v-if="!mobile">
<v-avatar> <v-avatar>
<v-icon>{{ article?.prependIcon }}</v-icon> <v-icon>{{ article?.prependIcon }}</v-icon>
</v-avatar> </v-avatar>
</template> --> </template> -->
<v-card flat color="transparent" density="compact" class="my-0"> <v-card flat color="transparent" density="compact" class="my-0">
<v-card-item density="compact" :class="mobile ? 'px-0' : null"> <v-card-item density="compact" :class="mobile ? 'px-0' : null">
<v-card-title><span class="text-subtitle-1 font-weight-bold">{{ articleTitle <v-card-title><span class="text-subtitle-1 font-weight-bold">{{ articleTitle
}}</span></v-card-title> }}</span></v-card-title>
<v-card-subtitle> {{ article?.subtitle ?? "no authors" }}</v-card-subtitle> <v-card-subtitle> {{ article?.subtitle ?? "no authors" }}</v-card-subtitle>
<v-card-subtitle> {{ article?.containerTitle ?? "no containerTitle" }} ({{ article?.year <v-card-subtitle> {{ article?.containerTitle ?? "no containerTitle" }} ({{ article?.year
}})</v-card-subtitle> }})</v-card-subtitle>
</v-card-item> </v-card-item>
<v-card-item density="compact" :class="mobile ? 'px-0' : null"> <v-card-item density="compact" :class="mobile ? 'px-0' : null">
<v-btn v-if="articleAbstract" size="x-small" variant="outlined" <v-btn v-if="articleAbstract" size="x-small" variant="outlined"
:append-icon="show ? 'mdi-chevron-up' : 'mdi-chevron-down'" :append-icon="show ? 'mdi-chevron-up' : 'mdi-chevron-down'"
@click.stop.prevent="show = !show">Abstract</v-btn> @click.stop.prevent="show = !show">Abstract</v-btn>
</v-card-item> </v-card-item>
<v-expand-transition> <v-expand-transition>
<v-card v-show="show" flat color="transparent"> <v-card v-show="show" flat color="transparent">
<v-card-text> <v-card-text>
{{ articleAbstract }} {{ articleAbstract }}
</v-card-text> </v-card-text>
</v-card> </v-card>
</v-expand-transition> </v-expand-transition>
</v-card> </v-card>
</v-list-item> </v-list-item>
<v-divider v-if="props.divider" inset></v-divider> <v-divider v-if="props.divider" inset></v-divider>
</ClientOnly>
</template> </template>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment