Commit Graph
18 Commits
Author SHA1 Message Date
kuekhaoyang 24f870a40c feat: Integrate subscription synchronization and initialize new subscriptions with lastUpdated: 0. 2026-01-15 17:21:53 +08:00
Troray 430336c4c1 Update useSubscriptionSync.ts 2026-01-14 02:32:55 +08:00
Troray dfdeef04a7 fix: stop infinite requests after adding new subscription
Adding a new subscription triggered an infinite loop of JSON fetches
because useSubscriptionSync was subscribing to settingsStore changes,
which caused a cycle: store change → state update → sync → save →
store change.
- Remove settingsStore subscription to break the infinite loop
- Add refs to ensure sync runs only once per component mount
- Enable 5-minute cooldown to prevent redundant syncs
2026-01-14 01:43:32 +08:00
kuekhaoyang 04aa734ff8 Update 2026-01-13 16:32:01 +08:00
kuekhaoyang b11e762350 Update 2026-01-13 16:04:13 +08:00
Troray beba6a6cbe fix(search): resolve infinite loop and refactor useHomePage hook
- 修复逻辑缺陷:移除了导致死循环的条件,并引入 Ref 追踪状态,解决了“无结果死循环”和“异步源加载导致的重复搜索”问题。
 - 代码重构 (DRY):新增 executeSearch 复用核心逻辑。
 - Hook 优化:完善了 useCallback 和 useEffect 的依赖管理,提升 React 渲染性能。
2026-01-11 00:35:16 +08:00
kuekhaoyang 26cfa10c3a feat: Replace adult and secret content features with a new premium content system. 2026-01-04 19:04:27 +08:00
kuekhaoyang d7cd4c6e36 feat: Improve hook stability and performance with useCallback and useMemo, and enhance auto-skip and search error handling. 2026-01-04 18:18:47 +08:00
kuekhaoyang e9d060f74a chore: remove PWA installation banner, associated hooks, manifest, and PWA metadata from the application. 2026-01-02 14:08:50 +08:00
kuekhaoyang cb0dee9469 feat: Implement PWA installation prompt and banner. 2026-01-02 14:04:23 +08:00
kuekhaoyang c5e2397f2a feat: implement secret mode with separate history and favorites, and dedicated player links 2026-01-02 13:54:27 +08:00
kuekhaoyang f379c52e76 feat: Implement video stall detection, next episode loading UI, and persist playback rate across sessions. 2026-01-02 13:17:10 +08:00
kuekhaoyang d8da86054c fix: Improve useHomePage search logic to retry searches when sources become available and prevent empty queries. 2025-12-30 11:58:47 +08:00
kuekhaoyang c920a3160a feat: Introduce display settings for real-time latency and search mode, enhance video player controls, and add a generic UI switch component. 2025-12-29 10:48:25 +08:00
kuekhaoyang 7c1f1db046 refactor: remove runtime fetching of environment subscriptions and envSubscriptionsSet state. 2025-12-25 16:38:27 +08:00
kuekhaoyang 48d6568a70 feat: add support for environment variable defined subscription sources and runtime config API 2025-12-25 16:25:53 +08:00
kuekhaoyang 609fba7571 feat: Implement automatic subscription source syncing, initialize subscriptions from environment, and integrate into home page. 2025-12-25 12:11:46 +08:00
kuekhaoyang 43a35e3f47 new 2025-12-24 23:53:24 +08:00