更新依赖&版本号(2.10.0-beta.0)
parent
432861780a
commit
ae06019bdb
|
@ -10,6 +10,7 @@ module.exports = {
|
||||||
'message2call',
|
'message2call',
|
||||||
'@types/ws',
|
'@types/ws',
|
||||||
'eslint',
|
'eslint',
|
||||||
|
'@types/node',
|
||||||
'electron-debug',
|
'electron-debug',
|
||||||
// 'eslint-config-standard-with-typescript',
|
// 'eslint-config-standard-with-typescript',
|
||||||
// 'typescript', // https://github.com/microsoft/TypeScript/pull/54567
|
// 'typescript', // https://github.com/microsoft/TypeScript/pull/54567
|
||||||
|
@ -31,5 +32,6 @@ module.exports = {
|
||||||
// 'electron',
|
// 'electron',
|
||||||
// 'eslint',
|
// 'eslint',
|
||||||
// 'electron-debug',
|
// 'electron-debug',
|
||||||
|
// '@types/node',
|
||||||
// ],
|
// ],
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "lx-music-desktop",
|
"name": "lx-music-desktop",
|
||||||
"version": "2.9.0",
|
"version": "2.10.0-beta.0",
|
||||||
"description": "一个免费的音乐查找助手",
|
"description": "一个免费的音乐查找助手",
|
||||||
"main": "./dist/main.js",
|
"main": "./dist/main.js",
|
||||||
"productName": "lx-music-desktop",
|
"productName": "lx-music-desktop",
|
||||||
|
@ -119,11 +119,12 @@
|
||||||
"@tsconfig/recommended": "^1.0.7",
|
"@tsconfig/recommended": "^1.0.7",
|
||||||
"@types/better-sqlite3": "^7.6.11",
|
"@types/better-sqlite3": "^7.6.11",
|
||||||
"@types/needle": "^3.3.0",
|
"@types/needle": "^3.3.0",
|
||||||
|
"@types/node": "^20.16.5",
|
||||||
"@types/tunnel": "^0.0.7",
|
"@types/tunnel": "^0.0.7",
|
||||||
"@types/ws": "8.5.4",
|
"@types/ws": "8.5.4",
|
||||||
"@volar/vue-language-plugin-pug": "^1.6.5",
|
"@volar/vue-language-plugin-pug": "^1.6.5",
|
||||||
"@vue/language-plugin-pug": "^2.1.6",
|
"@vue/language-plugin-pug": "^2.1.6",
|
||||||
"babel-loader": "^9.1.3",
|
"babel-loader": "^9.2.1",
|
||||||
"browserslist": "^4.23.3",
|
"browserslist": "^4.23.3",
|
||||||
"chalk": "^4.1.2",
|
"chalk": "^4.1.2",
|
||||||
"changelog-parser": "^3.0.1",
|
"changelog-parser": "^3.0.1",
|
||||||
|
@ -133,13 +134,13 @@
|
||||||
"css-loader": "^7.1.2",
|
"css-loader": "^7.1.2",
|
||||||
"css-minimizer-webpack-plugin": "^7.0.0",
|
"css-minimizer-webpack-plugin": "^7.0.0",
|
||||||
"del": "^6.1.1",
|
"del": "^6.1.1",
|
||||||
"electron": "^30.4.0",
|
"electron": "^30.5.1",
|
||||||
"electron-builder": "^25.0.5",
|
"electron-builder": "^25.0.5",
|
||||||
"electron-debug": "^3.2.0",
|
"electron-debug": "^3.2.0",
|
||||||
"electron-devtools-installer": "github:lyswhut/electron-devtools-installer#64596d615c1fc891eefd8aef1dfcb2c87aaadf03",
|
"electron-devtools-installer": "github:lyswhut/electron-devtools-installer#64596d615c1fc891eefd8aef1dfcb2c87aaadf03",
|
||||||
"electron-to-chromium": "^1.5.15",
|
"electron-to-chromium": "^1.5.27",
|
||||||
"electron-updater": "^6.3.4",
|
"electron-updater": "^6.3.4",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-standard": "^17.1.0",
|
"eslint-config-standard": "^17.1.0",
|
||||||
"eslint-config-standard-with-typescript": "^43.0.1",
|
"eslint-config-standard-with-typescript": "^43.0.1",
|
||||||
"eslint-formatter-friendly": "github:lyswhut/eslint-friendly-formatter#2170d1320e2fad13615a9dcf229669f0bb473a53",
|
"eslint-formatter-friendly": "github:lyswhut/eslint-friendly-formatter#2170d1320e2fad13615a9dcf229669f0bb473a53",
|
||||||
|
@ -152,7 +153,7 @@
|
||||||
"less-loader": "^12.2.0",
|
"less-loader": "^12.2.0",
|
||||||
"mini-css-extract-plugin": "^2.9.1",
|
"mini-css-extract-plugin": "^2.9.1",
|
||||||
"node-loader": "^2.0.0",
|
"node-loader": "^2.0.0",
|
||||||
"postcss": "^8.4.41",
|
"postcss": "^8.4.47",
|
||||||
"postcss-loader": "^8.1.1",
|
"postcss-loader": "^8.1.1",
|
||||||
"postcss-pxtorem": "^6.1.0",
|
"postcss-pxtorem": "^6.1.0",
|
||||||
"pug": "^3.0.3",
|
"pug": "^3.0.3",
|
||||||
|
@ -162,11 +163,11 @@
|
||||||
"svg-sprite-loader": "^6.0.11",
|
"svg-sprite-loader": "^6.0.11",
|
||||||
"svg-transform-loader": "^2.0.13",
|
"svg-transform-loader": "^2.0.13",
|
||||||
"svgo-loader": "^4.0.0",
|
"svgo-loader": "^4.0.0",
|
||||||
"terser": "^5.31.6",
|
"terser": "^5.33.0",
|
||||||
"terser-webpack-plugin": "^5.3.10",
|
"terser-webpack-plugin": "^5.3.10",
|
||||||
"tree-kill": "^1.2.2",
|
"tree-kill": "^1.2.2",
|
||||||
"ts-loader": "^9.5.1",
|
"ts-loader": "^9.5.1",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.6.2",
|
||||||
"vue-eslint-parser": "^9.4.3",
|
"vue-eslint-parser": "^9.4.3",
|
||||||
"vue-loader": "^17.4.2",
|
"vue-loader": "^17.4.2",
|
||||||
"vue-template-compiler": "^2.7.16",
|
"vue-template-compiler": "^2.7.16",
|
||||||
|
@ -178,25 +179,25 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@simonwep/pickr": "^1.9.1",
|
"@simonwep/pickr": "^1.9.1",
|
||||||
"better-sqlite3": "^11.2.1",
|
"better-sqlite3": "^11.3.0",
|
||||||
"bufferutil": "^4.0.8",
|
"bufferutil": "^4.0.8",
|
||||||
"comlink": "~4.3.1",
|
"comlink": "~4.3.1",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"electron-log": "^5.1.7",
|
"electron-log": "^5.2.0",
|
||||||
"font-list": "^1.5.1",
|
"font-list": "^1.5.1",
|
||||||
"iconv-lite": "^0.6.3",
|
"iconv-lite": "^0.6.3",
|
||||||
"image-size": "^1.1.0",
|
"image-size": "^1.1.0",
|
||||||
"jschardet": "^3.1.3",
|
"jschardet": "^3.1.3",
|
||||||
"long": "^5.2.3",
|
"long": "^5.2.3",
|
||||||
"message2call": "^0.1.3",
|
"message2call": "^0.1.3",
|
||||||
"music-metadata": "^10.4.0",
|
"music-metadata": "^10.5.0",
|
||||||
"needle": "github:lyswhut/needle#93299ac841b7e9a9f82ca7279b88aaaeda404060",
|
"needle": "github:lyswhut/needle#93299ac841b7e9a9f82ca7279b88aaaeda404060",
|
||||||
"node-id3": "^0.2.6",
|
"node-id3": "^0.2.6",
|
||||||
"sortablejs": "^1.15.3",
|
"sortablejs": "^1.15.3",
|
||||||
"tunnel": "^0.0.6",
|
"tunnel": "^0.0.6",
|
||||||
"utf-8-validate": "^6.0.4",
|
"utf-8-validate": "^6.0.4",
|
||||||
"vue": "~3.3.13",
|
"vue": "~3.3.13",
|
||||||
"vue-router": "^4.4.3",
|
"vue-router": "^4.4.5",
|
||||||
"ws": "^8.18.0"
|
"ws": "^8.18.0"
|
||||||
},
|
},
|
||||||
"overrides": {
|
"overrides": {
|
||||||
|
@ -215,6 +216,7 @@
|
||||||
},
|
},
|
||||||
"braces": "latest",
|
"braces": "latest",
|
||||||
"node-gyp-build": "latest",
|
"node-gyp-build": "latest",
|
||||||
|
"micromatch": "latest",
|
||||||
"http-cache-semantics": "latest"
|
"http-cache-semantics": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,4 @@
|
||||||
|
|
||||||
### 其他
|
### 其他
|
||||||
|
|
||||||
- 更新 electron 到 v30.4.0
|
- 更新 electron 到 v30.5.1
|
||||||
|
|
|
@ -73,7 +73,7 @@ const matchInfo = (scriptInfo: string) => {
|
||||||
for (const [key, len] of Object.entries(INFO_NAMES) as Array<{ [K in keyof INFO_NAMES_Type]: [K, INFO_NAMES_Type[K]] }[keyof INFO_NAMES_Type]>) {
|
for (const [key, len] of Object.entries(INFO_NAMES) as Array<{ [K in keyof INFO_NAMES_Type]: [K, INFO_NAMES_Type[K]] }[keyof INFO_NAMES_Type]>) {
|
||||||
infos[key] ||= ''
|
infos[key] ||= ''
|
||||||
if (infos[key] == null) infos[key] = ''
|
if (infos[key] == null) infos[key] = ''
|
||||||
else if (infos[key]!.length > len) infos[key] = infos[key]!.substring(0, len) + '...'
|
else if (infos[key].length > len) infos[key] = infos[key].substring(0, len) + '...'
|
||||||
}
|
}
|
||||||
|
|
||||||
return infos as Record<keyof typeof INFO_NAMES, string>
|
return infos as Record<keyof typeof INFO_NAMES, string>
|
||||||
|
|
|
@ -62,7 +62,7 @@ export const getList = async(source: Source): Promise<string[]> => {
|
||||||
return setLists(results)
|
return setLists(results)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (sourceList[source]?.length) return Promise.resolve(sourceList[source]!)
|
if (sourceList[source]?.length) return Promise.resolve(sourceList[source])
|
||||||
if (!music[source]?.hotSearch) {
|
if (!music[source]?.hotSearch) {
|
||||||
setList(source, [])
|
setList(source, [])
|
||||||
return Promise.resolve([])
|
return Promise.resolve([])
|
||||||
|
|
|
@ -118,6 +118,8 @@ const getIntv = (musicInfo: LX.Music.MusicInfo) => {
|
||||||
return intv
|
return intv
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type SortFieldName = 'name' | 'singer' | 'albumName' | 'interval' | 'source'
|
||||||
|
export type SortFieldType = 'up' | 'down' | 'random'
|
||||||
/**
|
/**
|
||||||
* 排序歌曲
|
* 排序歌曲
|
||||||
* @param list 歌曲列表
|
* @param list 歌曲列表
|
||||||
|
@ -126,7 +128,7 @@ const getIntv = (musicInfo: LX.Music.MusicInfo) => {
|
||||||
* @param localeId 排序语言
|
* @param localeId 排序语言
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export const sortListMusicInfo = async(list: LX.Music.MusicInfo[], sortType: 'up' | 'down' | 'random', fieldName: 'name' | 'singer' | 'albumName' | 'interval' | 'source', localeId: string) => {
|
export const sortListMusicInfo = async(list: LX.Music.MusicInfo[], sortType: SortFieldType, fieldName: SortFieldName, localeId: string) => {
|
||||||
// console.log(sortType, fieldName, localeId)
|
// console.log(sortType, fieldName, localeId)
|
||||||
// const locale = new Intl.Locale(localeId)
|
// const locale = new Intl.Locale(localeId)
|
||||||
switch (sortType) {
|
switch (sortType) {
|
||||||
|
|
Loading…
Reference in New Issue