feat: 添加Cookie登录功能及自动获取等相关管理设置

feat: #413 #424
This commit is contained in:
alger
2025-08-06 22:36:30 +08:00
parent 09ccd9f2a6
commit 16aeaf2948
18 changed files with 1245 additions and 115 deletions
+19 -5
View File
@@ -1,22 +1,36 @@
export default {
title: {
qr: 'QR Code Login',
phone: 'Phone Login'
phone: 'Phone Login',
token: 'Cookie Login'
},
qrTip: 'Scan with NetEase Cloud Music APP',
phoneTip: 'Login with NetEase Cloud account',
tokenTip: 'Enter a valid NetEase Cloud Music Cookie to login',
placeholder: {
phone: 'Phone Number',
password: 'Password'
password: 'Password',
token: 'Please enter NetEase Cloud Music Cookie (token)'
},
button: {
login: 'Login',
switchToQr: 'QR Code Login',
switchToPhone: 'Phone Login'
switchToPhone: 'Phone Login',
switchToToken: 'Use Cookie Login',
backToQr: 'Back to QR Code Login',
tokenLogin: 'Cookie Login',
autoGetCookie: 'Auto Get Cookie'
},
message: {
loginSuccess: 'Login successful',
tokenLoginSuccess: 'Cookie login successful',
loadError: 'Error loading login information',
qrCheckError: 'Error checking QR code status'
}
qrCheckError: 'Error checking QR code status',
tokenRequired: 'Please enter Cookie',
tokenInvalid: 'Invalid Cookie, please check and try again',
autoGetCookieSuccess: 'Auto get Cookie successful',
autoGetCookieFailed: 'Auto get Cookie failed',
autoGetCookieTip: 'Will open NetEase Cloud Music login page, please complete login and close the window'
},
qrTitle: 'NetEase Cloud Music QR Code Login'
};
+37
View File
@@ -19,6 +19,14 @@ export default {
manualTheme: 'Manual Switch',
language: 'Language Settings',
languageDesc: 'Change display language',
tokenManagement: 'Cookie Management',
tokenManagementDesc: 'Manage NetEase Cloud Music login Cookie',
tokenStatus: 'Current Cookie Status',
tokenSet: 'Set',
tokenNotSet: 'Not Set',
setToken: 'Set Cookie',
modifyToken: 'Modify Cookie',
clearToken: 'Clear Cookie',
font: 'Font Settings',
fontDesc: 'Select fonts, prioritize fonts in order',
fontScope: {
@@ -185,6 +193,7 @@ export default {
hideLyrics: 'Hide Lyrics',
hidePlayBar: 'Hide Play Bar',
hideMiniPlayBar: 'Hide Mini Play Bar',
showMiniPlayBar: 'Show Mini Play Bar',
backgroundTheme: 'Background Theme',
themeOptions: {
default: 'Default',
@@ -283,5 +292,33 @@ export default {
emptyListHint: 'Empty list means allow all IPs',
saveSuccess: 'Remote control settings saved',
accessInfo: 'Remote control access address:'
},
cookie: {
title: 'Cookie Settings',
description: 'Please enter NetEase Cloud Music Cookie:',
placeholder: 'Please paste the complete Cookie...',
help: {
format: 'Cookie usually starts with "MUSIC_U="',
source: 'Can be obtained from browser developer tools network requests',
storage: 'Cookie will be automatically saved to local storage after setting'
},
action: {
save: 'Save Cookie',
paste: 'Paste',
clear: 'Clear'
},
validation: {
required: 'Please enter Cookie',
format: 'Cookie format may be incorrect, please check if it contains MUSIC_U'
},
message: {
saveSuccess: 'Cookie saved successfully',
saveError: 'Failed to save Cookie',
pasteSuccess: 'Pasted successfully',
pasteError: 'Paste failed, please copy manually'
},
info: {
length: 'Current length: {length} characters'
}
}
};