chore: 更新依賴、更換為 prettier 新規則 (#1340)

* chore: upgrade dependencies
* style: prettier
This commit is contained in:
pan93412 2022-02-25 07:36:13 +08:00 committed by GitHub
parent 76b358445e
commit 3e1dc62fa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 3259 additions and 2924 deletions

View file

@ -31,9 +31,8 @@ export default {
c => c === name
);
if (index !== -1) {
state.settings.enabledPlaylistCategories = state.settings.enabledPlaylistCategories.filter(
c => c !== name
);
state.settings.enabledPlaylistCategories =
state.settings.enabledPlaylistCategories.filter(c => c !== name);
} else {
state.settings.enabledPlaylistCategories.push(name);
}

View file

@ -8,8 +8,10 @@ export function lyricParser(lrc) {
}
// regexr.com/6e52n
const extractLrcRegex = /^(?<lyricTimestamps>(?:\[.+?\])+)(?!\[)(?<content>.+)$/gm;
const extractTimestampRegex = /\[(?<min>\d+):(?<sec>\d+)(?:\.|:)*(?<ms>\d+)*\]/g;
const extractLrcRegex =
/^(?<lyricTimestamps>(?:\[.+?\])+)(?!\[)(?<content>.+)$/gm;
const extractTimestampRegex =
/\[(?<min>\d+):(?<sec>\d+)(?:\.|:)*(?<ms>\d+)*\]/g;
/**
* @typedef {{time: number, rawTime: string, content: string}} ParsedLyric

View file

@ -169,7 +169,8 @@ export default {
return true;
},
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 (
this.email === '' ||
this.password === '' ||

View file

@ -27,11 +27,7 @@
<span
v-if="
[
5277771961,
5277965913,
5277969451,
5277778542,
5278068783,
5277771961, 5277965913, 5277969451, 5277778542, 5278068783,
].includes(playlist.id)
"
style="font-weight: 600"