Skip to content

Commit

Permalink
chore(ceremony): format
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Sep 12, 2024
1 parent 080413d commit a52ae6b
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 65 deletions.
16 changes: 8 additions & 8 deletions ceremony/src/lib/components/Install.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import { toast } from "svelte-sonner"
import H1 from "$lib/components/typography/H1.svelte"
import Button from "$lib/components/Button.svelte"
import { toast } from "svelte-sonner"
import H1 from "$lib/components/typography/H1.svelte"
import Button from "$lib/components/Button.svelte"
let command = "docker run -p 4919:4919 -it haitlahcen/union-mpc-cli:latest"
const copy = () => {
navigator.clipboard.writeText(command)
toast.success("Copied to clipboard", { position: "bottom-right" })
}
let command = "docker run -p 4919:4919 -it haitlahcen/union-mpc-cli:latest"
const copy = () => {
navigator.clipboard.writeText(command)
toast.success("Copied to clipboard", { position: "bottom-right" })
}
</script>

<div class="p-8 bg-gradient-to-t from-transparent via-black/50 to-transparent backdrop-blur w-full flex items-center flex-col">
Expand Down
2 changes: 0 additions & 2 deletions ceremony/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ $effect(() => {
let canvas: HTMLCanvasElement
let app: Application
let model
let loading = $state(true)
onMount(() => {
Expand All @@ -66,7 +65,6 @@ onMount(() => {
app
.load("https://draft.spline.design/r6WgY2-52aHVU2TZ/scene.splinecode")
.then(splineScene => {
model = splineScene
loading = false
})
.catch(error => {
Expand Down
2 changes: 1 addition & 1 deletion ceremony/src/routes/app/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
let { children } = $props()
let { children } = $props()
</script>

{@render children()}
Expand Down
111 changes: 57 additions & 54 deletions ceremony/src/routes/app/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,60 +1,63 @@
<script lang="ts">
import { user } from "$lib/stores/user.svelte.ts"
import Text from "$lib/components/typography/Text.svelte"
import { createQuery } from "@tanstack/svelte-query"
import Spinner from "$lib/components/Spinner.svelte"
import { reactiveQueryArgs } from "$lib/utils/utils.svelte.ts"
import H2 from "$lib/components/typography/H2.svelte"
import { checkContributionStatus, getUserQueueInfo } from "$lib/supabase"
import Button from "$lib/components/Button.svelte"
import { checkStatus, start } from "$lib/client";
import Install from "$lib/components/Install.svelte";
let clientQuery = createQuery(
reactiveQueryArgs(() => ({
queryKey: ["client"],
queryFn: () => checkStatus(),
refetchInterval: 5_000,
retry: false
}))
)
let contributionQuery = createQuery(
reactiveQueryArgs(() => ({
queryKey: ["contribution"],
queryFn: () => checkContributionStatus(),
refetchInterval: 5_000,
retry: false
}))
)
let queueQuery = createQuery(
reactiveQueryArgs(() => ({
queryKey: ["userPosition"],
queryFn: () => getUserQueueInfo(),
refetchInterval: 5_000,
retry: 2,
retryDelay: 1000
}))
)
let {data: queue, isLoading: queueLoading, error: queueError} = $derived($queueQuery)
let {data: contribute, isLoading: contributeLoading, error: contributeError} = $derived($contributionQuery)
let {data: client, isLoading: clientLoading, error: clientError} = $derived($clientQuery)
//TODO SAVE IN LOCAL STORAGE AND ADD INFO TEXT ABOUT HAVING THE BROWSER OPEN
let auto = $state(false)
$effect(() => {
if(auto) {
if(contribute?.canContribute && contribute?.shouldContribute) {
if (client) {
start()
}
import { user } from "$lib/stores/user.svelte.ts"
import Text from "$lib/components/typography/Text.svelte"
import { createQuery } from "@tanstack/svelte-query"
import Spinner from "$lib/components/Spinner.svelte"
import { reactiveQueryArgs } from "$lib/utils/utils.svelte.ts"
import H2 from "$lib/components/typography/H2.svelte"
import { checkContributionStatus, getUserQueueInfo } from "$lib/supabase"
import Button from "$lib/components/Button.svelte"
import { checkStatus, start } from "$lib/client"
import Install from "$lib/components/Install.svelte"
let clientQuery = createQuery(
reactiveQueryArgs(() => ({
queryKey: ["client"],
queryFn: () => checkStatus(),
refetchInterval: 5_000,
retry: false
}))
)
let contributionQuery = createQuery(
reactiveQueryArgs(() => ({
queryKey: ["contribution"],
queryFn: () => checkContributionStatus(),
refetchInterval: 5_000,
retry: false
}))
)
let queueQuery = createQuery(
reactiveQueryArgs(() => ({
queryKey: ["userPosition"],
queryFn: () => getUserQueueInfo(),
refetchInterval: 5_000,
retry: 2,
retryDelay: 1000
}))
)
let { data: queue, isLoading: queueLoading, error: queueError } = $derived($queueQuery)
let {
data: contribute,
isLoading: contributeLoading,
error: contributeError
} = $derived($contributionQuery)
let { data: client, isLoading: clientLoading, error: clientError } = $derived($clientQuery)
//TODO SAVE IN LOCAL STORAGE AND ADD INFO TEXT ABOUT HAVING THE BROWSER OPEN
let auto = $state(false)
$effect(() => {
if (auto) {
if (contribute?.canContribute && contribute?.shouldContribute) {
if (client) {
start()
}
}
})
}
})
</script>


Expand Down
10 changes: 10 additions & 0 deletions dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ IIBC
INLINES
IOSVG
IPFS
Iiwicm
Infima
Infof
Interchain
Expand Down Expand Up @@ -125,14 +126,18 @@ Monaspace
Movementlabs
Multichain
NIXBUILDNET
NJPFFHKJX
NSCYRR
Neue
Ngtt
Nmimt
Nmint
Nonexist
Noto
Npcwo
Nullam
Offchain
PGRST
PINGPONG
PRECOMMIT
PREVOTE
Expand Down Expand Up @@ -208,6 +213,7 @@ Undelegate
Unintersect
Unjail
Unmarshal
VITE
VUQN
VYPER
Vals
Expand All @@ -216,8 +222,11 @@ Viridis
Vitarana
Wagmi
Webgl
Wdua
Wrapf
XB
XMSB
XVCJ
YMSB
Yair
ZFTB
Expand Down Expand Up @@ -800,6 +809,7 @@ muslc
nanos
nanosec
nasm
nbhbp
nearcore
neard
neighbouring
Expand Down

0 comments on commit a52ae6b

Please sign in to comment.