Commit Graph

3 Commits

Author SHA1 Message Date
Dash
26c7169308 feat(mobile): 支持 iOS 与 Android 锁屏余量和每日用量组件 (#9130)
* feat(mobile): 支持 iOS 锁屏余量和每日用量组件

Add circular, rectangular and inline widgets with horizontal quota bars, provider icons, lowest-quota selection and actual daily usage trends.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(mobile): 保留锁屏余量填充和完整辅助朗读

Constrain the emphasized bar gap at 2x and share reset timing between single and paired inline readings.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* feat(mobile): 安卓用量组件支持放到原生锁屏

两个组件声明 home_screen|keyguard,在 Android 16 QPR2 起的原生锁屏组件页
可直接添加,沿用桌面版式、账号排序与数据来源设置;锁屏点击由系统先要求解锁。
文档记录三星 One UI 8.5 原生锁屏不放行第三方组件的实测结论与模拟器验证方法。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 10:37:57 +08:00
Dash
c2bf9eda8b feat(quota): 订阅余量小组件可设排在前面与隐藏的账号,液面加圆角
- iPhone「订阅余量」编辑页新增「排在前面的账号」(小/中/大最多 4/6/7 个,可拖动、删除)与「隐藏的账号」;
  其余账号(含以后新加的)按电脑顺序跟在后面,全部隐藏时显示全部,与 Mac 菜单栏设置同一思路。
- 所选账号存为 id + 图标 + 名字:各电脑给同一订阅的 id 不同时按图标与名字找回;重复选择只显示一次。
- 小号版式只对其余账号做「订阅优先」,排在前面的照原样显示。
- iPhone 小组件与 Mac 菜单栏面板的液面顶角改为 4pt 圆角(液面很低时按高度缩小),Mac 液面晃动时圆角跟着波形。
- 编辑页文案补齐 10 种语言;DESIGN.md 与 mobile-development.md 登记规则。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:11:17 +13:00
Dash
33e0ecc483 feat(quota): standalone quota overview, offline computers, widget data source
- Move collection, caches and rebuild cadence out of the macOS menu bar panel into
  quota-overview/service.ts; the panel holds it, phone requests lease it, so any
  platform answers the widgets whether or not a panel runs.
- Keep an unreachable computer's accounts with their last reading for up to 3 days,
  marked with their age and never recommended; retry failed remote reads after 1 min.
- Store each computer's widget state in the App Group; widgets pick a data source
  (automatic = the computer that answered last, or a specific computer).

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-10-31 18:19:49 +13:00