feat: Initial NodeByUri logic and frontend
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fragment BuilderSections on GroupAbstractBuilder_Fields {
|
||||
sections {
|
||||
__typename
|
||||
... on GroupAbstractBuilderSectionsTextBlockLayout {
|
||||
... SectionTextBlock
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import type { BuilderSectionsFragment } from "#graphql/typed-documents";
|
||||
|
||||
defineProps<BuilderSectionsFragment>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<pre>{{ sections }}</pre>
|
||||
</template>
|
||||
@@ -0,0 +1,6 @@
|
||||
fragment NodePage on Page {
|
||||
title
|
||||
groupPostPage {
|
||||
... BuilderSections
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import type { NodePageFragment } from "#graphql/typed-documents";
|
||||
|
||||
defineProps<NodePageFragment>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div id="node-page">
|
||||
<h1 class="font-bold text-4xl">
|
||||
{{ title }}
|
||||
</h1>
|
||||
<BuilderSections v-bind="groupPostPage" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,3 @@
|
||||
fragment SectionTextBlock on GroupAbstractBuilderSectionsTextBlockLayout {
|
||||
content
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import type { SectionTextBlockFragment } from "#graphql/typed-documents";
|
||||
|
||||
defineProps<SectionTextBlockFragment>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div v-html="content" />
|
||||
</template>
|
||||
Reference in New Issue
Block a user