diff --git a/.prettierrc b/.prettierrc index a77fdde..cad3ce3 100644 --- a/.prettierrc +++ b/.prettierrc @@ -5,5 +5,14 @@ "printWidth": 100, "plugins": ["prettier-plugin-svelte"], "pluginSearchDirs": ["."], - "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] + "overrides": [ + { + "files": "*.svelte", + "options": { + "parser": "svelte" + } + } + ], + "singleAttributePerLine": true, + "svelteBracketNewLine": false } diff --git a/src/app.html b/src/app.html index a281af5..596d25b 100644 --- a/src/app.html +++ b/src/app.html @@ -1,13 +1,33 @@ - + - - - + + + %sveltekit.head% - -
%sveltekit.body%
+ +
+ %sveltekit.body% +
diff --git a/src/lib/components/ActionPoints/AP.svelte b/src/lib/components/ActionPoints/AP.svelte index f066176..64f252f 100644 --- a/src/lib/components/ActionPoints/AP.svelte +++ b/src/lib/components/ActionPoints/AP.svelte @@ -10,13 +10,28 @@ {#if $configStore.actionRepresentation == ActionRepresentationE.AP} - + {:else if $configStore.actionRepresentation == ActionRepresentationE.Hearts} - + {:else if $configStore.actionRepresentation == ActionRepresentationE.Shields} - + {:else if $configStore.actionRepresentation == ActionRepresentationE.Battery} - + {:else} - + {/if} diff --git a/src/lib/components/ActionPoints/ActionPoints.svelte b/src/lib/components/ActionPoints/ActionPoints.svelte index 613e185..16b535d 100644 --- a/src/lib/components/ActionPoints/ActionPoints.svelte +++ b/src/lib/components/ActionPoints/ActionPoints.svelte @@ -10,7 +10,11 @@ $: emptycircles = maxHealth - health; - + diff --git a/src/lib/components/Explainers/RLN.svelte b/src/lib/components/Explainers/RLN.svelte new file mode 100644 index 0000000..0d41192 --- /dev/null +++ b/src/lib/components/Explainers/RLN.svelte @@ -0,0 +1,69 @@ + + + + RLN Simplified +
+
+
+

I can prove to you that

+
+
+
+ +
()
+
+

I know some secret whose fingerprint

+
+ +
+
∈
+

is in

+
+ +
+
+

Some Group of fingerprints

+
+ +
+

and

+
+
+ +

+ RLN (Rate-Limiting Nullifier) is a zk-gadget/protocol that enables spam prevention mechanism + for anonymous environments +

+

+ Read more about RLN. +

+
+
+ + diff --git a/src/lib/components/Explainers/Semaphore.svelte b/src/lib/components/Explainers/Semaphore.svelte new file mode 100644 index 0000000..7fbb3a5 --- /dev/null +++ b/src/lib/components/Explainers/Semaphore.svelte @@ -0,0 +1,67 @@ + + + + Semaphore Simplified +
+
+
+

I can prove to you that

+
+
+
+ +
()
+
+

I know some secret whose fingerprint

+
+ +
+
∈
+

is in

+
+ +
+
+

Some Group of fingerprints

+
+
+ +

+ Semaphore is a zero-knowledge protocol that allows you to cast a signal (for example, a vote + or endorsement) as a provable group member without revealing your identity. Additionally, it + provides a simple mechanism to prevent double-signaling. Use cases include private voting, + whistleblowing, anonymous DAOs and mixers. +

+

+ Read more about Semaphore. +

+
+
+ + diff --git a/src/lib/components/Gateways/EthereumGroup.svelte b/src/lib/components/Gateways/EthereumGroup.svelte index 7a0ea95..7e504d3 100644 --- a/src/lib/components/Gateways/EthereumGroup.svelte +++ b/src/lib/components/Gateways/EthereumGroup.svelte @@ -82,7 +82,10 @@

Step 1: Connect your wallet

- +
{#if isConnected}
@@ -100,7 +103,11 @@ Step 2: Sign your Identity Commitment to prove ownership of this address - +
{:else if loadingRooms}

Loading rooms...

diff --git a/src/lib/components/Gateways/InviteCode.svelte b/src/lib/components/Gateways/InviteCode.svelte index 3ae5195..56f6e63 100644 --- a/src/lib/components/Gateways/InviteCode.svelte +++ b/src/lib/components/Gateways/InviteCode.svelte @@ -88,7 +88,10 @@ {#if !hideInput} -