added core default services to our composite

This commit is contained in:
Samuel Andert
2023-07-27 16:33:55 +02:00
parent b546a22302
commit 049fae15e5
5 changed files with 43 additions and 18 deletions

View File

@ -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;
</script>
@ -14,9 +18,15 @@
{#if isStoreLoaded}
<div class="p-12 bg-blue-400 rounded-md shadow-lg">
<p class="mb-4 text-xl font-bold text-white">Hello Earth</p>
Wallet Address:
{#if $store.pkpWallet}
<p class="mb-6 text-white">Wallet Address: {$store.pkpWallet.address}</p>
<p class="mb-6 text-white">{$store.pkpWallet.address}</p>
{/if}
<br />
hello store: {#if $store.hello}{$store.hello}{/if}
<br />
hello store2: {#if $store.hello2}{$store.hello2}{/if}
<br />
Reference TodoList
{#if $store.todos}
<ul class="pl-5 list-decimal">