Commit Graph
4777 Commits
Author SHA1 Message Date
tresabhi 92c8b90bb3 remove api check 2026-10-07 16:56:40 -05:00
Mark Greene aaf0e52be4 Fix: restore redirect to the user's preferred locale
Users were no longer sent to their preferred locale. `LocaleRedirector` was emptied in `115fa5aca` after its previous versions caused repeated redirects, and nothing replaced it.

**Cause**
- The earlier logic compared the best locale (a string) against the current locale entry (an object), so the check was always true on non-default locale pages
- That made the redirect fire repeatedly, which led to the logic being removed entirely

**Changes**
- Derive the current locale from the URL, treating the default locale as unprefixed to match how pages are generated
- Redirect only when the best locale differs from the current locale, so it stops after one hop
- Redirect users with a saved `preferred-locale` from any page
- Redirect users without a saved preference from default-locale URLs only, using their browser language, so shared locale links are respected
- Preserve the rest of the path when swapping the locale prefix
- Skip `/api` paths
2026-10-04 19:47:20 +13:00
tresabhi 067c9cb267 simpler bug forms 2026-10-03 22:10:10 -05:00
tresabhi 8d5ef29771 feature 2026-10-03 22:05:07 -05:00
tresabhi a5637c9f07 format 2026-10-03 22:01:26 -05:00
tresabhi d7e06a2b46 email link 2026-10-03 21:52:39 -05:00
tresabhi 551183a65b yml 2026-10-03 21:51:50 -05:00
tresabhi 46bd8f6316 add template 2026-10-03 21:51:21 -05:00
TrèsAbhi f8aa9e75d5 Update issue templates 2026-10-03 21:42:03 -05:00
TrèsAbhi f3e8cdd5e0 add GNU AGPLv3 2026-10-03 14:18:59 -05:00
TrèsAbhi 962c3c78d0 Delete LICENSE.md 2026-10-03 14:17:57 -05:00
TrèsAbhi 04805675dd Merge pull request #274 from blitzkit/main-i18n
New Crowdin updates
2026-10-02 15:38:11 -07:00
tresabhi 4028df0886 dash 2026-10-02 17:37:42 -05:00
TrèsAbhi 126e91411a New translations en.json (Russian)
[ci skip]
2026-10-02 15:35:49 -07:00
TrèsAbhi 24ffd70394 New translations en.json (Portuguese)
[ci skip]
2026-10-02 15:35:48 -07:00
TrèsAbhi 8c8b36f0d5 New translations en.json (Polish)
[ci skip]
2026-10-02 15:35:46 -07:00
TrèsAbhi 38c595ebce New translations en.json (Japanese)
[ci skip]
2026-10-02 15:35:45 -07:00
TrèsAbhi 66a6aece7c New translations en.json (Spanish)
[ci skip]
2026-10-02 15:35:43 -07:00
TrèsAbhi 35ce79a421 New translations en.json (French)
[ci skip]
2026-10-02 15:35:41 -07:00
TrèsAbhi 8e8da15254 New translations en.json (Chinese Simplified)
[ci skip]
2026-10-02 15:35:40 -07:00
TrèsAbhi eea358c4e1 New translations en.json (Ukrainian)
[ci skip]
2026-10-02 15:35:38 -07:00
tresabhi ecfd50f05b logs 2026-10-02 17:35:12 -05:00
TrèsAbhi 7458cf51dc Merge pull request #263 from Hitjack007/peekabo-dpm 2026-10-02 15:24:40 -07:00
TrèsAbhi 3b0af110d2 Merge branch 'main' into peekabo-dpm 2026-10-02 15:22:06 -07:00
TrèsAbhi 91da72e8b4 New Crowdin updates (#268) 2026-10-02 17:08:10 -05:00
TrèsAbhi 6319d6fbd0 Merge pull request #269 from Hitjack007/equaliser-beta-flag 2026-10-02 15:05:56 -07:00
tresabhi a5321ebde3 game mode banner with string ids 2026-10-02 17:05:25 -05:00
tresabhi 74ca01f978 remove string 2026-10-02 17:01:43 -05:00
tresabhi b7ac038ace Merge branch 'main' of https://github.com/blitzkit/blitzkit 2026-10-02 16:56:05 -05:00
tresabhi 1a2caf120b remove some dead code 2026-10-02 16:55:53 -05:00
TrèsAbhi 377bbabb02 Merge pull request #270 from Hitjack007/contact-shadows-fix 2026-10-02 14:55:05 -07:00
TrèsAbhi a4c6f0a1e2 Merge pull request #272 from Hitjack007/moving-camo-duplicate
Clarify shooting camo labels
2026-10-02 14:37:28 -07:00
TrèsAbhi 802f04bbe6 Merge pull request #273 from Hitjack007/consumable-armor-view 2026-10-02 14:34:28 -07:00
tresabhi f7db1280cf use useRef instead of useState 2026-10-02 16:34:12 -05:00
TrèsAbhi 0477887d68 Merge branch 'main' into consumable-armor-view 2026-10-02 14:20:38 -07:00
Mark Greene 0941c23a3c Fix dynamic armor overlay vanishing on re-render
PrimaryArmorSceneComponent rebuilt its ShaderMaterial every render with null uniforms that were only set once on mount. Create it once with useState instead.
2026-10-02 19:24:43 +13:00
Mark Greene d44c184025 Clarify shooting camo labels 2026-10-02 18:49:23 +13:00
Mark Greene 73975a5d83 Fix contact shadows growing across modes
Armor left gl.autoClear off after its frame, so ContactShadows accumulated onto an uncleared target. Restore it at the end of the frame.
2026-10-02 18:34:50 +13:00
Mark Greene 7f9ee1f907 Remove equalizer beta badge 2026-10-02 18:27:10 +13:00
tresabhi 9537349664 add dependabot 2026-09-30 15:49:19 -05:00
tresabhi 8793c9a9c9 simplify readme 2026-09-30 15:44:51 -05:00
tresabhi 4d57b43912 logs 2026-09-30 15:41:08 -05:00
tresabhi ee146b8ed9 fix wgpkg dirs 2026-09-30 13:51:13 -05:00
TrèsAbhi 763ecf22b0 New Crowdin updates (#266) 2026-09-24 16:25:00 -05:00
Mark Greene 281e4abec7 Add peekaboo DPM stat to Tankopedia firepower
Adds a **Peekaboo DPM** entry nested under DPM for single-shot guns, estimating damage per minute when only firing after resetting camouflage (or waiting out the reload, whichever is slower), assuming at least 10 seconds between shots.

- Shots per minute are capped at `60/10` for reloads faster than 10s, and fall back to `60/reload` otherwise
- The result is multiplied by the currently selected shell's damage and rounded
- An (i) icon next to the label opens a popover explaining the calculation
- The row is hidden for auto-loader/auto-reloader guns
- No percentile ranking bar is shown, since no dataset exists yet for this new stat
2026-09-25 09:22:08 +12:00
TrèsAbhi 2beb084b67 Merge pull request #267 from Hitjack007/fix/session-missing-average-crash 2026-09-24 14:07:50 -07:00
tresabhi f7ca622906 correct assertions 2026-09-24 16:07:12 -05:00
tresabhi 424d9944ad smarter trigger 2026-09-23 17:12:53 -05:00
tresabhi 8af41b91b5 logs 2026-09-23 16:32:19 -05:00
tresabhi 347efa75fe add compatibility for string game mode ids 2026-09-23 16:31:35 -05:00