mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
chore: 更新依賴、更換為 prettier 新規則 (#1340)
* chore: upgrade dependencies * style: prettier
This commit is contained in:
parent
76b358445e
commit
3e1dc62fa0
7 changed files with 3259 additions and 2924 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 === '' ||
|
||||
|
|
|
|||
|
|
@ -27,11 +27,7 @@
|
|||
<span
|
||||
v-if="
|
||||
[
|
||||
5277771961,
|
||||
5277965913,
|
||||
5277969451,
|
||||
5277778542,
|
||||
5278068783,
|
||||
5277771961, 5277965913, 5277969451, 5277778542, 5278068783,
|
||||
].includes(playlist.id)
|
||||
"
|
||||
style="font-weight: 600"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue