Commit Graph

14 Commits

Author SHA1 Message Date
YuBai
7ba1a7be0c feat: implement lazy login to eliminate startup network request
Replace eager login verification on startup with assumeLoggedIn(),
which sets login state from saved credentials without any network call.
Real verification is deferred until sync (which needs the actual user ID)
or when the settings page is opened.

- UserComponent: add verified flag, assumeLoggedIn(), isVerified()
- main.ts: replace onLayoutReady(login) with assumeLoggedIn(); fix
  inverted condition bug in checkLogin() (!needLogin -> needLogin)
- DoubanSyncModal: remove redundant login check before checkLogin()
- LoginSettingsHelper: handle assumed-but-unverified state in constructLoginUI()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 20:38:48 +08:00
661e8e7e2e add picture bed 2024-05-16 00:09:33 +08:00
938d7f6658 fix: douban login 2023-09-20 13:37:16 +08:00
01a386dd6b change: the way of request 2023-09-20 13:16:24 +08:00
44697ac05a feature: theater
function: HttpUtil
2023-09-20 09:54:29 +08:00
881f9f36f6 fix cookie login failed 2023-09-12 15:39:17 +08:00
6c52606417 feature: theater
feature: imageData.url
2023-08-30 18:10:37 +08:00
1119b105ba fix login error 2023-05-25 00:06:44 +08:00
9d45746dac fix login failed problem 2023-04-18 01:02:54 +08:00
2b3c310f4c add login by cookie 2023-02-02 01:26:38 +08:00
c49750b848 fix login and teleplay 2022-12-02 23:00:22 +08:00
d88a004ed6 add debug mode 2022-11-26 17:28:39 +08:00
b3b9ab2c44 add debug mode 2022-11-26 15:55:41 +08:00
01a066f393 add function: sync personal movie/book/music info 2022-11-20 00:49:11 +08:00