@@ -5,6 +5,7 @@ import { useRoute } from "vue-router";
55import CopyIcon from " ../components/icons/CopyIcon.vue" ;
66import PageMeta from " ../components/PageMeta" ;
77import MarkdownRenderer from " ../components/ui/MarkdownRenderer.vue" ;
8+ import TopLink from " ../components/ui/TopLink.vue" ;
89import { useNotifications } from " ../composables/useNotifications" ;
910import { useWrappedFetch } from " ../composables/useWrappedFetch" ;
1011import { REFERENTIAL } from " ../enums" ;
@@ -21,20 +22,6 @@ useWrappedFetch(() => report.fetchReport(uniqueId));
2122
2223const notify = useNotifications ();
2324
24- async function copyA11yStatementUrl() {
25- const url = ` ${window .location .origin }/declaration/${uniqueId } ` ;
26-
27- navigator .clipboard .writeText (url ).then (() => {
28- showCopyAlert .value = true ;
29-
30- notify (
31- " success" ,
32- undefined ,
33- " Le lien vers la déclaration a bien été copié dans le presse-papier."
34- );
35- });
36- }
37-
3825function getA11yLevel() {
3926 if (report .data ! .accessibilityRate === 100 ) {
4027 return " totalement" ;
@@ -46,7 +33,6 @@ function getA11yLevel() {
4633}
4734
4835const statementContainerRef = ref <HTMLDivElement >();
49- const showCopyAlert = ref (false );
5036
5137async function copyA11yStatementHTML() {
5238 const tagsWithSpacesRegex = / <(?<tagName >\S + )(\s + )>/ g ; // "<XX >"
@@ -111,18 +97,10 @@ const siteUrl = computed(() => {
11197<template >
11298 <template v-if =" report .data " >
11399 <PageMeta
114- :title =" `Déclaration d' accessibilité de ${report.data.procedureName}`"
100+ :title =" `Déclaration d’ accessibilité à publier de ${report.data.procedureName}`"
115101 />
116102
117- <div class =" fr-mb-4w heading" >
118- <h1 class =" fr-m-0" >Déclaration d’accessibilité</h1 >
119- <button
120- class =" fr-btn fr-btn--secondary fr-btn--icon-left fr-icon-links-fill"
121- @click =" copyA11yStatementUrl"
122- >
123- Copier le lien de la déclaration
124- </button >
125- </div >
103+ <h1 class =" fr-mb-4w" >Déclaration d’accessibilité à publier</h1 >
126104
127105 <div v-if =" !statementIsPublished" class =" fr-alert fr-alert--info" >
128106 <p class =" fr-alert__title" >Déclaration d’accessibilité indisponible</p >
@@ -156,7 +134,7 @@ const siteUrl = computed(() => {
156134 </p >
157135
158136 <p class =" fr-mb-1v" >
159- URL du site :
137+ URL du site audité :
160138 <a v-if =" siteUrl" class =" fr-link" target =" _blank" :href =" siteUrl" >
161139 {{ siteUrl }}
162140 <span class =" fr-sr-only" >(nouvelle fenêtre)</span >
@@ -165,13 +143,12 @@ const siteUrl = computed(() => {
165143 </p >
166144
167145 <p class =" fr-mb-9w" >
168- Rapport d’audit :
169146 <RouterLink
170147 class =" fr-link"
171148 target =" _blank"
172149 :to =" { name: 'report', params: { uniqueId } }"
173150 >
174- accéder au rapport d’audit
151+ Accéder au rapport d’audit
175152 <span class =" fr-sr-only" >(nouvelle fenêtre)</span >
176153 </RouterLink >
177154 </p >
@@ -193,7 +170,7 @@ const siteUrl = computed(() => {
193170 </li >
194171 </ol >
195172
196- <h2 >Document à intégrer sur le site audité</h2 >
173+ <h2 >Contenu à intégrer sur le site audité</h2 >
197174
198175 <p >
199176 Cette déclaration d’accessibilité adopte un format obligatoire donné
@@ -388,24 +365,16 @@ const siteUrl = computed(() => {
388365 </li >
389366 </ul >
390367 </div >
368+
369+ <div class =" top-link" >
370+ <TopLink top-margin =" 3rem" />
371+ </div >
391372 </div >
392373 </template >
393374 </template >
394375</template >
395376
396377<style scoped>
397- .heading {
398- display : flex ;
399- justify-content : space-between ;
400- align-items : center ;
401- flex-wrap : wrap ;
402- gap : 1rem ;
403- }
404-
405- .info-container {
406- max-width : 49.5rem ;
407- }
408-
409378.content {
410379 max-width : 58rem ;
411380}
@@ -422,4 +391,8 @@ const siteUrl = computed(() => {
422391 display : inline-block ;
423392 font-style : italic ;
424393}
394+
395+ .top-link {
396+ text-align : end ;
397+ }
425398 </style >
0 commit comments