Skip to content

Commit

Permalink
Merge pull request #1371 from dpc-sdp/fix/sd-476-check-empty-document
Browse files Browse the repository at this point in the history
[SD-476] Check empty document
  • Loading branch information
dylankelly authored Nov 11, 2024
2 parents 7360726 + 02f5551 commit 23dd64e
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 23dd64e

Please sign in to comment.