更新依赖&版本号(2.10.0-beta.0)

pull/1235/merge
lyswhut 2024-09-21 14:01:50 +08:00
parent 432861780a
commit ae06019bdb
10 changed files with 268 additions and 1371 deletions

View File

@ -10,6 +10,7 @@ module.exports = {
'message2call',
'@types/ws',
'eslint',
'@types/node',
'electron-debug',
// 'eslint-config-standard-with-typescript',
// 'typescript', // https://github.com/microsoft/TypeScript/pull/54567
@ -31,5 +32,6 @@ module.exports = {
// 'electron',
// 'eslint',
// 'electron-debug',
// '@types/node',
// ],
}

1601
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "lx-music-desktop",
"version": "2.9.0",
"version": "2.10.0-beta.0",
"description": "一个免费的音乐查找助手",
"main": "./dist/main.js",
"productName": "lx-music-desktop",
@ -119,11 +119,12 @@
"@tsconfig/recommended": "^1.0.7",
"@types/better-sqlite3": "^7.6.11",
"@types/needle": "^3.3.0",
"@types/node": "^20.16.5",
"@types/tunnel": "^0.0.7",
"@types/ws": "8.5.4",
"@volar/vue-language-plugin-pug": "^1.6.5",
"@vue/language-plugin-pug": "^2.1.6",
"babel-loader": "^9.1.3",
"babel-loader": "^9.2.1",
"browserslist": "^4.23.3",
"chalk": "^4.1.2",
"changelog-parser": "^3.0.1",
@ -133,13 +134,13 @@
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "^7.0.0",
"del": "^6.1.1",
"electron": "^30.4.0",
"electron": "^30.5.1",
"electron-builder": "^25.0.5",
"electron-debug": "^3.2.0",
"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",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-formatter-friendly": "github:lyswhut/eslint-friendly-formatter#2170d1320e2fad13615a9dcf229669f0bb473a53",
@ -152,7 +153,7 @@
"less-loader": "^12.2.0",
"mini-css-extract-plugin": "^2.9.1",
"node-loader": "^2.0.0",
"postcss": "^8.4.41",
"postcss": "^8.4.47",
"postcss-loader": "^8.1.1",
"postcss-pxtorem": "^6.1.0",
"pug": "^3.0.3",
@ -162,11 +163,11 @@
"svg-sprite-loader": "^6.0.11",
"svg-transform-loader": "^2.0.13",
"svgo-loader": "^4.0.0",
"terser": "^5.31.6",
"terser": "^5.33.0",
"terser-webpack-plugin": "^5.3.10",
"tree-kill": "^1.2.2",
"ts-loader": "^9.5.1",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"vue-eslint-parser": "^9.4.3",
"vue-loader": "^17.4.2",
"vue-template-compiler": "^2.7.16",
@ -178,25 +179,25 @@
},
"dependencies": {
"@simonwep/pickr": "^1.9.1",
"better-sqlite3": "^11.2.1",
"better-sqlite3": "^11.3.0",
"bufferutil": "^4.0.8",
"comlink": "~4.3.1",
"crypto-js": "^4.2.0",
"electron-log": "^5.1.7",
"electron-log": "^5.2.0",
"font-list": "^1.5.1",
"iconv-lite": "^0.6.3",
"image-size": "^1.1.0",
"jschardet": "^3.1.3",
"long": "^5.2.3",
"message2call": "^0.1.3",
"music-metadata": "^10.4.0",
"music-metadata": "^10.5.0",
"needle": "github:lyswhut/needle#93299ac841b7e9a9f82ca7279b88aaaeda404060",
"node-id3": "^0.2.6",
"sortablejs": "^1.15.3",
"tunnel": "^0.0.6",
"utf-8-validate": "^6.0.4",
"vue": "~3.3.13",
"vue-router": "^4.4.3",
"vue-router": "^4.4.5",
"ws": "^8.18.0"
},
"overrides": {
@ -215,6 +216,7 @@
},
"braces": "latest",
"node-gyp-build": "latest",
"micromatch": "latest",
"http-cache-semantics": "latest"
}
}

View File

@ -9,4 +9,4 @@
### 其他
- 更新 electron 到 v30.4.0
- 更新 electron 到 v30.5.1

View File

@ -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]>) {
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>

View File

@ -62,7 +62,7 @@ export const getList = async(source: Source): Promise<string[]> => {
return setLists(results)
})
} else {
if (sourceList[source]?.length) return Promise.resolve(sourceList[source]!)
if (sourceList[source]?.length) return Promise.resolve(sourceList[source])
if (!music[source]?.hotSearch) {
setList(source, [])
return Promise.resolve([])

View File

@ -118,6 +118,8 @@ const getIntv = (musicInfo: LX.Music.MusicInfo) => {
return intv
}
export type SortFieldName = 'name' | 'singer' | 'albumName' | 'interval' | 'source'
export type SortFieldType = 'up' | 'down' | 'random'
/**
*
* @param list
@ -126,7 +128,7 @@ const getIntv = (musicInfo: LX.Music.MusicInfo) => {
* @param localeId
* @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)
// const locale = new Intl.Locale(localeId)
switch (sortType) {