ZLH
c17de413e2
feat(usage): fetch exchange rates automatically ( #8716 )
...
The usage page could only show converted amounts with a hand-entered
exchange rate. Add an opt-in "fetch automatically" rate source.
- Usage settings > Display gains a rate source selector: manual (default)
or automatic. Nothing is fetched until the user picks automatic.
- Automatic rates are stored separately from manual ones, so switching
back to manual keeps the user's own values.
- New fetch_exchange_rates command tries open.er-api.com, then
floatrates.com (8 s timeout each, app-wide proxy honored).
- In automatic mode the usage page refreshes rates older than 12 hours;
failures keep the last cached or manual rate. Costs are still stored
in USD.
- The hint links to the actual data source (ExchangeRate-API or
FloatRates), as open.er-api.com's free terms require.
- Async saves merge into the latest settings and are dropped after the
page unmounts, so concurrent setting changes are not overwritten.
2026-11-02 16:27:54 +08:00
..
2026-10-24 22:56:15 +08:00
2026-10-16 19:29:23 +08:00
2026-10-19 18:01:47 +08:00
2026-10-24 15:30:32 +08:00
2026-10-21 17:04:27 +08:00
2026-10-20 21:50:16 +08:00
2026-08-04 14:55:10 +08:00
2026-11-02 11:06:28 +08:00
2026-08-04 14:55:10 +08:00
2026-10-26 12:14:38 +08:00
2026-10-29 22:33:35 +08:00
2026-10-30 21:52:21 +08:00
2026-10-26 16:54:53 +08:00
2026-10-31 23:09:32 +08:00
2026-11-01 22:21:25 +08:00
2026-10-11 22:51:29 +08:00
2026-10-15 21:34:24 +08:00
2026-10-26 16:58:18 +08:00
2026-10-08 00:10:45 +08:00
2026-10-11 22:51:29 +08:00
2026-11-02 09:41:23 +08:00
2026-11-01 22:15:12 +08:00
2026-10-29 22:33:35 +08:00
2026-10-05 21:03:10 +08:00
2026-10-10 16:36:44 +08:00
2026-10-06 21:13:04 +08:00
2026-10-20 23:35:51 +08:00
2026-08-04 14:55:10 +08:00
2026-10-13 00:07:38 +08:00
2026-10-13 10:36:31 +08:00
2026-10-23 17:37:41 +08:00
2026-10-30 00:05:32 +08:00
2026-10-30 00:05:32 +08:00
2026-10-24 15:30:32 +08:00
2026-07-21 16:39:33 +08:00
2026-10-24 20:54:34 +08:00
2026-10-21 00:12:44 +08:00
2026-10-19 18:26:40 +08:00
2026-10-03 23:28:59 +08:00
2026-10-19 18:01:47 +08:00
2026-10-11 22:51:28 +08:00
2026-11-02 11:55:49 +08:00
2026-10-03 23:28:58 +08:00
2026-10-03 23:28:59 +08:00
2026-10-13 00:07:38 +08:00
2026-08-17 22:18:44 +08:00
2025-12-20 23:55:10 +08:00
2026-08-14 17:57:45 +08:00
2026-10-31 12:13:02 +08:00
2026-10-26 12:14:38 +08:00
2026-10-24 15:44:09 +08:00
2026-10-26 12:14:38 +08:00
2026-11-02 11:55:49 +08:00
2026-10-03 23:28:58 +08:00
2026-08-04 14:55:10 +08:00
2026-10-31 23:09:32 +08:00
2026-10-03 23:28:59 +08:00
2026-10-26 16:58:18 +08:00
2026-10-15 21:34:24 +08:00
2026-08-11 18:05:09 +08:00
2026-10-23 15:15:18 +08:00
2026-11-02 11:55:49 +08:00
2026-10-01 23:20:06 +08:00
2026-10-22 16:50:37 +08:00
2026-02-12 21:30:59 +08:00
2026-03-08 19:42:18 +08:00
2026-10-01 23:20:06 +08:00
2026-11-02 11:55:49 +08:00
2026-10-29 22:41:50 +08:00
2026-10-03 23:28:59 +08:00
2026-10-06 10:23:04 +08:00
2026-11-02 11:55:49 +08:00
2026-05-18 11:38:32 +08:00
2026-10-06 10:23:04 +08:00
2026-10-06 10:23:04 +08:00
2026-10-21 17:04:27 +08:00
2026-10-26 13:15:59 +08:00
2026-10-03 23:28:58 +08:00
2026-10-03 23:28:59 +08:00
2026-10-26 12:15:21 +08:00
2026-10-03 23:28:58 +08:00
2026-09-27 22:38:42 +08:00
2026-10-21 11:31:01 +08:00
2026-08-16 18:59:09 +08:00
2026-11-01 22:15:12 +08:00
2026-10-08 00:10:45 +08:00
2026-10-20 21:59:20 +08:00
2026-10-11 22:51:29 +08:00
2026-10-10 12:05:10 +08:00
2026-10-11 22:51:29 +08:00
2026-10-16 17:36:13 +08:00
2026-10-14 16:00:04 +08:00
2026-10-11 22:51:28 +08:00
2026-10-31 12:13:02 +08:00
2026-10-12 23:26:43 +08:00
2026-10-05 20:30:56 +08:00
2026-10-30 10:20:58 +08:00
2026-10-26 12:49:04 +08:00
2026-11-01 22:10:43 +08:00
2026-10-16 19:29:23 +08:00
2026-10-04 16:48:27 +08:00
2026-10-24 22:56:15 +08:00
2026-10-16 19:29:24 +08:00
2026-10-23 10:59:12 +08:00
2026-10-23 10:59:12 +08:00
2026-10-23 10:59:12 +08:00
2026-10-23 11:15:39 +08:00
2026-07-01 11:57:17 +08:00
2026-06-23 10:07:14 +08:00
2026-10-27 16:51:05 +08:00
2026-10-03 23:29:00 +08:00
2026-10-03 23:29:00 +08:00
2026-10-16 19:29:24 +08:00
2026-10-10 16:34:21 +08:00
2026-10-06 10:23:04 +08:00
2026-10-30 10:20:58 +08:00
2026-10-03 23:28:58 +08:00
2026-10-15 21:34:24 +08:00
2026-10-29 22:41:50 +08:00
2026-10-09 21:09:53 +08:00
2026-10-21 15:17:42 +08:00
2026-10-23 10:59:12 +08:00
2026-10-19 18:26:40 +08:00
2026-10-24 22:56:15 +08:00
2026-10-19 18:01:47 +08:00
2026-11-02 11:06:28 +08:00
2026-10-29 09:58:46 +08:00
2026-10-27 16:51:05 +08:00
2026-10-30 00:03:12 +08:00
2026-11-02 16:27:54 +08:00
2026-10-29 09:50:21 +08:00
2026-11-02 16:27:54 +08:00
2026-10-14 17:42:42 +08:00
2026-10-13 10:36:31 +08:00
2026-10-29 09:50:21 +08:00
2026-10-30 00:03:12 +08:00
2026-10-31 23:09:32 +08:00
2026-10-26 17:31:49 +08:00
2026-10-23 10:59:12 +08:00
2026-10-29 22:41:50 +08:00
2026-10-05 20:30:56 +08:00
2026-10-13 10:36:31 +08:00
2026-10-03 23:28:58 +08:00