rink-rs/web/src
Tiffany Bennett b921d7a68d
Context refactor (#124)
Yet another giant refactor PR. I'm trying to clean up the Context internals. I moved a lot of the fields into a new Registry object with the hopes of making future refactors to it easier.

A lot of things are poorly named, and I've been going through and updating those. Some of these fields I didn't even know what they did until I studied them carefully, since I'd forgotten over time.

This makes some breaking changes to the Defs serialization format, but I didn't touch Unit or Substance which are the only ones that are used by the backend currently.

Some other refactors I did:
- Updated quantities to no longer reference units, only base units and other quantities.
- Added a debug dump option to the CLI for showing the contents of the Context.
- Merged Def::BaseUnit & Canonicalization.
- Merged Def::Prefix & SPrefix. I don't actually know what SPrefix stood for originally (standalone? definitely not short).
- Prefixes are now required to be dimensionless.
- Added missing tests for the Def serialization format.

I'm not entirely done yet though. There's still one dependency on Context from the loader, which is on the eval() method, used by units and substances. I'm still thinking about how I can reduce that coupling.
2022-04-10 10:37:56 -07:00
..
components Code reorganization (#123) 2022-04-03 21:04:47 -07:00
routes Cache currency data in a file for better reliability 2021-02-14 16:46:17 -08:00
util Context refactor (#124) 2022-04-10 10:37:56 -07:00
client.js Rink Web 2 (#62) 2020-08-06 16:25:12 -07:00
currency.ts Quick fix for ECB API no longer including Ruble 2022-03-08 21:19:06 -08:00
ecb-defaults.json Quick fix for ECB API no longer including Ruble 2022-03-08 21:19:06 -08:00
server.js Cache currency data in a file for better reliability 2021-02-14 16:46:17 -08:00
service-worker.js Rink Web 2 (#62) 2020-08-06 16:25:12 -07:00
stores.ts Rink Web 2 (#62) 2020-08-06 16:25:12 -07:00
template.html Rink Web 2 (#62) 2020-08-06 16:25:12 -07:00