From 7017d0e1ab2e1788ffc889cf90f7d3256286cdff Mon Sep 17 00:00:00 2001 From: gsovereignty Date: Sat, 13 Apr 2024 13:27:50 +1200 Subject: [PATCH] problem: can't view root events --- src/routes/+layout.svelte | 19 ++++++++++++++---- src/routes/+page.svelte | 38 ++++++++++++++++++++++++++++++++++- src/routes/debug/+page.svelte | 14 +++++++++++++ 3 files changed, 66 insertions(+), 5 deletions(-) create mode 100644 src/routes/debug/+page.svelte diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 9bfa261..9c8088b 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,15 +1,22 @@ + onMount(() => { + Init(); + }); +
- + + + + +
-
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 9381500..85b57de 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,7 +1,43 @@ -
+{#if $rThreadParent} + {$rThreadParent.children.size}
+ +{/if} diff --git a/src/routes/debug/+page.svelte b/src/routes/debug/+page.svelte new file mode 100644 index 0000000..6210611 --- /dev/null +++ b/src/routes/debug/+page.svelte @@ -0,0 +1,14 @@ + +
+Local Pubkey: {$currentPubkey} +{#if responseFromWorker && $responseFromWorker} +Master pubkey for WoT: {$responseFromWorker.masterPubkey}
+Root events: {$responseFromWorker.rootEvents.size}
+Total events: {$responseFromWorker.events.size} +{/if}