mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
Add a Settings tab to the usage page that replaces the Pricing tab: an amount display section on top (currency + hand-entered exchange rate) and the existing pricing configuration below. - Display currencies: USD, CNY, EUR, JPY, TWD, TRY; USD stays the default. Rates are entered manually; untouched preset rates are not written to settings.json so later preset updates still reach those users. - Costs stay stored in USD; conversion only happens at display time. Converted amounts carry a "≈" prefix and hovers add the USD value. - Chart data is converted before plotting so axis ticks stay round. - Yen drops two decimals, and usage amounts now group thousands. - The sidebar "Today" amount drops decimals from 100 up so it no longer squeezes the nav label. - Settings are device-local (`usageDisplay` in ~/.cc-switch/settings.json).