移除所有内置源

This commit is contained in:
lyswhut
2023-10-18 19:46:05 +08:00
parent 016821a8ce
commit 1ff6a00653
6 changed files with 49 additions and 41 deletions
@@ -1,25 +0,0 @@
// Support qualitys: 128k 320k flac wav
export default [
{
id: 'test',
name: '测试接口',
disabled: false,
supportQualitys: {
kw: ['128k'],
kg: ['128k'],
tx: ['128k'],
wy: ['128k'],
mg: ['128k'],
// bd: ['128k'],
},
},
{
id: 'temp',
name: '临时接口',
disabled: false,
supportQualitys: {
kw: ['128k'],
},
},
]
@@ -0,0 +1,32 @@
// Support qualitys: 128k 320k flac wav
const sources: Array<{
id: string
name: string
disabled: boolean
supportQualitys: Partial<Record<LX.OnlineSource, LX.Quality[]>>
}> = [
// {
// id: 'test',
// name: '测试接口',
// disabled: false,
// supportQualitys: {
// kw: ['128k'],
// kg: ['128k'],
// tx: ['128k'],
// wy: ['128k'],
// mg: ['128k'],
// // bd: ['128k'],
// },
// },
// {
// id: 'temp',
// name: '临时接口',
// disabled: false,
// supportQualitys: {
// kw: ['128k'],
// },
// },
]
export default sources
+14 -14
View File
@@ -1,21 +1,21 @@
import apiSourceInfo from './api-source-info'
import { apiSource, userApi } from '@renderer/store'
import api_temp_kw from './kw/api-temp'
// import api_test_bd from './bd/api-test'
import api_test_tx from './tx/api-test'
import api_test_kg from './kg/api-test'
import api_test_kw from './kw/api-test'
import api_test_mg from './mg/api-test'
import api_test_wy from './wy/api-test'
// import api_temp_kw from './kw/api-temp'
// // import api_test_bd from './bd/api-test'
// import api_test_tx from './tx/api-test'
// import api_test_kg from './kg/api-test'
// import api_test_kw from './kw/api-test'
// import api_test_mg from './mg/api-test'
// import api_test_wy from './wy/api-test'
const allApi = {
temp_kw: api_temp_kw,
// test_bd: api_test_bd,
test_tx: api_test_tx,
test_kg: api_test_kg,
test_kw: api_test_kw,
test_mg: api_test_mg,
test_wy: api_test_wy,
// temp_kw: api_temp_kw,
// // test_bd: api_test_bd,
// test_tx: api_test_tx,
// test_kg: api_test_kg,
// test_kw: api_test_kw,
// test_mg: api_test_mg,
// test_wy: api_test_wy,
}
const apiList = {}