diff --git a/src/lib/components/HelloEarth/HelloEarth.svelte b/src/lib/components/HelloEarth/HelloEarth.svelte index 68e6a97..2347aac 100644 --- a/src/lib/components/HelloEarth/HelloEarth.svelte +++ b/src/lib/components/HelloEarth/HelloEarth.svelte @@ -8,7 +8,6 @@ // services.helloEarthAlert.alertMe(); } $: if (services.core) { - console.log('services: ' + JSON.stringify(services)); // services.core.testAlert(); } @@ -16,26 +15,38 @@ {#if isStoreLoaded} -
-

Hello Earth

- Wallet Address: +
+

+ {#if $store.title}{$store.title}{/if} +

+

+ {#if $store.description}{$store.description}{/if} +

+

Wallet Address

{#if $store.pkpWallet} -

{$store.pkpWallet.address}

+

{$store.pkpWallet.address}

{/if} -
- hello store: {#if $store.hello}{$store.hello}{/if} -
- hello store2: {#if $store.hello2}{$store.hello2}{/if} -
- Reference TodoList + +

store: hello (init default)

+ {#if $store.hello}{$store.hello}{/if} +

map: hello2 : "@hello:helloMapMe"

+ {#if $store.hello2}{$store.hello2}{/if} + +

map: "todos": "@data:queryTodos"

{#if $store.todos} - + {/if}
{:else} -
Loading...
+
+

Loading...

+
{/if} diff --git a/src/lib/components/Wallet/Wallet.svelte b/src/lib/components/Wallet/Wallet.svelte index 532ce9b..8a9463c 100644 --- a/src/lib/components/Wallet/Wallet.svelte +++ b/src/lib/components/Wallet/Wallet.svelte @@ -1,13 +1,16 @@ diff --git a/src/routes/helloearth/+page.svelte b/src/routes/helloearth/+page.svelte index 41fdbea..e67f2ab 100644 --- a/src/routes/helloearth/+page.svelte +++ b/src/routes/helloearth/+page.svelte @@ -4,6 +4,9 @@ let composite = { id: 'hello', store: { + title: 'Hello Earth', + description: + 'Here you can find all the references, how to use the store and mapping logic of store to store and data to store maps', helloMapMe: 'this is going to be mapped' }, layout: { @@ -23,8 +26,10 @@ hello2: 'overwrite me with the mapping value' }, map: { - hello2: '@hello.helloMapMe', - pkpWallet: '@wallet.pkpWallet', + title: '@hello:title', + description: '@hello:description', + hello2: '@hello:helloMapMe', + pkpWallet: '@wallet:pkpWallet', todos: '@data:queryTodos' }, services: ['helloEarthAlert']