save
This commit is contained in:
parent
93b0c13ac3
commit
e816ff2420
11 changed files with 25 additions and 9 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 534 KiB |
|
|
@ -1,5 +0,0 @@
|
|||
Uuid: qHw8nu1sgsbs0G6q
|
||||
|
||||
----
|
||||
|
||||
Template: blocks/image
|
||||
|
|
@ -2,7 +2,7 @@ Title: Home
|
|||
|
||||
----
|
||||
|
||||
Testimages: - file://4xs4UNZhQf3jLvsG
|
||||
Testimages:
|
||||
|
||||
----
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ Testtext: test
|
|||
|
||||
----
|
||||
|
||||
Testblocks: [{"content":{"location":"kirby","image":["file://qHw8nu1sgsbs0G6q"],"src":"","alt":"","caption":"","link":"","ratio":"","crop":"false"},"id":"9f5c767f-0b50-471c-85de-5c3d18fb596a","isHidden":false,"type":"image"}]
|
||||
Testblocks: [{"content":{"location":"kirby","image":["home/image.png"],"src":"","alt":"","caption":"","link":"","ratio":"","crop":"false"},"id":"ad071a0e-852b-473b-9f6f-46ea4079168e","isHidden":false,"type":"image"}]
|
||||
|
||||
----
|
||||
|
||||
|
|
|
|||
BIN
public/content/home/image.png
Normal file
BIN
public/content/home/image.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
1
public/content/home/image.png.txt
Normal file
1
public/content/home/image.png.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
Template: blocks/image
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 379 KiB |
|
|
@ -1 +0,0 @@
|
|||
Uuid: 4xs4UNZhQf3jLvsG
|
||||
|
|
@ -6,5 +6,8 @@ return [
|
|||
'basicAuth' => true,
|
||||
// Enable api access without SSL. To disable in production.
|
||||
'allowInsecure' => true
|
||||
],
|
||||
'content' => [
|
||||
'uuid' => false
|
||||
]
|
||||
];
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
<?php
|
||||
|
||||
$specificData = [];
|
||||
$blocks = $page->testBlocks()->toBlocks()->toArray();
|
||||
$specificData = [
|
||||
'blocks' => $blocks
|
||||
];
|
||||
|
||||
$data = array_merge($genericData, $specificData);
|
||||
|
||||
|
|
|
|||
11
src/components/Btn.vue
Normal file
11
src/components/Btn.vue
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<template>
|
||||
<button :data-size="size">Label</button>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const { size } = defineProps({
|
||||
size: String,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
|
@ -2,7 +2,11 @@
|
|||
<h1>{{ data.content.title }}</h1>
|
||||
</template>
|
||||
<script setup>
|
||||
import Btn from "../components/Btn.vue";
|
||||
|
||||
const { data } = defineProps({
|
||||
data: Object,
|
||||
});
|
||||
|
||||
console.log(data);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue