From 3ca5be66584acf958f3fe40cc10aca2eb7f7a5ae Mon Sep 17 00:00:00 2001 From: DecDuck Date: Sun, 5 Jan 2025 18:32:22 +1100 Subject: [PATCH] feat(library ui): add installed ui in the library menu --- desktop/composables/game.ts | 2 +- desktop/pages/library.vue | 40 +++++++++++++++++++++++----------- desktop/src-tauri/src/state.rs | 10 ++++++--- 3 files changed, 35 insertions(+), 17 deletions(-) diff --git a/desktop/composables/game.ts b/desktop/composables/game.ts index 7f28435e..c2ffc0c4 100644 --- a/desktop/composables/game.ts +++ b/desktop/composables/game.ts @@ -12,7 +12,7 @@ export type SerializedGameStatus = [ OptionGameStatus | null ]; -const parseStatus = (status: SerializedGameStatus): GameStatus => { +export const parseStatus = (status: SerializedGameStatus): GameStatus => { if (status[0]) { return { type: status[0].type, diff --git a/desktop/pages/library.vue b/desktop/pages/library.vue index a1838d98..925addba 100644 --- a/desktop/pages/library.vue +++ b/desktop/pages/library.vue @@ -1,21 +1,25 @@