From e2f1f7bd37757b862d803f3cd77475b436fe8758 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Sat, 7 Dec 2024 02:42:07 +0800 Subject: [PATCH] chore: improved UI --- packages/stage/package.json | 1 + packages/stage/src/components/MainStage.vue | 178 ++++++++---------- packages/stage/src/components/Settings.vue | 121 ++++++++++-- packages/stage/src/components/ThreeDScene.vue | 12 +- packages/stage/src/components/VRMModel.vue | 12 +- packages/stage/src/composables/vrm/loader.ts | 1 + packages/stage/src/stores/settings.ts | 2 + pnpm-lock.yaml | 10 + uno.config.ts | 1 + 9 files changed, 205 insertions(+), 133 deletions(-) diff --git a/packages/stage/package.json b/packages/stage/package.json index 3346b0e0f..6f86f5196 100644 --- a/packages/stage/package.json +++ b/packages/stage/package.json @@ -64,6 +64,7 @@ "@airi-proj/elevenlabs": "workspace:^", "@iconify-json/carbon": "^1.2.4", "@iconify-json/eos-icons": "^1.2.1", + "@iconify-json/solar": "^1.2.1", "@intlify/unplugin-vue-i18n": "^6.0.0", "@shikijs/markdown-it": "^1.24.0", "@types/markdown-it-link-attributes": "^3.0.5", diff --git a/packages/stage/src/components/MainStage.vue b/packages/stage/src/components/MainStage.vue index a0e6c8210..b536c5ac2 100644 --- a/packages/stage/src/components/MainStage.vue +++ b/packages/stage/src/components/MainStage.vue @@ -41,7 +41,7 @@ const listening = ref(false) const live2DViewerRef = ref<{ setMotion: (motionName: string) => Promise }>() const supportedModels = ref<{ id: string, name?: string }[]>([]) const messageInput = ref('') -const messages = ref>([SystemPromptV2 as SystemMessage]) +const messages = ref>([SystemPromptV2 as SystemMessage, { role: 'assistant', content: 'A'.repeat(1000) }, { role: 'assistant', content: 'A'.repeat(1000) }]) const streamingMessage = ref({ role: 'assistant', content: '' }) const audioAnalyser = ref() const mouthOpenSize = ref(0) @@ -269,52 +269,17 @@ onUnmounted(() => {