chore(deps): remove unused depdencies

This commit is contained in:
Neko Ayaka
2025-05-13 13:05:47 +08:00
parent 2328cbd46f
commit b5d3590618
12 changed files with 18 additions and 678 deletions
@@ -21,7 +21,6 @@
"vitest",
"vite/client",
"vite-plugin-vue-layouts/client",
"vite-plugin-pwa/client",
"unplugin-vue-macros/macros-global",
"unplugin-vue-router/client"
],
-9
View File
@@ -16,7 +16,6 @@
"build:unpack": "tauri build --no-bundle"
},
"dependencies": {
"@11labs/client": "^0.1.4",
"@formkit/auto-animate": "^0.8.2",
"@huggingface/transformers": "^3.5.1",
"@pixiv/three-vrm": "^3.4.0",
@@ -31,9 +30,7 @@
"@tauri-apps/plugin-os": ">=2.2.1",
"@tresjs/cientos": "^4.3.0",
"@tresjs/core": "^4.3.3",
"@unhead/vue": "^2.0.8",
"@vueuse/core": "^13.1.0",
"@vueuse/head": "^2.0.0",
"@vueuse/shared": "^13.1.0",
"@xsai-ext/providers-cloud": "catalog:",
"@xsai-ext/providers-local": "catalog:",
@@ -91,7 +88,6 @@
"@shikijs/markdown-it": "^3.4.0",
"@tauri-apps/cli": "^2.5.0",
"@types/culori": "^4.0.0",
"@types/markdown-it-link-attributes": "^3.0.5",
"@types/nprogress": "^0.2.3",
"@types/three": "^0.176.0",
"@types/yauzl": "^2.10.3",
@@ -101,15 +97,10 @@
"@vueuse/motion": "^3.0.3",
"@xsai-transformers/embed": "^0.0.5",
"less": "^4.3.0",
"markdown-it-link-attributes": "^4.0.1",
"unocss-preset-scrollbar": "^3.2.0",
"unplugin-auto-import": "^19.2.0",
"unplugin-vue-components": "^28.5.0",
"unplugin-vue-macros": "^2.14.5",
"unplugin-vue-markdown": "^28.3.1",
"unplugin-vue-router": "^0.12.0",
"vite-bundle-visualizer": "^1.2.1",
"vite-plugin-pwa": "^1.0.0",
"vite-plugin-vue-devtools": "^7.7.6",
"vite-plugin-vue-layouts": "^0.11.0",
"vue-tsc": "^3.0.0-alpha.6"
-4
View File
@@ -19,14 +19,10 @@ useEventListener(window, 'resize', () => {
watch(language, (language) => {
i18n.locale.value = language
// window.electron.ipcRenderer.send('locale-changed', language)
})
// FIXME: store settings to file
onMounted(() => {
// window.electron.ipcRenderer.send('locale-changed', language.value)
// window.electron.ipcRenderer.send('window-size-changed', windowControlStore.size.width, windowControlStore.size.height)
// window.electron.ipcRenderer.send('window-position-changed', windowControlStore.position.x, windowControlStore.position.y)
})
watch(themeColorsHue, () => {
@@ -14,15 +14,8 @@ export const useWindowControlStore = defineStore('windowControl', () => {
controlMode.value = mode
if (mode === WindowControlMode.RESIZE) {
// window.electron.ipcRenderer.send('start-resize-window')
// return
}
// window.electron.ipcRenderer.invoke('stop-move-window').then((p: [number, number]) => {
// position.value = { x: p[0], y: p[1] }
// })
// window.electron.ipcRenderer.send('stop-resize-window')
// TODO: save position and size
}
function toggleControl() {
-1
View File
@@ -25,7 +25,6 @@
"vitest",
"vite/client",
"vite-plugin-vue-layouts/client",
"vite-plugin-pwa/client",
"unplugin-vue-macros/macros-global",
"unplugin-vue-router/client"
],
-7
View File
@@ -17,7 +17,6 @@
"typecheck": "vue-tsc --noEmit"
},
"dependencies": {
"@11labs/client": "^0.1.4",
"@formkit/auto-animate": "^0.8.2",
"@huggingface/transformers": "^3.5.1",
"@pixiv/three-vrm": "^3.4.0",
@@ -33,10 +32,8 @@
"@standard-schema/spec": "^1.0.0",
"@tresjs/cientos": "^4.3.0",
"@tresjs/core": "^4.3.3",
"@unhead/vue": "^2.0.8",
"@valibot/to-json-schema": "1.0.0-rc.0",
"@vueuse/core": "^13.1.0",
"@vueuse/head": "^2.0.0",
"@vueuse/shared": "^13.1.0",
"@xsai-ext/providers-cloud": "catalog:",
"@xsai-ext/providers-local": "catalog:",
@@ -81,7 +78,6 @@
"zod": "^3.24.4"
},
"devDependencies": {
"@electron-toolkit/preload": "^3.0.2",
"@iconify-json/carbon": "^1.2.8",
"@iconify-json/eos-icons": "^1.2.2",
"@iconify-json/lucide": "^1.2.41",
@@ -96,7 +92,6 @@
"@proj-airi/unplugin-live2d-sdk": "^0.1.3",
"@shikijs/markdown-it": "^3.4.0",
"@types/culori": "^4.0.0",
"@types/markdown-it-link-attributes": "^3.0.5",
"@types/nprogress": "^0.2.3",
"@types/three": "^0.176.0",
"@types/yauzl": "^2.10.3",
@@ -106,9 +101,7 @@
"@vueuse/motion": "^3.0.3",
"hfup": "^0.5.0",
"less": "^4.3.0",
"unplugin-vue-components": "^28.5.0",
"unplugin-vue-macros": "^2.14.5",
"unplugin-vue-markdown": "^28.3.1",
"unplugin-vue-router": "^0.12.0",
"vite-bundle-visualizer": "^1.2.1",
"vite-plugin-pwa": "^1.0.0",
-7
View File
@@ -1,7 +0,0 @@
declare interface Window {
electron: {
ipcRenderer: {
send: (channel: string, ...args: any[]) => void
}
}
}
-18
View File
@@ -1,18 +0,0 @@
declare interface Window {
// extend the window
}
// with unplugin-vue-markdown, markdown files can be treated as Vue components
declare module '*.md' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<object, object, any>
export default component
}
declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<object, object, any>
export default component
}
-10
View File
@@ -10,7 +10,6 @@ import Vue from '@vitejs/plugin-vue'
import { LFS, SpaceCard } from 'hfup/vite'
import { ofetch } from 'ofetch'
import Unocss from 'unocss/vite'
import Components from 'unplugin-vue-components/vite'
import VueMacros from 'unplugin-vue-macros/vite'
import VueRouter from 'unplugin-vue-router/vite'
import { defineConfig } from 'vite'
@@ -81,15 +80,6 @@ export default defineConfig({
// https://github.com/JohnCampionJr/vite-plugin-vue-layouts
Layouts(),
// https://github.com/antfu/unplugin-vue-components
Components({
// allow auto load markdown components under `./src/components/`
extensions: ['vue', 'md'],
// allow auto import and register components used in markdown
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
dts: 'src/components.d.ts',
}),
// https://github.com/antfu/unocss
// see uno.config.ts for config
Unocss(),
-1
View File
@@ -107,7 +107,6 @@
"xastscript": "^4.0.0"
},
"devDependencies": {
"@electron-toolkit/preload": "^3.0.2",
"@histoire/plugin-vue": "1.0.0-alpha.2",
"@unocss/reset": "^66.1.1",
"@vitejs/plugin-vue": "^5.2.4",
@@ -1,5 +1,4 @@
<script setup lang="ts">
import type { ElectronAPI } from '@electron-toolkit/preload'
import type { DuckDBWasmDrizzleDatabase } from '@proj-airi/drizzle-duckdb-wasm'
import type { SpeechProviderWithExtraOptions } from '@xsai-ext/shared-providers'
import type { UnElevenLabsOptions } from 'unspeech'
@@ -18,7 +17,7 @@ import { useMarkdown } from '../../composables/markdown'
import { useQueue } from '../../composables/queue'
import { useDelayMessageQueue, useEmotionsMessageQueue, useMessageContentQueue } from '../../composables/queues'
import { llmInferenceEndToken } from '../../constants'
import { EMOTION_EmotionMotionName_value, EMOTION_VRMExpressionName_value, EmotionAngryMotionName, EmotionHappyMotionName, EmotionThinkMotionName } from '../../constants/emotions'
import { EMOTION_EmotionMotionName_value, EMOTION_VRMExpressionName_value, EmotionThinkMotionName } from '../../constants/emotions'
import { useAudioContext, useSpeakingStore } from '../../stores/audio'
import { useChatStore } from '../../stores/chat'
import { useSpeechStore } from '../../stores/modules/speech'
@@ -211,26 +210,6 @@ onAssistantResponseEnd(async (_message) => {
onUnmounted(() => {
lipSyncStarted.value = false
const extendedWindow = window as Window & typeof globalThis & { electron?: ElectronAPI }
extendedWindow.electron?.ipcRenderer.removeAllListeners('before-hide')
extendedWindow.electron?.ipcRenderer.removeAllListeners('after-show')
extendedWindow.electron?.ipcRenderer.removeAllListeners('before-quit')
})
onMounted(() => {
const extendedWindow = window as Window & typeof globalThis & { electron?: ElectronAPI }
extendedWindow.electron?.ipcRenderer.on('before-hide', () => {
live2dCurrentMotion.value = { group: EmotionAngryMotionName }
})
extendedWindow.electron?.ipcRenderer.on('after-show', () => {
live2dCurrentMotion.value = { group: EmotionHappyMotionName }
})
extendedWindow.electron?.ipcRenderer.on('before-quit', () => {
live2dCurrentMotion.value = { group: EmotionThinkMotionName }
})
})
onMounted(async () => {
+17 -591
View File
File diff suppressed because it is too large Load Diff