update packages

This commit is contained in:
2023-12-30 11:44:43 +08:00
parent 5c52ae5ab2
commit cb9554626c
5 changed files with 297 additions and 458 deletions

View File

@@ -8,17 +8,17 @@
"lint": "vite lint" "lint": "vite lint"
}, },
"dependencies": { "dependencies": {
"@types/node": "^20.10.5", "@types/node": "^20.10.6",
"@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/eslint-plugin": "^6.16.0",
"@vicons/fluent": "^0.12.0", "@vicons/fluent": "^0.12.0",
"@vitejs/plugin-vue": "^4.5.2", "@vitejs/plugin-vue": "^5.0.1",
"@vueuse/core": "^10.7.0", "@vueuse/core": "^10.7.1",
"@vueuse/router": "^10.7.0", "@vueuse/router": "^10.7.1",
"date-fns": "^3.0.5", "date-fns": "^3.0.6",
"easy-speech": "^2.2.0", "easy-speech": "^2.2.0",
"echarts": "^5.4.3", "echarts": "^5.4.3",
"eslint-plugin-import": "^2.29.1", "eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.1", "eslint-plugin-prettier": "^5.1.2",
"fast-xml-parser": "^4.3.2", "fast-xml-parser": "^4.3.2",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"grapheme-splitter": "^1.0.4", "grapheme-splitter": "^1.0.4",
@@ -31,18 +31,18 @@
"queue-typescript": "^1.0.1", "queue-typescript": "^1.0.1",
"vite": "^5.0.10", "vite": "^5.0.10",
"vite-svg-loader": "^5.1.0", "vite-svg-loader": "^5.1.0",
"vue": "^3.3.13", "vue": "^3.4.1",
"vue-echarts": "^6.6.5", "vue-echarts": "^6.6.8",
"vue-request": "^2.0.4", "vue-request": "^2.0.4",
"vue-router": "^4.2.5", "vue-router": "^4.2.5",
"vue-turnstile": "^1.0.6", "vue-turnstile": "^1.0.6",
"vue3-aplayer": "^1.7.3", "vue3-aplayer": "^1.7.3",
"vue3-marquee": "^4.1.0", "vue3-marquee": "^4.1.0",
"vueuc": "^0.4.56", "vueuc": "^0.4.58",
"worker-timers": "^7.0.80" "worker-timers": "^7.0.80"
}, },
"devDependencies": { "devDependencies": {
"@typescript-eslint/parser": "^6.15.0", "@typescript-eslint/parser": "^6.16.0",
"@vicons/ionicons5": "^0.12.0", "@vicons/ionicons5": "^0.12.0",
"@vitejs/plugin-vue-jsx": "^3.1.0", "@vitejs/plugin-vue-jsx": "^3.1.0",
"@vue/eslint-config-typescript": "^12.0.0", "@vue/eslint-config-typescript": "^12.0.0",

View File

@@ -312,7 +312,6 @@ async function getOutputDevice() {
// 请保留此代码以确保用户授权访问设备 // 请保留此代码以确保用户授权访问设备
audio: true, audio: true,
}) })
const list = await navigator.mediaDevices.enumerateDevices() const list = await navigator.mediaDevices.enumerateDevices()
deviceList.value = list.filter((device) => device.kind === 'audiooutput').map((d) => ({ label: d.label, value: d.deviceId })) deviceList.value = list.filter((device) => device.kind === 'audiooutput').map((d) => ({ label: d.label, value: d.deviceId }))

View File

@@ -271,13 +271,14 @@ function speakFromAPI(text: string) {
} }
isSpeaking.value = true isSpeaking.value = true
isApiAudioLoading.value = true isApiAudioLoading.value = true
const url = `${settings.value.voiceAPISchemeType == 'https' ? 'https' : FETCH_API + 'http'}://${settings.value.voiceAPI let url = `${settings.value.voiceAPISchemeType == 'https' ? 'https' : FETCH_API + 'http'}://${settings.value.voiceAPI
.trim() .trim()
.replace(/^(?:https?:\/\/)/, '') .replace(/^(?:https?:\/\/)/, '')
.replace(/\{\{\s*text\s*\}\}/, encodeURIComponent(text))}` .replace(/\{\{\s*text\s*\}\}/, encodeURIComponent(text))}`
const tempURL = new URL(url) const tempURL = new URL(url)
if (isVtsuruVoiceAPI.value) { if (isVtsuruVoiceAPI.value) {
tempURL.searchParams.set('vtsuruId', accountInfo.value?.id.toString() ?? '-1') tempURL.searchParams.set('vtsuruId', accountInfo.value?.id.toString() ?? '-1')
url = tempURL.toString()
} }
if (isVtsuruVoiceAPI.value && splitter.countGraphemes(tempURL.searchParams.get('text') ?? '') > 50) { if (isVtsuruVoiceAPI.value && splitter.countGraphemes(tempURL.searchParams.get('text') ?? '') > 50) {
message.error('本站提供的测试接口字数不允许超过 100 字. 内容: [' + tempURL.searchParams.get('text') + ']') message.error('本站提供的测试接口字数不允许超过 100 字. 内容: [' + tempURL.searchParams.get('text') + ']')

View File

@@ -3,9 +3,6 @@
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "esnext",
"strict": true, "strict": true,
"jsx": "preserve",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"moduleResolution": "node", "moduleResolution": "node",
"skipLibCheck": true, "skipLibCheck": true,
"esModuleInterop": true, "esModuleInterop": true,

726
yarn.lock

File diff suppressed because it is too large Load Diff