Skip to content

Commit

Permalink
refactor(@dpc-sdp/ripple-tide-api): ♻️ check for empty document
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingallday committed Nov 11, 2024
1 parent 7360726 commit 4e8b19e
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
35 changes: 35 additions & 0 deletions examples/nuxt-app/layers/fixture-api/pages/_fixture/document.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<template>
<TideBaseLayout
:site="site"
:page="page"
:siteSection="page.siteSection"
:background="page.background"
:pageTitle="page.title"
:pageLanguage="page.lang"
:updatedDate="page.created"
:showContentRating="page.showContentRating"
>
<template #aboveBody="{ hasBreadcrumbs }">
<TideHeroHeader :header="page.header" :hasBreadcrumbs="hasBreadcrumbs" />
</template>
<template #body>
<RplContent :html="fixture.processed" />
</template>
</TideBaseLayout>
</template>

<script setup lang="ts">
import site from '../../test/fixtures/site/vic.json'
import fixture from '../../../../../../packages/ripple-tide-api/src/utils/markup-transpiler/complex.fixture'
const page = {
siteSection: '',
background: '',
lang: 'en',
created: '2021-10-01T00:00:00Z',
showContentRating: false,
title: 'Document test',
header: {
title: 'Document test'
}
}
</script>
Loading

0 comments on commit 4e8b19e

Please sign in to comment.