feat(cookie-login): add iFlow Cookie login functionality with UI elements and internationalization support

This commit is contained in:
Supra4E8C
2025-11-23 18:07:57 +08:00
parent 970297f3ae
commit efc6cb3863
4 changed files with 143 additions and 1 deletions

4
app.js
View File

@@ -480,6 +480,7 @@ class CLIProxyManager {
const iflowOauthBtn = document.getElementById('iflow-oauth-btn');
const iflowOpenLink = document.getElementById('iflow-open-link');
const iflowCopyLink = document.getElementById('iflow-copy-link');
const iflowCookieSubmit = document.getElementById('iflow-cookie-submit');
if (iflowOauthBtn) {
iflowOauthBtn.addEventListener('click', () => this.startIflowOAuth());
@@ -490,6 +491,9 @@ class CLIProxyManager {
if (iflowCopyLink) {
iflowCopyLink.addEventListener('click', () => this.copyIflowLink());
}
if (iflowCookieSubmit) {
iflowCookieSubmit.addEventListener('click', () => this.submitIflowCookieLogin());
}
// 使用统计
const refreshUsageStats = document.getElementById('refresh-usage-stats');