diff --git a/src/lib/components/ChatLayout.svelte b/src/lib/components/ChatLayout.svelte new file mode 100644 index 0000000..304991d --- /dev/null +++ b/src/lib/components/ChatLayout.svelte @@ -0,0 +1,54 @@ + + +
+
+
+ + + + + + + + + + +
+
+ +
+
+
+ +
+
\ No newline at end of file diff --git a/src/lib/components/Kind1.svelte b/src/lib/components/Kind1.svelte index e844eab..5524269 100644 --- a/src/lib/components/Kind1.svelte +++ b/src/lib/components/Kind1.svelte @@ -21,4 +21,4 @@ {newParent.update(existing=>{existing.push(id); return existing})}} class="text-sm font-normal text-gray-500 dark:text-gray-400 float-right">{tree.children.size} -{/each} +{/each} \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 9c8088b..a695fab 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -12,52 +12,12 @@ import Moon from 'svelte-radix/Moon.svelte'; import Sun from 'svelte-radix/Sun.svelte'; import '../app.css'; + import { page } from '$app/stores'; onMount(() => { Init(); }); - - -
-
-
- - - - - - - - - -
-
- -
-
-
- -
-
+ + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 85b57de..35eec9f 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,12 +1,17 @@ + +
+ {#if $threadParentID[$threadParentID.length-1] != "root"} + + {/if} +
+ + {#if $rThreadParent} - {$rThreadParent.children.size}
- +{$rThreadParent.children.size}
+ {/if} +
+
+ diff --git a/src/routes/debug/+page.svelte b/src/routes/debug/+page.svelte index 6210611..4c484db 100644 --- a/src/routes/debug/+page.svelte +++ b/src/routes/debug/+page.svelte @@ -1,14 +1,20 @@ -
-Local Pubkey: {$currentPubkey} -{#if responseFromWorker && $responseFromWorker} -Master pubkey for WoT: {$responseFromWorker.masterPubkey}
-Root events: {$responseFromWorker.rootEvents.size}
-Total events: {$responseFromWorker.events.size} -{/if} + + +
+ Local Pubkey: {$currentPubkey} + {#if responseFromWorker && $responseFromWorker} + Master pubkey for WoT: {$responseFromWorker.masterPubkey}
+ Root events: {$responseFromWorker.rootEvents.size}
+ Total events: {$responseFromWorker.events.size} + {/if} +
+
+