Skip to content

Commit

Permalink
chore(code-style): Minor formatting and import order improvements
Browse files Browse the repository at this point in the history
- Reorder imports in [simulateur_id].vue
- Adjust whitespace and formatting in iframe.vue
- Add spaces in code blocks and comments
  • Loading branch information
MichelJautzy committed Mar 4, 2025
1 parent 43a473f commit be035dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
16 changes: 9 additions & 7 deletions client/pages/iframe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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)
Expand Down Expand Up @@ -77,10 +77,13 @@ onMounted(() => {
</DsfrCallout>
<p>Ce script créera l'iframe adéquate dans la div que vous aurez préalablement créé et sur votre site.</p>
<DsfrCallout>
<code> {{ divReference }}</code>
<code> {{ divReference }} </code>
</DsfrCallout>

<div class="fr-form-group fr-mt-4w" v-if="false">
<div
v-if="false"
class="fr-form-group fr-mt-4w"
>
<div class="fr-grid-row">
<div>
<DsfrFieldset
Expand Down Expand Up @@ -132,7 +135,6 @@ onMounted(() => {
<a href="mailto:[email protected]">[email protected]</a>.
</p>
</div>

</article>
</div>
</template>
5 changes: 3 additions & 2 deletions client/pages/simulateurs/[simulateur_id].vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<script lang="ts" setup>
import { useIframeDisplay } from '@/composables/useIframeDisplay'
import { type Simulateur, simulateurs } from '@/data/simulateurs'
import { storeToRefs } from 'pinia'
import { useIframeDisplay } from '@/composables/useIframeDisplay'
const { isIframe } = useIframeDisplay()
definePageMeta({
Expand Down Expand Up @@ -49,7 +50,7 @@ onMounted(() => {

<template>
<BrandBackgroundContainer v-if="!isIframe">
<BreadcrumbSectionContainer :crumbs="crumbs" />
<BreadcrumbSectionContainer :crumbs="crumbs" />
<SectionContainer
v-if="simulateur"
type="page-header"
Expand Down

0 comments on commit be035dc

Please sign in to comment.