This commit is contained in:
isUnknown 2024-09-02 14:33:21 +02:00
parent 93b0c13ac3
commit e816ff2420
11 changed files with 25 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 534 KiB

View file

@ -1,5 +0,0 @@
Uuid: qHw8nu1sgsbs0G6q
----
Template: blocks/image

View file

@ -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"}]
----

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View file

@ -0,0 +1 @@
Template: blocks/image

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 KiB

View file

@ -1 +0,0 @@
Uuid: 4xs4UNZhQf3jLvsG

View file

@ -6,5 +6,8 @@ return [
'basicAuth' => true,
// Enable api access without SSL. To disable in production.
'allowInsecure' => true
],
'content' => [
'uuid' => false
]
];

View file

@ -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
View file

@ -0,0 +1,11 @@
<template>
<button :data-size="size">Label</button>
</template>
<script setup>
const { size } = defineProps({
size: String,
});
</script>
<style scoped></style>

View file

@ -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>