From ca5d33a1cc7b74b2f1fd17d6d2eb41e4260c463e Mon Sep 17 00:00:00 2001 From: raymonable <101374892+raymonable@users.noreply.github.com> Date: Sat, 14 Feb 2026 23:41:22 -0500 Subject: [PATCH] feat: automatic keychip installation, improved onboarding ux, tweak styles, bomb israel --- AquaNet/bun.lockb | Bin 226539 -> 226531 bytes AquaNet/src/App.svelte | 7 +- AquaNet/src/app.sass | 23 ++ AquaNet/src/components/ActionCard.svelte | 11 +- AquaNet/src/components/CommunityCard.svelte | 8 +- .../settings/GeneralGameSettings.svelte | 4 +- AquaNet/src/libs/i18n.ts | 2 +- AquaNet/src/libs/i18n/en_ref.ts | 56 ++-- AquaNet/src/libs/setup.ts | 83 ++++++ AquaNet/src/pages/Home.svelte | 88 +++--- AquaNet/src/pages/Home/Communities.svelte | 42 +-- AquaNet/src/pages/Home/DashboardTabs.svelte | 33 +++ AquaNet/src/pages/Home/LinkCard.svelte | 265 ++++++++++-------- .../src/pages/Home/SetupInstructions.svelte | 152 +++++++--- 14 files changed, 526 insertions(+), 248 deletions(-) create mode 100644 AquaNet/src/libs/setup.ts create mode 100644 AquaNet/src/pages/Home/DashboardTabs.svelte diff --git a/AquaNet/bun.lockb b/AquaNet/bun.lockb index 79a22916a470fce7f492010d64a5ac8a50cca218..8cd8a7e868e6f571d5026e22da97e7b1a919aefc 100755 GIT binary patch delta 100 zcmaF;lK1gT-U)t;!Hxc{{)}7wnF{S$ii?uQ(^omn+%TkM`*Y0Oh+rDByQvxHW0aTs$cEN*8w>AR+%<&-Y delta 104 zcmaF-lK1sX-U)t;(T)DC{)}7wnF{TvAF*dL*#5zuDXm_8#eOCR5a2inp}A~|Q*+Bw vi}YM8N>YpR5_5t}iZb)kr&sM~Qey?H+`eExQvxHW1yn=ucFu!Lw>AR+KhPlI diff --git a/AquaNet/src/App.svelte b/AquaNet/src/App.svelte index 64268330..05d62511 100644 --- a/AquaNet/src/App.svelte +++ b/AquaNet/src/App.svelte @@ -13,6 +13,9 @@ import { t } from "./libs/i18n"; import Transfer from "./pages/Transfer/Transfer.svelte"; import { link } from "d3"; + import Communities from "./pages/Home/Communities.svelte"; + import LinkCard from "./pages/Home/LinkCard.svelte"; + import SetupInstructions from "./pages/Home/SetupInstructions.svelte"; console.log(`%c ┏━┓ ┳━┓━┓┏━ @@ -82,7 +85,9 @@ - + + + diff --git a/AquaNet/src/app.sass b/AquaNet/src/app.sass index 0301b28f..986f37dd 100644 --- a/AquaNet/src/app.sass +++ b/AquaNet/src/app.sass @@ -55,6 +55,29 @@ blockquote border-left: solid #ff7c7c 3px border-radius: vars.$border-radius + &::before + content: "⚠" + margin-right: 1em + + &.success + $c1: rgba(156, 255, 149, 0.05) + $c2: rgba(152, 255, 174, 0.02) + background: repeating-linear-gradient(45deg, $c1, $c1 10px, $c2 10px, $c2 20px) + border-left: solid #97fa8c 3px + + &::before + content: "✓" + margin-right: 1em + + &.info + $c1: rgba(149, 183, 255, 0.05) + $c2: rgba(152, 186, 255, 0.02) + background: repeating-linear-gradient(45deg, $c1, $c1 10px, $c2 10px, $c2 20px) + border-left: solid #6e8bff 3px + + &::before + content: "♢" + margin-right: 1em #app width: 100% diff --git a/AquaNet/src/components/ActionCard.svelte b/AquaNet/src/components/ActionCard.svelte index 036699ae..43e5b653 100644 --- a/AquaNet/src/components/ActionCard.svelte +++ b/AquaNet/src/components/ActionCard.svelte @@ -5,6 +5,8 @@ export let color: string = '179, 198, 255' export let icon: string + export let href: string | undefined + export let isSmall: boolean = false // Manually positioned icons const iconPos = [ @@ -19,7 +21,7 @@ ] - + diff --git a/AquaNet/src/pages/Home/Communities.svelte b/AquaNet/src/pages/Home/Communities.svelte index 6c117d2f..7abaf3b6 100644 --- a/AquaNet/src/pages/Home/Communities.svelte +++ b/AquaNet/src/pages/Home/Communities.svelte @@ -4,30 +4,34 @@ import { t } from "../../libs/i18n"; import CommunityCard from "../../components/CommunityCard.svelte"; import { DISCORD_INVITE, QQ_INVITE, TELEGRAM_INVITE } from "../../libs/config"; + import DashboardTabs from "./DashboardTabs.svelte"; -
-

{t('home.join-community')}

-
- {#if DISCORD_INVITE} - window.location.href = DISCORD_INVITE}> -

{t('home.community.discord')}

-
- {/if} +
+ +
+

{t('home.join-community')}

+
+ {#if DISCORD_INVITE} + +

{t('home.community.discord')}

+
+ {/if} - {#if TELEGRAM_INVITE} - window.location.href = TELEGRAM_INVITE}> -

{t('home.community.telegram')}

-
- {/if} + {#if TELEGRAM_INVITE} + +

{t('home.community.telegram')}

+
+ {/if} - {#if QQ_INVITE} - window.location.href = QQ_INVITE}> -

{t('home.community.qq')}

-
- {/if} + {#if QQ_INVITE} + +

{t('home.community.qq')}

+
+ {/if} +
-
+ \ No newline at end of file diff --git a/AquaNet/src/pages/Home/LinkCard.svelte b/AquaNet/src/pages/Home/LinkCard.svelte index 4667caff..47923bf5 100644 --- a/AquaNet/src/pages/Home/LinkCard.svelte +++ b/AquaNet/src/pages/Home/LinkCard.svelte @@ -8,6 +8,7 @@ import Icon from "@iconify/svelte" import StatusOverlays from "../../components/StatusOverlays.svelte" import { t } from "../../libs/i18n" + import DashboardTabs from "./DashboardTabs.svelte"; // State let state: 'ready' | 'linking-AC' | 'linking-SN' | 'loading' = "loading" @@ -262,125 +263,147 @@ break } } + + function generateRandom() { + inputAC = ""; + while (inputAC.length < 20) { + let digit = Math.floor(Math.random() * 10); + if (!((digit == 5 || digit == 3) && inputAC.length == 0)) + inputAC += digit; + }; + inputACChange(); + } - -