From be035dc01e40be4e1e04ab8ba6146c4ba5cf042d Mon Sep 17 00:00:00 2001 From: Michel Jautzy Date: Tue, 4 Mar 2025 14:00:03 +0100 Subject: [PATCH] chore(code-style): Minor formatting and import order improvements - Reorder imports in [simulateur_id].vue - Adjust whitespace and formatting in iframe.vue - Add spaces in code blocks and comments --- client/pages/iframe.vue | 16 +++++++++------- client/pages/simulateurs/[simulateur_id].vue | 5 +++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/client/pages/iframe.vue b/client/pages/iframe.vue index 6549be3..4efcd22 100644 --- a/client/pages/iframe.vue +++ b/client/pages/iframe.vue @@ -28,7 +28,7 @@ const divReference = computed(() => { }) // Fonction pour mettre à jour l'aperçu de l'iframe -function setIframeContainer(_selectedDisplayOption: string, _selectedSimulator: string): void { +function setIframeContainer (_selectedDisplayOption: string, _selectedSimulator: string): void { const dest = document.getElementById('aides-simplifiees-iframe-container') if (!dest) { return } @@ -39,9 +39,9 @@ function setIframeContainer(_selectedDisplayOption: string, _selectedSimulator: const script = document.createElement('script') script.src = `${window?.location.origin}/iframe-integration.js` - //Inutilisé pour le moment - //script.dataset.displayOption = _selectedDisplayOption - //script.dataset.simulator = _selectedSimulator + // Inutilisé pour le moment + // script.dataset.displayOption = _selectedDisplayOption + // script.dataset.simulator = _selectedSimulator // Ajouter le script au conteneur dest.appendChild(script) @@ -77,10 +77,13 @@ onMounted(() => {

Ce script créera l'iframe adéquate dans la div que vous aurez préalablement créé et sur votre site.

- {{ divReference }} + {{ divReference }} -
+
diff --git a/client/pages/simulateurs/[simulateur_id].vue b/client/pages/simulateurs/[simulateur_id].vue index ab8f0ec..c4ffa3a 100644 --- a/client/pages/simulateurs/[simulateur_id].vue +++ b/client/pages/simulateurs/[simulateur_id].vue @@ -1,7 +1,8 @@