-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
problem: can't navigate to parent event
- Loading branch information
1 parent
df8c306
commit dbbf5b1
Showing
5 changed files
with
104 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<script> | ||
import { ArrowTurnUpSolid } from "svelte-awesome-icons"; | ||
import { Button } from "./ui/button"; | ||
import { goto } from "$app/navigation"; | ||
import { base } from "$app/paths"; | ||
import { toggleMode } from "mode-watcher"; | ||
import { Home, QuestionMark, Sun, Moon } from "radix-icons-svelte"; | ||
import LoginButton from "./LoginButton.svelte"; | ||
import { Input } from "./ui/input"; | ||
</script> | ||
|
||
<div | ||
class="grid grid-cols-12 grid-rows-12 w-full h-full dark:bg-gradient-to-r from-transparent to-blue-950" | ||
> | ||
<div class="grid grid-cols-12 grid-rows-12 col-span-12 row-span-10"> | ||
<div | ||
class="flex flex-col gap-2 py-2 bg-slate-400 dark:bg-zinc-800 row-span-12 col-span-1 place-items-center" | ||
> <slot name="buttons" /> | ||
|
||
<Button on:click={()=>{goto(`${base}/`)}} variant="outline" size="icon" class="-scale-x-100 hover:skew-y-12" | ||
><Home size={24} /></Button | ||
> | ||
<Button variant="outline" size="icon" class="hover:skew-y-12" | ||
><QuestionMark size={24} /></Button | ||
> | ||
|
||
<Button on:click={toggleMode} variant="outline" size="icon"> | ||
<Sun | ||
class="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" | ||
/> | ||
<Moon | ||
class="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" | ||
/> | ||
<span class="sr-only">Toggle theme</span> | ||
</Button> | ||
|
||
<LoginButton /> | ||
|
||
<Button on:click={()=>{goto(`${base}/debug`)}}>D</Button> | ||
|
||
</div> | ||
<div | ||
class="bg-white dark:bg-zinc-900 row-span-12 col-span-11 overflow-x-hidden overflow-y-scroll no-scrollbar" | ||
> | ||
<slot /> | ||
</div> | ||
</div> | ||
<div class="col-span-12 row-span-10 bg-sky-100 dark:bg-sky-950"> | ||
<Input placeholder="Start typing..." type="text" class=" bg-sky-100 dark:bg-sky-950" /> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
<script lang="ts"> | ||
import ChatLayout from '@/components/ChatLayout.svelte'; | ||
import { Button } from '@/components/ui/button'; | ||
import { currentPubkey } from '@/stores/user'; | ||
import { responseFromWorker } from '@/workers/firehose_master'; | ||
</script> | ||
<Button on:click={()=>{console.log($responseFromWorker)}}>Print responseFromWorker to console</Button><br /> | ||
Local Pubkey: {$currentPubkey} | ||
{#if responseFromWorker && $responseFromWorker} | ||
Master pubkey for WoT: {$responseFromWorker.masterPubkey} <br /> | ||
Root events: {$responseFromWorker.rootEvents.size} <br /> | ||
Total events: {$responseFromWorker.events.size} | ||
{/if} | ||
<ChatLayout> | ||
<slot> | ||
<Button on:click={()=>{console.log($responseFromWorker)}}>Print responseFromWorker to console</Button><br /> | ||
Local Pubkey: {$currentPubkey} | ||
{#if responseFromWorker && $responseFromWorker} | ||
Master pubkey for WoT: {$responseFromWorker.masterPubkey} <br /> | ||
Root events: {$responseFromWorker.rootEvents.size} <br /> | ||
Total events: {$responseFromWorker.events.size} | ||
{/if} | ||
</slot> | ||
</ChatLayout> | ||
|