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 }; me?: { id: string; do: any; data: any };
slot?: string; slot?: string;
component?: string; component?: string;
store?: Record<string, any>; data?: Record<string, any>;
children?: IComposer[]; children?: IComposer[];
machine?: any; machine?: any;
} }

View File

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

View File

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

View File

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