generated from pascalmartineau/wp-skeleton
minor: add some ids here and there
This commit is contained in:
@@ -5,7 +5,5 @@ defineProps<{ node: ThePageFragment }>();
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UPage>
|
<TheSections :sections="node.groupPostPage?.sections || []" />
|
||||||
<TheSections :sections="node.groupPostPage?.sections" />
|
|
||||||
</UPage>
|
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { TheSectionFragment } from "#graphql-operations";
|
import type { TheSectionFragment } from "#graphql-operations";
|
||||||
|
|
||||||
const props = defineProps<{ sections: (TheSectionFragment)[] }>();
|
const props = defineProps<{ sections: (TheSectionFragment | null)[] }>();
|
||||||
const sections = props.sections.map(useSection);
|
const sections = props.sections.filter(Boolean).map((section) => useSection(section!));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -7,6 +7,6 @@ export function useSection(section: TheSectionFragment) {
|
|||||||
case "GroupAbstractBuilderSectionsTextBlockLayout":
|
case "GroupAbstractBuilderSectionsTextBlockLayout":
|
||||||
return { component: SectionTextBlock, attrs: attrs as SectionTextBlockFragment };
|
return { component: SectionTextBlock, attrs: attrs as SectionTextBlockFragment };
|
||||||
default:
|
default:
|
||||||
throw createError({ statusCode: 500, statusMessage: "Erreur interne", message: "Type de section invalide" });
|
throw createError({ statusCode: 500, statusMessage: "Erreur interne", message: `Type de section invalide: ${fieldGroupName}` });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ watch(height, (h) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div id="layout-default">
|
||||||
<TheSiteHeaderTop />
|
<TheSiteHeaderTop />
|
||||||
<TheSiteHeader />
|
<TheSiteHeader />
|
||||||
<div class="relative z-main bg-white border-b border-muted mb-[var(--footer-bottom-height)]">
|
<div class="relative z-main bg-white border-b border-muted mb-[var(--footer-bottom-height)]">
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ useSeoMeta({ title: node?.title });
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div id="page-node-by-uri">
|
||||||
<SiteBreadcrumbs :breadcrumbs="breadcrumbs" />
|
<SiteBreadcrumbs :breadcrumbs="breadcrumbs" />
|
||||||
<component :is="component" :node="node" />
|
<component :is="component" :node="node" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user