This commit is contained in:
Samuel Andert 2023-08-05 13:59:10 +02:00
parent 6f9c2da0ac
commit 28b55dee79
4 changed files with 12 additions and 14 deletions

View File

@ -22,7 +22,7 @@
me?: { id: string; do: any; data: any };
slot?: string;
component?: string;
store?: Record<string, any>;
data?: Record<string, any>;
children?: IComposer[];
machine?: any;
}

View File

@ -3,18 +3,23 @@ import { writable } from 'svelte/store';
export const queryTodos = writable([
{
id: "id1",
id: "1",
text: "todo 1",
type: "x"
},
{
id: "id2",
id: "2",
text: "todo 2",
type: "x"
},
{
id: "id3",
id: "3",
text: "todo 3",
type: "z"
},
{
id: "4",
text: "todo 4",
type: "z"
}
]);

View File

@ -5,15 +5,13 @@
id: 'messages',
layout: {
areas: `
"top top"
"main main"
"footer footer";
`,
columns: '1fr 300px',
rows: 'auto 1fr auto'
rows: ' 1fr auto'
},
children: [
{ id: 'appbar', component: 'AppBar', slot: 'top' },
{
id: 'me',
component: 'Messages',

View File

@ -15,16 +15,11 @@
rows: '1fr'
},
children: [
{
id: 'recipietest',
component: 'Recipies',
slot: 'top'
},
{
id: 'bottommessage',
component: 'Messages',
slot: 'bottom',
map: { messages: '@data:queryMessages' }
slot: 'bottom'
// map: { messages: '@data:queryMessages' }
}
]
};