mirror of
https://github.com/Discreetly/frontend.git
synced 2026-01-08 20:38:04 -05:00
starting jubmoji integration + package v bump for interfaces
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ node_modules
|
|||||||
vite.config.js.timestamp-*
|
vite.config.js.timestamp-*
|
||||||
vite.config.ts.timestamp-*
|
vite.config.ts.timestamp-*
|
||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
|
*.example.proof.txt
|
||||||
|
|||||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -20,7 +20,7 @@
|
|||||||
"@web3modal/wagmi": "^3.1.0",
|
"@web3modal/wagmi": "^3.1.0",
|
||||||
"autolinker": "^4.0.0",
|
"autolinker": "^4.0.0",
|
||||||
"date-fns": "^2.30.0",
|
"date-fns": "^2.30.0",
|
||||||
"discreetly-interfaces": "^0.1.39",
|
"discreetly-interfaces": "^0.1.40",
|
||||||
"dompurify": "^3.0.5",
|
"dompurify": "^3.0.5",
|
||||||
"idc-nullifier": "^0.0.6",
|
"idc-nullifier": "^0.0.6",
|
||||||
"libsodium-wrappers": "^0.7.11",
|
"libsodium-wrappers": "^0.7.11",
|
||||||
@@ -4522,9 +4522,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/discreetly-interfaces": {
|
"node_modules/discreetly-interfaces": {
|
||||||
"version": "0.1.39",
|
"version": "0.1.40",
|
||||||
"resolved": "https://registry.npmjs.org/discreetly-interfaces/-/discreetly-interfaces-0.1.39.tgz",
|
"resolved": "https://registry.npmjs.org/discreetly-interfaces/-/discreetly-interfaces-0.1.40.tgz",
|
||||||
"integrity": "sha512-7YJxjsko9gyUcrxPiJbQomK0xmJItiyFmpzjdr0aZEVkpjWhbY5tA0li1tLxE2LdEwkdWTt1encO1lRbq2k/Uw==",
|
"integrity": "sha512-hPz0xOxcESt7rEVrNOyJy2kU6Le4i2hAi7Cfd6i+TMlTk02Rbde4pVePhvBgr9C1tsKmk+bWzTXZ4wdaWyNJ7g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ethersproject/bytes": "^5.7.0",
|
"@ethersproject/bytes": "^5.7.0",
|
||||||
"@ethersproject/keccak256": "^5.7.0",
|
"@ethersproject/keccak256": "^5.7.0",
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
"@web3modal/wagmi": "^3.1.0",
|
"@web3modal/wagmi": "^3.1.0",
|
||||||
"autolinker": "^4.0.0",
|
"autolinker": "^4.0.0",
|
||||||
"date-fns": "^2.30.0",
|
"date-fns": "^2.30.0",
|
||||||
"discreetly-interfaces": "^0.1.39",
|
"discreetly-interfaces": "^0.1.40",
|
||||||
"dompurify": "^3.0.5",
|
"dompurify": "^3.0.5",
|
||||||
"idc-nullifier": "^0.0.6",
|
"idc-nullifier": "^0.0.6",
|
||||||
"libsodium-wrappers": "^0.7.11",
|
"libsodium-wrappers": "^0.7.11",
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ export async function handleGatewayRequest<T>(
|
|||||||
alertQueue.enqueue('Already added to room', 'error');
|
alertQueue.enqueue('Already added to room', 'error');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
alertQueue.enqueue(result.message, 'error');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -43,9 +43,11 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{roomName}
|
{roomName}
|
||||||
</h2>
|
</h2>
|
||||||
<div class="hidden sm:block ms-2 text-xs font-mono self-center">
|
{#if $configStore.beta}
|
||||||
[{timeToNextEpoch.toFixed(1)}/{epochLengthSeconds}s]
|
<div class="hidden sm:block ms-2 text-xs font-mono self-center">
|
||||||
</div>
|
[{timeToNextEpoch.toFixed(0)}/{epochLengthSeconds}s]
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row">
|
<div class="flex flex-row">
|
||||||
{#if connected && onlineMembers !== '?'}
|
{#if connected && onlineMembers !== '?'}
|
||||||
@@ -61,7 +63,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="flex flex-row place-content-center"
|
class="flex flex-row place-content-center"
|
||||||
title={`These are action points, you get ${userMessageLimit} every ${epochLengthSeconds} seconds`}
|
title={`These are action points, you get ${userMessageLimit} every ${epochLengthSeconds} seconds. [${timeToNextEpoch.toFixed(
|
||||||
|
0
|
||||||
|
)}/${epochLengthSeconds}s]`}
|
||||||
>
|
>
|
||||||
{#if $configStore.beta === true}<ExperienceMenu />{/if}
|
{#if $configStore.beta === true}<ExperienceMenu />{/if}
|
||||||
<AP health={userMessageLimit - $messagesSent} maxHealth={userMessageLimit} />
|
<AP health={userMessageLimit - $messagesSent} maxHealth={userMessageLimit} />
|
||||||
|
|||||||
2
src/routes/gateways/jubmoji/+page.svelte
Normal file
2
src/routes/gateways/jubmoji/+page.svelte
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
</script>
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
<div>Identity Backedup: {JSON.stringify($configStore.signUpStatus.identityBackedUp)}</div>
|
<div>Identity Backedup: {JSON.stringify($configStore.signUpStatus.identityBackedUp)}</div>
|
||||||
<div>IdentityStore Type: {IdentityStoreE[$configStore.identityStore]}</div>
|
<div>IdentityStore Type: {IdentityStoreE[$configStore.identityStore]}</div>
|
||||||
<div on:click={toggleBeta}>Beta: {JSON.stringify($configStore.beta)}</div>
|
<div on:click={toggleBeta}>Beta: {JSON.stringify($configStore.beta)}</div>
|
||||||
<div on:click={toggleAnxiety}>Beta: {JSON.stringify($configStore.anxietyBar)}</div>
|
<div on:click={toggleAnxiety}>AnxietyBar: {JSON.stringify($configStore.anxietyBar)}</div>
|
||||||
<div>Hashed Password: {JSON.stringify($configStore.hashedPwd)}</div>
|
<div>Hashed Password: {JSON.stringify($configStore.hashedPwd)}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user