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

Merge branch 'ref-ui' into 'main'

Ref ui

See merge request !85
parents e81bbfca 18eb2dba
No related branches found
No related tags found
1 merge request!85Ref ui
Pipeline #116472 passed
...@@ -11,10 +11,8 @@ const dois = computed(() => { ...@@ -11,10 +11,8 @@ const dois = computed(() => {
</script> </script>
<template> <template>
( (<template v-for="doi, index in dois" :key="doi">
<template v-for="doi, index in dois" :key="doi">
<RefArticle :doi="doi"></RefArticle> <RefArticle :doi="doi"></RefArticle>
<span v-if="index < dois.length - 1">, </span> <span v-if="index < dois.length - 1">, </span>
</template> </template>)
)
</template> </template>
\ No newline at end of file
<script setup lang="ts"> <script setup lang="ts">
import { useTheme } from "vuetify";
const theme = useTheme();
export interface Props { export interface Props {
doi: string; doi: string;
} }
...@@ -7,7 +9,17 @@ const props = withDefaults(defineProps<Props>(), {}); ...@@ -7,7 +9,17 @@ const props = withDefaults(defineProps<Props>(), {});
const { article } = useFetchArticle(props.doi); const { article } = useFetchArticle(props.doi);
</script> </script>
<template> <template>
<v-chip v-if="article" variant="text" :href="`#ref-${props.doi}`" class="pa-0 text-caption font-italic">{{ <!-- <v-chip v-if="article" variant="text" :href="`#ref-${props.doi}`" class="pa-0 font-italic">{{
article?.author[0]?.family ?? "test" }} et al, article?.author[0]?.family ?? "test" }} et al,
{{ article?.year }}</v-chip> {{ article?.year }}</v-chip> -->
</template> <NuxtLink v-if="article" :href="`#ref-${props.doi}`"
\ No newline at end of file :class="theme.global.current.value.dark ? 'text-grey-lighten-1' : 'text-grey-darken-2'" class="pa-0 ">{{
article?.author[0]?.family ?? "test" }} et al,
{{ article?.year }}</NuxtLink>
</template>
<style scoped>
.ref-link {
/* color: rgba(var(--v-theme-tertiary)); */
color: grey-darken-3;
}
</style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment