xenticore
c8f71b4f47
l10n: update attribution text and style
...
New text is easier to localize, strings can be found in free dictionaries
2025-04-30 19:15:38 -04:00
xenticore
a34c040acd
refactor: correct typing of getKeyByValue
2025-04-30 18:33:17 -04:00
xenticore
5e5846abde
refactor: rewrite async promises as chain
2025-04-30 18:31:33 -04:00
xenticore
a3d67b1358
lint: remove dead code
2025-04-24 17:55:00 -04:00
xenticore
df3b40fbdd
lint: var to let/const
2025-04-24 17:38:02 -04:00
xenticore
93d202c826
fix: always use name from item schema
2025-04-16 21:16:00 -04:00
xenticore
1d92d9e20c
feat: add currency conversions to price table
...
Exchange rates are loaded once per page and passed to price row generation, so we don't hit the cache more than once.
2025-04-16 18:24:27 -04:00
xenticore
fcf077c877
feat: fetch currency exchange rate
...
exchange rates are fetched at script startup, and at most once daily, then cached. attribution is added as per ExchangeRate-API's requirements
2025-04-16 18:23:07 -04:00
xenticore
de6679b6c9
fix: headings should not appear before prices
2025-04-07 17:31:30 -04:00
xenticore
3966c79b85
feat: add killstreak kit pricing
2025-04-07 17:27:30 -04:00
xenticore
779cd12153
feat: add festive and botkiller categories to pricebox
...
festives are now shown with their quality rather than "Festive" and "Strange Festive"
botkillers are sorted by release, and displayed without "Mk.I" to save space
2025-04-07 15:57:41 -04:00
xenticore
eada50c0e8
refactor: sort price rows by order instead of quality
2025-04-07 15:45:13 -04:00
xenticore
fa7276a53c
feat: add support for festive weapon variants
...
on schema update, festive variants are linked. on content injection, if if finds a festive variant, it adds price rows for Festive and Strange Festive.
2025-04-02 18:54:39 -04:00
xenticore
be6206194b
fix: price data update time serialization
...
price update time was not properly serialized as a number like the schema was, and led to dates being stored as empty objects. UI code also did not check if date was NaN, and rendered "invalid date" instead.
2025-03-29 14:19:38 -04:00
xenticore
0a52bca229
fix: redundant page locale check
2025-03-28 23:59:14 -04:00
xenticore
279cf4da9d
feat: add australiums to price table
2025-03-28 23:48:29 -04:00
xenticore
77a831b89e
refactor: fetchPrice now expects an SKU string
2025-03-28 23:35:39 -04:00
xenticore
967a32fc83
fix: prioritize non-stock/non-decorated items
...
Changed schema lookups to prioritize non-stock/non-decorated item defindexes when names collide
Modified unit tests to include example (stock Flame Thrower)
2025-03-27 15:32:45 -04:00
xenticore
7c7e58d0d2
refactor: move extractPageTitleFromURL to module, add tests
2025-03-27 14:51:13 -04:00
xenticore
12de4a7148
refactor: moved components to separate modules
...
`content.ts` is now half less than the size, exported functions can be unit tested
2025-03-24 15:39:28 -04:00
xenticore
568b2eaabd
Initial commit
2025-03-21 13:53:45 -04:00