generated from cms/tibi-docs
backend and api endpoints
This commit is contained in:
27
frontend/src/lib/components/Pagebuilder/Rows.svelte
Normal file
27
frontend/src/lib/components/Pagebuilder/Rows.svelte
Normal file
@@ -0,0 +1,27 @@
|
||||
<script lang="ts">
|
||||
import { init } from "svelte/internal"
|
||||
import { pages } from "../../store"
|
||||
|
||||
export let path
|
||||
export let homepage = false
|
||||
|
||||
let page: Page
|
||||
function initPage() {
|
||||
page = $pages[path]
|
||||
}
|
||||
|
||||
$: {
|
||||
if (Object.keys($pages).length) {
|
||||
initPage()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
{#if page}
|
||||
{page.path}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style lang="less">
|
||||
</style>
|
||||
Reference in New Issue
Block a user