从webpack迁移到vite
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Support qualitys: 128k 320k flac wav
|
||||
|
||||
module.exports = [
|
||||
export default [
|
||||
{
|
||||
id: 'test',
|
||||
name: '测试接口',
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
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'
|
||||
|
||||
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,
|
||||
}
|
||||
|
||||
const apiList = {}
|
||||
const supportQuality = {}
|
||||
@@ -7,7 +24,7 @@ const supportQuality = {}
|
||||
for (const api of apiSourceInfo) {
|
||||
supportQuality[api.id] = api.supportQualitys
|
||||
for (const source of Object.keys(api.supportQualitys)) {
|
||||
apiList[`${api.id}_api_${source}`] = require(`./${source}/api-${api.id}`).default
|
||||
apiList[`${api.id}_api_${source}`] = allApi[`${api.id}_${source}`]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { httpFetch } from '../../request'
|
||||
import { decodeName, formatPlayTime, sizeFormate, dateFormat, formatPlayCount } from '../../index'
|
||||
import infSign from './vendors/infSign.min'
|
||||
import infSign from '@renderer/utils/musicSdk/kg/vendors/infSign.min'
|
||||
import { signatureParams } from './util'
|
||||
|
||||
const handleSignature = (id, page, limit) => new Promise((resolve, reject) => {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user