From 049fae15e5d63ed57db8ae8b5dda12613249341e Mon Sep 17 00:00:00 2001 From: Samuel Andert Date: Thu, 27 Jul 2023 16:33:55 +0200 Subject: [PATCH] added core default services to our composite --- .../components/HelloEarth/HelloEarth.svelte | 12 +++++++++++- src/lib/core/Composite.svelte | 5 ++++- src/lib/core/coreServices.ts | 18 ++++++++++++++++++ src/lib/core/dataLoader.ts | 16 +--------------- src/routes/helloearth/+page.svelte | 10 +++++++++- 5 files changed, 43 insertions(+), 18 deletions(-) create mode 100644 src/lib/core/coreServices.ts diff --git a/src/lib/components/HelloEarth/HelloEarth.svelte b/src/lib/components/HelloEarth/HelloEarth.svelte index 86c66a5..68e6a97 100644 --- a/src/lib/components/HelloEarth/HelloEarth.svelte +++ b/src/lib/components/HelloEarth/HelloEarth.svelte @@ -7,6 +7,10 @@ $: if (services && services.helloEarthAlert) { // services.helloEarthAlert.alertMe(); } + $: if (services.core) { + console.log('services: ' + JSON.stringify(services)); + // services.core.testAlert(); + } $: if ($store) isStoreLoaded = true; @@ -14,9 +18,15 @@ {#if isStoreLoaded}

Hello Earth

+ Wallet Address: {#if $store.pkpWallet} -

Wallet Address: {$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 {#if $store.todos}