From 8b591122eaedcf8516e59e9bc9187b9451024f05 Mon Sep 17 00:00:00 2001 From: LemonNeko Date: Mon, 6 Jan 2025 19:41:19 +0800 Subject: [PATCH 01/13] tmp commit --- packages/ui/package.json | 13 +++++++++++++ packages/ui/tsconfig.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 packages/ui/package.json create mode 100644 packages/ui/tsconfig.json diff --git a/packages/ui/package.json b/packages/ui/package.json new file mode 100644 index 0000000..9922d20 --- /dev/null +++ b/packages/ui/package.json @@ -0,0 +1,13 @@ +{ + "name": "@proj-airi/stage-core", + "type": "module", + "private": true, + "packageManager": "pnpm@9.15.2", + "description": "Shared core for stage", + "author": { + "name": "Neko Ayaka", + "email": "neko@ayaka.moe", + "url": "https://github.com/nekomeowww" + }, + "license": "MIT" +} diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json new file mode 100644 index 0000000..b831eda --- /dev/null +++ b/packages/ui/tsconfig.json @@ -0,0 +1,31 @@ +{ + "compilerOptions": { + "target": "ESNext", + "jsx": "preserve", + "lib": ["DOM", "ESNext"], + "baseUrl": ".", + "module": "ESNext", + "moduleResolution": "Bundler", + "resolveJsonModule": true, + "types": [ + "vitest" + ], + "allowJs": true, + "strict": true, + "strictNullChecks": true, + "noUnusedLocals": true, + "noEmit": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "verbatimModuleSyntax": true, + "skipLibCheck": true + }, + "vueCompilerOptions": { + "plugins": [ + "@vue-macros/volar/define-models", + "@vue-macros/volar/define-slots" + ] + }, + "exclude": ["dist", "node_modules"] +} From ad05e886da1ffb59a5256649342707a8c8b6494a Mon Sep 17 00:00:00 2001 From: LemonNeko Date: Wed, 8 Jan 2025 00:41:26 +0800 Subject: [PATCH 02/13] tmp commit --- packages/stage/package.json | 5 +-- packages/stage/src/App.vue | 10 +++++ .../stage/src/components/AudioWaveform.vue | 2 +- .../components/Layouts/InteractiveArea.vue | 16 +++---- .../Layouts/MobileInteractiveArea.vue | 14 +++--- packages/stage/src/components/Settings.vue | 12 +++--- .../src/components/Widgets/ChatHistory.vue | 4 +- .../components/Widgets/MobileChatHistory.vue | 4 +- .../src/components/Widgets/MobileSettings.vue | 10 ++--- packages/stage/src/pages/index.vue | 6 +-- packages/stage/src/pages/queue.vue | 2 +- .../stage/src/pages/test/queues/delays.vue | 8 ++-- .../stage/src/pages/test/queues/emotions.vue | 10 ++--- .../stage/src/pages/test/queues/messages.vue | 10 ++--- packages/stage/src/typed-router.d.ts | 9 ++++ packages/stage/tamagotchi/index.html | 19 -------- packages/stage/vite.config.ts | 11 ++++- packages/tamagotchi/package.json | 3 +- packages/tamagotchi/src/main/index.ts | 12 ++---- packages/tamagotchi/src/renderer/index.html | 3 +- .../src/renderer/src}/App.vue | 8 ++-- .../renderer/src/components/ChatHistory.vue} | 6 +-- .../src/components/InteractiveArea.vue} | 17 ++++---- .../src/renderer/src/components/Settings.vue} | 9 ++-- .../src/renderer/src}/main.css | 0 .../src/renderer/src}/main.ts | 3 +- .../src/renderer/src}/themes.css | 0 .../src/renderer/src}/transitions.css | 0 packages/tamagotchi/tsconfig.web.json | 1 + packages/ui/build.config.ts | 19 ++++++++ packages/ui/package.json | 43 ++++++++++++++++++- .../src/components/BasicTextarea.vue | 0 .../src/components/Collapsable.vue | 0 .../src/components/DataGui/Range.vue | 0 .../src/components/Live2D/Viewer.vue | 0 .../src/components/Scenes/Live2D.vue | 0 .../src/components/Scenes/VRM.vue | 0 .../{stage => ui}/src/components/Screen.vue | 0 .../src/components/TransitionVertical.vue | 0 .../src/components/VRM/Model.vue | 0 .../src/components/Widgets/Stage.vue | 0 packages/ui/src/components/index.ts | 10 +++++ packages/ui/src/composables/index.ts | 6 +++ .../src/composables/llmmarkerParser.ts | 0 .../{stage => ui}/src/composables/markdown.ts | 0 .../{stage => ui}/src/composables/micvad.ts | 0 .../{stage => ui}/src/composables/queue.ts | 0 .../{stage => ui}/src/composables/queues.ts | 0 .../src/composables/vrm/animation.ts | 0 .../{stage => ui}/src/composables/vrm/core.ts | 0 .../src/composables/vrm/expression.ts | 0 packages/ui/src/composables/vrm/index.ts | 4 ++ .../src/composables/vrm/loader.ts | 0 .../{stage => ui}/src/composables/whisper.ts | 0 .../{stage => ui}/src/constants/elevenlabs.ts | 0 .../{stage => ui}/src/constants/emotions.ts | 0 packages/{stage => ui}/src/constants/index.ts | 4 ++ .../src/constants/prompts/system-v2.ts | 0 .../{stage => ui}/src/libs/audio/manager.ts | 0 packages/ui/src/libs/index.ts | 3 ++ .../{stage => ui}/src/libs/workers/types.ts | 0 .../{stage => ui}/src/libs/workers/worker.ts | 0 packages/{stage => ui}/src/stores/audio.ts | 0 packages/{stage => ui}/src/stores/chat.ts | 2 +- packages/ui/src/stores/index.ts | 4 ++ packages/{stage => ui}/src/stores/llm.ts | 0 packages/{stage => ui}/src/stores/settings.ts | 3 -- packages/ui/src/utils/index.ts | 1 + packages/{stage => ui}/src/utils/iterator.ts | 0 .../src/utils/live2d-zip-loader.ts | 0 pnpm-lock.yaml | 8 ++++ 71 files changed, 208 insertions(+), 113 deletions(-) delete mode 100644 packages/stage/tamagotchi/index.html rename packages/{stage/tamagotchi => tamagotchi/src/renderer/src}/App.vue (73%) rename packages/{stage/src/components/Widgets/TamagotchiChatHistory.vue => tamagotchi/src/renderer/src/components/ChatHistory.vue} (95%) rename packages/{stage/src/components/Layouts/TamagotchiInteractiveArea.vue => tamagotchi/src/renderer/src/components/InteractiveArea.vue} (92%) rename packages/{stage/src/components/Widgets/TamagotchiSettings.vue => tamagotchi/src/renderer/src/components/Settings.vue} (96%) rename packages/{stage/tamagotchi => tamagotchi/src/renderer/src}/main.css (100%) rename packages/{stage/tamagotchi => tamagotchi/src/renderer/src}/main.ts (88%) rename packages/{stage/tamagotchi => tamagotchi/src/renderer/src}/themes.css (100%) rename packages/{stage/tamagotchi => tamagotchi/src/renderer/src}/transitions.css (100%) create mode 100644 packages/ui/build.config.ts rename packages/{stage => ui}/src/components/BasicTextarea.vue (100%) rename packages/{stage => ui}/src/components/Collapsable.vue (100%) rename packages/{stage => ui}/src/components/DataGui/Range.vue (100%) rename packages/{stage => ui}/src/components/Live2D/Viewer.vue (100%) rename packages/{stage => ui}/src/components/Scenes/Live2D.vue (100%) rename packages/{stage => ui}/src/components/Scenes/VRM.vue (100%) rename packages/{stage => ui}/src/components/Screen.vue (100%) rename packages/{stage => ui}/src/components/TransitionVertical.vue (100%) rename packages/{stage => ui}/src/components/VRM/Model.vue (100%) rename packages/{stage => ui}/src/components/Widgets/Stage.vue (100%) create mode 100644 packages/ui/src/components/index.ts create mode 100644 packages/ui/src/composables/index.ts rename packages/{stage => ui}/src/composables/llmmarkerParser.ts (100%) rename packages/{stage => ui}/src/composables/markdown.ts (100%) rename packages/{stage => ui}/src/composables/micvad.ts (100%) rename packages/{stage => ui}/src/composables/queue.ts (100%) rename packages/{stage => ui}/src/composables/queues.ts (100%) rename packages/{stage => ui}/src/composables/vrm/animation.ts (100%) rename packages/{stage => ui}/src/composables/vrm/core.ts (100%) rename packages/{stage => ui}/src/composables/vrm/expression.ts (100%) create mode 100644 packages/ui/src/composables/vrm/index.ts rename packages/{stage => ui}/src/composables/vrm/loader.ts (100%) rename packages/{stage => ui}/src/composables/whisper.ts (100%) rename packages/{stage => ui}/src/constants/elevenlabs.ts (100%) rename packages/{stage => ui}/src/constants/emotions.ts (100%) rename packages/{stage => ui}/src/constants/index.ts (65%) rename packages/{stage => ui}/src/constants/prompts/system-v2.ts (100%) rename packages/{stage => ui}/src/libs/audio/manager.ts (100%) create mode 100644 packages/ui/src/libs/index.ts rename packages/{stage => ui}/src/libs/workers/types.ts (100%) rename packages/{stage => ui}/src/libs/workers/worker.ts (100%) rename packages/{stage => ui}/src/stores/audio.ts (100%) rename packages/{stage => ui}/src/stores/chat.ts (98%) create mode 100644 packages/ui/src/stores/index.ts rename packages/{stage => ui}/src/stores/llm.ts (100%) rename packages/{stage => ui}/src/stores/settings.ts (95%) create mode 100644 packages/ui/src/utils/index.ts rename packages/{stage => ui}/src/utils/iterator.ts (100%) rename packages/{stage => ui}/src/utils/live2d-zip-loader.ts (100%) diff --git a/packages/stage/package.json b/packages/stage/package.json index 76bd69e..6ec200e 100644 --- a/packages/stage/package.json +++ b/packages/stage/package.json @@ -15,9 +15,7 @@ "dev": "vite", "lint": "eslint .", "preview": "vite preview", - "typecheck": "vue-tsc --noEmit", - "dev:tamagotchi": "vite --mode tamagotchi", - "build:tamagotchi": "vite build --mode tamagotchi" + "typecheck": "vue-tsc --noEmit" }, "dependencies": { "@11labs/client": "^0.0.4", @@ -39,6 +37,7 @@ "@pixiv/three-vrm": "^3.3.2", "@pixiv/three-vrm-animation": "^3.3.2", "@pixiv/three-vrm-core": "^3.3.2", + "@proj-airi/ui": "workspace:^", "@ricky0123/vad-web": "^0.0.22", "@tresjs/cientos": "^4.0.3", "@tresjs/core": "^4.3.2", diff --git a/packages/stage/src/App.vue b/packages/stage/src/App.vue index a78fb6f..271488c 100644 --- a/packages/stage/src/App.vue +++ b/packages/stage/src/App.vue @@ -1,5 +1,15 @@