|
@@ -187,9 +187,9 @@
|
|
|
:key="sublinkIndex"
|
|
:key="sublinkIndex"
|
|
|
class="mt-3"
|
|
class="mt-3"
|
|
|
>
|
|
>
|
|
|
- <CommonAgendaLink :href="sublink.link">
|
|
|
|
|
|
|
+ <nuxt-link :href="sublink.link" :target="sublink.target ?? '_self'">
|
|
|
{{ sublink.label }}
|
|
{{ sublink.label }}
|
|
|
- </CommonAgendaLink>
|
|
|
|
|
|
|
+ </nuxt-link>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</v-container>
|
|
</v-container>
|
|
@@ -222,28 +222,38 @@
|
|
|
</footer>
|
|
</footer>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
-<script setup>
|
|
|
|
|
|
|
+<script setup lang="ts">
|
|
|
import { useDisplay } from 'vuetify'
|
|
import { useDisplay } from 'vuetify'
|
|
|
import { useLayoutStore } from '~/stores/layoutStore'
|
|
import { useLayoutStore } from '~/stores/layoutStore'
|
|
|
import AgendaLink from '~/components/Common/AgendaLink.vue'
|
|
import AgendaLink from '~/components/Common/AgendaLink.vue'
|
|
|
|
|
+import UrlUtils from '~/services/utils/urlUtils.js'
|
|
|
|
|
|
|
|
const { mdAndDown, lgAndUp } = useDisplay()
|
|
const { mdAndDown, lgAndUp } = useDisplay()
|
|
|
|
|
|
|
|
|
|
+const runtimeConfig = useRuntimeConfig()
|
|
|
|
|
+
|
|
|
|
|
+const makeAgendaLink = (path: string) => {
|
|
|
|
|
+ return UrlUtils.join(runtimeConfig.public.agendaBaseUrl as string, path)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const footerLinks = ref([
|
|
const footerLinks = ref([
|
|
|
{
|
|
{
|
|
|
label: 'AGENDA',
|
|
label: 'AGENDA',
|
|
|
sublink: [
|
|
sublink: [
|
|
|
{
|
|
{
|
|
|
label: 'Annuaire',
|
|
label: 'Annuaire',
|
|
|
- link: '/annuaire',
|
|
|
|
|
|
|
+ link: makeAgendaLink('/annuaire'),
|
|
|
|
|
+ target: '_blank',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: 'Actualités',
|
|
label: 'Actualités',
|
|
|
- link: '/actualites',
|
|
|
|
|
|
|
+ link: makeAgendaLink('/actualites'),
|
|
|
|
|
+ target: '_blank',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: 'Annonces',
|
|
label: 'Annonces',
|
|
|
- link: '/annonces',
|
|
|
|
|
|
|
+ link: makeAgendaLink('/annonces'),
|
|
|
|
|
+ target: '_blank',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
@@ -286,31 +296,27 @@ const footerLinks = ref([
|
|
|
sublink: [
|
|
sublink: [
|
|
|
{
|
|
{
|
|
|
label: 'Foire Aux Questions ',
|
|
label: 'Foire Aux Questions ',
|
|
|
- link: '/ https://ressources.opentalent.fr',
|
|
|
|
|
|
|
+ link: 'https://ressources.opentalent.fr',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: 'Support en ligne ',
|
|
label: 'Support en ligne ',
|
|
|
- link: '/https://ressources.opentalent.fr/?contact',
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'Nous contacter ',
|
|
|
|
|
- link: '/nous-contacter',
|
|
|
|
|
|
|
+ link: 'https://ressources.opentalent.fr/?contact',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
const activeIndex = ref(-1)
|
|
const activeIndex = ref(-1)
|
|
|
-function toggleSection(index) {
|
|
|
|
|
|
|
+function toggleSection(index: number) {
|
|
|
activeIndex.value = activeIndex.value === index ? -1 : index
|
|
activeIndex.value = activeIndex.value === index ? -1 : index
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function isActive(index) {
|
|
|
|
|
|
|
+function isActive(index: number) {
|
|
|
return activeIndex.value === index
|
|
return activeIndex.value === index
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const layoutStore = useLayoutStore()
|
|
const layoutStore = useLayoutStore()
|
|
|
-const onIntersect = (isIntersecting) => {
|
|
|
|
|
|
|
+const onIntersect = (isIntersecting: boolean) => {
|
|
|
layoutStore.setIsFooterVisible(isIntersecting)
|
|
layoutStore.setIsFooterVisible(isIntersecting)
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|