From 2c93bf1621c0a207349be1ecab38bf796ab09e67 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Sat, 28 Jun 2025 17:36:35 +0800 Subject: [PATCH] feat(stage-tamagotchi): resource island & loading progress --- apps/stage-tamagotchi/package.json | 1 + .../ResourceStatusIsland/LoadingProgress.vue | 118 ++++++++++++++++++ .../Widgets/ResourceStatusIsland/index.vue | 7 ++ apps/stage-tamagotchi/src/pages/index.vue | 2 + cspell.config.yaml | 1 + pnpm-lock.yaml | 10 ++ 6 files changed, 139 insertions(+) create mode 100644 apps/stage-tamagotchi/src/components/Widgets/ResourceStatusIsland/LoadingProgress.vue create mode 100644 apps/stage-tamagotchi/src/components/Widgets/ResourceStatusIsland/index.vue diff --git a/apps/stage-tamagotchi/package.json b/apps/stage-tamagotchi/package.json index 3d31a2dd8..0c3d723e0 100644 --- a/apps/stage-tamagotchi/package.json +++ b/apps/stage-tamagotchi/package.json @@ -78,6 +78,7 @@ "@iconify-json/eos-icons": "^1.2.2", "@iconify-json/lucide": "^1.2.52", "@iconify-json/mingcute": "^1.2.3", + "@iconify-json/ph": "^1.2.2", "@iconify-json/simple-icons": "^1.2.40", "@iconify-json/solar": "^1.2.2", "@iconify-json/svg-spinners": "^1.2.2", diff --git a/apps/stage-tamagotchi/src/components/Widgets/ResourceStatusIsland/LoadingProgress.vue b/apps/stage-tamagotchi/src/components/Widgets/ResourceStatusIsland/LoadingProgress.vue new file mode 100644 index 000000000..21bcbfb86 --- /dev/null +++ b/apps/stage-tamagotchi/src/components/Widgets/ResourceStatusIsland/LoadingProgress.vue @@ -0,0 +1,118 @@ + + + diff --git a/apps/stage-tamagotchi/src/components/Widgets/ResourceStatusIsland/index.vue b/apps/stage-tamagotchi/src/components/Widgets/ResourceStatusIsland/index.vue new file mode 100644 index 000000000..314c2fada --- /dev/null +++ b/apps/stage-tamagotchi/src/components/Widgets/ResourceStatusIsland/index.vue @@ -0,0 +1,7 @@ + + + diff --git a/apps/stage-tamagotchi/src/pages/index.vue b/apps/stage-tamagotchi/src/pages/index.vue index 5f773c76a..753b64e16 100644 --- a/apps/stage-tamagotchi/src/pages/index.vue +++ b/apps/stage-tamagotchi/src/pages/index.vue @@ -7,6 +7,7 @@ import { listen } from '@tauri-apps/api/event' import { storeToRefs } from 'pinia' import { computed, onMounted, onUnmounted, ref } from 'vue' +import ResourceStatusIsland from '../components/Widgets/ResourceStatusIsland/index.vue' import { useAppRuntime } from '../composables/runtime' import { useWindowShortcuts } from '../composables/window-shortcuts' import { useWindowControlStore } from '../stores/window-controls' @@ -146,6 +147,7 @@ if (import.meta.hot) { // For better DX >
+