-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rants - nats for rust - incorporated into tauri
- Loading branch information
1 parent
c25eda9
commit 5198423
Showing
17 changed files
with
553 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { LayoutServerLoad } from './$types'; | ||
|
||
// get `locals.user` and pass it to the `page` store | ||
export const load: LayoutServerLoad = async ({ locals }) => { | ||
if(locals.user) { | ||
if(locals.accessToken) { | ||
if(locals.device) { | ||
return { | ||
user: locals.user, | ||
accessToken: locals.accessToken, | ||
device: locals.device | ||
} | ||
} | ||
return { | ||
user: locals.user, | ||
accessToken: locals.accessToken, | ||
device: null | ||
} | ||
} | ||
return { | ||
user: locals.user, | ||
accessToken: '', | ||
device: null | ||
}; | ||
} | ||
return { | ||
user: null, | ||
accessToken: '', | ||
device: null | ||
}; | ||
}; |
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,2 @@ | ||
export const prerender = true | ||
export const ssr = false |
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,21 @@ | ||
<script lang="ts"> | ||
import { goto } from "$app/navigation"; | ||
</script> | ||
<div class="text-center h-1/2 top-1/4 relative w-1/2 left-1/4 flex flex-col justify-items-center text-amber-600"> | ||
<h1 class="text-6xl mt-[4%]"> | ||
Name Your Device, and Choose its type | ||
</h1> | ||
<p class="text-2xl mt-[4%] w-[75%] left-[12.5%] relative"> | ||
Devices can be clients, which are controlled by your assistant, or servers, which control your assistant, and communicate with the clients. | ||
</p> | ||
<button on:click={() => goto("/groups")}> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-8 absolute bottom-1/4 left-[23%]"> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5" /> | ||
</svg> | ||
</button> | ||
<button on:click={() => goto("/device-setup")}> | ||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-8 absolute bottom-1/4 left-[67%]"> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5" /> | ||
</svg> | ||
</button> | ||
</div> |
Oops, something went wrong.