From da0d79f0db873c08fab3bc85023167e174d18b0e Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Mon, 19 Jan 2026 14:17:32 +0800 Subject: chore(ui): refactor workspace to monorepo --- packages/ui/src/components/BottomBar.svelte | 250 ++++++++++++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 packages/ui/src/components/BottomBar.svelte (limited to 'packages/ui/src/components/BottomBar.svelte') diff --git a/packages/ui/src/components/BottomBar.svelte b/packages/ui/src/components/BottomBar.svelte new file mode 100644 index 0000000..19cf35d --- /dev/null +++ b/packages/ui/src/components/BottomBar.svelte @@ -0,0 +1,250 @@ + + +
+ +
+
authState.openLoginModal()} + role="button" + tabindex="0" + onkeydown={(e) => e.key === "Enter" && authState.openLoginModal()} + > +
+ {#if authState.currentAccount} + {authState.currentAccount.username} + {:else} + + {/if} +
+
+
+ {authState.currentAccount ? authState.currentAccount.username : "Login Account"} +
+
+ {#if authState.currentAccount} + {#if authState.currentAccount.type === "Microsoft"} + {#if authState.currentAccount.expires_at && authState.currentAccount.expires_at * 1000 < Date.now()} + + Expired + {:else} + + Online + {/if} + {:else} + + Offline + {/if} + {:else} + + Guest + {/if} +
+
+
+ +
+ + + +
+ + +
+
+ +
+ + + {#if isVersionDropdownOpen && installedVersions.length > 0} +
+ {#each versionOptions as version} + + {/each} +
+ {/if} +
+
+ + +
+
-- cgit v1.2.3-70-g09d2