2024-10-28 18:18:32 +01:00
|
|
|
|
<template>
|
2024-10-30 16:41:29 +01:00
|
|
|
|
<Dialog
|
|
|
|
|
|
id="virtual-sample"
|
|
|
|
|
|
v-model:visible="isOpen"
|
|
|
|
|
|
modal
|
|
|
|
|
|
:draggable="false"
|
|
|
|
|
|
header="Titre du rendu"
|
|
|
|
|
|
class="dialog"
|
|
|
|
|
|
:class="{ 'with-comments': isCommentsOpen }"
|
|
|
|
|
|
:closeOnEscape="true"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template #header>
|
|
|
|
|
|
<div class="dialog__tabs">
|
2024-11-05 14:14:40 +01:00
|
|
|
|
<button
|
|
|
|
|
|
class="btn btn--transparent | font-serif"
|
2024-10-30 16:41:29 +01:00
|
|
|
|
data-icon="cursor"
|
|
|
|
|
|
aria-pressed="true"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span>Vue Dynamique</span>
|
|
|
|
|
|
</button>
|
2024-11-05 14:14:40 +01:00
|
|
|
|
<button class="btn btn--transparent | font-serif" data-icon="image">
|
2024-10-30 16:41:29 +01:00
|
|
|
|
<span>Vue statique</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<h2 class="font-serif text-lg">Titre du rendu</h2>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<div class="dialog__inner">
|
|
|
|
|
|
<header class="flex">
|
|
|
|
|
|
<div class="options-selector">
|
2024-11-05 14:14:40 +01:00
|
|
|
|
<button
|
2024-10-30 16:41:29 +01:00
|
|
|
|
class="btn btn--image"
|
|
|
|
|
|
aria-pressed="true"
|
2024-11-05 14:14:40 +01:00
|
|
|
|
style="
|
|
|
|
|
|
--btn-image: url('https://images.unsplash.com/photo-1708486855543-6010a133280f?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTJ8fHBhcmZ1bWUlMjBib3R0bGV8ZW58MHx8MHx8fDA%3D');
|
|
|
|
|
|
"
|
2024-10-30 16:41:29 +01:00
|
|
|
|
>
|
|
|
|
|
|
<span>Piste 1</span>
|
|
|
|
|
|
</button>
|
2024-11-05 14:14:40 +01:00
|
|
|
|
<button
|
2024-10-30 16:41:29 +01:00
|
|
|
|
class="btn btn--image"
|
2024-11-05 14:14:40 +01:00
|
|
|
|
style="
|
|
|
|
|
|
--btn-image: url('https://images.unsplash.com/photo-1680607622631-1e243ddd6782?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NHx8cGFyZnVtZSUyMGJvdHRsZXxlbnwwfHwwfHx8MA%3D%3D');
|
|
|
|
|
|
"
|
2024-10-30 16:41:29 +01:00
|
|
|
|
>
|
|
|
|
|
|
<span>Piste 2</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
2024-11-05 14:14:40 +01:00
|
|
|
|
<button class="btn | ml-auto">
|
2024-10-30 16:41:29 +01:00
|
|
|
|
<span>Comparer les pistes</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<template #footer>
|
2024-11-05 14:14:40 +01:00
|
|
|
|
<button
|
2024-10-30 16:41:29 +01:00
|
|
|
|
id="download-image"
|
2024-11-05 14:14:40 +01:00
|
|
|
|
class="btn btn--white-10"
|
2024-10-30 16:41:29 +01:00
|
|
|
|
data-icon="download"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span>Sauvegarder l’image</span>
|
|
|
|
|
|
</button>
|
2024-11-05 14:14:40 +01:00
|
|
|
|
<button
|
2024-10-30 16:41:29 +01:00
|
|
|
|
id="loop-animation"
|
2024-11-05 14:14:40 +01:00
|
|
|
|
class="btn btn--transparent btn--outline"
|
2024-10-30 16:41:29 +01:00
|
|
|
|
data-icon="loop"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span>Animation en boucle</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
|
|
|
|
|
id="toggle-comments"
|
|
|
|
|
|
:aria-pressed="isCommentsOpen"
|
|
|
|
|
|
class="btn btn--transparent btn--outline"
|
|
|
|
|
|
data-icon="comment"
|
|
|
|
|
|
@click="isCommentsOpen = !isCommentsOpen"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span class="sr-only">Afficher les commentaires</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<Comments
|
|
|
|
|
|
v-if="isCommentsOpen"
|
|
|
|
|
|
:current-page-index="currentPageIndex"
|
|
|
|
|
|
:file="file"
|
|
|
|
|
|
:comments="file.comments"
|
|
|
|
|
|
@update:file="changeFile"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</Dialog>
|
2024-10-28 18:18:32 +01:00
|
|
|
|
</template>
|
2024-10-30 16:41:29 +01:00
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
|
import Dialog from "primevue/dialog";
|
|
|
|
|
|
import { ref, watch } from "vue";
|
|
|
|
|
|
|
|
|
|
|
|
const { file } = defineProps({
|
|
|
|
|
|
file: Object,
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Variables
|
|
|
|
|
|
const isOpen = ref(false);
|
|
|
|
|
|
watch(isOpen, (newValue) => {
|
|
|
|
|
|
emits("close");
|
|
|
|
|
|
});
|
|
|
|
|
|
const isCommentsOpen = ref(false);
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.dialog__inner {
|
|
|
|
|
|
padding: var(--space-16);
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|