mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 07:32:03 +08:00
chore: 更新依賴、更換為 prettier 新規則 (#1340)
* chore: upgrade dependencies * style: prettier
This commit is contained in:
parent
76b358445e
commit
3e1dc62fa0
|
@ -5,7 +5,6 @@
|
||||||
"semi": true,
|
"semi": true,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"jsxSingleQuote": true,
|
"jsxSingleQuote": true,
|
||||||
"jsxBracketSameLine": false,
|
|
||||||
"arrowParens": "avoid",
|
"arrowParens": "avoid",
|
||||||
"endOfLine": "lf",
|
"endOfLine": "lf",
|
||||||
"bracketSpacing": true,
|
"bracketSpacing": true,
|
||||||
|
|
13
package.json
13
package.json
|
@ -35,7 +35,7 @@
|
||||||
"dexie": "^3.0.3",
|
"dexie": "^3.0.3",
|
||||||
"discord-rich-presence": "^0.0.8",
|
"discord-rich-presence": "^0.0.8",
|
||||||
"electron": "^13.6.7",
|
"electron": "^13.6.7",
|
||||||
"electron-builder": "^22.10.5",
|
"electron-builder": "^23.0.0",
|
||||||
"electron-context-menu": "^2.3.0",
|
"electron-context-menu": "^2.3.0",
|
||||||
"electron-debug": "^3.1.0",
|
"electron-debug": "^3.1.0",
|
||||||
"electron-devtools-installer": "^3.2",
|
"electron-devtools-installer": "^3.2",
|
||||||
|
@ -55,16 +55,16 @@
|
||||||
"md5": "^2.3.0",
|
"md5": "^2.3.0",
|
||||||
"mpris-service": "^2.1.2",
|
"mpris-service": "^2.1.2",
|
||||||
"music-metadata": "^7.5.3",
|
"music-metadata": "^7.5.3",
|
||||||
"node-vibrant": "^3.1.6",
|
"node-vibrant": "^3.2.1-alpha.1",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"pac-proxy-agent": "^4.1.0",
|
"pac-proxy-agent": "^4.1.0",
|
||||||
"plyr": "^3.6.2",
|
"plyr": "^3.6.2",
|
||||||
"prettier": "2.1.2",
|
"prettier": "2.5.1",
|
||||||
"qrcode": "^1.4.4",
|
"qrcode": "^1.4.4",
|
||||||
"register-service-worker": "^1.7.1",
|
"register-service-worker": "^1.7.1",
|
||||||
"svg-sprite-loader": "^5.0.0",
|
"svg-sprite-loader": "^5.0.0",
|
||||||
"tunnel": "^0.0.6",
|
"tunnel": "^0.0.6",
|
||||||
"vscode-codicons": "^0.0.14",
|
"vscode-codicons": "^0.0.17",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
"vue-analytics": "^5.22.1",
|
"vue-analytics": "^5.22.1",
|
||||||
"vue-clipboard2": "^0.3.1",
|
"vue-clipboard2": "^0.3.1",
|
||||||
|
@ -89,12 +89,13 @@
|
||||||
"husky": "^4.3.0",
|
"husky": "^4.3.0",
|
||||||
"sass": "^1.26.11",
|
"sass": "^1.26.11",
|
||||||
"sass-loader": "^10.0.2",
|
"sass-loader": "^10.0.2",
|
||||||
"vue-cli-plugin-electron-builder": "~2.0.0-rc.4",
|
"vue-cli-plugin-electron-builder": "~2.1.1",
|
||||||
"vue-template-compiler": "^2.6.11"
|
"vue-template-compiler": "^2.6.11"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"icon-gen": "3.0.0",
|
"icon-gen": "3.0.0",
|
||||||
"degenerator": "2.2.0"
|
"degenerator": "2.2.0",
|
||||||
|
"electron-builder": "^23.0.0"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"root": true,
|
"root": true,
|
||||||
|
|
|
@ -31,9 +31,8 @@ export default {
|
||||||
c => c === name
|
c => c === name
|
||||||
);
|
);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
state.settings.enabledPlaylistCategories = state.settings.enabledPlaylistCategories.filter(
|
state.settings.enabledPlaylistCategories =
|
||||||
c => c !== name
|
state.settings.enabledPlaylistCategories.filter(c => c !== name);
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
state.settings.enabledPlaylistCategories.push(name);
|
state.settings.enabledPlaylistCategories.push(name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,10 @@ export function lyricParser(lrc) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// regexr.com/6e52n
|
// regexr.com/6e52n
|
||||||
const extractLrcRegex = /^(?<lyricTimestamps>(?:\[.+?\])+)(?!\[)(?<content>.+)$/gm;
|
const extractLrcRegex =
|
||||||
const extractTimestampRegex = /\[(?<min>\d+):(?<sec>\d+)(?:\.|:)*(?<ms>\d+)*\]/g;
|
/^(?<lyricTimestamps>(?:\[.+?\])+)(?!\[)(?<content>.+)$/gm;
|
||||||
|
const extractTimestampRegex =
|
||||||
|
/\[(?<min>\d+):(?<sec>\d+)(?:\.|:)*(?<ms>\d+)*\]/g;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{time: number, rawTime: string, content: string}} ParsedLyric
|
* @typedef {{time: number, rawTime: string, content: string}} ParsedLyric
|
||||||
|
|
|
@ -169,7 +169,8 @@ export default {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
validateEmail() {
|
validateEmail() {
|
||||||
const emailReg = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
const emailReg =
|
||||||
|
/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||||
if (
|
if (
|
||||||
this.email === '' ||
|
this.email === '' ||
|
||||||
this.password === '' ||
|
this.password === '' ||
|
||||||
|
|
|
@ -27,11 +27,7 @@
|
||||||
<span
|
<span
|
||||||
v-if="
|
v-if="
|
||||||
[
|
[
|
||||||
5277771961,
|
5277771961, 5277965913, 5277969451, 5277778542, 5278068783,
|
||||||
5277965913,
|
|
||||||
5277969451,
|
|
||||||
5277778542,
|
|
||||||
5278068783,
|
|
||||||
].includes(playlist.id)
|
].includes(playlist.id)
|
||||||
"
|
"
|
||||||
style="font-weight: 600"
|
style="font-weight: 600"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user