Skip to content

Commit 7966ae8

Browse files
code formatting
1 parent feb40a2 commit 7966ae8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+987
-413
lines changed

.prettierrc

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,14 @@
55
"printWidth": 100,
66
"plugins": ["prettier-plugin-svelte"],
77
"pluginSearchDirs": ["."],
8-
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
8+
"overrides": [
9+
{
10+
"files": "*.svelte",
11+
"options": {
12+
"parser": "svelte"
13+
}
14+
}
15+
],
16+
"singleAttributePerLine": true,
17+
"svelteBracketNewLine": false
918
}

src/app.html

+26-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
11
<!DOCTYPE html>
2-
<html lang="en" class="dark">
2+
<html
3+
lang="en"
4+
class="dark"
5+
>
36
<head>
47
<meta charset="utf-8" />
5-
<meta name="msapplication-TileColor" content="#202626" />
6-
<meta name="theme-color" content="#FA5F5F" />
7-
<meta name="viewport" content="width=device-width" />
8+
<meta
9+
name="msapplication-TileColor"
10+
content="#202626"
11+
/>
12+
<meta
13+
name="theme-color"
14+
content="#FA5F5F"
15+
/>
16+
<meta
17+
name="viewport"
18+
content="width=device-width"
19+
/>
820
%sveltekit.head%
921
</head>
10-
<body data-sveltekit-preload-data="hover" data-theme="discreetly-theme">
11-
<div style="display: contents" class="h-full overflow-hidden">%sveltekit.body%</div>
22+
<body
23+
data-sveltekit-preload-data="hover"
24+
data-theme="discreetly-theme"
25+
>
26+
<div
27+
style="display: contents"
28+
class="h-screen overflow-hidden"
29+
>
30+
%sveltekit.body%
31+
</div>
1232
</body>
1333
</html>

src/lib/components/ActionPoints/AP.svelte

+20-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,28 @@
1010
</script>
1111

1212
{#if $configStore.actionRepresentation == ActionRepresentationE.AP}
13-
<AP {health} {maxHealth} />
13+
<AP
14+
{health}
15+
{maxHealth}
16+
/>
1417
{:else if $configStore.actionRepresentation == ActionRepresentationE.Hearts}
15-
<Hearts {health} {maxHealth} />
18+
<Hearts
19+
{health}
20+
{maxHealth}
21+
/>
1622
{:else if $configStore.actionRepresentation == ActionRepresentationE.Shields}
17-
<Shields {health} {maxHealth} />
23+
<Shields
24+
{health}
25+
{maxHealth}
26+
/>
1827
{:else if $configStore.actionRepresentation == ActionRepresentationE.Battery}
19-
<Battery {health} {maxHealth} />
28+
<Battery
29+
{health}
30+
{maxHealth}
31+
/>
2032
{:else}
21-
<AP {health} {maxHealth} />
33+
<AP
34+
{health}
35+
{maxHealth}
36+
/>
2237
{/if}

src/lib/components/ActionPoints/ActionPoints.svelte

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
$: emptycircles = maxHealth - health;
1111
</script>
1212

13-
<Ratings value={health} max={maxHealth} spacing="space-x-0">
13+
<Ratings
14+
value={health}
15+
max={maxHealth}
16+
spacing="space-x-0"
17+
>
1418
<svelte:fragment slot="empty">
1519
<CircleEmpty class="w-4 h-4 text-surface-600-300-token" />
1620
</svelte:fragment>
+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<script lang="ts">
2+
import Group from 'svelte-material-icons/AccountGroup.svelte';
3+
import MemberSecret from 'svelte-material-icons/AccountKey.svelte';
4+
import FingerPrint from 'svelte-material-icons/Fingerprint.svelte';
5+
import OneToMany from 'svelte-material-icons/RelationOneToMany.svelte';
6+
import Card from '../Utils/Card.svelte';
7+
</script>
8+
9+
<Card>
10+
<svelte:fragment slot="header">RLN Simplified</svelte:fragment>
11+
<div
12+
id="explainer"
13+
class="flex flex-col gap-3"
14+
>
15+
<div class="flex flex-col">
16+
<figure class="flex flex-row"><OneToMany /></figure>
17+
<p>I can prove to you that</p>
18+
</div>
19+
<div class="flex flex-col">
20+
<figure class="flex flex-row">
21+
<FingerPrint />
22+
<div class="flex flex-row gap-1">(<MemberSecret />)</div>
23+
</figure>
24+
<p>I know some secret whose fingerprint</p>
25+
</div>
26+
27+
<div class="flex flex-col">
28+
<figure class="flex flex-row">∈</figure>
29+
<p>is in</p>
30+
</div>
31+
32+
<div class="flex flex-col">
33+
<figure class="flex flex-row"><Group /></figure>
34+
<p>Some Group of fingerprints</p>
35+
</div>
36+
37+
<div class="flex flex-col">
38+
<p>and</p>
39+
</div>
40+
</div>
41+
<svelte:fragment slot="footer">
42+
<p>
43+
RLN (Rate-Limiting Nullifier) is a zk-gadget/protocol that enables spam prevention mechanism
44+
for anonymous environments
45+
</p>
46+
<p class="my-3">
47+
Read more about <a
48+
class="anchor"
49+
href="https://rate-limiting-nullifier.github.io/rln-docs/">RLN</a
50+
>.
51+
</p>
52+
</svelte:fragment>
53+
</Card>
54+
55+
<style>
56+
div {
57+
@apply place-items-center;
58+
}
59+
60+
#explainer figure {
61+
@apply place-items-center;
62+
@apply text-2xl;
63+
}
64+
#explainer p {
65+
@apply text-center;
66+
@apply italic;
67+
@apply uppercase;
68+
}
69+
</style>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<script lang="ts">
2+
import Group from 'svelte-material-icons/AccountGroup.svelte';
3+
import MemberSecret from 'svelte-material-icons/AccountKey.svelte';
4+
import FingerPrint from 'svelte-material-icons/Fingerprint.svelte';
5+
import OneToMany from 'svelte-material-icons/RelationOneToMany.svelte';
6+
import Card from '../Utils/Card.svelte';
7+
</script>
8+
9+
<Card>
10+
<svelte:fragment slot="header">Semaphore Simplified</svelte:fragment>
11+
<div
12+
id="explainer"
13+
class="flex flex-col gap-3"
14+
>
15+
<div class="flex flex-col">
16+
<figure class="flex flex-row"><OneToMany /></figure>
17+
<p>I can prove to you that</p>
18+
</div>
19+
<div class="flex flex-col">
20+
<figure class="flex flex-row">
21+
<FingerPrint />
22+
<div class="flex flex-row gap-1">(<MemberSecret />)</div>
23+
</figure>
24+
<p>I know some secret whose fingerprint</p>
25+
</div>
26+
27+
<div class="flex flex-col">
28+
<figure class="flex flex-row">∈</figure>
29+
<p>is in</p>
30+
</div>
31+
32+
<div class="flex flex-col">
33+
<figure class="flex flex-row"><Group /></figure>
34+
<p>Some Group of fingerprints</p>
35+
</div>
36+
</div>
37+
<svelte:fragment slot="footer">
38+
<p>
39+
Semaphore is a zero-knowledge protocol that allows you to cast a signal (for example, a vote
40+
or endorsement) as a provable group member without revealing your identity. Additionally, it
41+
provides a simple mechanism to prevent double-signaling. Use cases include private voting,
42+
whistleblowing, anonymous DAOs and mixers.
43+
</p>
44+
<p class="my-3">
45+
Read more about <a
46+
class="anchor"
47+
href="https://semaphore.pse.dev/docs/introduction">Semaphore</a
48+
>.
49+
</p>
50+
</svelte:fragment>
51+
</Card>
52+
53+
<style>
54+
div {
55+
@apply place-items-center;
56+
}
57+
58+
#explainer figure {
59+
@apply place-items-center;
60+
@apply text-2xl;
61+
}
62+
#explainer p {
63+
@apply text-center;
64+
@apply italic;
65+
@apply uppercase;
66+
}
67+
</style>

src/lib/components/Gateways/EthereumGroup.svelte

+9-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@
8282
<div class="flex flex-col gap-3 justify-between">
8383
<div>
8484
<h3 class="h4 mb-2"><span class="text-success-500">Step 1:</span> Connect your wallet</h3>
85-
<button bind:this={btnEl} class="btn variant-outline-tertiary">Connect</button>
85+
<button
86+
bind:this={btnEl}
87+
class="btn variant-outline-tertiary">Connect</button
88+
>
8689
</div>
8790
{#if isConnected}
8891
<div>
@@ -100,7 +103,11 @@
100103
<span class="text-success-500">Step 2:</span> Sign your Identity Commitment to prove ownership
101104
of this address
102105
</h3>
103-
<button on:click={proveOwnership} id="btn" class="btn variant-outline-success">Sign</button>
106+
<button
107+
on:click={proveOwnership}
108+
id="btn"
109+
class="btn variant-outline-success">Sign</button
110+
>
104111
</div>
105112
{:else if loadingRooms}
106113
<p>Loading rooms...</p>

src/lib/components/Gateways/InviteCode.svelte

+4-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@
8888
</script>
8989

9090
{#if !hideInput}
91-
<label class="label" for="inviteCode">
91+
<label
92+
class="label"
93+
for="inviteCode"
94+
>
9295
<span class="h5">Enter Invite Code:</span>
9396
<input
9497
class="input"

src/lib/components/Gateways/Jubmojis.svelte

+7-2
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,20 @@
4040
{#if proof}
4141
<h3 class="h4 mb-2">Proof Found!</h3>
4242
{#if !loading}
43-
<div class="btn variant-filled-success" on:click={() => proof && validateProof(proof)}>
43+
<div
44+
class="btn variant-filled-success"
45+
on:click={() => proof && validateProof(proof)}
46+
>
4447
<Creation class="mr-2" />Prove Your Power<MagicStaff />
4548
</div>
4649
{:else}
4750
<div class="text-primary">Proving Powers...</div>
4851
<Loading />
4952
{/if}
5053
{:else}
51-
<a class="btn variant-ghost-secondary" href="https://www.jubmoji.quest/powers"
54+
<a
55+
class="btn variant-ghost-secondary"
56+
href="https://www.jubmoji.quest/powers"
5257
><Creation class="mr-2" />Harness Your Power<MagicStaff /></a
5358
>
5459
{/if}

src/lib/components/Identity/BackupIdentity.svelte

+18-3
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,25 @@
3636
>Download Identity Backup as JSON</a
3737
>
3838
{#if !revealIdentity}
39-
<div class="btn variant-ghost-success" on:click={reveal}>Show Identity</div>
39+
<div
40+
class="btn variant-ghost-success"
41+
on:click={reveal}
42+
>
43+
Show Identity
44+
</div>
4045
{:else}
41-
<div class="btn variant-ghost-success" on:click={reveal}>Hide Identity</div>
42-
<textarea id="reveleadIdentity" class="textarea text-sm" rows="9" value={id} />
46+
<div
47+
class="btn variant-ghost-success"
48+
on:click={reveal}
49+
>
50+
Hide Identity
51+
</div>
52+
<textarea
53+
id="reveleadIdentity"
54+
class="textarea text-sm"
55+
rows="9"
56+
value={id}
57+
/>
4358
{/if}
4459
{:else if $identityExists == 'encrypted'}
4560
<p class="h5 text-primary-500">

src/lib/components/Identity/DeleteIdentity.svelte

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@
4747
<h3 class="h4">Delete Your Identity & Reset Application</h3>
4848
</header>
4949
<section class="px-4 pt-4">
50-
<input type="checkbox" id="checkbox" class="mx-2 p-1" />
50+
<input
51+
type="checkbox"
52+
id="checkbox"
53+
class="mx-2 p-1"
54+
/>
5155
<span class="ms-2"
5256
>I promise I backed up my identity, or I really want to destroy it forever.</span
5357
>

src/lib/components/Identity/RestoreIdentity.svelte

+4-1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@
122122
placeholder="Paste your Identity Here"
123123
/></label
124124
>
125-
<a class="btn btn-sm variant-ringed-success mb-5" on:click={recoverFromJSON}>Recover</a>
125+
<a
126+
class="btn btn-sm variant-ringed-success mb-5"
127+
on:click={recoverFromJSON}>Recover</a
128+
>
126129
</section>
127130
</div>

src/lib/components/Onboarding/Demo.svelte

-11
This file was deleted.

src/lib/components/Onboarding/Gateways.svelte

+8-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
<SelectServer />
1616
</div>
1717
{/if}
18-
<div id="gateway-cards" class="grid">
18+
<div
19+
id="gateway-cards"
20+
class="grid"
21+
>
1922
<Card>
2023
<svelte:fragment slot="header">Join via invite code</svelte:fragment>
2124
<svelte:fragment slot="description">If you were given an invite code, you can</svelte:fragment>
@@ -64,8 +67,10 @@
6467
><span class="flex gap-3">The Word <BullHorn /></span></svelte:fragment
6568
>
6669
<svelte:fragment slot="description"
67-
>Do you know <a class="link" target="_blank" href="https://github.com/Mach-34/the-word/"
68-
>the word</a
70+
>Do you know <a
71+
class="link"
72+
target="_blank"
73+
href="https://github.com/Mach-34/the-word/">the word</a
6974
>? Prove it.
7075
</svelte:fragment>
7176
<TheWord />

0 commit comments

Comments
 (0)