mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36:55 +08:00
update packages
This commit is contained in:
22
package.json
22
package.json
@@ -8,17 +8,17 @@
|
||||
"lint": "vite lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/node": "^20.10.5",
|
||||
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
||||
"@types/node": "^20.10.6",
|
||||
"@typescript-eslint/eslint-plugin": "^6.16.0",
|
||||
"@vicons/fluent": "^0.12.0",
|
||||
"@vitejs/plugin-vue": "^4.5.2",
|
||||
"@vueuse/core": "^10.7.0",
|
||||
"@vueuse/router": "^10.7.0",
|
||||
"date-fns": "^3.0.5",
|
||||
"@vitejs/plugin-vue": "^5.0.1",
|
||||
"@vueuse/core": "^10.7.1",
|
||||
"@vueuse/router": "^10.7.1",
|
||||
"date-fns": "^3.0.6",
|
||||
"easy-speech": "^2.2.0",
|
||||
"echarts": "^5.4.3",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-prettier": "^5.1.1",
|
||||
"eslint-plugin-prettier": "^5.1.2",
|
||||
"fast-xml-parser": "^4.3.2",
|
||||
"file-saver": "^2.0.5",
|
||||
"grapheme-splitter": "^1.0.4",
|
||||
@@ -31,18 +31,18 @@
|
||||
"queue-typescript": "^1.0.1",
|
||||
"vite": "^5.0.10",
|
||||
"vite-svg-loader": "^5.1.0",
|
||||
"vue": "^3.3.13",
|
||||
"vue-echarts": "^6.6.5",
|
||||
"vue": "^3.4.1",
|
||||
"vue-echarts": "^6.6.8",
|
||||
"vue-request": "^2.0.4",
|
||||
"vue-router": "^4.2.5",
|
||||
"vue-turnstile": "^1.0.6",
|
||||
"vue3-aplayer": "^1.7.3",
|
||||
"vue3-marquee": "^4.1.0",
|
||||
"vueuc": "^0.4.56",
|
||||
"vueuc": "^0.4.58",
|
||||
"worker-timers": "^7.0.80"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/parser": "^6.15.0",
|
||||
"@typescript-eslint/parser": "^6.16.0",
|
||||
"@vicons/ionicons5": "^0.12.0",
|
||||
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
||||
"@vue/eslint-config-typescript": "^12.0.0",
|
||||
|
||||
@@ -312,7 +312,6 @@ async function getOutputDevice() {
|
||||
// 请保留此代码以确保用户授权访问设备
|
||||
audio: true,
|
||||
})
|
||||
|
||||
const list = await navigator.mediaDevices.enumerateDevices()
|
||||
|
||||
deviceList.value = list.filter((device) => device.kind === 'audiooutput').map((d) => ({ label: d.label, value: d.deviceId }))
|
||||
|
||||
@@ -271,13 +271,14 @@ function speakFromAPI(text: string) {
|
||||
}
|
||||
isSpeaking.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()
|
||||
.replace(/^(?:https?:\/\/)/, '')
|
||||
.replace(/\{\{\s*text\s*\}\}/, encodeURIComponent(text))}`
|
||||
const tempURL = new URL(url)
|
||||
if (isVtsuruVoiceAPI.value) {
|
||||
tempURL.searchParams.set('vtsuruId', accountInfo.value?.id.toString() ?? '-1')
|
||||
url = tempURL.toString()
|
||||
}
|
||||
if (isVtsuruVoiceAPI.value && splitter.countGraphemes(tempURL.searchParams.get('text') ?? '') > 50) {
|
||||
message.error('本站提供的测试接口字数不允许超过 100 字. 内容: [' + tempURL.searchParams.get('text') + ']')
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"jsxFactory": "h",
|
||||
"jsxFragmentFactory": "Fragment",
|
||||
"moduleResolution": "node",
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
|
||||
Reference in New Issue
Block a user