From 9be82e47767e6e4e85937157701e9d83a8d1ecb0 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Mon, 2 Dec 2024 19:54:22 +0800 Subject: [PATCH] chore: migrate with new structure --- .github/FUNDING.yml | 3 +- .vscode/settings.json | 5 +- Dockerfile | 22 - app/app.vue | 2 +- .../live2d/models/hiyori_free_zh/avatar.png | Bin 0 -> 167360 bytes app/components/AudioWaveform.vue | 97 + app/components/BasicTextarea.vue | 75 + app/components/Counter.vue | 17 - app/components/DarkToggle.vue | 21 - app/components/Footer.vue | 7 - app/components/InputEntry.vue | 34 - app/components/Live2DViewer.vue | 109 + app/components/Logos.vue | 17 - app/components/MainStage.vue | 377 ++ app/components/PageView.vue | 13 - app/composables/count.ts | 16 - app/composables/markdown.ts | 18 + app/composables/queue.ts | 110 + app/composables/queues.ts | 236 ++ app/composables/user.ts | 34 - app/config/pwa.ts | 1 + app/constants/emotions.ts | 33 + app/constants/index.ts | 6 +- app/constants/prompts/system-v2.ts | 32 + app/layouts/README.md | 15 - app/layouts/default.vue | 6 +- app/layouts/home.vue | 9 - app/pages/[...all].vue | 17 - app/pages/audio.vue | 38 + app/pages/hi/[id].vue | 49 - app/pages/index.vue | 27 +- app/pages/queue.vue | 154 + app/pages/test/filter-message.vue | 79 + app/pages/test/queues/delays.vue | 72 + app/pages/test/queues/emotions.vue | 78 + app/pages/test/queues/messages.vue | 67 + app/stores/audio.ts | 76 + app/stores/llm.ts | 59 + cspell.config.yaml | 28 + netlify.toml | 2 +- nuxt.config.ts | 96 +- package.json | 49 +- pnpm-lock.yaml | 3080 ++++++++++++----- scripts/errors.ts | 38 + scripts/fs.ts | 25 + scripts/unzip.ts | 80 + tsconfig.json | 5 +- uno.config.ts | 2 - 48 files changed, 4255 insertions(+), 1181 deletions(-) delete mode 100644 Dockerfile create mode 100644 app/assets/live2d/models/hiyori_free_zh/avatar.png create mode 100644 app/components/AudioWaveform.vue create mode 100644 app/components/BasicTextarea.vue delete mode 100644 app/components/Counter.vue delete mode 100644 app/components/DarkToggle.vue delete mode 100644 app/components/Footer.vue delete mode 100644 app/components/InputEntry.vue create mode 100644 app/components/Live2DViewer.vue delete mode 100644 app/components/Logos.vue create mode 100644 app/components/MainStage.vue delete mode 100644 app/components/PageView.vue delete mode 100644 app/composables/count.ts create mode 100644 app/composables/markdown.ts create mode 100644 app/composables/queue.ts create mode 100644 app/composables/queues.ts delete mode 100644 app/composables/user.ts create mode 100644 app/constants/emotions.ts create mode 100644 app/constants/prompts/system-v2.ts delete mode 100644 app/layouts/README.md delete mode 100644 app/layouts/home.vue delete mode 100644 app/pages/[...all].vue create mode 100644 app/pages/audio.vue delete mode 100644 app/pages/hi/[id].vue create mode 100644 app/pages/queue.vue create mode 100644 app/pages/test/filter-message.vue create mode 100644 app/pages/test/queues/delays.vue create mode 100644 app/pages/test/queues/emotions.vue create mode 100644 app/pages/test/queues/messages.vue create mode 100644 app/stores/audio.ts create mode 100644 app/stores/llm.ts create mode 100644 cspell.config.yaml create mode 100644 scripts/errors.ts create mode 100644 scripts/fs.ts create mode 100644 scripts/unzip.ts diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 4d80ef7..bb45ebe 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1 @@ -open_collective: antfu -github: [antfu] +github: [nekomeowww, kwaa] diff --git a/.vscode/settings.json b/.vscode/settings.json index e099f81..aa018fc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -38,8 +38,5 @@ "json", "jsonc", "yaml" - ], - "interline-translate.knownPopularWordCount": 6000, - "iconify.annotations": true, - "iconify.inplace": true + ] } diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 13e6b85..0000000 --- a/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -FROM node:20-alpine as build-stage - -WORKDIR /app -RUN corepack enable - -COPY .npmrc package.json pnpm-lock.yaml ./ -RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store \ - pnpm install --frozen-lockfile - -COPY . . -RUN pnpm build - -# SSR -FROM node:20-alpine as production-stage - -WORKDIR /app - -COPY --from=build-stage /app/.output ./.output - -EXPOSE 3000 - -CMD ["node", ".output/server/index.mjs"] diff --git a/app/app.vue b/app/app.vue index 3676dc2..57f96a8 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,5 +1,5 @@ + + diff --git a/app/components/BasicTextarea.vue b/app/components/BasicTextarea.vue new file mode 100644 index 0000000..3147dca --- /dev/null +++ b/app/components/BasicTextarea.vue @@ -0,0 +1,75 @@ + + +