Commit Graph
100 Commits
Author SHA1 Message Date
xenticore 0610f41938 ci: correct path to userscript on release 2025-05-01 19:43:20 -04:00
xenticore 916c690325 bump version to 0.8.0 2025-05-01 19:02:58 -04:00
xenticore 5a1c10178e chore: rename package (again), use display name field 2025-05-01 19:02:46 -04:00
xenticore 5cb8de7f32 ci: rename test steps 2025-05-01 18:57:29 -04:00
xenticore 6c6c94db9e refactor: make noisy logs debug only 2025-05-01 18:56:54 -04:00
xenticore 89161cb4e4 fix: typo lol 2025-05-01 18:56:32 -04:00
xenticore 18f31db87b test: GM_fetch not mocked depending on test order 2025-05-01 18:54:48 -04:00
xenticore 9946cafaf5 fix: remove unnecessary files from builds 2025-05-01 18:51:21 -04:00
xenticore 91f43295e8 test: fix unit tests for WebExtension build 2025-05-01 18:31:58 -04:00
xenticore 745087a1cb fix: stronger error handling in fetchPrice 2025-05-01 18:25:47 -04:00
xenticore c053af1928 refactor: less noise in queryExchangeRates 2025-05-01 18:25:13 -04:00
xenticore b84b53c544 fix: error handling in priceSKU 2025-05-01 18:24:51 -04:00
xenticore 8d8dea0bdc test: test both userscript and extension builds 2025-05-01 15:38:51 -04:00
xenticore 95ce637892 feat: enable webextension builds
Currently only supports Chrome due to no `chrome` -> `browser` polyfill
2025-05-01 15:27:14 -04:00
xenticore d02bd7ac9d chore: rename package
Preserve userscript name while making package name neater:
**TF2 Wiki Pricing**
`tf2wikipricing.user.js`
2025-05-01 14:25:44 -04:00
xenticore 4ce57450dd chore: add exchangerates-api to userscript header 2025-05-01 13:07:33 -04:00
xenticore bef368440e l10n: correct untranslated spanish string 2025-04-30 19:35:08 -04:00
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 19fe1c70a4 oops 2025-04-30 19:11:21 -04:00
xenticore a34c040acd refactor: correct typing of getKeyByValue 2025-04-30 18:33:17 -04:00
xenticore d4b2fdeff0 lint: force allow any 2025-04-30 18:32:25 -04:00
xenticore 39ad61b768 fix: mock data not using correct date format 2025-04-30 18:32:02 -04:00
xenticore 5e5846abde refactor: rewrite async promises as chain 2025-04-30 18:31:33 -04:00
xenticore 36550df749 lint: exclude localization string files 2025-04-30 15:40:37 -04:00
xenticore 74ef520858 chore: define extension author 2025-04-29 00:52:47 -04:00
xenticore d93feafbb1 lint: define interface for remote schema response 2025-04-29 00:51:16 -04:00
xenticore 1a973f6b52 lint: stop linting JSON files 2025-04-29 00:50:39 -04:00
xenticore 726cc97b38 refactor: debuggable localization function 2025-04-29 00:50:25 -04:00
xenticore 6fdc6fd132 refactor: rewrite async promise as promise chain 2025-04-29 00:49:32 -04:00
xenticore 60e845ddf8 Revert "lint: change export style in localization files"
This reverts commit d71cfcd0d7.
2025-04-29 00:14:33 -04:00
xenticore 96f4dbd883 lint: remove unnecessary escape in regex 2025-04-28 23:16:34 -04:00
xenticore f6499adc4a lint: correct promise types 2025-04-28 23:10:51 -04:00
xenticore b83e66d145 lint: allow require imports 2025-04-24 17:55:10 -04:00
xenticore a3d67b1358 lint: remove dead code 2025-04-24 17:55:00 -04:00
xenticore 2dc51d1a00 lint: remove unused import 2025-04-24 17:38:42 -04:00
xenticore 4b6198fcaa lint: clarify types on log functions 2025-04-24 17:38:34 -04:00
xenticore d449f73e0c lint: use boolean 2025-04-24 17:38:21 -04:00
xenticore df3b40fbdd lint: var to let/const 2025-04-24 17:38:02 -04:00
xenticore d71cfcd0d7 lint: change export style in localization files 2025-04-24 17:35:04 -04:00
xenticore edc969d037 lint: prepare eslint 2025-04-24 17:13:25 -04:00
xenticore 94ddd6047e l10n: stub all wiki languages 2025-04-24 17:07:38 -04:00
xenticore 9888e2adfa l10n: add missing japanese strings 2025-04-16 22:12:41 -04:00
xenticore 460a53b06c l10n: add missing italian strings 2025-04-16 22:01:10 -04:00
xenticore b8fe58a4a0 l10n: remove whitespace in es 2025-04-16 21:36:15 -04:00
xenticore db1f4b5027 bump version to 0.7.1 2025-04-16 21:17:28 -04:00
xenticore 93d202c826 fix: always use name from item schema 2025-04-16 21:16:00 -04:00
xenticore cb782fb572 bump version to 0.7.0 2025-04-16 20:58:17 -04:00
xenticore 21fcb57969 fix: keep spacing in currency formatting 2025-04-16 20:57:28 -04:00
xenticore 90ddc075df feat: add more currencies for page languages 2025-04-16 20:43:12 -04:00
xenticore e6eceed568 test: add exchange rate service tests 2025-04-16 20:22:51 -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 84daf5b2d6 fix, feat: add currency conversion stub
uses proper JS api for currency formatting and preparations for showing other currencies based on page locale
2025-04-16 14:54:57 -04:00
xenticore dcf45c2740 refactor: split currency and key/metal formatting into separate units
this simplifies functions and tests, and will make currency optional/variable later
2025-04-16 14:04:39 -04:00
xenticore 51e6d41e4c Merge branch 'develop' 2025-04-07 17:32:38 -04:00
xenticore cb07930c6d bump version to 0.6.0 2025-04-07 17:31:43 -04:00
xenticore de6679b6c9 fix: headings should not appear before prices 2025-04-07 17:31:30 -04:00
xenticore 95d0880cac l10n: add strings for killstreak kits 2025-04-07 17:27:43 -04:00
xenticore 3966c79b85 feat: add killstreak kit pricing 2025-04-07 17:27:30 -04:00
xenticore 7be1d1da5d bump version to 0.5.0 2025-04-07 16:35:40 -04:00
xenticore b61e4bfac9 l10n: add strings for botkillers and festives 2025-04-07 15:58:07 -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 9a8ce24313 test: add botkiller detection tests 2025-04-07 15:40:44 -04:00
xenticore 8fa0eb55e1 feat: add botkiller variants to schema cache 2025-04-07 14:20:20 -04:00
xenticore df2e8ede6d fix: allow retries if API fails 2025-04-07 13:30:39 -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 02b9a0b69f Merge branch 'develop' 2025-03-29 14:21:16 -04:00
xenticore 3101f57f62 bump version to 0.4.1 2025-03-29 14:20:56 -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 13a8e14284 l10n: update italian strings 2025-03-29 00:03:43 -04:00
xenticore c9628de4c6 l10n: add australium localization 2025-03-29 00:01:19 -04:00
xenticore 04845d6bbf l10n: translate ref 2025-03-29 00:00:52 -04:00
xenticore 0a52bca229 fix: redundant page locale check 2025-03-28 23:59:14 -04:00
xenticore 58d6917246 bump version to 0.4.0 2025-03-28 23:49:33 -04:00
xenticore 279cf4da9d feat: add australiums to price table 2025-03-28 23:48:29 -04:00
xenticore f8ca4148f0 feat: schema now retrieves slot, australium status, killstreak status 2025-03-28 23:40:47 -04:00
xenticore 77a831b89e refactor: fetchPrice now expects an SKU string 2025-03-28 23:35:39 -04:00
xenticore d1c5083425 refactor: priceUsingPricesTF now expects an SKU string 2025-03-28 23:31:59 -04:00
xenticore e6013ef61c add static list of australiums 2025-03-28 22:55:45 -04:00
xenticore 8b2bf38eff refactor: declare GM_fetch as global for typescript
important for the compiler when mocking for unit tests
2025-03-28 22:52:42 -04:00
xenticore 7465d6ce8d ci: fix release test step 2025-03-27 17:03:51 -04:00
xenticore 507970fdde bump version to 0.3.1 2025-03-27 16:57:35 -04:00
xenticore 87a6fc5d1c ci: release builds with production mode 2025-03-27 16:57:17 -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 b24cda98ad doc: fix incomplete documentation of priceUsingPricesTF 2025-03-27 15:28:53 -04:00
xenticore 7c7e58d0d2 refactor: move extractPageTitleFromURL to module, add tests 2025-03-27 14:51:13 -04:00
xenticore 335e45096f test: add price service and prices.tf tests 2025-03-27 14:03:54 -04:00
xenticore 305d702904 ci: fix incorrect output grab
lol
2025-03-27 12:22:25 -04:00
xenticore 24f86b5fbc ci: declare global vars in test environment 2025-03-27 12:13:05 -04:00
xenticore f6e92facbc test: add item schema tests 2025-03-27 12:11:30 -04:00
xenticore 15841520fd test: add mock DOM to test environment 2025-03-27 12:11:20 -04:00
xenticore 349ceacb4d test: clean up calc comment 2025-03-24 19:45:33 -04:00
xenticore 60f90d6a37 test: add price formatting tests 2025-03-24 19:38:14 -04:00
xenticore 3f51277bd5 test: remove unnecessary comments 2025-03-24 19:38:05 -04:00
xenticore 1425b33e97 test: add localization tests 2025-03-24 16:13:38 -04:00
xenticore 6a3cbaaad9 ci: run test on develop branch 2025-03-24 16:13:24 -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 2943253dd7 test: add bun test scaffold 2025-03-24 13:42:14 -04:00
xenticore cdf22afb96 ci: add title to new releases 2025-03-21 14:44:30 -04:00