aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-13 20:04:17 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-13 20:04:17 +0800
commit7363cf7db5bd58cd75c7d991bbac4545c56af94f (patch)
tree6ac5cec5b2d5a76ee2967a6910e52069d3523ee6 /ui/src
parent542358568c5ee0c5c96076fdadc7f1950f587732 (diff)
downloadDropOut-7363cf7db5bd58cd75c7d991bbac4545c56af94f.tar.gz
DropOut-7363cf7db5bd58cd75c7d991bbac4545c56af94f.zip
feat: integrate version retrieval and display in the app
Diffstat (limited to 'ui/src')
-rw-r--r--ui/src/App.svelte5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/src/App.svelte b/ui/src/App.svelte
index beb3403..9e9d220 100644
--- a/ui/src/App.svelte
+++ b/ui/src/App.svelte
@@ -1,5 +1,6 @@
<script lang="ts">
import { invoke } from "@tauri-apps/api/core";
+ import { getVersion } from "@tauri-apps/api/app";
import { open } from "@tauri-apps/plugin-shell";
import { onMount } from "svelte";
import DownloadMonitor from "./lib/DownloadMonitor.svelte";
@@ -9,6 +10,7 @@
let showConsole = false;
let currentView = "home";
let statusTimeout: any;
+ let appVersion = "...";
// Watch for status changes to auto-dismiss
$: if (status !== "Ready") {
@@ -70,6 +72,7 @@
onMount(async () => {
checkAccount();
loadSettings();
+ getVersion().then((v) => (appVersion = v));
try {
versions = await invoke("get_versions");
if (versions.length > 0) {
@@ -330,7 +333,7 @@
<div
class="p-4 w-full border-t border-zinc-800 flex justify-center lg:justify-start"
>
- <div class="text-xs text-zinc-600 font-mono">v0.1.3</div>
+ <div class="text-xs text-zinc-600 font-mono">v{appVersion}</div>
</div>
</aside>