From d53ff7d1ef4637bcb38f73e85a7eec13de883cf8 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Mon, 26 May 2025 00:39:30 +0800 Subject: [PATCH] fix(apps/stage-tamagotchi,apps/stage-web,stage-ui): bad colors & styles, and global font weight fix --- apps/stage-tamagotchi/index.html | 2 +- .../src/components/InteractiveArea.vue | 2 +- .../stage-tamagotchi/src/layouts/settings.vue | 41 ++++++++++++------- apps/stage-tamagotchi/src/pages/index.vue | 4 +- .../airi-card/components/CardListItem.vue | 2 +- .../src/pages/settings/index.vue | 2 +- .../pages/settings/providers/anthropic.vue | 2 +- .../airi-card/components/CardListItem.vue | 2 +- apps/stage-web/src/pages/settings/index.vue | 2 +- .../pages/settings/providers/anthropic.vue | 2 +- .../src/components/Layouts/PageHeader.vue | 10 ++++- .../stage-ui/src/components/Menu/IconItem.vue | 2 +- .../src/components/Menu/IconStatusItem.vue | 2 +- 13 files changed, 47 insertions(+), 28 deletions(-) diff --git a/apps/stage-tamagotchi/index.html b/apps/stage-tamagotchi/index.html index f4624dc62..3f7b9e5c8 100644 --- a/apps/stage-tamagotchi/index.html +++ b/apps/stage-tamagotchi/index.html @@ -19,7 +19,7 @@ - +
diff --git a/apps/stage-tamagotchi/src/components/InteractiveArea.vue b/apps/stage-tamagotchi/src/components/InteractiveArea.vue index c62e7c3f3..c7f7b812e 100644 --- a/apps/stage-tamagotchi/src/components/InteractiveArea.vue +++ b/apps/stage-tamagotchi/src/components/InteractiveArea.vue @@ -112,7 +112,7 @@ onMounted(() => { :placeholder="t('stage.message')" border="solid 2 primary-100" text="primary-400 hover:primary-600 placeholder:primary-400 placeholder:hover:primary-600" - bg="primary-50 dark:[#3c2632]" max-h="[10lh]" min-h="[1lh]" + bg="primary-50 dark:primary-100" max-h="[10lh]" min-h="[1lh]" w-full resize-none overflow-y-scroll rounded-xl p-2 font-medium outline-none transition="all duration-250 ease-in-out placeholder:all placeholder:duration-250 placeholder:ease-in-out" @submit="handleSend" diff --git a/apps/stage-tamagotchi/src/layouts/settings.vue b/apps/stage-tamagotchi/src/layouts/settings.vue index 6f436b1ab..522a23f4d 100644 --- a/apps/stage-tamagotchi/src/layouts/settings.vue +++ b/apps/stage-tamagotchi/src/layouts/settings.vue @@ -41,10 +41,6 @@ const routeHeaderMetadataMap = computed(() => { subtitle: t('settings.title'), title: t('settings.pages.modules.speech.title'), }, - '/settings/modules/mcp': { - subtitle: t('settings.title'), - title: t('settings.pages.modules.mcp-server.title'), - }, '/settings/modules/hearing': { subtitle: t('settings.title'), title: t('settings.pages.modules.hearing.title'), @@ -84,12 +80,18 @@ const routeHeaderMetadataMap = computed(() => { '/settings': { title: t('settings.title'), }, + + // Tamagotchi specific + '/settings/modules/mcp': { + subtitle: t('settings.title'), + title: t('settings.pages.modules.mcp-server.title'), + }, } - for (const key in allProvidersMetadata.value) { - map[`/settings/providers/${key}`] = { + for (const metadata of allProvidersMetadata.value) { + map[`/settings/providers/${metadata.id}`] = { subtitle: t('settings.title'), - title: t(allProvidersMetadata.value[key]?.nameKey), + title: t(metadata.nameKey), } } @@ -101,13 +103,22 @@ const routeHeaderMetadata = computed(() => routeHeaderMetadataMap.value[route.pa diff --git a/apps/stage-tamagotchi/src/pages/index.vue b/apps/stage-tamagotchi/src/pages/index.vue index 7a37f778a..68caeb679 100644 --- a/apps/stage-tamagotchi/src/pages/index.vue +++ b/apps/stage-tamagotchi/src/pages/index.vue @@ -74,7 +74,7 @@ onMounted(async () => {
@@ -83,7 +83,7 @@ onMounted(async () => {
diff --git a/apps/stage-tamagotchi/src/pages/settings/airi-card/components/CardListItem.vue b/apps/stage-tamagotchi/src/pages/settings/airi-card/components/CardListItem.vue index c728cf398..b3d1b951b 100644 --- a/apps/stage-tamagotchi/src/pages/settings/airi-card/components/CardListItem.vue +++ b/apps/stage-tamagotchi/src/pages/settings/airi-card/components/CardListItem.vue @@ -44,7 +44,7 @@ const emit = defineEmits<{ >
-

+

{{ name }}

diff --git a/apps/stage-tamagotchi/src/pages/settings/index.vue b/apps/stage-tamagotchi/src/pages/settings/index.vue index b95a97c8f..e97e0d53d 100644 --- a/apps/stage-tamagotchi/src/pages/settings/index.vue +++ b/apps/stage-tamagotchi/src/pages/settings/index.vue @@ -106,7 +106,7 @@ const settings = computed(() => [