aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/stores/game.svelte.ts
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-15 14:56:53 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-15 14:56:53 +0800
commitfda94a25d9cd7d777163ce968e5a6b6bc7ea41a1 (patch)
tree6927424776295493339e97161e38107c4134901c /ui/src/stores/game.svelte.ts
parent201743ed0bdd74af06b3e4e67099fc3e38c3f5c0 (diff)
downloadDropOut-fda94a25d9cd7d777163ce968e5a6b6bc7ea41a1.tar.gz
DropOut-fda94a25d9cd7d777163ce968e5a6b6bc7ea41a1.zip
feat: Add ReleasesState class to manage GitHub releases and implement loading logic
Diffstat (limited to 'ui/src/stores/game.svelte.ts')
-rw-r--r--ui/src/stores/game.svelte.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/stores/game.svelte.ts b/ui/src/stores/game.svelte.ts
index 0af3daf..28b2db5 100644
--- a/ui/src/stores/game.svelte.ts
+++ b/ui/src/stores/game.svelte.ts
@@ -7,6 +7,10 @@ export class GameState {
versions = $state<Version[]>([]);
selectedVersion = $state("");
+ get latestRelease() {
+ return this.versions.find((v) => v.type === "release");
+ }
+
async loadVersions() {
try {
this.versions = await invoke<Version[]>("get_versions");