Compare commits

..
1031 Commits
Author SHA1 Message Date
tresabhi ee94d762d0 fix: paths 2025-01-16 20:34:28 -06:00
tresabhi bcde319ac1 feat: move docs 2025-01-16 20:23:39 -06:00
tresabhi a4828774ca feat: translate compare 2025-01-16 20:14:34 -06:00
tresabhi e59725d763 feat: logs 2025-01-16 19:59:24 -06:00
tresabhi a62179a853 Merge branch 'main' into dev 2025-01-16 19:58:31 -06:00
TrèsAbhi 38ba940a98 New Crowdin updates (#138) 2025-01-16 19:56:42 -06:00
tresabhi a07d6c775e fix: remove writefile 2025-01-16 19:55:18 -06:00
tresabhi f9f7468544 feat: replace $ 2025-01-16 14:22:30 -06:00
tresabhi 98724df711 feat: update bot chunk 4 2025-01-16 14:10:28 -06:00
tresabhi 5499cb5cca feat: update bot chunk 3 2025-01-16 13:53:29 -06:00
tresabhi 122b3f6478 feat: update bot chunk 2 2025-01-16 13:48:13 -06:00
tresabhi d2b24fc953 feat: update bot chunk 1 2025-01-15 20:14:05 -06:00
tresabhi bb557a7dd7 feat: use thing 2025-01-15 14:21:27 -06:00
tresabhi f1612e8fe3 feat: path 2025-01-15 14:16:39 -06:00
tresabhi d12f4fb00e feat: logs 2025-01-15 14:06:28 -06:00
tresabhi ad555ece9a fix: warning 2025-01-15 14:00:06 -06:00
tresabhi 9aee8feaf4 feat: translate embeds 2025-01-15 13:55:24 -06:00
tresabhi baa16840df feat: footer lang 2025-01-15 13:10:57 -06:00
tresabhi 4e80490fd4 feat: localize sessin 2025-01-14 20:32:17 -06:00
tresabhi 6233c16b88 feat: fixed localize tankopedia chars 2025-01-14 20:19:37 -06:00
tresabhi c4f1d9f3b0 feat: localize tankopedia chars 2025-01-14 20:13:38 -06:00
tresabhi 2c365cdea0 feat: localize tankopedia config 2025-01-14 19:37:03 -06:00
tresabhi 18afa4cd28 feat: localize tankopedia reviews 2025-01-14 19:28:14 -06:00
tresabhi ef9778ea96 feat: localize game assets 2025-01-14 19:22:41 -06:00
tresabhi d8459d373c feat: start of localized proto strings 2025-01-14 14:38:41 -06:00
tresabhi 7900c61a9b feat: localize tankopedia tech tree 2025-01-14 14:13:00 -06:00
tresabhi ceb7842d49 feat: localize tankopedia meta section 2025-01-14 14:04:46 -06:00
tresabhi e0c897025e feat: localize tankopedia sandbox 2025-01-13 20:56:30 -06:00
tresabhi ade6ec8af1 feat: localize tank search 2025-01-13 20:06:43 -06:00
tresabhi 06cbe1e733 feat: localize language 2025-01-10 20:46:15 -06:00
tresabhi cb3e759f75 feat: remove redundant /en 2025-01-10 20:38:28 -06:00
tresabhi e4558d978c fix: tool og strings 2025-01-10 20:30:08 -06:00
tresabhi 260d819c77 feat: auto prefixor 2025-01-10 14:37:29 -06:00
tresabhi ffe58de179 Merge branch 'main' into dev 2025-01-10 14:04:54 -06:00
tresabhi 6fbe1d6339 feat: locales 2025-01-10 14:04:42 -06:00
TrèsAbhi 835d03d12c Delete packages/core/lang/hr.json 2025-01-10 14:00:38 -06:00
TrèsAbhi 2b208fa6a0 New Crowdin updates (#137) 2025-01-10 13:59:59 -06:00
tresabhi 66d63d5c60 Merge branch 'main' into dev 2025-01-10 13:49:28 -06:00
tresabhi 6ccffa0458 feat: enable vercel 2025-01-10 10:38:02 -06:00
tresabhi 4c0c10e39e feat: hide hot tanks 2025-01-10 10:12:31 -06:00
tresabhi 3d41c56c73 fix: use en 2025-01-10 10:10:59 -06:00
TrèsAbhi e0dda567f4 Update credits.md 2025-01-07 23:16:07 -06:00
tresabhi 91b367cd70 feat: start of tankopedia translation 2025-01-07 13:59:33 -06:00
tresabhi 5a65fee1d1 feat: translate tank search 2025-01-07 13:50:06 -06:00
tresabhi c7856364ad fix: some linting 2025-01-07 13:20:20 -06:00
tresabhi 65899a06c4 feat: move docs up 2025-01-07 13:12:22 -06:00
tresabhi 571ae81306 feat: translate tier list 2025-01-07 13:09:05 -06:00
tresabhi 6b2dda0f9d feat: translate gallery 2025-01-07 13:00:43 -06:00
tresabhi 9de41529d1 feat: localize performance 2025-01-07 12:47:55 -06:00
tresabhi 7dfdf4c11b feat: start of perforamnce 2025-01-06 20:31:21 -06:00
tresabhi db4132f666 feat: better lang selector 2025-01-06 20:14:33 -06:00
tresabhi d9688f6051 feat: homepage 2025-01-06 20:09:11 -06:00
TrèsAbhi 12e89a6b65 Update credits.md 2025-01-05 11:39:25 -06:00
TrèsAbhi 2d524cd273 Update Crowdin configuration file 2025-01-05 09:14:29 -06:00
tresabhi 1d44ecab18 Merge branch 'main' into dev 2025-01-03 12:36:02 -06:00
tresabhi bf9addf589 feat: iteration 2025-01-03 12:32:03 -06:00
tresabhi 4deee2d709 feat: update locales 2025-01-03 12:15:14 -06:00
tresabhi 309fda1ed1 feat: translators 2025-01-03 12:08:03 -06:00
tresabhi d6e7f35214 feat: translators 2025-01-02 19:43:13 -06:00
TrèsAbhi 7cd9131b60 Update assets.yml 2024-12-30 11:42:48 -06:00
tresabhi 599b81934e feat: simplification 2024-12-29 20:19:51 -06:00
tresabhi 3f595d0d8a Merge branch 'main' into dev 2024-12-29 20:07:12 -06:00
TrèsAbhi 9afed23bb8 feat: simplify 2024-12-29 20:06:34 -06:00
TrèsAbhi fc869f8b45 New Crowdin updates (#136) 2024-12-29 20:05:52 -06:00
TrèsAbhi cf7ba1c6b5 New translations en-us.json (Portuguese) (#135) 2024-12-29 20:04:04 -06:00
TrèsAbhi 07ca41e82a Merge pull request #134 from tresabhi/l10n_main
New Crowdin updates
2024-12-28 09:07:30 -06:00
tresabhi c487d9af61 feat: disable navbar account 2024-12-27 14:04:14 -06:00
tresabhi 9be6725043 feat: some more localized links 2024-12-27 14:03:43 -06:00
tresabhi e0daf85561 feat: some more localized links 2024-12-27 14:01:59 -06:00
tresabhi 8203db3dc2 feat: some locale links 2024-12-27 13:43:25 -06:00
tresabhi eb5527706e fix: remove dead code 2024-12-27 13:34:39 -06:00
tresabhi 1f577c2317 feat: i18n paths 2024-12-27 13:16:51 -06:00
tresabhi 68362c22b1 fix: imports 2024-12-27 12:59:56 -06:00
tresabhi 844965bcb0 feat: locale redirect 2024-12-27 12:55:52 -06:00
tresabhi 1843eb3bcf feat: move to locale 2024-12-27 12:38:38 -06:00
tresabhi 60ab845326 feat: set up locales 2024-12-26 14:36:48 -06:00
tresabhi 3bbc083b2a feat: logs 2024-12-26 14:10:41 -06:00
tresabhi 8df159b182 feat: i will do this later lol 2024-12-26 14:07:36 -06:00
tresabhi c7238b0342 feat: comments to ease users 2024-12-26 13:56:54 -06:00
tresabhi ba6006a320 feat: smaller title in header 2024-12-26 13:52:04 -06:00
tresabhi 43b9252f21 feat: hide chars 2024-12-26 13:47:51 -06:00
tresabhi d727ceaaf6 feat: more charts! 2024-12-26 13:47:06 -06:00
tresabhi eb95230a5f feat: start of charts 2024-12-23 12:48:52 -06:00
tresabhi b6fd5eaa66 feat: update readme 2024-12-23 12:37:12 -06:00
tresabhi 117f9892d6 feat: start of charts 2024-12-22 20:34:16 -06:00
tresabhi c20caf45a2 feat: rounding in blitzkit embeds 2024-12-22 20:30:08 -06:00
tresabhi 670b678348 feat: increase brightness of pbr tanks 2024-12-22 20:28:07 -06:00
tresabhi b1f0d4d844 feat: readd lobby lighting for static mode 2024-12-22 20:27:36 -06:00
tresabhi e9d1c82a60 feat: added option to hide tank under dynamic armor 2024-12-22 20:25:05 -06:00
tresabhi cc4345f1a3 fix: only show blue if 3rc saves the day 2024-12-22 20:21:23 -06:00
tresabhi 6d8326861b feat: background 2024-12-19 18:10:00 -06:00
tresabhi 8517ecfdb6 fix: app armor? 2024-12-19 13:26:25 -06:00
tresabhi a38b5d7ddd fix: remove show environment 2024-12-19 11:32:53 -06:00
tresabhi f726793819 the worst code i have ever written in my life 2024-12-19 11:27:35 -06:00
tresabhi 19531aa9ae feat: bring back good ol' 2024-12-19 11:22:38 -06:00
tresabhi 6d6bae847b feat: crowdin 2024-12-19 11:18:05 -06:00
tresabhi cc70b3ccc3 feat: logs 2024-12-19 11:16:27 -06:00
tresabhi e3bf619808 fix: remove comments 2024-12-19 11:09:32 -06:00
tresabhi f6cb4f2518 more adrenaline 2024-12-19 11:09:13 -06:00
tresabhi f396d6c4a1 fix: use stricter localizaiton 2024-12-19 11:04:48 -06:00
tresabhi 768c420ae4 Merge branch 'main' into dev 2024-12-19 10:41:46 -06:00
TrèsAbhi 7fba197bef Merge pull request #133 from tresabhi/l10n_main
New Crowdin updates
2024-12-19 10:41:26 -06:00
tresabhi b074481e1a fix: performance tool use performance 2024-12-19 10:29:32 -06:00
tresabhi 987e35ef8f feat: sticky headers for performance 2024-12-19 10:28:44 -06:00
tresabhi 83c77b5945 fix: make tank loader icon smaller 2024-12-19 10:20:09 -06:00
tresabhi e4f0120d67 feat: use blitzkit icons by default 2024-12-19 10:19:26 -06:00
tresabhi 2055c00154 Merge branch 'main' into dev 2024-12-17 21:49:58 -06:00
tresabhi c814230dcb feat: better loader 2024-12-17 21:49:55 -06:00
tresabhi 2f31aadb29 feat: better text in header 2024-12-17 21:46:44 -06:00
tresabhi 3113bf3a47 fix: filters 2024-12-17 21:06:11 -06:00
tresabhi 70bd54e03b feat: remove naked lighting 2024-12-17 19:45:48 -06:00
tresabhi 8863ac5fde feat: some icon only lighting 2024-12-17 11:12:04 -06:00
TrèsAbhi b62009ce2b Update Party3.astro 2024-12-17 09:58:49 -06:00
tresabhi 0f3d230f42 feat: better sizing for new icons 2024-12-16 23:42:38 -06:00
tresabhi 9db6b997c3 fix: use tanks key 2024-12-16 22:44:02 -06:00
tresabhi d9fcbd028b fix: re add blitzkit tank icons 2024-12-16 22:42:27 -06:00
tresabhi db74058075 feat: new angle 2024-12-16 22:40:36 -06:00
tresabhi 4180736d37 feat: neater code 2024-12-16 13:32:31 -06:00
tresabhi 382f04229e feat: better icons and sizing 2024-12-16 13:30:35 -06:00
tresabhi 3c9ba9ec53 feat: increased max recently viewed tank count to 14 2024-12-16 13:21:06 -06:00
tresabhi 4848234264 feat: custom tank icons 2024-12-16 12:41:24 -06:00
tresabhi 2ad0fcfdf9 feat: better hdr 2024-12-16 12:24:37 -06:00
tresabhi 8f0894364b fix: remove nitro ads 2024-12-16 11:01:07 -06:00
tresabhi 3695b8f7f4 fix: tag 2024-12-16 10:59:26 -06:00
tresabhi 4f8c1d416f feat: delete rando 2024-12-16 10:50:52 -06:00
tresabhi 453286677a Merge branch 'l10n_main' into dev 2024-12-16 10:49:54 -06:00
TrèsAbhi 53a49f199a New translations en-us.json (Croatian) 2024-12-16 10:49:28 -06:00
TrèsAbhi fdfde46342 New translations en-us.json (Ukrainian) 2024-12-16 10:49:26 -06:00
TrèsAbhi 1d836b2053 New translations en-us.json (Russian) 2024-12-16 10:49:25 -06:00
tresabhi 6d448dc5c4 feat: new languages 2024-12-16 10:49:18 -06:00
tresabhi 75d4d60b30 Merge branch 'main' into l10n_main 2024-12-16 10:44:05 -06:00
tresabhi e7f47fd2fd feat: handle no next price 2024-12-16 10:41:10 -06:00
tresabhi 50a3d1e922 feat: logs 2024-12-16 10:34:14 -06:00
tresabhi e296267ccd feat: add cpr 2024-12-16 10:30:05 -06:00
tresabhi d9aca6a3ed fix: include .git 2024-12-15 19:35:25 -06:00
tresabhi d07a6e954e fix: remove dead code 2024-12-15 19:30:22 -06:00
tresabhi 6bcaf685f8 fix: names 2024-12-15 19:26:58 -06:00
tresabhi 066f17a2f3 fix: concurrent only on main 2024-12-15 19:26:36 -06:00
tresabhi 374d6c22f9 feat: use artifact 2024-12-15 19:25:13 -06:00
tresabhi 55927258ca feat: use better emoji 2024-12-15 19:08:31 -06:00
tresabhi bb99220497 feat: /auction strikethrough and warning 2024-12-15 19:06:05 -06:00
tresabhi 4f6b41e264 feat: start work on website deployment 2024-12-15 18:59:20 -06:00
tresabhi f9c4cee30c feat: disable vercel deployments 2024-12-15 18:46:59 -06:00
tresabhi d865043b34 fix: invalidate on advanced highlighting change 2024-12-15 18:39:24 -06:00
tresabhi a4080f21b9 feat: optimize using claude lol 2024-12-15 18:33:15 -06:00
tresabhi 853c520d8a feat: optimize depth sampling 2024-12-15 18:26:34 -06:00
tresabhi d78f8c6ec4 feat: optimize constants 2024-12-15 18:21:03 -06:00
tresabhi 318a71bd32 feat: advanced mode 2024-12-15 18:13:23 -06:00
TrèsAbhi 2458d2c80c New translations en-us.json (Chinese Simplified) 2024-12-15 01:07:40 -06:00
TrèsAbhi 37a72e3bb5 New translations en-us.json (Chinese Simplified) 2024-12-15 00:08:24 -06:00
tresabhi bc9c9ad4e7 feat: start of custom renders 2024-12-14 22:32:28 -06:00
tresabhi b38c732983 fix: missing image backup 2024-12-14 15:46:47 -06:00
TrèsAbhi 415861f6e8 New translations en-us.json (Chinese Simplified) 2024-12-14 15:26:03 -06:00
TrèsAbhi 3124afa253 New translations en-us.json (Ukrainian) 2024-12-14 15:26:02 -06:00
TrèsAbhi 8523b9f44f New translations en-us.json (Russian) 2024-12-14 15:26:01 -06:00
TrèsAbhi 71e0404890 New translations en-us.json (Croatian (disambiguation)) 2024-12-14 15:26:00 -06:00
TrèsAbhi c01fd1f4ff New translations en-us.json (Spanish) 2024-12-14 15:25:59 -06:00
tresabhi 905ba59f4e feat: logs 2024-12-14 15:21:52 -06:00
tresabhi 33eea3f261 fix: cumulative rich presense 2024-12-14 15:14:48 -06:00
tresabhi 2237d460bb fix: opaque mode instantly updates now 2024-12-14 14:46:53 -06:00
tresabhi 12e7d664e5 fix: cursor and underline on hover in compare tank list 2024-12-14 14:44:53 -06:00
tresabhi 9e4bdcd458 fix: tanks with fixed camos no longer have the camo buttons in compare 2024-12-14 14:43:04 -06:00
tresabhi 03ec44c765 feat: chunk lines for /auction 2024-12-14 14:41:50 -06:00
tresabhi d9f6acea2d feat: /owned-tanks links to tankopedia and chunks better 2024-12-14 14:39:39 -06:00
tresabhi 5b5e204cce fix: tank hot swapping no longer crashes 2024-12-14 13:43:57 -06:00
tresabhi 60b2e62713 fix: /stats filters 2024-12-14 13:41:02 -06:00
tresabhi 5e7620ccf4 fix: crash on static mode 2024-12-14 13:33:23 -06:00
tresabhi c3a83abe5d feat: max 8 popular tanks 2024-12-14 13:28:48 -06:00
tresabhi 73cb3873d9 feat: search min and max lengths 2024-12-14 13:27:45 -06:00
TrèsAbhi 3b429a6c05 Merge pull request #132 from tresabhi/l10n_main 2024-12-14 13:03:25 -06:00
TrèsAbhi 76fe6b5e20 New translations en-us.json (Chinese Simplified) 2024-12-13 17:43:27 -06:00
TrèsAbhi 5c8af447b6 New translations en-us.json (Ukrainian) 2024-12-13 17:43:26 -06:00
TrèsAbhi 5a805b1cec New translations en-us.json (Russian) 2024-12-13 17:43:25 -06:00
tresabhi 326ae548b6 fix: env 2024-12-13 17:02:35 -06:00
tresabhi 3a2e75ab02 feat: version 2024-12-13 16:56:05 -06:00
tresabhi b4f8340f49 feat: logs 2024-12-13 16:55:57 -06:00
tresabhi 5e0d0a3d6d fix: remove extreme jpeg compression 2024-12-13 16:47:42 -06:00
tresabhi 4122ff5bf1 fix: suspense armor laoder 2024-12-13 16:45:59 -06:00
tresabhi d937f62ac1 feat: disable shooting range 2024-12-13 16:39:09 -06:00
tresabhi b4f0a9f1b9 Merge branch 'main' into dev 2024-12-13 16:37:20 -06:00
TrèsAbhi 68535149e3 New translations en-us.json (Croatian (disambiguation)) 2024-12-13 16:31:57 -06:00
TrèsAbhi 2419934638 New translations en-us.json (Spanish) 2024-12-13 16:31:56 -06:00
tresabhi c0076e9ef9 fix: avilable 2024-12-13 16:25:37 -06:00
tresabhi 1cd7438d5d feat: update lock 2024-12-13 16:18:34 -06:00
tresabhi ab798b722f Merge branch 'main' into dev 2024-12-13 16:18:21 -06:00
tresabhi 4e513998a9 feat: logs 2024-12-13 16:14:16 -06:00
tresabhi df34226a22 feat: more features 2024-12-13 16:11:43 -06:00
tresabhi 2f7f2362bb feat: auction command 2024-12-13 10:58:16 -06:00
tresabhi 66a54a9996 fix: make discriminator optional 2024-12-12 21:10:50 -06:00
tresabhi fdcbb8f29f feat: use epsilon 2024-12-12 21:07:40 -06:00
tresabhi 5ab0a12f4c fix: use max of dispersion 2024-12-12 21:03:40 -06:00
tresabhi d19d4e0e26 feat: consistent zoom 2024-12-12 19:35:10 -06:00
tresabhi 2f9791d34c fix: organize code 2024-12-12 19:06:06 -06:00
tresabhi cd53136dce feat: reduce rerenders 2024-12-12 18:32:27 -06:00
tresabhi 2eadad8612 feat: better lighting in shooting range 2024-12-12 18:31:49 -06:00
tresabhi 2fe3c50bef feat: some cleanuo 2024-12-12 18:18:51 -06:00
tresabhi 10c7e4a19d fix: reverse zoom 2024-12-12 18:17:01 -06:00
tresabhi 143c84f52f feat: zooming in 2024-12-12 16:03:34 -06:00
tresabhi 0c54905384 fix: ratio 2024-12-12 15:19:47 -06:00
tresabhi 437c5e0f57 fix: recursion on build website 2024-12-12 15:09:13 -06:00
tresabhi b4e4702415 feat: reorder home cards 2024-12-12 15:07:39 -06:00
tresabhi 4b8a154142 feat: real popular tanks list 2024-12-12 15:03:51 -06:00
tresabhi 31a61c8a6b feat: some turret traverse penalties 2024-12-08 21:51:39 -06:00
tresabhi 631af6205e Merge branch 'main' into dev 2024-12-08 20:29:49 -06:00
TrèsAbhi a78543c60f Update rating-eu.yml 2024-12-08 00:51:35 -06:00
TrèsAbhi 00783749ba Update rating-asia.yml 2024-12-08 00:51:15 -06:00
TrèsAbhi 9aba91a773 Update rating-na.yml 2024-12-08 00:50:54 -06:00
tresabhi 6667e548b2 Merge branch 'main' into dev 2024-12-04 21:05:24 -06:00
tresabhi 67f9147aac feat: circles 2024-12-02 19:05:51 -06:00
tresabhi 20f54a39d6 feat: separate target circle 2024-12-02 18:39:27 -06:00
tresabhi 26d3bdaac7 feat: parity size 2024-12-02 18:31:01 -06:00
TrèsAbhi dd3c86aa5b Update rating-na.yml 2024-12-02 13:43:26 -06:00
TrèsAbhi f770ba0e5e Update rating-eu.yml 2024-12-02 13:43:06 -06:00
TrèsAbhi c444210294 Update rating-asia.yml 2024-12-02 13:42:50 -06:00
tresabhi 74ac5b5ac2 feat: sizing 2024-12-01 23:54:27 -06:00
tresabhi 7188014fbb feat: aiming circle 2024-12-01 23:50:20 -06:00
tresabhi c039862c56 feat: physical aiming 2024-12-01 23:47:45 -06:00
tresabhi 3d6d18267d feat: more controls 2024-12-01 23:16:29 -06:00
tresabhi dced738055 feat: infinity aim 2024-12-01 22:53:36 -06:00
tresabhi e5ddbc7297 feat: turret moment 2024-12-01 22:48:18 -06:00
tresabhi 7f9a54ef85 feat: more props 2024-12-01 22:21:33 -06:00
tresabhi 65c52c2e82 feat: aiming caster 2024-12-01 22:11:38 -06:00
tresabhi 5a34a35638 feat: tighter cam fit 2024-12-01 21:47:09 -06:00
tresabhi 1281503de9 feat: more progress 2024-12-01 20:48:13 -06:00
tresabhi 7a3bdd8f35 feat: some more stuff 2024-12-01 20:23:23 -06:00
tresabhi d7e556e136 feat: better initial posiiton and contorl performance 2024-12-01 20:01:19 -06:00
tresabhi 0997e2b089 feat: start on ShootingRange 2024-12-01 19:42:27 -06:00
tresabhi 33c0fbbb9b Merge branch 'dev' of https://github.com/tresabhi/blitzkit into dev 2024-12-01 19:31:48 -06:00
tresabhi bef33659e5 feat: remove 2d visualizer 2024-12-01 19:31:47 -06:00
TrèsAbhi ede1c90f10 Update commitMultipleFiles.ts 2024-11-30 20:38:30 -06:00
TrèsAbhi 84dcfe4a14 Update rating-na.yml 2024-11-30 20:11:48 -06:00
TrèsAbhi 7a3541439b Update rating-eu.yml 2024-11-30 20:11:32 -06:00
TrèsAbhi 7ab8a01fb6 Update rating-asia.yml 2024-11-30 20:11:17 -06:00
TrèsAbhi 88729e0eca Update host-bot.yml 2024-11-29 23:26:21 -06:00
tresabhi 4218626cbf feat: more progress 2024-11-29 20:25:39 -06:00
tresabhi 08eed5ce31 Merge branch 'main' into dev 2024-11-29 19:13:49 -06:00
tresabhi 63a6e47878 fix: let's see 2024-11-29 19:12:52 -06:00
tresabhi 984dad4111 fix: let's see 2024-11-29 19:11:16 -06:00
tresabhi 00e89cff55 feat: start on visualizer 2024-11-29 19:10:37 -06:00
TrèsAbhi 2540b71fb7 Merge pull request #131 from tresabhi/l10n_main
New Crowdin updates
2024-11-29 17:19:15 -06:00
tresabhi cda83639b2 fix: tankoepdia pages warning padding 2024-11-29 13:29:22 -06:00
tresabhi e4e1903a2a fix: round caliber 2024-11-29 13:27:29 -06:00
tresabhi a5df2528f6 fix: color and align tank class in tankopedia header better 2024-11-29 13:25:38 -06:00
tresabhi 74c0740941 feat: optimize diff check 2024-11-29 13:24:25 -06:00
tresabhi 74e85f82f1 feat: optimize awaitables 2024-11-29 13:20:27 -06:00
tresabhi 80fca2e53a fix: react 2024-11-29 12:50:15 -06:00
tresabhi 4d0ca1cd1a fix: preserve jsx 2024-11-29 12:45:03 -06:00
tresabhi 50aeb01e0a fix: env 2024-11-29 12:37:32 -06:00
tresabhi a1a218c325 fix: isntall sharp 2024-11-29 12:33:26 -06:00
tresabhi e560754bb6 feat: external sharp 2024-11-29 12:28:36 -06:00
tresabhi dbc23c6473 fix: PUBLIC_ASSET_BRANCH 2024-11-29 12:15:30 -06:00
tresabhi a2bd62da92 fix: PUBLIC_ASSET_REPO 2024-11-29 12:13:58 -06:00
tresabhi c0d16b51de fix: use import.meta.env. 2024-11-29 12:11:51 -06:00
tresabhi d68870c254 fix: move env up 2024-11-29 12:10:37 -06:00
TrèsAbhi d91b46d730 New translations en-us.json (Croatian (disambiguation)) 2024-11-29 12:10:10 -06:00
TrèsAbhi 0758f0d8aa New translations en-us.json (Spanish) 2024-11-29 12:10:09 -06:00
tresabhi eacd63d472 feat: non-discrete json 2024-11-29 12:06:23 -06:00
tresabhi 39240e908d fix: locale 2024-11-29 12:01:21 -06:00
tresabhi 2f734c237b fix: include langs 2024-11-29 11:56:22 -06:00
tresabhi f155bae9bf feat: logs 2024-11-29 11:52:42 -06:00
tresabhi 1d37df710e feat: penetration in desc 2024-11-28 15:29:49 -06:00
tresabhi d35ed8a212 feat: further progress on embeds 2024-11-28 14:11:44 -06:00
tresabhi 33cd556c45 feat: resurrect tankopedia embeds 2024-11-28 13:50:18 -06:00
tresabhi 2dd8ffe570 fix: compare tool embed 2024-11-28 13:35:18 -06:00
tresabhi a22f9ca072 fix: remove brkl 2024-11-28 13:28:50 -06:00
tresabhi 520d530155 feat: resurrect rating leaderboard builder 2024-11-28 13:25:43 -06:00
tresabhi 5a4326dd32 feat: enable rating crons 2024-11-28 13:09:58 -06:00
tresabhi eb41434565 feat: add prisma 2024-11-28 13:08:06 -06:00
tresabhi bd160efdb2 feat: enable build bot 2024-11-27 20:13:37 -06:00
tresabhi 766a7081db feat: rename workflows 2024-11-27 20:13:20 -06:00
tresabhi e091cf5d06 feat: dev flags 2024-11-27 20:09:31 -06:00
tresabhi c81f6d08c0 feat: build bot completely 2024-11-27 19:59:53 -06:00
tresabhi ced3897696 feat: esbuild build 2024-11-26 21:03:01 -06:00
tresabhi 5f256ed84d feat: edit headers 2024-11-26 20:44:44 -06:00
tresabhi 53d811eeef feat: add gaps 2024-11-26 20:24:36 -06:00
tresabhi ef91eadaea feat: scroll to top on change 2024-11-26 20:23:20 -06:00
tresabhi 17bfb7c397 fix: touch action none 2024-11-26 20:14:37 -06:00
tresabhi f5d06631c2 feat: tier list share button 2024-11-26 20:04:05 -06:00
tresabhi 258279205d feat: hide tanks from lost if placed 2024-11-25 14:20:10 -06:00
tresabhi 6ace0aa38a feat: preview cards 2024-11-25 14:16:33 -06:00
tresabhi bae1e944b7 feat: sort 2024-11-25 14:11:53 -06:00
tresabhi 62d4ec07f0 feat: remove on no place 2024-11-25 14:01:35 -06:00
tresabhi 5e912e5b51 feat: better placing 2024-11-25 13:58:52 -06:00
tresabhi a08107d0b2 feat: trim header 2024-11-24 21:03:19 -06:00
tresabhi 6a28fb0277 fix: hide random crap in fullscreen mdoe 2024-11-24 20:53:06 -06:00
tresabhi 37b8e75f83 feat: doc titles 2024-11-24 20:43:23 -06:00
tresabhi 7a9f43657d feat: remove noMaxWidth 2024-11-24 20:40:47 -06:00
tresabhi 6ca3ce731b feat: larger gallery skeletons 2024-11-24 20:39:21 -06:00
tresabhi ff48cdc44e feat: better home header 2024-11-24 20:34:28 -06:00
tresabhi 2fe0e9379e fix: sticky navbar 2024-11-24 20:30:42 -06:00
tresabhi e48c57068f fix: no max width 2024-11-24 20:03:10 -06:00
tresabhi 755f879192 fix: include server for clans 2024-11-22 18:24:38 -06:00
tresabhi 73a51cbb40 fix: remove region from autocomplete 2024-11-22 18:16:57 -06:00
tresabhi fa72e8efab feat: promote aeson 2024-11-22 10:50:35 -06:00
tresabhi 166c26b65a fix: remove non-es lodash 2024-11-22 10:14:37 -06:00
tresabhi 7ff4da1fc1 feat: start on server infrence 2024-11-22 10:11:00 -06:00
tresabhi 6a8e1d14ee fix: about credits 2024-11-21 17:08:54 -06:00
tresabhi edf434ed95 fix: rating leaderboard 2024-11-21 17:06:41 -06:00
tresabhi 5bf6a14cff fix: some rating functionality 2024-11-20 10:50:09 -06:00
tresabhi fcb848df5b feat: change tier back to number 2024-11-20 10:26:55 -06:00
tresabhi 8089a5eaa6 fix: filters 2024-11-20 10:21:17 -06:00
tresabhi 4a7927b300 Merge branch 'main' into dev 2024-11-18 11:22:19 -06:00
TrèsAbhi 6822298ae3 Merge pull request #130 from tresabhi/l10n_main 2024-11-18 11:21:55 -06:00
TrèsAbhi 19aaba9728 New translations en-us.json (Croatian (disambiguation)) 2024-11-18 11:20:50 -06:00
TrèsAbhi 6b98f4d59b New translations en-us.json (Spanish) 2024-11-18 11:20:49 -06:00
TrèsAbhi c20d3b6b67 Update Crowdin configuration file 2024-11-18 11:19:31 -06:00
TrèsAbhi a4451de79c Update Crowdin configuration file 2024-11-18 11:16:42 -06:00
tresabhi 5ae6961a13 feat: migrate 2024-11-18 11:04:35 -06:00
tresabhi 02aed3e3a5 feat: some migration 2024-11-18 10:56:24 -06:00
tresabhi e06aaa4bcf feat: start updating the bot 2024-11-17 18:08:57 -06:00
tresabhi f1c31c6d79 feat: filters 2024-11-17 16:41:43 -06:00
tresabhi d851a05f53 feat: drop 2024-11-17 16:34:18 -06:00
tresabhi 0db4be4d20 Merge branch 'main' into dev 2024-11-17 15:35:42 -06:00
tresabhi eb6aa5bc5b allow 2024-11-17 12:44:42 -06:00
tresabhi b9895b1c0f feat: allow robots 2024-11-17 12:29:57 -06:00
tresabhi 71c1f8dac9 feat: dragging 2024-11-16 23:11:31 -06:00
tresabhi aee1ddb948 feat: start on ui 2024-11-16 22:47:12 -06:00
tresabhi 28e6b0eb98 feat: start of tier list 2024-11-15 10:55:23 -06:00
tresabhi b54d4a59cf feat: logs 2024-11-14 20:58:23 -06:00
tresabhi b45ec7ae9e fix: better performance titles 2024-11-14 20:55:22 -06:00
tresabhi d9958558b5 fix: custom shell explosion radius 2024-11-14 20:53:21 -06:00
tresabhi b9f68d99e1 fix: page title 2024-11-14 20:48:11 -06:00
tresabhi bb6fbf286f fix: compare table 2024-11-14 20:44:01 -06:00
tresabhi 9277e45be5 feat: logs 2024-11-13 10:47:35 -06:00
tresabhi c056cdfafe feat: disable build bot 2024-11-13 10:42:34 -06:00
tresabhi e586e90ecc fix: clear in debug 2024-11-13 10:41:45 -06:00
tresabhi b73676ad3c fix: populate url with tank ids 2024-11-13 10:39:37 -06:00
tresabhi ee3616e30b fix: hide recents in compact mode 2024-11-13 10:38:59 -06:00
tresabhi 182744e8f4 fix: less bright lighting 2024-11-13 10:35:47 -06:00
tresabhi 2d9d167788 fix: terrain coefficients lower is better 2024-11-13 10:27:45 -06:00
tresabhi 132209c7fe fix: clipping potentials decimals 2024-11-13 10:26:10 -06:00
tresabhi 039e760570 feat: drop min tier test tank requirement 2024-11-13 10:21:32 -06:00
tresabhi a8dcf9b279 feat: cron job website 2024-11-12 21:54:43 -06:00
tresabhi 65705ebda0 feat: logs 2024-11-12 21:53:22 -06:00
tresabhi 1a4ade76b7 fix: update policies prompt 2024-11-12 21:39:25 -06:00
tresabhi 429076c297 fix: tiers off by 1 2024-11-12 21:38:00 -06:00
tresabhi d165a1fc35 fix: navbar scrolling 2024-11-12 21:34:49 -06:00
tresabhi 9687720a83 fix: provisions are now centered on small screens 2024-11-12 21:14:18 -06:00
tresabhi b9d4c391fe fix: search page reset button resets the sort too now 2024-11-12 21:11:48 -06:00
tresabhi 1da517746a fix: hide recetns on sort 2024-11-12 21:10:49 -06:00
tresabhi 19664d55aa feat: hide recent tanks when filters 2024-11-12 21:08:45 -06:00
tresabhi a40f86f982 feat: relative types 2024-11-12 20:58:05 -06:00
tresabhi e0e5ea8995 feat: bar coloring 2024-11-12 20:28:41 -06:00
tresabhi cd277fb2f1 feat: correct bars 2024-11-12 16:12:44 -06:00
tresabhi ffe6ccaed0 feat: relative stats 2024-11-12 16:11:10 -06:00
tresabhi bc60b4b42c feat: key based tankopedia 2024-11-12 15:40:57 -06:00
tresabhi a83ce6d350 fix: total StickyRowHeaderCell 2024-11-12 15:18:06 -06:00
tresabhi ac35540871 fix: table sizing 2024-11-12 15:15:57 -06:00
tresabhi 84dd3317dc feat: expand session stats 2024-11-12 15:12:34 -06:00
tresabhi a53c20fa6a feat: caliber discriminators for antagonist cannon selector 2024-11-12 15:01:33 -06:00
tresabhi 87d01dab3f feat: faster lighting 2024-11-12 14:55:28 -06:00
tresabhi 0dea93241b fix: keys 2024-11-12 14:36:55 -06:00
tresabhi 395240394f feat: explosion radius 2024-11-11 12:59:51 -06:00
tresabhi 696b5a54b8 fix: frame invalidation on pose 2024-11-11 12:55:39 -06:00
tresabhi 21fcc23548 fix: tank search type color 2024-11-11 12:52:19 -06:00
tresabhi 48dd9bec2a feat: remove draco 2024-11-11 12:50:33 -06:00
tresabhi 970d93e7e0 fix: hot tanks context 2024-11-11 12:46:06 -06:00
tresabhi 387a67266f feat: recently veiwed tanks 2024-11-11 10:50:15 -06:00
tresabhi ea013c4df8 feat: remove ad settings 2024-11-10 23:01:46 -06:00
tresabhi 420bda8202 feat: popular tanks 2024-11-10 22:59:34 -06:00
tresabhi b48515bf37 fix: display shot card on all devices 2024-11-10 22:38:36 -06:00
tresabhi d5d0a8b308 feat: logs 2024-11-10 22:33:40 -06:00
tresabhi 5b76a08167 fix: capture model transform 2024-11-10 22:26:57 -06:00
tresabhi e68b4bea5d fix: reintroduce some frame invalidations 2024-11-10 22:19:05 -06:00
tresabhi b893409a0a fix: don't reset on click 2024-11-10 22:15:11 -06:00
tresabhi 8dd4d80fca fix: stop propagation on type 2024-11-10 22:13:44 -06:00
tresabhi 81e7f78e55 feat: optimize normalization 2024-11-10 22:06:22 -06:00
tresabhi 4584490b0d fix: shell invalidation 2024-11-10 21:57:19 -06:00
tresabhi 5cf8e48747 fix: shell and quick equipment frame invalidations 2024-11-10 21:54:20 -06:00
tresabhi 3e2bfc453a feat: popover custom shell 2024-11-10 21:09:09 -06:00
tresabhi dbc3d0df3a feat: custom shell functionality 2024-11-10 20:59:01 -06:00
tresabhi 9a1c66932a feat: custom shell customizer ui 2024-11-10 20:50:46 -06:00
tresabhi e364d1fda2 fix: stroke-width 2024-11-10 20:16:42 -06:00
tresabhi 0e6b79dcbe feat: start of custom shell 2024-11-09 19:49:13 -06:00
tresabhi 88a682bae8 feat: logs 2024-11-09 19:37:32 -06:00
tresabhi 1ea1b7fa41 feat: 2 decimal places camo 2024-11-09 19:33:29 -06:00
tresabhi b95d021144 feat: compare camo button 2024-11-09 19:30:50 -06:00
tresabhi e4a35600a4 feat: module damage 2024-11-09 19:22:21 -06:00
tresabhi 3b933f2cbc fix: stat display 2024-11-09 19:20:41 -06:00
tresabhi 3da154b75d feat: shell capacity 2024-11-09 19:16:06 -06:00
tresabhi c4fa6cebfa feat: gun type filters 2024-11-09 19:05:23 -06:00
tresabhi 2d3e45df73 fix: don't display battle count for tier x in tech tree section 2024-11-09 18:39:16 -06:00
tresabhi cb45faf83c feat: skeleton tankopedia page 2024-11-09 18:38:04 -06:00
tresabhi 0722ff6bfb feat: shell range 2024-11-09 16:00:15 -06:00
tresabhi 594b1eb311 feat: protos 2024-11-09 15:56:09 -06:00
tresabhi f2f7d8aa3d feat: shell range defs 2024-11-09 12:55:39 -06:00
tresabhi 1cf6a9e76a feat: disable rating cron 2024-11-09 12:48:44 -06:00
tresabhi 8c0d48447f fix: use defs 2024-11-08 17:28:03 -06:00
tresabhi 0e869307c3 fix: submodules 2024-11-08 17:24:03 -06:00
tresabhi c7d2009418 fix: scriopts 2024-11-08 17:22:20 -06:00
tresabhi a8c3d482a5 fix: env 2024-11-08 17:11:14 -06:00
tresabhi 703bb36226 fix: env 2024-11-08 17:08:38 -06:00
tresabhi f3b585827c fix: env 2024-11-08 17:06:53 -06:00
tresabhi 5e4170be7a fix: env 2024-11-08 17:06:24 -06:00
tresabhi d660fa6375 fix: reviews script 2024-11-08 17:05:06 -06:00
tresabhi cefacbeb25 fix: discover ids script 2024-11-08 17:03:58 -06:00
tresabhi ea9cb79d84 feat: new youtubers 2024-11-08 17:02:45 -06:00
tresabhi ceaf1ea70a feat: logs 2024-11-08 10:39:47 -06:00
tresabhi 205d9c0ddf fix: urlon parsing 2024-11-08 10:38:18 -06:00
tresabhi 2608d69ffe feat: remove login to generate 2024-11-08 10:34:52 -06:00
tresabhi d910ed9f5e feat: composite stats 2024-11-08 10:32:44 -06:00
TrèsAbhi f1767bf5d7 fix: unknown tanks 2024-11-04 10:38:48 -06:00
TrèsAbhi 86eecd202a feat: reset button 2024-11-04 10:36:43 -06:00
TrèsAbhi 6b8433c690 feat: move to css chunk 2 2024-11-04 10:28:49 -06:00
TrèsAbhi a2b67e215d feat: move to css chunk 1 2024-11-02 18:52:50 -05:00
TrèsAbhi 42c1cb653a feat: login to generate 2024-11-02 18:38:54 -05:00
TrèsAbhi 5ab6c45868 feat: spooky colors 2024-11-02 18:33:19 -05:00
TrèsAbhi 2e39b77c80 feat: remove vanilla-extract 2024-11-02 18:23:30 -05:00
TrèsAbhi a58079eed6 fix: lock 2024-11-02 17:58:31 -05:00
TrèsAbhi 06c1e05205 fix: downgrade vanilla extract 2024-11-02 17:55:23 -05:00
TrèsAbhi bc57231d53 fix: downgrade vanilla extract 2024-11-02 17:54:02 -05:00
TrèsAbhi a7a164d991 fix: downgrade vanilla extract 2024-11-02 17:52:34 -05:00
TrèsAbhi fa279292b0 Merge branch 'main' into dev 2024-11-02 17:48:11 -05:00
TrèsAbhi c4ada11886 Update cd-host.yml 2024-11-02 17:22:39 -05:00
TrèsAbhi 913bc82350 feat: move animation to astro styles 2024-11-01 10:52:54 -05:00
TrèsAbhi 6f00728187 feat: no hints 2024-11-01 10:43:31 -05:00
TrèsAbhi 0beaf3f9d6 feat: better homepage 2024-11-01 10:30:36 -05:00
TrèsAbhi 5deafff3ab fix: types and versions 2024-10-30 10:42:52 -05:00
TrèsAbhi e05f02099d feat: faster models 2024-10-29 16:21:44 -05:00
TrèsAbhi 0f29145ab0 fix: missing package 2024-10-28 13:09:14 -05:00
TrèsAbhi 563ada179b feat: cards 2024-10-28 10:57:42 -05:00
TrèsAbhi 046b9f4de4 fix: sub key values 2024-10-28 10:31:49 -05:00
TrèsAbhi 8512557e76 feat: host functionality 2024-10-28 10:30:53 -05:00
TrèsAbhi 3c7a10a949 feat: title 2024-10-27 22:40:44 -05:00
TrèsAbhi fa489a665a feat: state passing 2024-10-27 22:38:14 -05:00
TrèsAbhi a0d6aecf7a feat: hosting tech 2024-10-27 22:29:28 -05:00
TrèsAbhi 94099412b0 feat: better copy button 2024-10-27 22:06:37 -05:00
TrèsAbhi abd63b92a8 feat: start on embed host 2024-10-26 19:46:35 -05:00
TrèsAbhi a5aad61cb7 fix: close dialog on close 2024-10-26 19:36:21 -05:00
TrèsAbhi 3293afba76 feat: use any account selection 2024-10-26 19:34:42 -05:00
TrèsAbhi 71c9d1461f feat: login with wargaming to generate url 2024-10-26 15:24:56 -05:00
TrèsAbhi 7a8ad6c290 feat: use jpeg default 2024-10-26 15:05:40 -05:00
TrèsAbhi 8d190b62b0 feat: full rich text 2024-10-26 14:59:52 -05:00
TrèsAbhi b69abbc75e Merge branch 'main' into dev 2024-10-26 14:44:16 -05:00
TrèsAbhi 1836f0041d fix: enc 2024-10-26 14:44:10 -05:00
TrèsAbhi 5285f8fab1 fix: keys 2024-10-26 14:34:56 -05:00
TrèsAbhi 9daab37ba1 feat: recover embed code 2024-10-26 14:33:04 -05:00
TrèsAbhi cee082ab67 feat: re-enable embeds 2024-10-26 13:58:20 -05:00
TrèsAbhi fd1884542d feat: logs 2024-10-26 13:53:20 -05:00
TrèsAbhi 489fb23683 fix: lighting too bright for pbr tanks 2024-10-26 13:47:32 -05:00
TrèsAbhi b3d206b0ae feat: move crew count 2024-10-26 13:44:39 -05:00
TrèsAbhi 98797a6cf5 feat: crew count 2024-10-26 13:43:46 -05:00
TrèsAbhi cd69023dff fix: only show non-0 substitutions 2024-10-26 13:38:36 -05:00
TrèsAbhi ab0d3f7170 fix: crew skill off by 1 roman numerals 2024-10-25 10:57:49 -05:00
TrèsAbhi 282b8f8a37 feat: use gray for external modules in static mode 2024-10-25 10:53:59 -05:00
TrèsAbhi d1f5ef01c9 feat: use calender icon 2024-10-25 10:51:53 -05:00
TrèsAbhi 4a1f3ea12d feat: last updated time 2024-10-25 10:49:11 -05:00
TrèsAbhi 8c1fc6f9df feat: more button words 2024-10-25 10:39:03 -05:00
TrèsAbhi cc734f3934 fix: position 2024-10-24 18:23:38 -05:00
TrèsAbhi 58271befde feat: popup 2024-10-24 18:21:37 -05:00
TrèsAbhi 05c8e50e82 fix: remove searching 2024-10-24 17:53:47 -05:00
TrèsAbhi a28d6c49da fix: justify center 2024-10-24 17:52:23 -05:00
TrèsAbhi f7f11aac58 feat: results count 2024-10-24 17:50:18 -05:00
TrèsAbhi 88acf6bce6 fix: faster search 2024-10-24 17:46:02 -05:00
TrèsAbhi 5866072aa7 feat: search 2024-10-24 17:32:46 -05:00
TrèsAbhi 76016ae41f feat: prefetch pages 2024-10-24 17:06:13 -05:00
TrèsAbhi 532315f37c feat: start of gallery 2024-10-24 17:05:46 -05:00
TrèsAbhi 68e79cb6b8 feat: logs 2024-10-24 15:50:57 -05:00
TrèsAbhi 670debbe26 fix: 1 extra crew members 2024-10-24 15:43:06 -05:00
TrèsAbhi 28de3a0283 fix: on-click now uses enhanced armor 2024-10-24 15:40:58 -05:00
TrèsAbhi f1c50c2531 fix: consistent lighting in static mode 2024-10-24 15:37:14 -05:00
TrèsAbhi e17470e419 fix: correctly capitalize blitzkit in T&C 2024-10-24 15:35:23 -05:00
TrèsAbhi 515791e52f fix: default depressoin transition is not 10deg, it's 0 2024-10-24 15:35:01 -05:00
TrèsAbhi f6cf4a87f9 fix: remove tooltips in tank filters 2024-10-24 15:34:02 -05:00
TrèsAbhi 2c0965f437 fix: hide crew mastery 2024-10-24 15:31:01 -05:00
TrèsAbhi 3698826ac4 fix: promote vanilla in opentest 2024-10-24 15:25:14 -05:00
TrèsAbhi a2685394fd fix: lower raw terrain coefficients are actually better 2024-10-24 15:22:51 -05:00
TrèsAbhi c51065e512 fix: module damage isn't affected by reactive armor, dynamic armor, and spall liner 2024-10-24 15:20:15 -05:00
TrèsAbhi 602f332ec5 fix: reactive armor doesn't reduce HE damage 2024-10-24 15:18:06 -05:00
TrèsAbhi 95fea65409 fix: invalidate splash animation frames 2024-10-24 15:14:34 -05:00
TrèsAbhi 90f4b2f8f3 fix: image sizes in 1.19.1 patch notes 2024-10-24 15:12:59 -05:00
TrèsAbhi 760ddca1f3 fix: meta section tier 2024-10-24 15:05:12 -05:00
TrèsAbhi 28edce8033 feat: array 2024-10-23 10:59:50 -05:00
TrèsAbhi b7e6bfa205 feat: condensing 2024-10-23 10:56:30 -05:00
TrèsAbhi 96844a074a fix: matrices 2024-10-23 10:30:37 -05:00
TrèsAbhi a3bd3fcd41 fix: matrices 2024-10-23 10:29:21 -05:00
TrèsAbhi 454d1ad159 feat: html 2024-10-22 23:48:51 -05:00
TrèsAbhi 0cd5ea0322 feat: html 2024-10-22 23:47:52 -05:00
TrèsAbhi ea77120bc5 feat: matrix 2024-10-22 23:45:50 -05:00
TrèsAbhi eb6aa03a5e feat: more kitscore 2024-10-22 23:24:43 -05:00
TrèsAbhi 104ddab5a4 Merge branch 'dev' into metric 2024-10-22 22:21:44 -05:00
TrèsAbhi c708ab6004 feat: border radius 2024-10-22 15:21:13 -05:00
TrèsAbhi bb6044a704 fix: name 2024-10-22 15:14:48 -05:00
TrèsAbhi ab83015418 feat: filters 2024-10-22 15:14:10 -05:00
TrèsAbhi 5e6f0e5d18 feat: nivo graphs 2024-10-22 15:08:23 -05:00
TrèsAbhi f2da3994e4 feat: longer 2024-10-21 22:42:55 -05:00
TrèsAbhi dee0dc6a14 feat: graphs 2024-10-21 22:42:11 -05:00
TrèsAbhi 973d24a615 feat: start of charts 2024-10-21 21:03:49 -05:00
TrèsAbhi 221492c645 fix: show all tanks in tech tree 2024-10-21 20:39:55 -05:00
TrèsAbhi 243c81cb0c fix: dynamic sample count 2024-10-21 20:32:47 -05:00
TrèsAbhi 7cef95e150 fix: fallback branch 2024-10-21 20:06:23 -05:00
TrèsAbhi d71ea5c383 feat: skip unmodifined files 2024-10-21 18:51:49 -05:00
TrèsAbhi c98c19dc36 feat: use buffers 2024-10-21 18:32:52 -05:00
TrèsAbhi c8bb1f190a fix: secrets 2024-10-21 16:41:06 -05:00
TrèsAbhi d8f6e8fe8e fix: patches 2024-10-21 11:31:17 -05:00
TrèsAbhi c7cb135a24 feat: queit 2024-10-21 11:12:49 -05:00
TrèsAbhi 2f95c57b7f fix: unzip at root 2024-10-21 11:11:25 -05:00
TrèsAbhi e40fd2d2b4 fix: recursive 2024-10-21 11:08:28 -05:00
TrèsAbhi 919c1fcd36 fix: run depotdownload 2024-10-21 11:07:20 -05:00
TrèsAbhi 641e6c9d9f fix: PUBLIC_WARGAMING_APPLICATION_ID 2024-10-21 10:58:35 -05:00
TrèsAbhi 46fb043920 fix: PUBLIC_ASSET_REPO 2024-10-21 10:57:38 -05:00
TrèsAbhi e5ec1a70d2 fix: avg script 2024-10-21 10:56:47 -05:00
TrèsAbhi c1e472a6ab feat: logs 2024-10-21 10:53:29 -05:00
TrèsAbhi 650dbf66a9 fix: session 2024-10-21 10:49:06 -05:00
TrèsAbhi c92d355484 fix: data set 2024-10-21 10:38:03 -05:00
TrèsAbhi 5f6780f0f7 feat: cooler header 2024-10-21 10:34:37 -05:00
TrèsAbhi 0ba319432c feat: subtle 2024-10-20 01:03:42 -05:00
TrèsAbhi 236271d279 feat: cooler header 2024-10-20 01:01:54 -05:00
TrèsAbhi 61d53936b2 feat: main 2024-10-19 23:40:03 -05:00
TrèsAbhi 76a8f8396b fix: script types 2024-10-19 23:38:42 -05:00
TrèsAbhi 31f7618a09 feat: logs 2024-10-19 23:33:33 -05:00
TrèsAbhi 099e878c55 fix: invalidate frame on uniform change 2024-10-18 11:39:56 -05:00
TrèsAbhi 1f7b78dabc fix: reintroduce shell switching shortcut 2024-10-18 11:36:50 -05:00
TrèsAbhi 2fd9205662 fix: add tanks to compare on load 2024-10-18 11:30:33 -05:00
TrèsAbhi fa9ed570ce fix: add desc to dialog 2024-10-18 11:25:29 -05:00
TrèsAbhi 66ad7371ac fix: jsx names 2024-10-18 11:24:10 -05:00
TrèsAbhi 495f20cd90 fix: keys 2024-10-18 11:23:39 -05:00
TrèsAbhi f673aefb8f fix: dispersion traverse 2024-10-18 11:20:52 -05:00
TrèsAbhi 458915473c feat: beta 5 2024-10-18 11:10:53 -05:00
TrèsAbhi 72ff2574cd fix: remove vercel 2024-10-18 11:05:01 -05:00
TrèsAbhi fda9c72980 fix: cancel 2024-10-18 11:02:43 -05:00
TrèsAbhi b02963323e fix: vars 2024-10-18 11:02:16 -05:00
TrèsAbhi 5b02f3ad02 fix: vars 2024-10-18 11:00:05 -05:00
TrèsAbhi ed59d8eefa feat: deploy website 2024-10-18 10:56:59 -05:00
TrèsAbhi 4e6a1de6ca fix: add outdir 2024-10-18 10:52:23 -05:00
TrèsAbhi b52f742527 feat: remove vercel 2024-10-18 10:50:03 -05:00
TrèsAbhi 031c1948e7 fix: prevent defailt on clicking select all link 2024-10-18 10:48:19 -05:00
TrèsAbhi 700bb544a3 fix: prevent defailt on clicking select all link 2024-10-18 10:47:12 -05:00
TrèsAbhi 3d82a2ec75 feat: proper radix colors typing 2024-10-18 10:41:34 -05:00
TrèsAbhi eba2057306 feat: remove nitropay 2024-10-18 10:31:34 -05:00
TrèsAbhi 8c0ddd473c feat: remove do not sell 2024-10-18 10:31:15 -05:00
TrèsAbhi 0df58d2d2c feat: remove patreon 2024-10-18 10:29:58 -05:00
TrèsAbhi da8025a0ad feat: remove api 2024-10-18 10:24:52 -05:00
TrèsAbhi aa8bb1c040 feat: remove ads 2024-10-18 10:24:39 -05:00
TrèsAbhi b1f29a6148 fix: version 2024-10-14 18:17:48 -05:00
TrèsAbhi 5a5643ce3d feat: sitemap 2024-10-14 10:52:40 -05:00
TrèsAbhi dfc55b745b feat: robots.txt file 2024-10-14 10:47:49 -05:00
TrèsAbhi 7b1fedf657 fix: random console.logs 2024-10-14 10:40:29 -05:00
TrèsAbhi 18869712e1 fix: missing crew skills in compare 2024-10-14 10:40:23 -05:00
TrèsAbhi ea70033b08 feat: report buttons 2024-10-14 10:27:42 -05:00
TrèsAbhi ec9a3cb2ce feat: always plug my name 2024-10-13 21:00:34 -05:00
TrèsAbhi 0412eb478e feat: in-table perforamnce ads 2024-10-13 20:59:01 -05:00
TrèsAbhi 30cb319c1e feat: compare in-table ads 2024-10-13 20:49:02 -05:00
TrèsAbhi 40f3311ff7 fix: app context in comapre 2024-10-13 20:14:32 -05:00
TrèsAbhi 5510c25a59 feat: ads on tankopedia pages 2024-10-13 20:12:16 -05:00
TrèsAbhi 1778529030 fix: history section height 2024-10-13 20:10:08 -05:00
TrèsAbhi ad89679959 feat: less cls ads 2024-10-13 00:26:38 -05:00
TrèsAbhi 4f5a8c9a37 feat: patreon exempt 2024-10-12 23:43:06 -05:00
TrèsAbhi 9bc745bc0e fix: patreon login 2024-10-12 23:17:32 -05:00
TrèsAbhi a17a8888ff fix: reasonably sized images on homepage 2024-10-12 22:47:13 -05:00
TrèsAbhi 97b9137e9a fix: better layouts 2024-10-12 22:07:59 -05:00
TrèsAbhi 201f8f94a5 fix: beta version 2024-10-12 21:49:24 -05:00
TrèsAbhi 799d5e3fe2 Merge branch 'main' into dev 2024-10-12 21:45:59 -05:00
TrèsAbhi d8d1b4a016 feat: better ad discriminators 2024-10-12 21:42:38 -05:00
TrèsAbhi dea84321d4 fix: wtf is astro:schema??? 2024-10-12 21:39:48 -05:00
TrèsAbhi adf00a0bbd feat: branch naming 2024-10-12 21:38:48 -05:00
TrèsAbhi a06fc87009 feat: remove redundancy in ccap 2024-10-11 10:51:26 -05:00
TrèsAbhi 7af06d2120 fix: assert ads.txt 2024-10-11 10:49:29 -05:00
TrèsAbhi 8e26413628 trigger build 2024-10-11 10:40:12 -05:00
TrèsAbhi b7d5e3eeab fix: mv 2024-10-11 10:36:43 -05:00
TrèsAbhi b48e6c4739 feat: move to root 2024-10-11 10:31:42 -05:00
TrèsAbhi 48441d0cda fix: package location 2024-10-10 16:41:43 -05:00
TrèsAbhi d0f277e878 trigger 2024-10-10 16:40:44 -05:00
TrèsAbhi 7230d6663d fix: prisma 2024-10-10 16:38:47 -05:00
TrèsAbhi cec79736bc fix: package location 2024-10-10 16:30:54 -05:00
TrèsAbhi 0fc8ea8777 fix: package location 2024-10-10 16:29:26 -05:00
TrèsAbhi 3d41198178 fix: compare versions script 2024-10-10 16:27:50 -05:00
TrèsAbhi c195e5f440 fix: version 2024-10-10 16:25:32 -05:00
TrèsAbhi 11bbe9309e feat: ad placements 2024-10-10 16:25:05 -05:00
TrèsAbhi 749d3fa7c5 feat: basic ad component 2024-10-10 16:08:35 -05:00
TrèsAbhi 2c15190606 fix: use email in privacy policy 2024-10-10 15:47:22 -05:00
TrèsAbhi 0674112df6 fix: better ccpa 2024-10-10 15:39:50 -05:00
TrèsAbhi 9604eb90e1 fix: move ccpa 2024-10-10 15:25:39 -05:00
TrèsAbhi 9005383c65 feat: ccpa 2024-10-10 15:23:30 -05:00
TrèsAbhi 9923efe8ab feat: some ads basework 2024-10-09 22:35:10 -05:00
TrèsAbhi e52063c12d feat: vercel adapter 2024-10-09 22:04:43 -05:00
TrèsAbhi 53662c1174 fix: client only react 2024-10-09 21:11:57 -05:00
TrèsAbhi bba8118dd7 fix: wg login declaration 2024-10-09 21:09:59 -05:00
TrèsAbhi 513105a624 feat: more login progress 2024-10-09 21:04:49 -05:00
TrèsAbhi 1e64cb9e7d feat: logins 2024-10-09 19:40:55 -05:00
TrèsAbhi 9ad3fb220f feat: 404 page 2024-10-09 19:03:46 -05:00
TrèsAbhi 559f3edd06 fix: some sizing 2024-10-09 19:03:18 -05:00
TrèsAbhi e3c1306ef3 fix: some sizing 2024-10-09 19:01:39 -05:00
TrèsAbhi 8a381b5d24 fix: inclusive master 2024-10-09 10:49:59 -05:00
TrèsAbhi 83586bdb71 fix: deps 2024-10-09 10:41:50 -05:00
TrèsAbhi a652fd29ae feat: trigget build 2024-10-09 10:39:57 -05:00
TrèsAbhi 1f6eab2ef8 feat: include built defs 2024-10-09 10:39:21 -05:00
TrèsAbhi 96b0761832 feat: installclis 2024-10-09 10:37:04 -05:00
TrèsAbhi 91bd3f7769 fix: no trees for deprecated tanks 2024-10-09 10:35:12 -05:00
TrèsAbhi ddecff827a feat: new build command 2024-10-09 10:33:13 -05:00
TrèsAbhi 66f33746cb fix: some linting 2024-10-09 10:29:42 -05:00
TrèsAbhi ae0e2f45dc feat: trigget build 2024-10-09 10:21:59 -05:00
TrèsAbhi 1bd4c498c2 fix: definitions casing 2024-10-07 19:37:38 -05:00
TrèsAbhi afb730924c fix: tankopedia title 2024-10-07 19:33:10 -05:00
TrèsAbhi 25fe926cba feat: remove max dispersion for now 2024-10-07 19:29:08 -05:00
TrèsAbhi 7cf353df80 fix: subheading alignment with tank name in hero 2024-10-07 19:27:38 -05:00
TrèsAbhi 796f6685e7 fix: consumable list 2024-10-07 19:22:30 -05:00
TrèsAbhi 76d83185a5 fix: prisma import 2024-10-07 19:13:30 -05:00
TrèsAbhi 8073e4aa2d feat: fix build-time styles 2024-10-07 18:58:39 -05:00
TrèsAbhi acb52b9888 fix: no tech tree for non-researchable tanks 2024-10-07 18:52:12 -05:00
TrèsAbhi 6dffe3db45 fix: type imports 2024-10-07 18:49:42 -05:00
TrèsAbhi 5fcc42e065 fix: casing 2 2024-10-07 18:48:16 -05:00
TrèsAbhi fc8e0e55f0 fix: casing 2024-10-07 18:45:11 -05:00
TrèsAbhi ef52434a42 fix: ignore tsx files in routes 2024-10-07 18:38:25 -05:00
TrèsAbhi ea490628fb feat: migrate docs 2024-10-07 18:36:07 -05:00
TrèsAbhi dc37b23727 feat: migrate settins 2024-10-07 17:52:45 -05:00
TrèsAbhi 746dd998aa feat: remove rating 2024-10-07 17:48:10 -05:00
TrèsAbhi e234b29e16 feat: migrate session 2024-10-07 17:39:20 -05:00
TrèsAbhi 8d51ce2bea feat: migrate performance 2024-10-07 17:31:13 -05:00
TrèsAbhi b31c7a6738 feat: migrate compare 2024-10-07 10:39:47 -05:00
TrèsAbhi 320aead17b fix: more errors from proto migration 2024-10-07 10:26:13 -05:00
TrèsAbhi b5cb2acdf4 fix: keys 2024-10-06 00:12:36 -05:00
TrèsAbhi 0808bb0d9b fix: some linting for new proto 7 2024-10-06 00:09:43 -05:00
TrèsAbhi 95bb67bcf1 fix: some linting for new proto 6 2024-10-06 00:02:50 -05:00
TrèsAbhi 96310a9d63 fix: some linting for new proto 5 2024-10-05 23:20:04 -05:00
TrèsAbhi 53a9c5f2de fix: some linting for new proto 4 2024-10-05 20:55:44 -05:00
TrèsAbhi f14ca394b5 fix: some linting for new proto 3 2024-10-05 16:44:07 -05:00
TrèsAbhi 79bc259565 fix: some linting for new proto 2 2024-10-05 15:57:34 -05:00
TrèsAbhi 94f67e30f1 fix: some linting for new proto 2024-10-05 15:24:54 -05:00
TrèsAbhi 78dce028d9 idk bro 2024-10-02 10:21:16 -05:00
TrèsAbhi 61fe8c7e7c feat: type errors in definitions 2024-09-30 22:35:37 -05:00
TrèsAbhi 3e18d5a8db feat: better lib 2024-09-29 22:42:15 -05:00
TrèsAbhi 57170469f2 feat: some work on functional pro ts 2024-09-29 22:24:35 -05:00
TrèsAbhi 9b134fab27 move 2024-09-29 22:09:43 -05:00
TrèsAbhi 9cced11199 feat: mode protos 2024-09-29 22:03:50 -05:00
TrèsAbhi 370ef2df65 feat: transition to protobug 2024-09-29 20:56:52 -05:00
TrèsAbhi 45dc99e1ce feat: start of proto only 2024-09-28 21:07:00 -05:00
TrèsAbhi d8a08a93e0 Update index.ts 2024-09-25 09:24:50 -05:00
TrèsAbhi d90a3cc010 feat: progress on compare 2024-09-23 10:49:54 -05:00
TrèsAbhi 53c0f48437 fix: navbar selected link 2024-09-23 10:19:11 -05:00
TrèsAbhi a54ba78dbf feat: complete tankoepdia page 2024-09-22 22:04:03 -05:00
TrèsAbhi 2b5ffb2b84 feat: armor modes 2 2024-09-22 21:27:46 -05:00
TrèsAbhi f1410cf321 feat: armor modes 2024-09-22 21:12:18 -05:00
TrèsAbhi ffa1395b50 feat: search page 2024-09-21 20:26:58 -05:00
TrèsAbhi 408b561b75 feat: search page 2024-09-21 12:16:51 -05:00
TrèsAbhi 187230439b feat: migrated tank search 2024-09-17 22:50:34 -05:00
TrèsAbhi e241870ece feat: migrated tank search 2024-09-17 22:13:35 -05:00
TrèsAbhi 0537418f6a Revert "feat: tools layout"
This reverts commit 36583add1d.
2024-09-17 21:44:37 -05:00
TrèsAbhi cf4fa83d44 Revert "feat: progress on tankopedia search"
This reverts commit c873c32d09.
2024-09-17 21:44:36 -05:00
TrèsAbhi a6f60ac0de Revert "feat: progress on tankopedia search"
This reverts commit eebc33581c.
2024-09-17 21:44:35 -05:00
TrèsAbhi f02ae9833d Revert "Revert "feat: progress on tankopedia search""
This reverts commit 6288e3f69a.
2024-09-17 21:44:34 -05:00
TrèsAbhi 18edc38433 Revert "Revert "feat: progress on tankopedia search""
This reverts commit 4c5ad23edf.
2024-09-17 21:44:31 -05:00
TrèsAbhi 4c5ad23edf Revert "feat: progress on tankopedia search"
This reverts commit c873c32d09.
2024-09-17 21:43:31 -05:00
TrèsAbhi 6288e3f69a Revert "feat: progress on tankopedia search"
This reverts commit eebc33581c.
2024-09-17 21:43:28 -05:00
TrèsAbhi eebc33581c feat: progress on tankopedia search 2024-09-17 20:23:22 -05:00
TrèsAbhi c873c32d09 feat: progress on tankopedia search 2024-09-17 18:46:04 -05:00
TrèsAbhi 36583add1d feat: tools layout 2024-09-17 18:35:16 -05:00
TrèsAbhi 829df50eca feat: navbar account 2024-09-17 18:24:12 -05:00
TrèsAbhi 264832d8a2 Update ads.txt 2024-09-17 13:57:32 -05:00
TrèsAbhi 85491c7f22 fix: logsin 2024-09-15 16:20:11 -05:00
TrèsAbhi 8670e5f9a7 fix: media 2024-09-15 14:55:26 -05:00
TrèsAbhi 6b4dc4ca8d feat: navbar 2024-09-15 14:51:01 -05:00
TrèsAbhi 502dcf4e54 feat: more migration 2024-09-14 19:43:14 -05:00
TrèsAbhi a1721eb05e feat: moved to astro 2024-09-14 18:32:36 -05:00
TrèsAbhi 292df5f5d9 feat: migrated home page 2024-09-14 13:24:24 -05:00
TrèsAbhi fcac6e36fd feat: init astro 2024-09-14 12:18:30 -05:00
TrèsAbhi 8d9ca3d716 feat: legacy 2024-09-14 12:12:46 -05:00
TrèsAbhi 9640920863 feat: isolate radix utils 2024-09-08 21:54:05 -05:00
TrèsAbhi 887d3079df feat: isloate embed config 2024-09-08 21:52:12 -05:00
TrèsAbhi 250b61b68d fix: some static shit 2024-09-08 21:29:18 -05:00
TrèsAbhi d306b51c2c feat: some static params 2024-09-08 20:56:48 -05:00
TrèsAbhi 8f44cdedd4 fix: port to core 7 2024-09-08 10:53:54 -05:00
TrèsAbhi 3a968fa8e5 fix: port to core 6 2024-09-08 10:47:02 -05:00
TrèsAbhi 7249c3be9e fix: port to core 5 2024-09-08 10:46:12 -05:00
TrèsAbhi 3d23ea1497 fix: port to core 4 2024-09-08 10:42:34 -05:00
TrèsAbhi de6a4d5675 fix: port to core 3 2024-09-08 10:28:54 -05:00
TrèsAbhi 5e989a16bc fix: port to core 1 2024-09-08 10:24:48 -05:00
TrèsAbhi fd2e2f9c7b fix: more imports 4 2024-09-08 10:21:08 -05:00
TrèsAbhi 843992e631 fix: more imports 3 2024-09-08 10:17:40 -05:00
TrèsAbhi c51ddbc725 fix: more imports 2 2024-09-08 10:15:42 -05:00
TrèsAbhi 4f24db0956 fix: more imports 2024-09-08 10:11:24 -05:00
TrèsAbhi 25cfb7db74 fix: remove api imports 2024-09-08 09:46:29 -05:00
TrèsAbhi 636c54aa36 feat: more progress 2024-09-07 23:19:12 -05:00
TrèsAbhi f30e9f810e fix: routes 2024-09-07 23:12:12 -05:00
TrèsAbhi 2c9a7f9a99 feat: split up some more 2024-09-07 23:11:44 -05:00
TrèsAbhi 7c6f381bbe fix: no cross-bot imports 2024-09-07 23:00:56 -05:00
TrèsAbhi 6c0b46725d feat: start of static 2024-09-07 22:26:02 -05:00
TrèsAbhi 7b86c4e4eb feat: some types 2024-09-07 21:56:57 -05:00
TrèsAbhi 5ab30c373e feat: distribute deps 2024-09-07 21:51:30 -05:00
TrèsAbhi 3c80a43435 fix: types 2024-09-07 21:45:00 -05:00
TrèsAbhi 9ae8b0ac49 feat: migrated tankopedia pages 2024-09-07 20:40:06 -05:00
TrèsAbhi 135dd85a82 feat: migration 4 2024-09-06 23:27:27 -05:00
TrèsAbhi 4055988478 feat: migration 3 2024-09-06 23:26:35 -05:00
TrèsAbhi 6285f33989 feat: migration 2 2024-09-06 23:17:53 -05:00
TrèsAbhi e1c8194beb feat: migrated tankopedia search 2024-09-06 22:05:06 -05:00
TrèsAbhi 73c7bdf0c0 feat: start of monorepo 2024-09-06 21:45:58 -05:00
TrèsAbhi 14f39d71ac feat: removed doc website 2024-09-06 20:44:42 -05:00
TrèsAbhi 943335f8a9 feat: remove this poopy poopoo poop 2024-09-05 21:56:22 -05:00
TrèsAbhi d269eb178d feat: bun 2024-09-05 21:53:55 -05:00
TrèsAbhi 6fe7ce3952 feat: bun 2024-09-05 21:52:58 -05:00
TrèsAbhi 3a66ccb6d2 feat: bun 2024-09-05 21:52:12 -05:00
TrèsAbhi 7e9acfdd7b Create nextjs.yml 2024-09-05 21:47:34 -05:00
TrèsAbhi 525c9ceac3 fix: show armor 2024-09-05 21:01:41 -05:00
TrèsAbhi 7b903f4fc7 feat: logs 2024-09-05 20:57:49 -05:00
TrèsAbhi 17869d85c6 Merge branch 'main' into next 2024-09-05 20:50:49 -05:00
TrèsAbhi 3f12b08a85 fix: missing secrets 2024-09-04 22:29:37 -05:00
TrèsAbhi d2269a53cc fix: settings icon no blank 2024-09-04 22:26:29 -05:00
TrèsAbhi 8e3e26f677 feat: opentest plug 2024-09-04 22:25:15 -05:00
TrèsAbhi 449b4f59e5 fix: don't use to reversed 2024-09-04 22:17:32 -05:00
TrèsAbhi b13d675692 fix: don't promote opentest on opentest 2024-09-04 22:16:31 -05:00
TrèsAbhi 46f1461de6 feat: i tried my best to implement dynamic armor :( 2024-09-04 22:15:19 -05:00
TrèsAbhi 952523d3f9 fix: deterministic and correct boolean dynamic armor 2024-09-04 21:15:57 -05:00
TrèsAbhi 319c865ef0 feat: include wg account name in logged in accounts sectionb 2024-09-03 22:10:57 -05:00
TrèsAbhi 018c6802f4 fix: cetner align wg login 2024-09-03 22:10:15 -05:00
TrèsAbhi 583522c3a2 fix: remove dynamic armor 2024-09-03 21:57:42 -05:00
TrèsAbhi 8461f6514a fix: move shot display up 2024-09-03 21:55:05 -05:00
TrèsAbhi eef26defb4 feat: raw terrain coeffs 2024-09-03 21:54:35 -05:00
TrèsAbhi 68e2ececce fix: cool link 2024-09-03 21:49:13 -05:00
TrèsAbhi 169f757fb2 fix: deterministic proto loading 2024-09-03 21:47:06 -05:00
TrèsAbhi cbb5392525 Merge branch 'main' into next 2024-09-03 21:23:05 -05:00
TrèsAbhi bc088a699f feat: updated dependencies 2024-09-02 10:46:26 -05:00
TrèsAbhi 8e004d0e3a fix: no temp write flags 2024-09-02 10:30:20 -05:00
TrèsAbhi ac2c7fe9ab Update index.ts 2024-09-02 10:07:48 -05:00
TrèsAbhi d8a48043c5 feat: cool projects 2024-09-01 23:22:59 -05:00
TrèsAbhi a7ee81458c Merge branch 'main' of https://github.com/tresabhi/blitzkit 2024-09-01 23:11:33 -05:00
TrèsAbhi e067b1bf94 feat: logs 2024-09-01 23:10:27 -05:00
TrèsAbhi a774f631f0 feat: logs 2024-09-01 23:10:16 -05:00
TrèsAbhi 720eb77341 fix: non depricated tier 1 2024-09-01 23:06:40 -05:00
TrèsAbhi a5bbbfc960 feat: left-right hero 2024-09-01 23:00:37 -05:00
TrèsAbhi 46c0726277 feat: just hide this for now 2024-09-01 21:25:08 -05:00
TrèsAbhi 8ca2315874 fix: no return before useEffect 2024-09-01 21:18:50 -05:00
TrèsAbhi bac2f097f2 fix: add dialog titles 2024-09-01 21:14:15 -05:00
TrèsAbhi f0ca38e828 feat: opentest plug 2024-09-01 20:53:44 -05:00
TrèsAbhi 176eb1424d fix: region 2024-09-01 19:12:32 -05:00
TrèsAbhi 2f10e68e98 fix: prisma generate 2024-09-01 18:38:09 -05:00
TrèsAbhi 33ccf47a92 feat: use client for votes 2024-09-01 18:32:08 -05:00
TrèsAbhi 13faad0977 feat: swap button 2024-09-01 18:00:15 -05:00
TrèsAbhi ee9dbdaf74 feat: better loading 2024-09-01 17:41:50 -05:00
TrèsAbhi 76625dc7b2 feat: more visible grid 2024-09-01 17:06:47 -05:00
TrèsAbhi eac15cc15d fix: fullscreen 2024-09-01 17:05:40 -05:00
TrèsAbhi 4e66f57150 fix: lsiting alingment 2024-09-01 17:03:55 -05:00
TrèsAbhi 4f80169f9b feat: left sided name 2024-09-01 17:00:02 -05:00
TrèsAbhi 8b183269d1 fix: skeleton vote button 2024-09-01 16:27:19 -05:00
TrèsAbhi c5e2c1fd0f feat: cast ui 2024-09-01 16:25:43 -05:00
TrèsAbhi 2d2d31adf7 feat: voting averages 2024-09-01 15:46:39 -05:00
TrèsAbhi 798df862f7 Update cd-assets.yml 2024-09-01 11:01:51 -05:00
TrèsAbhi c3c16bf607 feat: start of user poll 2024-08-28 22:41:06 -05:00
TrèsAbhi c3e449745e feat: better hero 2024-08-28 22:22:53 -05:00
TrèsAbhi cd0769675e feat: start of dynamic armor 2024-08-28 21:16:25 -05:00
TrèsAbhi 86e369af19 feat: use latest url for cached rating images 2024-08-28 18:12:20 -05:00
TrèsAbhi 0bba768fbf feat: deprecated tanks 2024-08-28 18:08:23 -05:00
TrèsAbhi 8f12a77e12 fix: track movement invalidation 2024-08-28 18:02:20 -05:00
TrèsAbhi 0c2877d42f fix: sort actually sorts now? woah 2024-08-28 18:00:30 -05:00
TrèsAbhi e22156e779 fix: tank search discriminator 2024-08-28 17:57:01 -05:00
TrèsAbhi 6a6eab1c94 feat: unaffiliated with wg 2024-08-28 17:52:17 -05:00
TrèsAbhi bfb7928a74 fix: invalidated on quick equipments 2024-08-28 17:49:21 -05:00
TrèsAbhi 9566065160 fix: missing titles 2024-08-28 17:47:29 -05:00
TrèsAbhi 6949b27aa7 fix: patches no blank 2024-08-28 17:41:02 -05:00
TrèsAbhi 2482efba29 feat: better names 2024-08-28 17:40:18 -05:00
TrèsAbhi dc60f3c970 feat: better branch label 2024-08-28 17:38:23 -05:00
TrèsAbhi 84cd18d1d5 feat: revert dynamic title 2024-08-28 17:35:32 -05:00
TrèsAbhi 770cd1f928 feat: start of kitscore 2024-08-28 10:51:25 -05:00
TrèsAbhi cf17b56cc7 feat: title opentest 2024-08-28 10:03:43 -05:00
TrèsAbhi 0dd3e71353 feat: iteration safe assets 2024-08-28 10:02:28 -05:00
TrèsAbhi be9b3a41a8 Update cd-assets.yml 2024-08-28 07:33:49 -05:00
TrèsAbhi be7943d5e2 fix: uhg 2024-08-27 22:03:58 -05:00
TrèsAbhi 3ef102ba55 feat: split steps 2024-08-27 21:39:00 -05:00
TrèsAbhi 660e901283 feat: i am dumb 2024-08-27 20:54:31 -05:00
TrèsAbhi b42d2a96a2 feat: my ass 2024-08-27 20:33:16 -05:00
TrèsAbhi 10d5e2453e Update cd-assets.yml 2024-08-27 19:53:59 -05:00
TrèsAbhi e4d3e61bbb Update cd-assets.yml 2024-08-27 19:53:07 -05:00
TrèsAbhi ab1c8a825f almighty 2024-08-27 19:25:47 -05:00
TrèsAbhi 4b06e2a175 Merge branch 'main' of https://github.com/tresabhi/blitzkit 2024-08-27 18:43:25 -05:00
TrèsAbhi 08e07957a7 feat: post setup 2024-08-27 18:43:24 -05:00
TrèsAbhi ab4602094a Update cd-assets.yml 2024-08-27 18:26:33 -05:00
TrèsAbhi efe380bdfe Update cd-assets.yml 2024-08-27 18:02:35 -05:00
TrèsAbhi 1bc7a49cdb wget 2024-08-27 17:36:13 -05:00
TrèsAbhi 4c30ce65ab Update cd-assets.yml 2024-08-27 17:04:30 -05:00
TrèsAbhi 6464708514 feat: retry 2024-08-27 16:32:16 -05:00
TrèsAbhi d642116dd4 feat: workspace 2024-08-27 16:19:59 -05:00
TrèsAbhi 4ef0b6d37f feat: conc 2024-08-27 16:11:12 -05:00
TrèsAbhi 57b58775c6 fix: hide non-ot form navbar 2024-08-27 16:09:52 -05:00
TrèsAbhi 7e076a1e34 feat: yeaaah 2024-08-27 15:58:32 -05:00
TrèsAbhi 27a958079f feat: inputs 2024-08-27 15:45:05 -05:00
TrèsAbhi c9570e5fe8 feat: better yaml synxtax 2024-08-27 15:41:11 -05:00
TrèsAbhi 71af5d2166 feat: labels 2024-08-27 15:32:00 -05:00
TrèsAbhi 5da177e520 feat: ot indicator 2024-08-27 15:25:22 -05:00
TrèsAbhi c6106f1b92 fix: remove scrkpts 2024-08-27 15:23:59 -05:00
TrèsAbhi b2bcc8548f feat: revert poopy header 2024-08-27 15:09:54 -05:00
TrèsAbhi 3005cadc97 feat: logs 2024-08-27 15:00:00 -05:00
TrèsAbhi c79a5a55ac feat: logs 2024-08-27 14:58:53 -05:00
TrèsAbhi b9c978548a feat: disable tools on opentest 2024-08-27 14:55:43 -05:00
TrèsAbhi 48dcbbc227 feat: detached cdn branch 2024-08-27 14:40:43 -05:00
TrèsAbhi ed041b78bb feat: hide embed tool 2024-08-26 22:03:25 -05:00
TrèsAbhi e11ab1ae33 Merge branch 'main' into dev-embed 2024-08-26 22:02:29 -05:00
TrèsAbhi e99b125517 Merge branch 'main' into dev-embed 2024-08-26 22:02:10 -05:00
TrèsAbhi f2d40d40fd feat: logs 2024-08-26 21:52:34 -05:00
TrèsAbhi 21ece80187 feat: never render off screen 2024-08-26 21:47:14 -05:00
TrèsAbhi f58b6dcd17 feat: ah 2024-08-26 21:34:57 -05:00
TrèsAbhi 579f604b9f feat: new blitzkit logos 2024-08-26 21:25:20 -05:00
TrèsAbhi 49b4810a78 feat: better program 2024-08-26 21:20:45 -05:00
TrèsAbhi 51f28b5936 feat: copy to clipbioard screenshot 2024-08-26 21:18:07 -05:00
TrèsAbhi 37a50f8bc1 feat: incoporate meta section in hero 2024-08-26 10:49:10 -05:00
TrèsAbhi e0ab00386c fix: game mode banner visiblity 2024-08-26 10:21:03 -05:00
TrèsAbhi 62fd98e075 feat: responsive shell distance input 2024-08-26 10:18:33 -05:00
TrèsAbhi aef020c744 feat: better hero sectio alighment 2024-08-26 10:16:14 -05:00
TrèsAbhi 5be9c94641 feat: logs 2024-08-25 21:48:26 -05:00
TrèsAbhi 0ce34670c4 fix: icon check order 2024-08-25 21:32:35 -05:00
TrèsAbhi 5bcfa88f48 fix: persistent search 2024-08-25 21:15:16 -05:00
TrèsAbhi 7391937070 fix: align videos 2024-08-25 21:12:21 -05:00
TrèsAbhi 3d5b8e31c8 feat: xp multipler bold 2024-08-25 21:09:07 -05:00
TrèsAbhi 6cc616d993 feat: xp multipler bold 2024-08-25 21:08:41 -05:00
TrèsAbhi 9a686230c6 feat: battle count 2024-08-25 21:06:56 -05:00
TrèsAbhi 22831cc268 fix: selector 2024-08-25 19:32:28 -05:00
TrèsAbhi 2f183896eb feat: crew in compare 2024-08-25 19:30:47 -05:00
TrèsAbhi 633090f967 fix: auto clear 2024-08-25 19:23:13 -05:00
TrèsAbhi ece0791a08 feat: screenshot button 2024-08-25 19:11:30 -05:00
TrèsAbhi 8bc4eab2c0 fix: discord application link 2024-08-25 18:52:58 -05:00
TrèsAbhi bb0b39fabb fix: background accent color image alignment 2024-08-25 18:52:30 -05:00
TrèsAbhi 2b02158e19 feat: move tech tree section up 2024-08-25 18:48:57 -05:00
TrèsAbhi 2e97ccd40d feat: filter tooltips 2024-08-25 18:45:01 -05:00
TrèsAbhi da6691928e feat: mode tooltips 2024-08-25 18:38:28 -05:00
TrèsAbhi 1a1b8c3a65 feat: premium purchase price 2024-08-25 18:36:57 -05:00
TrèsAbhi 8ebd604cde feat: display videos 2024-08-25 18:33:04 -05:00
TrèsAbhi d9521ce1e5 feat: new reviews 2024-08-25 18:10:56 -05:00
TrèsAbhi f91dd1e2c0 stash: averages proto 2024-08-25 09:21:17 -05:00
TrèsAbhi 474846e9c2 feat: add wotb official to whitelist 2024-08-24 20:26:12 -05:00
TrèsAbhi cae2bcc3ea fix: it didn't have to end this way 2024-08-24 20:23:58 -05:00
TrèsAbhi 13784345af Merge branch 'main' into next 2024-08-24 20:19:06 -05:00
TrèsAbhi 2f5e1eeadc fix: spaces 2024-08-23 19:58:58 -05:00
TrèsAbhi 69676da446 fix: guess the pokemon! 2024-08-23 19:57:58 -05:00
TrèsAbhi ed283d4d2e fix: f 2024-08-23 19:56:24 -05:00
TrèsAbhi f7e1b08788 fix: add 2024-08-23 19:55:45 -05:00
TrèsAbhi 66e65587bd fix: update index 2024-08-23 19:54:36 -05:00
TrèsAbhi 59d837bbb2 fix: format 2024-08-23 19:52:17 -05:00
TrèsAbhi 5dc55914ed feat: linux assets 2024-08-23 19:50:48 -05:00
TrèsAbhi 912f134eb6 Update settings.json 2024-08-22 19:44:52 -05:00
TrèsAbhi aeed328c18 Update credits.md 2024-08-22 19:09:05 -05:00
TrèsAbhi 17526ca59c feat: remove name 2024-08-21 20:25:51 -05:00
TrèsAbhi c19eeb01e1 fix: restorateion price for prems 2024-08-21 20:25:22 -05:00
TrèsAbhi 575fdbbcc3 feat: currency icons 2024-08-21 20:23:39 -05:00
TrèsAbhi 679bd2956b fix: invalidate frame on shell switch 2024-08-21 20:04:27 -05:00
TrèsAbhi e6b29a4ab8 fix: persistent tank filters 2024-08-21 20:01:20 -05:00
TrèsAbhi d45637a407 feat: characteristics section 2024-08-21 19:45:33 -05:00
TrèsAbhi 876dee1870 feat: responsive meta 2024-08-21 19:28:15 -05:00
TrèsAbhi 263740dd30 fix: invalidate frame on model transform 2024-08-21 12:11:08 -05:00
TrèsAbhi 09848c7b21 feat: more robust xp 2024-08-21 12:08:02 -05:00
TrèsAbhi c2abc94241 feat: totals 2024-08-20 13:57:22 -05:00
TrèsAbhi 781d2da933 feat: multiple lines 2024-08-20 13:49:14 -05:00
TrèsAbhi cfe0060121 fix: correct currencies 2024-08-20 11:51:05 -05:00
TrèsAbhi 434d2d3d5d feat: game name in descs 2024-08-20 11:17:56 -05:00
TrèsAbhi e6a1a98fd3 fix: homepage links 2024-08-20 11:17:03 -05:00
TrèsAbhi 5b3723322e fix: navbar links 2024-08-20 11:12:22 -05:00
TrèsAbhi 631dc547fa fix: remove player stats 2024-08-19 20:42:18 -05:00
TrèsAbhi 59324f7438 feat: use deferred store 2024-08-19 20:40:50 -05:00
TrèsAbhi 2727b2babe feat: lessen ads 2024-08-19 20:32:15 -05:00
TrèsAbhi 89f8136137 fix: key 2024-08-19 20:31:19 -05:00
TrèsAbhi 165e9c62e8 fix: key 2024-08-19 20:29:55 -05:00
TrèsAbhi 5091066d6c fix: key 2024-08-19 20:29:18 -05:00
TrèsAbhi e8c1ce333c fix: key 2024-08-19 20:28:56 -05:00
TrèsAbhi 9b83cde515 fix: key 2024-08-19 20:28:25 -05:00
TrèsAbhi c4a6b4a680 feat: nation 2024-08-19 20:26:54 -05:00
TrèsAbhi 9c784228fb feat: shell name tooltips 2024-08-19 20:22:37 -05:00
TrèsAbhi 16e2f9ac96 feat: meta section 2024-08-19 20:20:04 -05:00
TrèsAbhi b747d31574 feat: on demand rendering 2024-08-19 14:04:25 -05:00
TrèsAbhi 14fccf3f6e feat: tooltips 2024-08-19 14:02:39 -05:00
TrèsAbhi c73eb0d951 feat: testing warning 2024-08-19 13:56:04 -05:00
TrèsAbhi 2b008ecabe fix: wrap modules 2024-08-19 13:50:41 -05:00
TrèsAbhi 8908a720f3 fix: webkit you asshole 2024-08-19 13:45:47 -05:00
TrèsAbhi d67b0ef5ab fix: slimmer and correct banners 2024-08-19 13:45:12 -05:00
TrèsAbhi 72769fbcb0 feat: plum more tools 2024-08-19 13:40:17 -05:00
TrèsAbhi 7268e5fc11 fix: no toggle on miss 2024-08-19 13:36:13 -05:00
TrèsAbhi ec547af49e feat: simplified 2024-08-19 13:35:19 -05:00
TrèsAbhi 8f54b8a576 feat: no push content 2024-08-19 13:28:46 -05:00
TrèsAbhi 9d36ad6dab feat: smaller images for navbar 2024-08-17 20:13:36 -05:00
TrèsAbhi f64e85c1cf fix: no center align between xs and sm 2024-08-17 20:12:21 -05:00
TrèsAbhi 5f3a1b1311 feat: home link 2024-08-17 20:09:52 -05:00
TrèsAbhi 207b9ae36c fix: manage errors extensions 2024-08-17 20:03:00 -05:00
TrèsAbhi afd99a1dfe feat: accounts 2024-08-17 20:01:27 -05:00
TrèsAbhi bc9e1c3007 feat: more things 2024-08-17 20:00:01 -05:00
TrèsAbhi 4b88a52fcf feat: start of new navbar 2024-08-17 14:47:47 -05:00
TrèsAbhi ca7c01bbc8 feat: better history and video sections 2024-08-16 21:17:50 -05:00
TrèsAbhi 7fcd4a1e94 feat: better flags 2024-08-16 21:10:14 -05:00
TrèsAbhi 6a3fefd513 feat: better flags 2024-08-16 21:08:50 -05:00
TrèsAbhi b329152dc3 feat: flag in highlight 2024-08-16 20:49:29 -05:00
TrèsAbhi 1cf31c67f8 feat: better highlighting 2024-08-16 20:38:09 -05:00
TrèsAbhi 5d603cc246 fix: hide game mode section on no tanks 2024-08-16 20:06:37 -05:00
TrèsAbhi 44f35a813c feat: start of better tech tree 2024-08-16 20:05:25 -05:00
TrèsAbhi 7e6e480788 feat: better cards 2024-08-16 19:41:03 -05:00
TrèsAbhi 987a14b68d feat: looks 2024-08-16 14:09:58 -05:00
TrèsAbhi d9c2f53c6a feat: ability defs 2024-08-16 13:48:23 -05:00
TrèsAbhi 4811668832 feat: numerical role ids 2024-08-16 13:05:27 -05:00
TrèsAbhi 354be775ad feat: more styling 2024-08-16 12:58:17 -05:00
TrèsAbhi e9d5de7e97 feat: abilites 2024-08-16 12:52:29 -05:00
TrèsAbhi b25814e399 fix: trim 2024-08-15 21:08:02 -05:00
TrèsAbhi 91d98c6aad feat: logs 2024-08-15 20:02:42 -05:00
TrèsAbhi 1132018d16 feat: seperable buttons and remove antagonist configurer 2024-08-15 14:32:08 -05:00
TrèsAbhi f07aa9a2a7 fix: variable most optimal shell 2024-08-15 14:06:57 -05:00
TrèsAbhi 3e00860f7f feat: start of game mode icons 2024-08-15 13:35:09 -05:00
TrèsAbhi 6ada813dd5 feat: gamemode defs 2024-08-14 20:46:55 -05:00
TrèsAbhi 643c7272ca feat: gamemode definitions 2024-08-14 14:17:23 -05:00
TrèsAbhi 97b251e3a3 feat: gamemode consumable and provisions 2024-08-14 14:04:06 -05:00
TrèsAbhi 94db2c9159 fix: additive camouflage values (Synx, you better be right!) 2024-08-13 19:52:33 -05:00
TrèsAbhi 9d346082ea fix: post ricochet penetration 2024-08-13 19:48:47 -05:00
TrèsAbhi ea7d822420 feat: legendary camo names in search 2024-08-13 19:44:35 -05:00
TrèsAbhi 3058756346 feat: camouflage definitiosn 2024-08-13 19:38:05 -05:00
TrèsAbhi 6cfa3b9c70 fix: disabled turret rotation through other objects 2024-08-13 14:00:36 -05:00
TrèsAbhi d43391e625 fix: effective dom 2024-08-12 21:14:05 -05:00
TrèsAbhi 7f796c5ec1 fix: stat parity with game 2024-08-12 21:12:07 -05:00
TrèsAbhi 8d32c7ce23 fix: most optimal shell index 2024-08-12 19:53:47 -05:00
TrèsAbhi 820c125912 fix: stricter search 2024-08-12 19:47:35 -05:00
TrèsAbhi 79a01da317 fix: tankopedia search name alignemtn 2024-08-12 19:23:22 -05:00
TrèsAbhi d1a4b0d1d1 fix: currentVersion 2024-08-12 13:31:33 -05:00
TrèsAbhi 35db670f5c feat: dynamicContentLocalizationsDir 2024-08-12 13:31:06 -05:00
TrèsAbhi b2c4bfc926 feat: url object notation found work 2024-08-12 13:18:22 -05:00
TrèsAbhi 400c6ebfe1 Update index.ts 2024-08-12 13:12:02 -05:00
TrèsAbhi 2b08ecad7f Update index.ts 2024-08-12 11:23:24 -05:00
TrèsAbhi 6303fbb961 Update index.ts 2024-08-12 10:32:54 -05:00
TrèsAbhi d1fe7f6533 feat: move customizer to root 2024-08-11 13:29:46 -05:00
TrèsAbhi 899aefd851 feat: 404 page and redirects 2024-08-11 13:25:41 -05:00
TrèsAbhi c04e1ae0f5 feat: app in title 2024-08-11 13:11:56 -05:00
TrèsAbhi 9f77936e3e feat: reset button 2024-08-11 13:06:38 -05:00
TrèsAbhi 34c2cfdb2a feat: import 2024-08-11 13:05:11 -05:00
TrèsAbhi 1359452f67 feat: copiers 2024-08-11 12:44:16 -05:00
TrèsAbhi 1fcb60ab3f feat: centralized dimentions 2024-08-11 12:29:45 -05:00
TrèsAbhi 33a0af1bcd feat: state parsing 2024-08-10 14:20:48 -05:00
TrèsAbhi acf36ec461 fix: hosting 2024-08-10 14:13:24 -05:00
TrèsAbhi 31666c9bb6 feat: start of buttons 2024-08-10 13:39:49 -05:00
TrèsAbhi 64139e301b feat: composite stats 2024-08-10 13:29:10 -05:00
TrèsAbhi 84893842e9 feat: more controllers!!! 2024-08-08 14:51:34 -05:00
TrèsAbhi 11cc3aa783 feat: more controllers 2024-08-08 14:37:40 -05:00
TrèsAbhi bcd4f279a8 feat: radius 2024-08-08 14:28:06 -05:00
TrèsAbhi 27cfc225de fix: tank name colors 2024-08-08 14:22:04 -05:00
TrèsAbhi 94623c43eb feat: new dynamic system 2024-08-08 14:18:22 -05:00
TrèsAbhi e8b8b19332 feat: rename to breakdown 2024-08-07 12:03:45 -05:00
TrèsAbhi 1b376746a2 feat: better preview 2024-08-06 21:06:53 -05:00
TrèsAbhi 1a2f440e11 feat: slider for width 2024-08-06 21:01:45 -05:00
TrèsAbhi b0dfa6949c fix: stupid javascript my butt 2024-08-06 14:21:13 -05:00
TrèsAbhi de9254a221 fix: stupid javascript my butt 2024-08-06 14:20:33 -05:00
TrèsAbhi c278bb094a feat: unsued code 2024-08-06 14:14:48 -05:00
TrèsAbhi bfc7d76853 feat: title 2024-08-06 14:08:47 -05:00
TrèsAbhi 4b2367699a feat: better layout 2024-08-06 14:05:16 -05:00
TrèsAbhi ca39b8e215 Merge branch 'main' into dev-embed 2024-08-06 13:34:19 -05:00
TrèsAbhi 38f3ccfbd8 feat: more customizations 2024-08-06 13:33:39 -05:00
TrèsAbhi 4d9cf4329c Update cd-assets.yml 2024-08-05 23:42:26 -05:00
TrèsAbhi 33674a0d5b Add files via upload 2024-08-05 19:57:53 -05:00
TrèsAbhi 6a18abf17f feat: float 2024-08-05 14:25:12 -05:00
TrèsAbhi 6984794be1 feat: start of embeds 2024-08-05 12:52:40 -05:00
TrèsAbhi f666023bef fix: remove dead code 2024-08-02 13:50:43 -05:00
TrèsAbhi 6830aa7ac0 feat: logs 2024-08-02 13:48:44 -05:00
TrèsAbhi 6bcf5c25dc fix: directional clip 2024-08-02 13:48:24 -05:00
TrèsAbhi b559878667 feat: rotation inputs in static mode 2024-08-01 20:38:37 -05:00
TrèsAbhi c6184acf26 feat: logs 2024-08-01 14:37:05 -05:00
TrèsAbhi 5d58530661 fix: color 2024-08-01 14:26:29 -05:00
TrèsAbhi e04bfcde3c feat: better scale 2024-08-01 14:26:10 -05:00
TrèsAbhi c8be2257ef feat: softer colros 2024-08-01 14:21:39 -05:00
TrèsAbhi 0f45476a8b fix: safer outlines 2024-08-01 14:19:52 -05:00
TrèsAbhi 99cdf931a8 fix: japanese gun depression 2024-08-01 14:16:42 -05:00
TrèsAbhi ed4658adcc fix: initial transparency 2024-08-01 14:15:05 -05:00
TrèsAbhi 0cc9089156 feat: individual reset 2024-08-01 14:06:45 -05:00
TrèsAbhi 71e0e8e09e feat: floating editor 2024-08-01 14:00:43 -05:00
TrèsAbhi 0dc708ab2a feat: revert lighting 2024-07-31 14:26:03 -05:00
TrèsAbhi f73426df6a fix: clipping plane intersections 2024-07-31 14:18:58 -05:00
TrèsAbhi abc8acb6ed feat: new lighting env 2024-07-31 13:56:43 -05:00
TrèsAbhi 1944745902 feat: better outluiens 2024-07-31 13:48:14 -05:00
TrèsAbhi e9bb76e698 fix: types 2024-07-31 13:40:50 -05:00
TrèsAbhi 5810ca8f81 feat: moving components 2024-07-31 13:36:56 -05:00
TrèsAbhi c6249c5a83 feat: better coloring 2024-07-31 13:25:58 -05:00
TrèsAbhi 2c0f9184db feat: better plate editing integration 2024-07-31 13:11:25 -05:00
TrèsAbhi 15cf4ec0f1 feat: wireframe 2024-07-30 13:45:52 -05:00
TrèsAbhi 8ba56069c4 feat: dynamic model defs 2024-07-30 13:24:55 -05:00
TrèsAbhi 3889c0f75d feat: rename core armor to primary armor 2024-07-29 20:46:57 -05:00
TrèsAbhi b1685bcc12 feat: dev prefix 2024-07-29 20:42:58 -05:00
TrèsAbhi d0055bb118 feat: dev mode debug 2024-07-29 20:40:32 -05:00
TrèsAbhi 8a7d18d586 feat: use basic material 2024-07-29 20:26:21 -05:00
TrèsAbhi b6f235efcd fix: better coloring 2024-07-29 20:25:28 -05:00
TrèsAbhi b609fcbac7 fix: ricochet penetration reporation of external modules 2024-07-29 20:23:33 -05:00
TrèsAbhi 969c9a903e feat: better card positioning 2024-07-29 20:18:31 -05:00
TrèsAbhi c4b5baf6cc feat: functional armor type toggling 2024-07-29 19:59:07 -05:00
TrèsAbhi 0aca2dab6c Merge branch 'main' into dev-static 2024-07-29 19:46:08 -05:00
TrèsAbhi 6fa70711d7 fix: DISCORD_CLIENT_ID 2024-07-29 19:46:03 -05:00
TrèsAbhi 14cbd67e04 Merge branch 'main' into dev-static 2024-07-29 19:45:12 -05:00
TrèsAbhi f8aa51941d fix: DISCORD_CLIENT_ID 2024-07-29 19:45:00 -05:00
TrèsAbhi f86a4022ea feat: armor toggle buttons 2024-07-29 14:08:52 -05:00
TrèsAbhi cddfef1b9f feat: better coloring 2024-07-29 13:33:56 -05:00
TrèsAbhi c12fb0d668 feat: card 2024-07-29 13:22:20 -05:00
TrèsAbhi ce3c9b936b Update tsconfig.json 2024-07-28 17:34:23 -05:00
TrèsAbhi 7c3bc8884d feat: seletable external moduels 2024-07-28 13:59:28 -05:00
TrèsAbhi 6ebced6f01 feat: segmented control mode 2024-07-28 13:32:52 -05:00
TrèsAbhi 6e7df526ff fix: static states 2024-07-27 14:43:33 -05:00
TrèsAbhi 5d1352590a fix: disable track movement in armor mdoe 2024-07-27 14:26:34 -05:00
TrèsAbhi b0aff726b5 fix: types 2024-07-27 14:25:27 -05:00
TrèsAbhi ca002623b8 feat: standard material 2024-07-27 14:23:39 -05:00
TrèsAbhi f0e8153a67 feat: on click highlighting 2024-07-27 14:21:12 -05:00
TrèsAbhi a0612b2beb fix: hull origin 2024-07-27 13:46:36 -05:00
TrèsAbhi 3071c887cc fix: better tankopedia search page padding 2024-07-27 13:33:45 -05:00
TrèsAbhi 47d7ebb15f fix: stricter emphmeral stores 2024-07-27 13:29:09 -05:00
TrèsAbhi 2512134e15 fix: type 2024-07-27 13:24:58 -05:00
TrèsAbhi e682172486 fix: exclude node modules 2024-07-27 13:16:14 -05:00
TrèsAbhi 0c9714b5a5 feat: quartile 2024-07-27 13:07:40 -05:00
TrèsAbhi f13622836e feat: better opacity 2024-07-27 12:46:12 -05:00
TrèsAbhi 1a91214dd0 feat: some transparencies 2024-07-26 13:39:32 -05:00
TrèsAbhi ceb759aba1 feat: static armor 2024-07-26 13:24:18 -05:00
TrèsAbhi e88fdd861f feat: generalize wrapper 2024-07-24 20:46:42 -05:00
TrèsAbhi 85166a2614 feat: generalize transform handling 2024-07-24 20:35:01 -05:00
TrèsAbhi fde9319bbd feat: generalize ZY correction 2024-07-24 20:27:16 -05:00
TrèsAbhi 5d733a79ef feat: logs 2024-07-24 20:14:49 -05:00
TrèsAbhi ee58b3543e feat: start of static armor mode 2024-07-24 20:09:38 -05:00
TrèsAbhi 3d0c87579b feat: that's a lotta damage easter egg 2024-07-24 13:30:50 -05:00
TrèsAbhi 4f7b4f1602 feat: that's a lotta damage easter egg 2024-07-24 13:27:46 -05:00
TrèsAbhi b1c3453d38 Merge branch 'main' into dev-qol 2024-07-24 13:18:01 -05:00
TrèsAbhi 23974ee83a fix: no dev mode 2024-07-24 13:14:21 -05:00
TrèsAbhi 84951026e0 Merge branch 'main' into dev-qol 2024-07-23 21:07:04 -05:00
TrèsAbhi 8cae642243 fix: include more debian modules 2024-07-23 21:04:23 -05:00
TrèsAbhi 8b5638f82d feat: he splash visual 2024-07-23 21:01:32 -05:00
TrèsAbhi 16500793a5 fix: no session search result overlap 2024-07-22 20:59:38 -05:00
TrèsAbhi e294f2e286 feat: use simple text navbar logo 2024-07-22 20:52:29 -05:00
TrèsAbhi a237e1541b fix: correctly re-mounting camera 2024-07-22 20:47:29 -05:00
TrèsAbhi ffdb75d028 fix: keying 2024-07-22 20:32:10 -05:00
TrèsAbhi 9ea307d90a feat: tank search result coubt 2024-07-22 20:24:32 -05:00
TrèsAbhi 1059b3e6e6 fix: DISCORD_CLIENT_ID 2024-07-22 12:15:17 -05:00
TrèsAbhi 5ec40271f8 fix: DISCORD_CLIENT_ID 2024-07-22 12:14:29 -05:00
TrèsAbhi adf0aecd13 fix: env 2024-07-22 12:11:33 -05:00
TrèsAbhi 5ab102ed55 fix: dev 2024-07-22 12:06:38 -05:00
TrèsAbhi aec96d70d2 fix: dev 2024-07-22 12:01:47 -05:00
TrèsAbhi da50b5c8c8 fix: dev 2024-07-22 12:01:34 -05:00
TrèsAbhi 043bc0494a feat: sharp 2024-07-22 11:44:09 -05:00
TrèsAbhi d9a8fa82fa feat: external sharp 2024-07-22 11:39:58 -05:00
TrèsAbhi fe938772b6 feat: external sharp 2024-07-22 11:38:23 -05:00
TrèsAbhi fed9e5d157 feat: external sharp 2024-07-22 11:37:53 -05:00
TrèsAbhi f706eec483 feat: external sharp 2024-07-22 11:26:27 -05:00
TrèsAbhi a4e511bbca fix: porisma dir 2024-07-21 20:49:26 -05:00
TrèsAbhi 7402e30226 fix: ls 2024-07-21 20:45:15 -05:00
TrèsAbhi d3f519fa0b fix: move node modules back 2024-07-21 20:44:31 -05:00
TrèsAbhi 9850b21e2b fix: inlclude node files 2024-07-21 20:41:40 -05:00
TrèsAbhi 9a193dde5e feat: debian-openssl-1.1.x 2024-07-21 20:26:45 -05:00
TrèsAbhi b814981828 fix: prisma 2024-07-21 20:22:36 -05:00
TrèsAbhi 39967154bb fix: prisma 2024-07-21 20:21:42 -05:00
TrèsAbhi d6911c3e08 fix: build db 2024-07-21 20:16:21 -05:00
TrèsAbhi ccf08cd48a fix: command alais 2024-07-21 20:11:19 -05:00
TrèsAbhi 9978a0c2b3 fix: mk dir 2024-07-21 20:10:41 -05:00
993 changed files with 42598 additions and 20166 deletions

No files matched your search

+135
View File
@@ -0,0 +1,135 @@
name: Build Assets
on:
push:
branches: main
workflow_dispatch:
inputs:
cdn_branch:
type: string
required: false
default: main
description: What CDN branch to write to
zip_url:
type: string
required: false
description: ZIP URL to download instead of Steam client
zip_root:
type: string
required: false
description: Root dir of ZIP which houses the executable and Data dir
schedule:
- cron: '0 2 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.cdn_branch }}
cancel-in-progress: true
env:
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
VIDEOS_SHEET: ${{ secrets.VIDEOS_SHEET }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
WOTB_GLOSSARY: ${{ secrets.WOTB_GLOSSARY }}
WOTB_DLC_CDN: ${{ secrets.WOTB_DLC_CDN }}
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
PUBLIC_ASSET_REPO: ${{ secrets.PUBLIC_ASSET_REPO }}
PUBLIC_ASSET_BRANCH: ${{ github.event.inputs.cdn_branch || secrets.PUBLIC_ASSET_BRANCH }}
jobs:
download_client:
name: Download client
runs-on: ubuntu-latest
steps:
- name: (ZIP) Maximize build space
if: github.event.inputs.zip_url != ''
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_TOKEN }}
- name: (Steam) Setup bun
uses: oven-sh/setup-bun@v1
if: github.event.inputs.zip_url == ''
- name: (Steam) Install dependencies
if: github.event.inputs.zip_url == ''
run: bun install
- name: (Steam) Setup DepotDownloader
if: github.event.inputs.zip_url == ''
run: bun run setup:depotdownloader
- name: (Steam) Download client
if: github.event.inputs.zip_url == ''
run: |
chmod +x ./temp/depotDownloader/DepotDownloader
./temp/depotDownloader/DepotDownloader -q -os windows -app 444200 -username ${{ secrets.DEPOT_DOWNLOADER_USERNAME }} -password "${{ secrets.DEPOT_DOWNLOADER_PASSWORD }}"
- name: (Steam) Apply patches
if: github.event.inputs.zip_url == ''
run: bun setup:patches --depot
- name: (ZIP) Download client
if: github.event.inputs.zip_url != ''
env:
ZIP_URL: ${{ github.event.inputs.zip_url }}
ZIP_ROOT: ${{ github.event.inputs.zip_root }}
run: |
wget -q -O client.zip $ZIP_URL
unzip -q client.zip -d client
rm client.zip
mkdir -p depots/444202/0
mv client/$ZIP_ROOT/* depots/444202/0
- name: Archive depots
uses: actions/upload-artifact@v4
with:
name: depots
path: depots
build_assets:
name: Build assets
runs-on: ubuntu-latest
needs: download_client
steps:
- uses: actions/checkout@v4
- name: Setup bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Lint
run: bun run lint:website
- name: Download depots
uses: actions/download-artifact@v4
with:
name: depots
path: depots
- name: AppArmor hack
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Start server and build assets
run: |
bun dev:website &
SERVER_PID=$!
bun run build:assets --all-targets --depot --production
kill $SERVER_PID || true
+36
View File
@@ -0,0 +1,36 @@
name: Averages
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PUBLIC_ASSET_REPO: ${{ secrets.PUBLIC_ASSET_REPO }}
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build averages
env:
PUBLIC_ASSET_BRANCH: main
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
VIDEOS_SHEET: ${{ secrets.VIDEOS_SHEET }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
run: bun run build:averages --production
@@ -1,6 +1,8 @@
name: CI Build Bot
name: Build Bot
on: push
on:
push:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -19,10 +21,10 @@ jobs:
run: bun install
- name: Build Prisma
run: bun prisma generate
run: bun run build:prisma
- name: Build
run: bun build:bot
- name: Build bot
run: bun run build:bot
- name: Archive build
uses: actions/upload-artifact@v4
-49
View File
@@ -1,49 +0,0 @@
name: CD Build Assets
on:
push:
branches: main
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_TOKEN }}
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Setup DepotDownloader
run: bun scripts/setupDepotDownloader.ts
- name: Run DepotDownloader
run: ./temp/depotDownloader/DepotDownloader.exe -os windows -app 444200 -username ${{ secrets.DEPOT_DOWNLOADER_USERNAME }} -password "${{ secrets.DEPOT_DOWNLOADER_PASSWORD }}"
- name: Apply patches
run: |
$env:GH_TOKEN = "${{ secrets.GH_TOKEN }}"
$env:DISCORD_TOKEN = "${{ secrets.DISCORD_TOKEN }}"
$env:DATABASE_URL = "${{ secrets.DATABASE_URL }}"
$env:WOTB_DLC_CDN = "${{ secrets.WOTB_DLC_CDN }}"
bun scripts/applyPatches.ts --depot
- name: Build assets
run: |
$env:GH_TOKEN = "${{ secrets.GH_TOKEN }}"
$env:DISCORD_TOKEN = "${{ secrets.DISCORD_TOKEN }}"
$env:DATABASE_URL = "${{ secrets.DATABASE_URL }}"
$env:VIDEOS_SHEET = "${{ secrets.VIDEOS_SHEET }}"
$env:GOOGLE_APPLICATION_CREDENTIALS = "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}"
bun build:assets --all-targets --depot --production
-25
View File
@@ -1,25 +0,0 @@
name: CD Averages
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build averages
run: |
GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} VIDEOS_SHEET=${{ secrets.VIDEOS_SHEET }} GOOGLE_APPLICATION_CREDENTIALS=${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} bun scripts/averages.ts --production
-24
View File
@@ -1,24 +0,0 @@
name: CD Discover IDs
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Discover IDs
run: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} GH_TOKEN=${{ secrets.GH_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun scripts/discoverIds.ts --production
-39
View File
@@ -1,39 +0,0 @@
name: CD Docs
on:
push:
branches: main
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build docs
run: bun build:docs
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v1
with:
path: dist/docs
- id: deployment
uses: actions/deploy-pages@v1
- uses: actions/upload-artifact@v4
with:
name: dist
path: docs/.vitepress/dist
-19
View File
@@ -1,19 +0,0 @@
name: CD Rating Asia
on:
schedule:
- cron: '0 17 * * *'
jobs:
host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun scripts/buildRatingLeaderboard.ts --region=asia --target=midnight --production
-19
View File
@@ -1,19 +0,0 @@
name: CD Rating Europe
on:
schedule:
- cron: '0 23 * * *'
jobs:
host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun scripts/buildRatingLeaderboard.ts --region=eu --target=midnight --production
-19
View File
@@ -1,19 +0,0 @@
name: CD Rating Latest
on:
schedule:
- cron: '0 0 * * *'
jobs:
host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Generate all leaderboards
run: GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun scripts/buildRatingLeaderboard.ts --region=na,asia,eu --target=latest --production
-19
View File
@@ -1,19 +0,0 @@
name: CD Rating North America
on:
schedule:
- cron: '0 5 * * *'
jobs:
host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun scripts/buildRatingLeaderboard.ts --region=na --target=midnight --production
-28
View File
@@ -1,28 +0,0 @@
name: CI Build Website
on: push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Build
run: bun build:website
- name: Archive build
uses: actions/upload-artifact@v4
with:
name: website
path: dist/website
+32
View File
@@ -0,0 +1,32 @@
name: Discover IDs
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
PUBLIC_ASSET_BRANCH: ${{ secrets.PUBLIC_ASSET_BRANCH }}
PUBLIC_ASSET_REPO: ${{ secrets.PUBLIC_ASSET_REPO }}
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Discover IDs
run: bun build:ids --production
@@ -1,4 +1,4 @@
name: CD Host
name: Host Bot
on:
push:
@@ -13,12 +13,22 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
PUBLIC_ASSET_REPO: ${{ secrets.PUBLIC_ASSET_REPO }}
PUBLIC_ASSET_BRANCH: ${{ secrets.PUBLIC_ASSET_BRANCH }}
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
jobs:
host:
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v1
# with:
# bun-version: 1.1.33
- name: Download release assets
run: |
@@ -27,7 +37,14 @@ jobs:
| cut -d : -f 2,3 \
| tr -d \")
curl -L -o bot.zip $DOWNLOAD_URL
mkdir -p dist/bot
unzip bot.zip -d dist/bot
- name: Install sharp
run: bun init -y && bun add sharp
- name: Move directories
run: mv dist/bot/prisma .
- name: Run bot
run: NODE_ENV=production GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} bun start:bot
run: bun run dist/bot/main.js
+28
View File
@@ -0,0 +1,28 @@
name: Rating Asia
on:
workflow_dispatch:
schedule:
- cron: '0 17 * * *'
jobs:
host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Generate leaderboard
env:
PUBLIC_ASSET_BRANCH: main
PUBLIC_ASSET_REPO: ${{ secrets.PUBLIC_ASSET_REPO }}
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
run: bun build:ratingleaderboard --region=asia
+28
View File
@@ -0,0 +1,28 @@
name: Rating Europe
on:
workflow_dispatch:
schedule:
- cron: '0 23 * * *'
jobs:
host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Generate leaderboard
env:
PUBLIC_ASSET_BRANCH: main
PUBLIC_ASSET_REPO: ${{ secrets.PUBLIC_ASSET_REPO }}
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
run: bun build:ratingleaderboard --region=eu
+28
View File
@@ -0,0 +1,28 @@
name: Rating North America
on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *'
jobs:
host:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Generate leaderboard
env:
PUBLIC_ASSET_BRANCH: main
PUBLIC_ASSET_REPO: ${{ secrets.PUBLIC_ASSET_REPO }}
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
run: bun build:ratingleaderboard --region=com
+37
View File
@@ -0,0 +1,37 @@
name: Reviews
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * 2
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
PUBLIC_ASSET_BRANCH: ${{ secrets.PUBLIC_ASSET_BRANCH }}
PUBLIC_ASSET_REPO: ${{ secrets.PUBLIC_ASSET_REPO }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_TOKEN }}
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Find reviews
run: bun packages/scripts/src/reviews.ts
+66
View File
@@ -0,0 +1,66 @@
name: Website
on:
push:
branches: main
workflow_dispatch:
schedule:
- cron: '0 4 * * *'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref == 'refs/heads/main' }}
env:
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
PUBLIC_ASSET_REPO: ${{ secrets.PUBLIC_ASSET_REPO }}
PUBLIC_ASSET_BRANCH: ${{ secrets.PUBLIC_ASSET_BRANCH }}
PUBLIC_PROMOTE_OPENTEST: ${{ secrets.PUBLIC_PROMOTE_OPENTEST }}
ALLOW_ROBOTS: true
WOTB_GLOSSARY: ${{ secrets.WOTB_GLOSSARY }}
PUBLIC_GOOGLE_TAG_MANAGER_ID: ${{ secrets.PUBLIC_GOOGLE_TAG_MANAGER_ID }}
PUBLIC_GOOGLE_ANALYTICS_PROPERTY_ID: ${{ secrets.PUBLIC_GOOGLE_ANALYTICS_PROPERTY_ID }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_TOKEN }}
- uses: oven-sh/setup-bun@v1
- uses: actions/configure-pages@v5
- name: Install dependencies
run: bun install
- name: Build website
run: bun run build:website
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist/website
deploy-github-pages:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build
environment:
name: Production
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
+8 -2
View File
@@ -1,4 +1,5 @@
node_modules
_node_modules
package-lock.json
.env
/test-results/
@@ -7,7 +8,7 @@ package-lock.json
dist/
dist.*
yarn-error.log
/test.*
test.*
/docs/.vitepress/dist
/docs/.vitepress/cache
servers.csv
@@ -20,4 +21,9 @@ temp/
depots
public/sitemap*
/firebase.json
target
target
# packages/core/src/protos/*
# !packages/core/src/protos/*.proto
/.vercel
/.astro
.vercel
+4
View File
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
+11
View File
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
+29 -4
View File
@@ -2,16 +2,21 @@
"cSpell.words": [
"AABBOX",
"Abhi",
"absarc",
"accountinfo",
"adsense",
"aeson",
"alphatest",
"analyticsdata",
"analyticsreporting",
"APAC",
"apcr",
"applypatches",
"artefacts",
"astrojs",
"atgm",
"Avearges",
"Autoloader",
"Autoreloader",
"AYUV",
"battleresults",
"bbox",
@@ -27,7 +32,10 @@
"blitzkit",
"blitzrinth",
"blitzstars",
"cacheable",
"Callouts",
"Camo",
"CCPAOPTOUT",
"CDON",
"classname",
"cleandist",
@@ -35,17 +43,20 @@
"cockroackdb",
"Coef",
"cooldown",
"corelations",
"corsproxy",
"CUBEMAP",
"CUBETEXCOORD",
"customperiod",
"datasource",
"Dava",
"dbid",
"Ddpf",
"Ddsd",
"debugflags",
"deburr",
"decalmask",
"decompressor",
"defence",
"degressive",
"devkrieg",
@@ -53,20 +64,21 @@
"DIDS",
"donotremove",
"drei",
"Droodles",
"dvpd",
"dvpl",
"DVPLCRC",
"dvpm",
"dxgi",
"echarts",
"Everytime",
"FASTNAME",
"flexdirection",
"FOURCC",
"frameloop",
"fsformat",
"Fullscreen",
"fullstats",
"fuzzysort",
"gamemode",
"gameplay",
"glsl",
"GLTF",
@@ -84,10 +96,12 @@
"leaderboards",
"lerp",
"LINEARSIZE",
"lmao",
"loadouts",
"loddist",
"lods",
"lossrate",
"Maddoxkkm",
"malum",
"mantlets",
"metallicness",
@@ -99,14 +113,19 @@
"mmnow",
"modeltransform",
"MURICA",
"nanostores",
"NEGATIVEX",
"NEGATIVEY",
"NEGATIVEZ",
"NITROPAY",
"nivo",
"nmatname",
"noout",
"normalmap",
"oneof",
"oopsies",
"Oopsy",
"opentest",
"OPTML",
"outdir",
"outfile",
@@ -120,6 +139,7 @@
"POSITIVEZ",
"precompute",
"Promisable",
"proto",
"protobuf",
"protos",
"Pyogenics",
@@ -168,6 +188,9 @@
"UNORM",
"unpickled",
"Unregistering",
"unrotate",
"unwrapper",
"vercel",
"vickers",
"vitepress",
"Vovko",
@@ -187,11 +210,13 @@
"XMLDVPL",
"YAMLDVPL",
"yolo",
"youtuber",
"youtubers",
"zustand"
],
"deno.enable": false,
"deno.unstable": false,
"cSpell.enableFiletypes": ["glsl", "proto3"],
"typescript.tsdk": "node_modules\\typescript\\lib"
"typescript.tsdk": "node_modules\\typescript\\lib",
"liveServer.settings.multiRootWorkspaceName": "blitzkit"
}
+4 -14
View File
@@ -1,23 +1,13 @@
## Visit the website
## BlitzKit
Your premier source for all things Blitz.
### https://blitzkit.app/
![BlitzKit website](https://i.imgur.com/m8e39Rv.png)
# BlitzKit
[![built with Codeium](https://codeium.com/badges/main)](https://codeium.com)
Tools for everything World of Tanks Blitz
![BlitzKit website](https://i.imgur.com/KaxUxmt.png)
## Invite the bot
Go to [application directory for BlitzKit](https://discord.com/application-directory/1097673957865443370) and click "Add to Server." Voila! You're ready to go.
![BlitzKit application directory](https://i.imgur.com/YWCtOuJ.png)
## Visit the documentation website
### https://tresabhi.github.io/blitzkit/
![BlitzKit documentation website](https://i.imgur.com/hm3KTsF.png)
+10
View File
@@ -0,0 +1,10 @@
{
"folders": [
{
"path": ".",
},
{
"path": "C:/Program Files/WindowsApps/7458BE2C.WorldofTanksBlitz_11.1.256.0_x64__x4tje2y229k00/Data",
},
],
}
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -1,3 +1,3 @@
files:
- source: /src/lang/en-US.json
translation: /src/lang/%locale%.json
- source: /packages/core/lang/en.json
translation: /%original_path%/%locale%.json
-4
View File
@@ -1,4 +0,0 @@
{
"client_id": "1097673957865443370",
"client_id_dev": "1099063696015229078"
}
-39
View File
@@ -1,39 +0,0 @@
import { compareVersions } from 'compare-versions';
import { readdirSync } from 'fs';
import { parse } from 'path';
import { defineConfig } from 'vitepress';
import { getSidebar } from 'vitepress-plugin-auto-sidebar';
export default defineConfig({
title: 'BlitzKit',
description: '🎉 All-in-one Discord bot for everything World of Tanks Blitz',
base: '/blitzkit/',
outDir: '../dist/docs',
themeConfig: {
nav: [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/guide/introduction' },
],
sidebar: [
...getSidebar({
collapsed: false,
contentDirs: ['guide', 'legal'],
contentRoot: '/docs/',
}),
{
text: 'Changelogs',
items: readdirSync('./docs/changelogs')
.map((file) => parse(file).name)
.sort(compareVersions)
.map((name) => ({ text: name, link: `/changelogs/${name}.html` })),
},
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/tresabhi/blitzkit' },
],
},
});
-16
View File
@@ -1,16 +0,0 @@
// https://vitepress.dev/guide/custom-theme
import { h } from 'vue';
import Theme from 'vitepress/theme';
import './style.css';
export default {
extends: Theme,
Layout: () => {
return h(Theme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
});
},
enhanceApp({ app, router, siteData }) {
// ...
},
};
-90
View File
@@ -1,90 +0,0 @@
/**
* Customize default theme styling by overriding CSS variables:
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
*/
/**
* Colors
* -------------------------------------------------------------------------- */
:root {
--vp-c-brand: #646cff;
--vp-c-brand-light: #747bff;
--vp-c-brand-lighter: #9499ff;
--vp-c-brand-lightest: #bcc0ff;
--vp-c-brand-dark: #535bf2;
--vp-c-brand-darker: #454ce1;
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
}
/**
* Component: Button
* -------------------------------------------------------------------------- */
:root {
--vp-button-brand-border: var(--vp-c-brand-light);
--vp-button-brand-text: var(--vp-c-white);
--vp-button-brand-bg: var(--vp-c-brand);
--vp-button-brand-hover-border: var(--vp-c-brand-light);
--vp-button-brand-hover-text: var(--vp-c-white);
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
--vp-button-brand-active-border: var(--vp-c-brand-light);
--vp-button-brand-active-text: var(--vp-c-white);
--vp-button-brand-active-bg: var(--vp-button-brand-bg);
}
/**
* Component: Home
* -------------------------------------------------------------------------- */
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
#bd34fe 30%,
#41d1ff
);
--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#bd34fe 50%,
#47caff 50%
);
--vp-home-hero-image-filter: blur(40px);
}
@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(56px);
}
}
@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(72px);
}
}
/**
* Component: Custom Block
* -------------------------------------------------------------------------- */
:root {
--vp-custom-block-tip-border: var(--vp-c-brand);
--vp-custom-block-tip-text: var(--vp-c-brand-darker);
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
}
.dark {
--vp-custom-block-tip-border: var(--vp-c-brand);
--vp-custom-block-tip-text: var(--vp-c-brand-lightest);
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
}
/**
* Component: Algolia
* -------------------------------------------------------------------------- */
.DocSearch {
--docsearch-primary-color: var(--vp-c-brand) !important;
}
+4 -3
View File
@@ -5,6 +5,7 @@ BlitzKit is a one man band **TrèsAbhi** but I am far from solo.
| Role | People |
| ------------------------------ | ------------------------------ |
| Bot verification | S0AP |
| General testing | Prince_NA |
| Bot advertisement platform | S0AP |
| Bot rendering pipeline | Vovko |
| Game asset decompression | Maddox |
@@ -12,7 +13,7 @@ BlitzKit is a one man band **TrèsAbhi** but I am far from solo.
| Game file layout | Aeson |
| 3-caliber rule edge cases | Minitelrose, ChickenMan7777 |
| Embed UX | \_34, HisRoyalFatness, Synx |
| Tankopedia pre-release testing | [OPTML], Aeson, \_34, Droodles |
| Website advertisement platform | Aeson, Droodles |
| Compare pre-release testing | [OPTML], Droodles |
| Tankopedia pre-release testing | [OPTML], Aeson, \_34, xkdkw |
| Website advertisement platform | Aeson |
| Compare pre-release testing | [OPTML] |
| Redacted | GonnaHetzMe |
+3 -3
View File
@@ -6,6 +6,6 @@ A minor-major fix to the armor sandbox. This update only affects the website.
- Guns are now clipped properly allowing some tanks like the 252U and T34's mantlets to be penetrable (usually with premium shells) as they are in-game
| Before | After |
| ------------------------------------------ | ----------------------------------------- |
| ![before](https://i.imgur.com/wB0kuk0.png) | ![after](https://i.imgur.com/vxp8wB0.png) |
| Before | After |
| ------------------------------------------- | ------------------------------------------ |
| ![before](https://i.imgur.com/wB0kuk0m.png) | ![after](https://i.imgur.com/vxp8wB0m.png) |
+17
View File
@@ -0,0 +1,17 @@
# BlitzKit 1.21.3
Splashing with HE got splashier! This update only affects the website.
## Features
- Added HE splash radius visualization to the armor sandbox
- Added a count for the number of tanks in the Tankopedia search page
## Fixes
- The Session tool's player search no longer clips into the footer
- The shell tracer is no longer bugged when switching between tanks
## Technical Changes
- "BlitzKit" in the navigation bar is now simple text instead of an image
+26
View File
@@ -0,0 +1,26 @@
# BlitzKit 1.22.0
Introducing the long awaited Static Armor mode! This update only affects the website.
## Features
- Added static armor mode which display solid colors for each plate of armor
- Different type of armors have different scales and can be toggled by clicking the color scales
- Checking on "Edit" allows you to change the thicknesses to test hypothetical values
- Changes you make are also reflected in the Blitz-styled dynamic armor highlighter
- Added a segmented controller to switch between Model, Dynamic Armor, and Static Armor modes
- Track dragging has been disabled in both armor modes
- Penetration tracer has been disabled for model mode
- Penetration and thickness cards are now placed to better cooperate with screen real estate
- "Core" armor has been renamed to "primary" across the website
## Fixes
- Penetration card now displays in fullscreen mode on mobile devices once again
- Penetration of external modules after ricochets are no longer reported as "successful penetrations"
- Gun barrels are no longer incorrectly incorporated into the shell tracer
- Japanese gun depression equipment has been swapped back to the correct values
## Technical Features
- In dev mode, the ID of the selected armor plates is shown in static mode
+19
View File
@@ -0,0 +1,19 @@
# BlitzKit 1.22.1
## Features
- Legendary camouflage names are now included in the Tankopedia search (for example, you can search up "Shark" and the T54E2 will show up)
- Provision and consumable buttons in the Tankopedia and Compare tools are now separate buttons
## Fixes
- The name and icons of tanks in the Tankopedia search page are now properly aligned and trimmed
- The Tankopedia search is now stricter; thus, filters out nonsensical results
- The most optimal shell index once again shows the correct index
- The DPM listing is now in parity with the game which is what "Max DPM" used to be previously
- The Max DPM value is now also correct since the optimal shell index has been corrected
- The mastery of crew members who play a secondary role in the tank is now handled properly
- The turret of tanks cannot be accidentally rotated when dragging over other objects (like the body of the tank)
- Penetrations are once again calculated after a ricochet
- Camouflage values are now calculated properly when the Camouflage Net equipment is applied
- Removed the redundant Configure tab when selecting an antagonist tank
+38
View File
@@ -0,0 +1,38 @@
# BlitzKit 1.22.2
This update packs a punch.
## Features
- Added "Game mode abilities" section to the tankopedia pages
- Shows the game mode provisions and consumables underneath the corresponding mode's banner
- Reworked the tech tree section
- Now shows the whole line and if multiple paths exist, they are can be selected
- The selected tank is now highlighted with the flag of the corresponding country
- This section now also shows the total required XP and credits required
- Added a battle count which indicates the number of games required to reach the next tank (not including module upgrades) based on average xp earnings of players
- XP multipliers can also be applied to get a sense of how many battles you will really have to play
- Reworked the "Review videos" section
- Removed all previews videos; we will be starting from scratch
- Added names of content creators under their corresponding videos
- Added a way for YouTubers to apply to be a part of the review videos section
- Reworked the navbar
- This are a lot more compact and contrastive
- Tool names are now separated with vertical lines now
- The hamburger menu now looks more like the homepage cards
- Added a warning for test tanks
- Switched to on-demand rendering
- This makes it so that the canvas only renders upon interaction and not the continuously synced with the screen's refresh rate
- Added the meta information section to the tankopedia pages
- Lists the full name, nation, tier, class, type, restoration, purchase, and sale prices
- Added tooltips to a lot of places
- Reduced ads on the tankopedia pages
- Added a screenshot button to take screenshots of the tank
- Added crew training slider to the compare tool
## Fixes
- Invalid Wargaming logins are now handled properly
- Season currencies are now displayed properly
- Tank filters are now persistent but will be reset on refresh
- The search for a tank now populates the search bar when navigating back to the search page
+16
View File
@@ -0,0 +1,16 @@
# BlitzKit 1.22.3
This should've been in the last update lol.
## Features
- The "meta information" section has been moved to the hero section on larger screens
- Added an option to take a screenshot directly to the clipboard
- Removed the number from the BlitzKit logo
- The tank playground now stops rendering when it is offscreen, hence fixing a lot of crashes
## Fixes
- The hero section of the Tankopedia is now better sized on smaller screens
- The shell penetration over distance slider now instantly updates the corresponding input instead after a delay
- The game mode banner info is now visible on Apple devices
+11
View File
@@ -0,0 +1,11 @@
# BlitzKit 1.22.4
This update makes some technical internal changes to allow the website to switch to the opentest version of the game when it is released. The opentest variant of BlitzKit will be available on https://opentest.blitzkit.app/ in the future (currently, it just redirects to https://blitzkit.app).
## Features
- Renamed "Tank performance" to "Performance"
- Added auto-redirect for old tool names:
- "ratings" -> "rating"
- "tank-performance" -> "performance"
- Added a 404 page
+27
View File
@@ -0,0 +1,27 @@
# BlitzKit 1.22.5
This update only affects the website.
## Features
- CDN branch names are now outline
- Added an "unaffiliated to Wargaming" note to the footer
- Added a warning when viewing deprecated tanks
- Added partial support for dynamic armor
- The armor behaves properly in both dynamic and static armor modes but the visual 3D model doesn't update as of yet
- I'm working on it!
- Reworked the hero and meta information section of the tankopedia pages
- The grid is now more visible at steeper angles
- Re-introduced the "swap" tanks button in the tankopedia
- Added an opentest plug at homepage (you'll see what this is soon™)
## Fixes
- Titles for a few pages are once again static
- Some links that opened in a new tab even though they were BlitzKit links now once again behave properly
- Missing page titles for documentation pages now work properly
- Toggling equipments through the tank canvas now update the render properly
- The sorting feature in tank search properly updates once again
- Dragging on the tracks to move them once again renders properly
- Correct tier I tanks are now shown in tech trees where deprecated tanks previously occupied the slot
- Reward icons once again display properly for archived rating seasons
+21
View File
@@ -0,0 +1,21 @@
# BlitzKit 1.22.6
This update only affects the website.
## Features
- Added a "cool projects" section at the bottom of the homepage
- If you have any other cool projects, feel free to let me know
- Added raw terrain coefficients along side the percentage values
- The account name is displayed instead of "Wargaming" when logged in
- Added an opentest button to the Tankopedia pages
## Fixes
- Protobuf files are now loaded more deterministically on both the server and client which resolves one of the issues that caused Error 500
- Removed a server-side incompatible method which fixes the other issue that caused Error 500
- Shot penetration is now displayed properly on mobile devices again
- Center aligned Wargaming login regions buttons on smaller screen sizes
- The dynamic armor button is no longer inverted
- BlitzKit opentest is not longer promoted on opentest
- The settings link in the navbar no longer open in a new tab
+17
View File
@@ -0,0 +1,17 @@
# BlitzKit 1.23.0
I rewrote the whole website for performance and lower bandwidth. This update does not affect the bot. If I did my job right, you should not notice a difference.
## Changes
- Removed documentation website, all the docs are now available within https://blitzkit.app/
- Removed the Rating tool
- Removed the ability to log in with Patreon
- Removed all ads
## Technical Changes
- Converted BlitzKit to a monorepo
- The whole website is now static with no server-side rendering
- Gotta go fast ⚡
- All structural data is now stored in protocol buffers
+12
View File
@@ -0,0 +1,12 @@
# BlitzKit 1.23.1
Some critical fixes. This update only affects the website.
## Features
- Added a cool new interactive banner to the homepage
- This was primary done to reduce load times due to the high-definition image behind the "BlitzKit" heading
## Fixes
- The Session tool once again works
+25
View File
@@ -0,0 +1,25 @@
# BlitzKit 1.23.2
I made some oopsies so it's time to fix them. This update only affects the website.
## Features
- Added an experimental "Charts" tab to the Performance tool feature a single player distribution chart for now
## Fixes
- The player count in the Performance tool is now more accurate
- The "Total" option in the Performance player count dropdown is now accessible
- The tier in the meta section of the Tankopedia page is no longer off by 1
- The HE splash animation no longer stutters
- Module damage is no longer affected by Reactive Armor, Dynamic Armor, and Spall Liner
- Lower raw terrain coefficients are now correctly flagged as better in the Compare tool
- The Vanilla website is now promoted in the OpenTest version of the Tankopedia page
- Removed the crew mastery slider
- Removed the annoying tooltips in tank filters which would block the buttons up above
- The default gun depression transition angle is now 0 instead of 10deg
- The capitalization of "BlitzKit" in the terms of service is now correct
- The lighting in static mode is now consistent between PBR and non-PBR tanks
- On-click penetration testing now correctly applies enhanced armor
- Crew member count is now longer off by 1
- These values may take up to 24 hours to update on your end
+20
View File
@@ -0,0 +1,20 @@
# BlitzKit 1.24.0
Introducing a new tool: the Gallery, an exhaustive collection of player avatars. This update only affects the website.
## Features
- Added the Gallery tool with a blazing fast search bar
- Click on an avatar to get the full resolution image which you can download using the download button
- External modules in static mode is now denoted by gray
- Added a crew count to the Crew Training section
## Fixes
- Crew skill levels are not longer off by 1
- Crew members with no substitutes are no longer shown with substitutes
- PBR tanks no longer are blasted with excessive lighting
## Technical Changes
- Added page pre-fetching for faster anchors
+9
View File
@@ -0,0 +1,9 @@
# BlitzKit 1.25.0
## Features
- Added embeds
- This tool is intended for streamers and content creators but feel free to generate embeds for personal use!
- There are tons of options and an infinite amount of possible customizations
- BlitzKit only offers 1 embed at the moment but feel free to suggest more
- Tank models are now 4x smaller (meaning it's 4x faster to load)
+14
View File
@@ -0,0 +1,14 @@
# BlitzKit 1.25.1
## Features
- Added shell range and capacity to Tankopedia, Compare, and tank search sort
- These values will appear "0" for a few hours as the website slowly syncs with the game
- Added a skeleton loading screen to Tankopedia
- Added gun type filters and module damage sorting to tank search
- Added the camouflage button to Compare
- Gave camouflage percentages 2 decimals places of precision
## Fixes
- Tankopedia no longer displays "0 battles" under tier X tanks in the tech tree section
+13
View File
@@ -0,0 +1,13 @@
# BlitzKit 1.25.2
## Features
- Added custom shells
- This shows up as a "fourth" shell below the antagonist's shells
- Here, you can customize the shell type, caliber, and penetration
- If the shell type is AP or APCR, you can further customize the ricochet and normalization angles
## Fixes
- The Tankopedia now renders more efficiently by not rendering frames when not needed and unnecessarily rebuilding the whole tank model
- This fix above fixes an issue where the whole tank flashed red when switching shells
+26
View File
@@ -0,0 +1,26 @@
# BlitzKit 1.25.3
## Features
- Added a "popular tanks" list under the Tankopedia link on the homepage
- The render engine has been sped up by about 50% thanks to cheaper lighting
- Added a caliber discriminator for the antagonist gun selector in the Tankopedia sandbox
- Added 30+ new stats to the Session tool
- Added relative stat bars to the Tankopedia tank pages
- This compares each stat against other tanks of the same class & tier, tier, or every other tank
- Added a recently viewed tanks list to the Tankopedia tank pages
## Fixes
- The shot result card is now displayed in the sandbox even on mobile devices now
- Removed ad settings and referenced from the policies prompt
- Removed draco compression as it usually only saved about 0.7mb per tank but added an extra 1mb to the decompressor
- The tank type colors are back in the tank search
- Frames are once again rendered when posing tanks
- Removed the "ghost column" in the Session tool
- The "total" cell is now sticky too much-like the tank name cells
- The reset button in the tank search now resets the sort as well
- The provisions list is now centered on smaller screens
- The navbar can once again be scrolled
- Provisions and consumables are no longer off by 1
- Allow up to 24 hours for this to update as BlitzKit re-syncs with the game
+15
View File
@@ -0,0 +1,15 @@
# BlitzKit 1.25.4
## Features
- The popular tanks list on the homepage now uses a better algorithm such that it doesn't exclude low tier
## Fixes
- Clipping potential is once again rounded to the nearest integer
- Raw hard terrain coefficients are now flagged as "lower the better," hence bringing it to parity with the terrain percentages
- The renderer now doesn't brighten the tank too much
- The recently viewed tanks is list no longer displayed in compact mode (in places like the Compare tool)
- Tank ids once again populate the URL making it easily shareable
- The number of tanks no longer double each time a file is saved in dev mode
- Lol tankopedia once had 662 \* 2 ^ 18 = 173 million tanks loaded on my dying pc
+7
View File
@@ -0,0 +1,7 @@
# BlitzKit 1.25.5
## Fixes
- The Compare tool now has a vertically clipping table
- Custom shells that are not HE no longer have an explosion radius
- Performance tool table row titles are now fully clickable instead of just the icons
+19
View File
@@ -0,0 +1,19 @@
# BlitzKit 1.26.0
## Features
- Added the Tier list tool
- Migrated the bot to use BlitzKit 1.26.0
- The hamburger menu has been move to the right of the screen
- The Gallery tool now has a larger number of loading skeletons
- Added some extra details when pasting Tankopedia links in Discord
## Fixes
- Rewrote the rating leaderboard archiver and commands making use of protobufs
- The navbar is once again sticky to the top of the page
- Added missing page titles to the Compare tool, Tankopedia pages, and the various docs
## Technical Changes
- Commands that accept a player account input now use just the player id instead of including the region
+9
View File
@@ -0,0 +1,9 @@
# BlitzKit 1.26.1
The auctions are here!
## Features
- Added the `/auction` command
- No need to login or go to the official website, just use `/auction`
- Everything built into Discord, one step at a time!
+22
View File
@@ -0,0 +1,22 @@
# BlitzKit 1.26.2
Two updates in a day! Why? Well, these two updates were being cooked separately in parallel and happened to have matured on the same day. Merry early Christmas!
## Features
- Highly optimized the component rerenders of the Tank Sandbox
- Implemented Google Analytics into the homepage to more accurately show the most popular tanks
- Optimized page load speeds and memory consumption by loading all data in parallel instead of sequentially
## Fixes
- Dynamic armor is now loaded in React Suspense to avoid race conditions
- Re-ordered cards on the home page so that it makes a little bit more sense
- The warnings section of the Tankopedia pages are now padded on the sides
- The calibers in the antagonist gun selector are now rounded correctly
- Tank class icons are now colored and sized properly again in the header
## Technical Changes
- Removed the extreme JPEG compression for the tank textures
- Buffers of the same length are now assumed to be identical when diffing lmao I hope this doesn't go wrong
+19
View File
@@ -0,0 +1,19 @@
# BlitzKit 1.26.3
## Features
- The bot now notifies you if your username/clan search query is too long or short instead of just showing a generic no results message
- Reduced the popular tanks list on the home page back to 8 tanks
- `/owned-tanks` now links to the corresponding Tankopedia pages
- Added more funky rich presence statuses
## Fixes
- The website no longer crashes when turning on Static Armor mode
- `/stats` and other commands with tank filter commands now work properly once again
- The swap button in the Tankopedia pages no longer crashes switching between tech tree and non-tech tree tanks
- `/owned-tanks` and `/auction` now chunk text better to meet Discord's 2000 character limit
- Tanks with fixes camouflages like the M60 no longer have the option to disable the camouflage of in the Compare tool
- The pointer cursor and underscore once again appear now in the tank search in the Compare tool
- Opaque mode in the Dynamic armor mode once again works instantly
- The rich presence/status/bio of the bot once again counts all servers instead of just the ones the single shard is responsible for
+15
View File
@@ -0,0 +1,15 @@
# BlitzKit 1.26.4
## Features
- `/auction` now warns if a tank stock is at or below 500 and now strikes through the tank name if its out
- Added advanced armor highlighting mode
- Green: penetration
- Red: blocked
- Pink: ricochet
- Cyan: penetration with 3 calibers rule
- Optimized the armor highlighting for about a 15% increase in frame rate
## Fixes
- Added 5000 doses of adrenaline, incase the BOT DECIDES TO DIE AGAIN FOR NO REASON
+19
View File
@@ -0,0 +1,19 @@
# BlitzKit 1.26.5
¡Ahora en 6 idiomas! This version of BlitzKit adds support for 4 new languages totalling up to 6! [Please help translate on Crowdin](https://crowdin.com/project/blitzkrieg).
## Features
- Added Croatian, Russian, Ukrainian, and Chinese
- Pre-existing languages: English, Spanish
- Added better lighting making tanks a little less yellow and a bit more realistic
- Added custom tank icons (some may be missing when the update drops; just give them an hour or so to update)
- Increased the maximum recently viewed tanks list size to 14
- Tweaked the tank name in the hero section of the Tankopedia to allow the tank to be in the center of the page
- The headers in the Performance tool are now sticky just like the Compare tool
## Fixes
- Removed unnecessary third party script that did absolutely nothing
- Localizations are now stricter in what they allow, reducing errors in the Discord bot
- Added 50 gallons of tomato soup to the bot in an attempt to keep it alive
+15
View File
@@ -0,0 +1,15 @@
# BlitzKit 1.26.6
This update only affects the website.
## Features
- Added an option to hide the tank model beneath the armor
## Fixes
- 3RC is now only display when it is used to avoid a ricochet in the advanced armor highlighting mode
- Fixed the excessively sharp lighting in static mode
- Brightness for non-PBR tanks is a bit better now
- Decimal places are now properly rounded in BlitzKit link embeds
- The titles in the Tankopedia pages aren't too massive now
+14
View File
@@ -0,0 +1,14 @@
# BlitzKit 1.27.0
PLEASE HELP TRANSLATE BLITZKIT: https://crowdin.com/project/blitzkrieg
This update will be the last major update before the release of World of Tanks Blitz Unreal Engine.
## Features
- Added support for English, Spanish, French, Japanese, Polish, Portuguese, Russian, Ukrainian, and Chinese to the website and bot
- You can switch languages through the home page, the footer of any page, or the settings page
## Fixes
- Fixed the units for shell capacity
+1 -1
View File
@@ -2,7 +2,7 @@
This release of Blitzkrieg focuses mainly on **performance**. Blitzkrieg now uses **Satori** and **resvg** under the hood to render images resulting in a solid **2x to 8x performance boost** depending on the situation.
This only applies to `/today` and /stats` as they're the only commands that render an image currently.
This only applies to `/today` and `/stats` as they're the only commands that render an image currently.
We're working further on **performance optimizations**. Our goal is to deliver a message within **3 seconds or less**. We're close and we'll get there!
-30
View File
@@ -1,30 +0,0 @@
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home
hero:
name: 'BlitzKit'
text: Everything Blitz, right in Discord
tagline: All-in-one Discord bot for everything World of Tanks Blitz
image:
src: '/assets/images/hero.png'
alt: 'blitzkit'
actions:
- theme: brand
text: Add to Discord Server
link: /guide/invite
- theme: alt
text: Guide
link: /guide/introduction
features:
- title: Clean and Efficient UI
icon: 🚀
details: BlitzKit is where concise meets efficient. Get the information you need in the way you want.
- title: Endless Possibilities
icon: 🛠
details: With endless ways to customize the output, it's guaranteed that you'll always get the information you need.
- title: Easy to Use
icon: 💻
details: Leveraging Discord's, Blitz Stars', and Wargaming's powerful APIS, Blitzkit does all the hard work for you.
---
+18 -1
View File
@@ -130,6 +130,23 @@ Your consent to this Privacy Policy followed by Your submission of such informat
The Company will take all steps reasonably necessary to ensure that Your data is treated securely and in accordance with this Privacy Policy and no transfer of Your Personal Data will take place to an organization or a country unless there are adequate controls in place including the security of Your data and other personal information.
### California Consumer Privacy Act (CCPA)
If you are a California resident, you have specific rights regarding your personal information under the California Consumer Privacy Act (CCPA). This section describes your CCPA rights and explains how to exercise those rights.
#### Rights under CCPA
Under CCPA, California residents have the following rights:
1. Right to Know: You have the right to request that we disclose certain information to you about our collection and use of your personal information over the past 12 months.
2. Right to Delete: You have the right to request that we delete any of your personal information that we collected from you and retained, subject to certain exceptions.
3. Right to Opt-Out of Sale: You have the right to opt-out of the sale of your personal information. Note that we do not sell personal information as defined by the CCPA.
4. Right to Non-Discrimination: You have the right not to be discriminated against for exercising any of your CCPA rights.
#### Exercising Your CCPA Rights
To exercise your rights under CCPA and to opt-out of the sale of your personal information, you can click on the "Do not sell my personal information" link in the footer of any page on our website.
### Delete Your Personal Data
You have the right to delete or request that We assist in deleting the Personal Data that We have collected about You.
@@ -188,4 +205,4 @@ You are advised to review this Privacy Policy periodically for any changes. Chan
If you have any questions about this Privacy Policy, You can contact us:
- By visiting this page on our website: [https://discord.gg/nDt7AjGJQH](https://discord.gg/nDt7AjGJQH)
- By emailing blitzkriegautomation@gmail.com
+1 -1
View File
@@ -1,4 +1,4 @@
# BLitzKit Terms and Conditions
# BlitzKit Terms and Conditions
Last updated: May 23, 2024
Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

-99
View File
@@ -1,99 +0,0 @@
# Cedilla Object Notation
1. JSON compressed as CDON, written directly to disk (a direct 50% reduction).
2. CDON further compressed with LZ4 (a clean 90% reduction).
3. The raw JSON file as fetched from a random data source.
4. CDON decompressed once again to JSON. Note that this file is a little larger than the original JSON file as it contains a lot more decimal places due to float precision (this shouldn't affect the size in memory).
![an image of file sizes](https://i.imgur.com/AHJiFpq.png)
FS stands for "Fast String".
```cpp
primary CedillaObjectNotation {
utf8"CDON" magic;
Header header;
primary Body<header.fsFormat> body;
}
Header {
uint16 version; // always 1
FSFormat fsFormat;
StringTable<fsFormat> stringTable;
}
FSFormat enum<uint8> {
Format8,
Format16,
Format32,
}
FSPrimitive<FSFormat fsFormat> match(fsFormat) {
Format8: uint8;
Format16: uint16;
Format32: uint32;
}
StringTable<FSFormat fsFormat> {
FSPrimitive<fsFormat> count;
String[count] strings;
}
Body<FSFormat fsFormat> {
primary Value<fsFormat> object;
}
ValueType enum<uint8> {
Null,
Boolean,
Uint8,
Uint16,
Uint32,
Uint64,
Int8,
Int16,
Int32,
Int64,
Float32,
Float64,
String,
FS,
Array,
Object,
}
String {
uint32 length;
primary utf8<length> value;
}
StringValue Value & { (ValueType.String | ValueType.FS) type }
Value<FSFormat fsFormat> {
ValueType type;
match<type> {
Boolean: { uint8 value; }
Uint8: { uint8 value; }
Uint16: { uint16 value; }
Uint32: { uint32 value; }
Uint64: { uint64 value; }
Int8: { int8 value; }
Int16: { int16 value; }
Int32: { int32 value; }
Int64: { int64 value; }
Float32: { float32 value; }
Float64: { float64 value; }
String: { String value; }
FS: { FSPrimitive<fsFormat> index; }
Array: {
uint32 count;
Value[count] values;
}
Object: {
uint32 count;
StringValue[count] keys;
Value[count] values;
}
}
}
```
+172
View File
@@ -0,0 +1,172 @@
# KitScore
## Memo
KitScore is a performance metric that makes sense. This metric can be applied to any game, virtual or real. Specific pieces of information relating directly to World of Tanks Blitz will be provided within parentheses and with a "WoTB:" prefix.
## Consumption of Observations
KitScore is driven solely by the behavior of other players and finding meaning of a new observation within a pool of condensed data based on previously observed data. Generally, we will be provided with a number of statistics (the $x_i$ of an observation) per player (WoTB: $x_\text{frags}$, $x_\text{xp}$, $x_\text{spots}$, etc.) including a target statistic (the $x_j$ of an observation) that all other statistics try to maximize (WoTB: "winrate" which we will defined later as $x_j$).
If the statistics are cumulative, they will have to be normalized (WoTB: statistics fetched from Wargaming are indeed cumulative even for a single player; $x_\text{frags}=\frac{\Sigma x_\text{frags}}{\Sigma x_\text{battles}}$, $x_\text{spots}=\frac{\Sigma x_\text{spots}}{\Sigma x_\text{battles}}$, $x_j=\frac{\Sigma x_\text{wins}}{\Sigma x_\text{battles}}$, etc.). Each player will have such average statistics, giving us many points of data to work with. If the statistics are not cumulative, then you will be dealing with multiple observations per player which will only help improve accuracy.
## It's Impossible to "Find What Makes the Metric Tick"
WN8, a widely adopted metric in the World of Tanks and World of Tanks Blitz communities is plagued with problems. One of them being that people often find and exploit "what makes the metric tick." In other words, people easily exploit the rudimentary nature of WN8 to score undeservedly high.
In WN8, the gains of some rewarding categories overshadow the losses of others though that may not necessarily be in the best interest in maximizing winrate. KitScore makes this nearly impossible as it punishes a player for scoring well solely high in a certain category. You will never exploit KitScore. Period.
## Generating Reasonable Values
TODO: there's like no runaway cases
## Symbol Interpretation
| Symbol | Interpretation |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| $A_\text{human}$ | The human readable version of the raw score $A$. |
| $A$ | The raw KitScore. |
| $C$ | An arbitrary coefficient. |
| $I$ | The number of statistics including the target statistic. This means that there are $I-1$ entries for $x_i$ and $1$ entry for $y$ for each observation. |
| $i$ | The statistic index of where there are $I$ entries. |
| $j$ | A discriminator for the target statistic. There may never be more than $1$ entries for $j$. |
| $m$ | The degree of the polynomial regression. |
| $n$ | The number of observations. |
| $a$ | An "atomic" score which is a function of the $i$th statistic. |
| $w$ | The weight of the $i$th atomic statistic. |
## Computing the Score
The final metric $A_\text{human}$ is an arbitrarily scaled value of the raw score $A$ where $C$ is any coefficient of your liking. BlitzKit uses $C=10^3$.
$$
A_\text{human}=CA
$$
The final metric $A$ is the weighted average of individual scores $a$ which are functions of the $i$th statistic excluding the target statistic $j$ itself.
$$
A=\frac{\sum_{i \neq j} w_{i}a_{i}}{\sum_{i \neq j} w_{i}}
$$
The "atomic" score $a$ is the difference between the predicted target statistic $P_{i \leftrightarrow j}(x_i)$ acquired using a polynomial regression of degree $m$ and the actual newly observed $x_j$.
$$
a_i=x_j-P_{i \leftrightarrow j}(x_i)
$$
The polynomial regression of $m$th degree can be written as follows:
$$
P(x)=\beta_0x^0+\beta_1x^1+\beta_2x^2+\dots+\beta_mx^m
$$
Polynomial regression coefficients $\beta$ can be acquired through basic linear algebra where an $m \times m$ of constants is multiplied with $m \times 1$ of unknowns which equals another $m \times 1$ of constants.
```math
\begin{bmatrix}
\sum_{k=1}^n x_i^0 & \sum_{k=1}^n x_i^1 & \sum_{k=1}^n x_i^2 & \dots & \sum_{k=1}^n x_i^m \\
\sum_{k=1}^n x_i^1 & \sum_{k=1}^n x_i^2 & \sum_{k=1}^n x_i^3 & \dots & \sum_{k=1}^n x_i^{m+1} \\
\sum_{k=1}^n x_i^2 & \sum_{k=1}^n x_i^3 & \sum_{k=1}^n x_i^4 & \dots & \sum_{k=1}^n x_i^{m+2} \\
\vdots & \vdots & \vdots & \ddots & \vdots \\
\sum_{k=1}^n x_i^m & \sum_{k=1}^n x_i^{m+1} & \sum_{k=1}^n x_i^{m+1} & \dots & \sum_{k=1}^n x_i^{2m} \\
\end{bmatrix}
\begin{bmatrix}
\beta_0 \\
\beta_1 \\
\beta_2 \\
\vdots \\
\beta_m
\end{bmatrix}
=
\begin{bmatrix}
\sum_{k=1}^n x_jx_i^0 \\
\sum_{k=1}^n x_jx_i^1 \\
\sum_{k=1}^n x_jx_i^2 \\
\vdots \\
\sum_{k=1}^n x_jx_i^m
\end{bmatrix}
```
The weight $w$ is a slice of the Pearson corelation matrix. The numerator is the corelation between the $i$th statistic and the target statistic $j$ while the denominator the sum of the corelations between the $i$th statistic and all statistics but the target statistic $j$.
$$
w_{i}=\frac{r_{i\leftrightarrow j}^2}{\sum_{i_{k}\neq j}r_{i\leftrightarrow i_{k}}^2}
$$
## Understanding the Corelation Matrix
Forming the corelation matrix will create an $I \times I$ matrix where. This matrix is best represented as a table. The example below illustrates a matrix/table for $I=4$ which includes $3$ entries for $i$ statistics and $1$ entry for the $j$ target statistic.
| | $x_1$ | $x_2$ | $x_3$ | $x_j$ |
| ----- | --------------------------- | --------------------------- | --------------------------- | --------------------------- |
| $x_1$ | $1$ | $r_{1 \leftrightarrow 2}^2$ | $r_{1 \leftrightarrow 3}^2$ | $r_{1 \leftrightarrow j}^2$ |
| $x_2$ | $r_{1 \leftrightarrow 2}^2$ | $1$ | $r_{2 \leftrightarrow 3}^2$ | $r_{2 \leftrightarrow j}^2$ |
| $x_3$ | $r_{1 \leftrightarrow 3}^2$ | $r_{2 \leftrightarrow 3}^2$ | $1$ | $r_{3 \leftrightarrow j}^2$ |
| $x_j$ | $r_{1 \leftrightarrow j}^2$ | $r_{2 \leftrightarrow j}^2$ | $r_{3 \leftrightarrow j}^2$ | $1$ |
It should not be a surprise to find $r_{i \leftrightarrow i}^2=1$ which forms a neat diagonal across the table. Note that there are many duplicates within the $I^2$ entries. The "bottom-right triangle" can be eliminated to remove redundancies leaving us with only $\frac{I(I+1)}{2}$ fields occupied.
| | $x_1$ | $x_2$ | $x_3$ | $x_j$ |
| ----- | ----- | --------------------------- | --------------------------- | --------------------------- |
| $x_1$ | $1$ | $r_{1 \leftrightarrow 2}^2$ | $r_{1 \leftrightarrow 3}^2$ | $r_{1 \leftrightarrow j}^2$ |
| $x_2$ | | $1$ | $r_{2 \leftrightarrow 3}^2$ | $r_{2 \leftrightarrow j}^2$ |
| $x_3$ | | | $1$ | $r_{3 \leftrightarrow j}^2$ |
| $x_j$ | | | | $1$ |
When programming this matrix into an array, $r_{i \leftrightarrow i}^2=1$ will be redundant. I recommend condensing the matrix into an array of size $\frac{I(I+1)}{2}+I=\frac{I(I-1)}{2}$ to avoid all redundant entries. For $I=4$, the array will look something like the one illustrated below (here, $j=4$).
$$
[r_{1 \leftrightarrow 2}^2, r_{1 \leftrightarrow 3}^2, r_{1 \leftrightarrow 4}^2, r_{2 \leftrightarrow 3}^2, r_{2 \leftrightarrow 4}^2, r_{3 \leftrightarrow 4}^2]
$$
## Understanding the Weights
Some may find the weight equation arbitrary; it evidently isn't. The goal of $w$ is to eliminate over-rewarding the same behavior represented in multiple statistics. It makes all atomic statistics concurrent by leveraging the Pearson corelation matrix.
A simplified example will clarify the idea. First, we compute a Pearson corelation matrix for $I=3$ statistics. We have $x_1$ and $x_2$, the statistics that are trying to maximize $x_j$. Reminder: a Pearson corelation matrix finds the $r$ value not only between $x_i$ and $x_j$ but also between all combinations of $x_i$ and themselves. Here, $r^2$ is calculated using polynomial regression corelation analysis to the $m$th degree.
| | $x_1$ | $x_2$ | $x_3$ | $x_j$ |
| ----- | ----- | ----------- | ----- | ----- |
| $x_1$ | $1$ | $\boxed{0}$ | $0$ | $1$ |
| $x_2$ | | $1$ | $0$ | $1$ |
| $x_3$ | | | $1$ | $1$ |
| $x_j$ | | | | $1$ |
In the case above, $r^2_{1 \leftrightarrow 2}=0$ meaning that both statistics have absolutely nothing to do with each other. Hence, the player will be awarded for optimizing both individually. And since $r^2_{1 \leftrightarrow j}=r^2_{2 \leftrightarrow j}$, they should both be rewarded equally; in other words, they should have equal weights.
$$
w_{1}=\frac{1}{1 + 0 + 0}=1
$$
$$
w_{2}=\frac{1}{0 + 1 + 0}=1
$$
$$
w_{3}=\frac{1}{0 + 0 + 1}=1
$$
Now consider a case where $x_1$ and $x_2$ are fully correlated. It would be a bad idea to reward them equally; hence, their weights suffer.
| | $x_1$ | $x_2$ | $x_3$ | $x_j$ |
| ----- | ----- | ----------- | ----- | ----- |
| $x_1$ | $1$ | $\boxed{1}$ | $0$ | $1$ |
| $x_2$ | | $1$ | $0$ | $1$ |
| $x_3$ | | | $1$ | $1$ |
| $x_j$ | | | | $1$ |
$$
w_{1}=\frac{1}{1 + 1 + 0}=0.5
$$
$$
w_{2}=\frac{1}{1 + 1 + 0}=0.5
$$
$$
w_{3}=\frac{1}{0 + 0 + 1}=1
$$
-166
View File
@@ -1,166 +0,0 @@
# Weighted Standard Score (WSS)
A next generation metric in judging player performance.
## Pre-requisites
This paper delves deep into mathematics and statistics which most may not be familiar with. You will need some basic understanding of normal distributions, correlation analysis, regressions, summation, set builder notation, and calculus.
## Preface
WSS delivers a single, easy to consume number that measures the performance of a player independent to their winrate so that it is easy to judge their contribution to the team regardless of the performance of the other players in the team. This allows you to judge wether the player in question is "pulling their own weight."
The mathematics behind this metric has been intentionally generalized such that it isn't limited to just World of Tanks Blitz. You will be easily able to apply this metric in any other game/sport.
## Understanding The Metric
On average, the score across all players will be $0$. This is because the metric is essentially a convolution of multiple standard scores and their corresponding weights. A standard score of $z=\pm1$ implies an offset by $\pm\sigma$ ($1$ standard deviation) from $\mu$ (the mean). And since the scalar of WSS is $C=1000$, $z=\pm1\iff M=\pm 1C=\pm1000$.
About $68.3\%$ of players lie within $\pm1\sigma\implies M=\pm1000$, about $95.4\%$ of players lie within $\pm2\sigma\implies M=\pm200$, and about $99.7\%$ of players lie within $\pm3\sigma\implies M=\pm300$.
## Computation
The final metric, $M$, is an integer where $0$ is the average score across all players, $-1000$ is $-\sigma$ away from $\mu$, and $1000$ is $\sigma$. This allows for a clear distinction between players that are hurting the team and who are actually helping since players with a negative score have a negative standard score, tied tightly with basic distributional statistics.
$M$, the human-readable metric, is a function of $Z$, the raw score where $C=1000$ is an arbitrary scaling factor.
$$
M=\text{round}\left(CZ\right)
$$
$Z$ is the weighted average of all $z$ ("standard score," which $z$ stands for, will be discussed later) with weights $w$.
$$
Z=\frac{\sum wz}{\sum w}
$$
$w$, the weight of each standard score is just $r$, the correlation coefficient. This value must be determined for each standard scores through corelation analysis. $r$ is allowed to be negative so that standard scores that actually harm the player's winrate will have a negative effect on the weighted average. We will be using the weighted variant of $r$ where $w_i$, the weight of the sample, is the number of battles, $\overline{x}$ the weighted average of the samples' $x$ components and $\overline{y}$ the weighted average of the samples' $y$ components (usually the winrate).
$$
w=r=\frac{\sum w_{i}\left(x_{i}-\overline{x}\right)\left(y_{i}-\overline{y}\right)}{\sqrt{\sum w_{i}\left(x_{i}-\overline{x}\right)^{2}\sum w_{i}\left(y_{i}-\overline{y}\right)^{2}}}
$$
Calculating $\overline{x}$ and $\overline{y}$ is straightforward. Do note that $\mu=\overline{x}$.
$$
\overline{x}=\mu=\frac{\sum w_{i}x_{i}}{\sum w_{i}}
$$
$$
\overline{y}=\frac{\sum w_{i}y_{i}}{\sum w_{i}}
$$
In a similar fashion, we will also need the standard deviation $\sigma$.
$$
\sigma=\sqrt{\frac{\sum w_{i}\left(x_{i}-\mu\right)^{2}}{\sum w_{i}}}
$$
Note that $r$, $\sigma$, $\mu$, $\overline{x}$, and $\overline{y}$ use many of the same summations just in different places. During real computation, I would highly recommend pre-computing all the summations and deploying them to use to avoid excessive computation. This makes a world of difference when sampling hundreds of millions of players.
$z$ is the standard score which uses the precomputed values of $\mu$ and $\sigma$. The variable $x$ represents the input statistic of the player in question.
$$
z=\frac{x-\mu}{\sigma}
$$
## Human-Readability
### Bar Size and Position
> [!NOTE]
> The bar colors in the example graphics below may not be representative of the real scale. Read "Bar Color" for more details.
Presenting $M$ may not be sufficient in conveying the metric. It is convention to display a "progress bar" that directly represents the percentile of the player which can be derived directly from the raw score, $Z$, since its a weighted average of standard scores.
A standard score of $z=0.65\implies Z=650$ corresponds to the $75\%$ percentile. That is $25\%$ above the average $50\%$. This is visualized by a green bar halfway full.
![](https://i.imgur.com/MdKZj36.png)
$z=1.20\implies Z=1200$ is the $88\%$ percentile. The bar is now three quarters full.
![](https://i.imgur.com/p1vG7B2.png)
Thus, by extension, negative scores are red bars originating from the right. $z=-1.20\implies Z=-1200$ is the $12\%$ percentile.
![](https://i.imgur.com/0ncSOn4.png)
Generalizing this, for any given raw score $Z$, the percentile can be calculated as follows.
$P=\Phi\left(Z\right)$
And $\Phi$ is the cumulative distribution function. That being said, most languages will offer some library or built-in function to compute $\Phi$.
$\Phi\left(x\right)=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{x}e^{-\frac{t^{2}}{2}}dt$
For any given value of $P$, the size of the bar is $B$.
$B=\left|2P-1\right|$
The bar originates from the left if $P>0.5=50\%\iff Z>0\implies M\ge0$ ($M$ may still be $0$ due to rounding). It originates from the right if $P<0.5=50\%\iff Z=0\implies M\le0$. And when $P=0.5=50\%\iff Z=0\implies M=0$, it is completely empty.
### Bar Color
The color of the bar is also a function of the percentile. $\Phi$ isn't a cheap function, so I would recommend computing these on-demand and memoize the results. Or, alternatively, you could precompute the associated $Z$ values for $P$ and use those to determine the colors. The colors that [BlitzKit](https://blitzkit.app/) uses are shown in the image below.
![](https://i.imgur.com/3T4BchO.png)
BlitzKit uses [Radix Colors](https://www.radix-ui.com/colors/docs/palette-composition/scales) and the scales used in the image above are as follows respectively.
- tomato
- orange
- amber
- yellow
- lime
- green
- teal
- cyan
- pink
- plum
- purple
## FAQ
### (WoTB specific) Why WSS over WN8?
- Lot less aggressive: the weights of WN8 are disproportionately distinct from one another allow people to easily find "what makes the metric tick" and exploit it to "farm" higher WN8 with that being the only the explicit goal. WSS, on the other hand, because of its symmetric and normal nature, will remain at a similar value even if a player choses to aggressively maximize one statistic.
- Mathematically grounded: every constant of WSS is based in data. Unlike WN8, it is recommended to recompute the constants of WSS often. In BlitzKit's implementation, an approximate 24 million players are samples every day to keep the metric relevant.
- Easy to read: WN8 provides no clear indication of where the average is. WSS, on the other hand, clearly states that negative scores cause a lower than average chances of winning, a positive score causes a higher chance of winning, and 0 being the average.
- Doesn't use winrate: WSS is strictly not a function of winrate. WN8, on the other hand, is majorly influenced by winrate and even XP. WSS is a measurement of your true performance regardless of what RNG may throw at you.
### Why doesn't the weight include the slope of the linear regression?
Doing this would make $w=\left|r\right|m$ or $w=r^{2}m$ where $\left|r\right|$ or $r^{2}$ represents the "confidence" in the standard score and $m$ is the "rate of effectiveness". Doing this was decided against because a drop in $m$ inherently implies a drop in the corelation $r$.
To rephrase, this is what real data looks like where $r$ drops with $m$; there is no need to include both (https://www.desmos.com/calculator/0p5kye1s7z).
![](https://i.imgur.com/6gHCYUZ.gif)
And this is what real data **DOES NOT** look like where $r$ remains constant as $m$ drops (https://www.desmos.com/calculator/5yfl2ulemf).
![](https://i.imgur.com/iCbuun3.gif)
## WoTB Specific Notes
Corelation analysis must be performed on a per-tank basis. If the goal is to evaluate the performance of a player instead of the player's performance in a tank, analysis should still be done on all played tanks severalty and must be averages with weights being the number of battles played by the player in each tank.
The Wargaming API provides many pieces of statistics on a per-tank basis (as listed below). These values cumulate over time as the player plays more games; hence, all of these values must be normalized by dividing each metric by `all.battles`. I will go through and list which of the statistics need to be included as standard scores and why/why not. Omitted statistics must not be included and are obvious why they aren't used.
- ✔️ `battle_life_time`: Normalization of this value results in the average time spent alive in seconds. Good players strive to stay alive for as long as possible and must be rewarded while people who "yolo" at the beginning of the game will be penalized.
- ❌ `all.battles`: Dividing this by itself will result in 1. Corelation analysis will always fail due to division by 0.
- ✔️ `all.capture_points`: Capturing points almost always have a negative corelation coefficient; hence, its inclusion is vital to punish players who waste time capturing points.
- ✔️ `all.damage_dealt`
- ✔️ `all.damage_received`
- ✔️ `all.dropped_capture_points`: Dropping capture points by dealing damage to opponents in base capture usually results in a very tiny positive corelation coefficient; nonetheless, it does have an effect on gameplay thus it is included.
- ✔️ `all.frags`
- ❌ `all.frags8p`: This value is `null` on most tanks below tier VIII because it only measures frags of and above tier VIII. Breaks math, pointless feature; do not include.
- ✔️ `all.hits`
- ❌ `all.losses`: Function of winrate.
- ❌ `all.max_frags`: Normalization with division by `all.battles` renders this metric useless. Do not include.
- ❌ `all.max_xp`: Just like `all.max_frags`, this metric does not accumulate over time. Do not include.
- ✔️ `all.shots`
- ✔️ `all.spotted`
- ❌ `all.survived_battles`: Function of winrate.
- ❌ `all.win_and_survived`: Function of winrate.
- ❌ `all.wins`: Function of winrate.
- ❌ `all.xp`: Function of winrate.
-5
View File
@@ -1,5 +0,0 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
-47
View File
@@ -1,47 +0,0 @@
import { createVanillaExtractPlugin } from '@vanilla-extract/next-plugin';
import { readdirSync, writeFileSync } from 'fs';
const withVanillaExtract = createVanillaExtractPlugin({ tests: /\.css$/ });
/** @type {import('next').NextConfig} */
const nextConfig = {
...withVanillaExtract({
webpack: (config, { isServer }) => {
config.module.rules.push({
test: /\.glsl$/,
type: 'asset/source',
});
if (isServer) {
writeFileSync(
'public/assets/versions.json',
JSON.stringify(
readdirSync('docs/changelogs').map((file) =>
file.replace('.md', ''),
),
),
);
}
return config;
},
}),
async headers() {
return [
{
source: '/(.*)?',
headers: [{ key: 'X-Frame-Options', value: 'DENY' }],
},
];
},
distDir: 'dist/website',
reactStrictMode: true,
experimental: {
workerThreads: false,
},
};
export default nextConfig;
+35 -95
View File
@@ -1,113 +1,53 @@
{
"name": "blitzkit",
"version": "1.21.2",
"private": true,
"version": "1.27.0",
"description": "🎉 Tools for everything World of Tanks Blitz",
"main": "src/server.ts",
"type": "module",
"types": "./types.d.ts",
"workspaces": [
"packages/*"
],
"scripts": {
"build:assets": "bun scripts/buildAssets/index.ts",
"build:averages": "bun scripts/averages",
"build:db": "prisma generate",
"build:bot": "rm -rf dist/bot && bun build src/index.ts src/workers/bot.ts src/workers/render.ts --outdir dist/bot --target=bun --splitting --sourcemap=inline && cp -R src/lang dist/bot/lang",
"build:website": "bun build:db && bun build:sitemap && next build",
"build:assets": "cd packages/scripts && bun run build:assets",
"build:averages": "bun --filter=@blitzkit/scripts run build:averages",
"build:bot": "cd packages/scripts && bun run build:bot",
"build:website": "bun build:prisma --no-hints && cd packages/website && bun run build",
"build:prisma": "prisma generate",
"build:sitemap": "bun scripts/sitemap.ts",
"build:docs": "vitepress build docs",
"build:ratingleaderboard": "bun --script scripts/buildRatingLeaderboard.ts",
"dev:bot": "bun build:bot && bun start:bot",
"build:ratingleaderboard": "cd packages/scripts && bun run build:ratingleaderboard",
"dev:bot": "bun run build:bot --dev && bun start:bot",
"start:bot": "bun dist/bot/main.js",
"dev:docs": "vitepress dev docs",
"dev:website": "next dev",
"start:bot": "bun dist/bot/index.js",
"start:website": "next start",
"dev:website": "cd packages/website && bun run dev",
"dev:api": "bun --filter=@blitzkit/api run dev",
"setup:depotdownloader": "bun --filter=@blitzkit/scripts run setup:depotdownloader",
"setup:patches": "bun --filter=@blitzkit/scripts run setup:patches",
"start:website": "bun --filter=@blitzkit/website run start",
"host:docs": "vitepress preview docs",
"lint": "npx tsc",
"lint:website": "next lint",
"lint": "tsc",
"lint:website": "cd packages/website && bun run lint",
"format": "prettier --write \"**/*.@(json|js|jsx|css|md|ts|tsx|html|xml|yml|gltf)\"",
"knip": "knip",
"update": "yarn upgrade --latest",
"tunnel": "cloudflared tunnel --url http://localhost:3000",
"discoverids": "scripts/discoverIds.ts"
"discoverids": "scripts/discoverIds.ts",
"build:protos": "bun packages/scripts/src/protos.ts",
"preview:website": "cd packages/website && bun run preview",
"build:reviews": "cd packages/scripts && bun build:reviews",
"build:ids": "cd packages/scripts && bun build:ids"
},
"license": "MIT",
"dependencies": {
"@gltf-transform/core": "^3.10.1",
"@nivo/bar": "^0.87.0",
"@octokit/plugin-throttling": "^8.2.0",
"@octokit/rest": "^20.1.1",
"@prisma/client": "^5.16.2",
"@radix-ui/colors": "^3.0.0",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/themes": "^3.1.1",
"@react-three/drei": "^9.108.3",
"@react-three/fiber": "^8.16.8",
"@resvg/resvg-js": "^2.6.2",
"@types/three": "^0.160.0",
"@vanilla-extract/css": "^1.15.3",
"@vanilla-extract/dynamic": "^2.1.1",
"adm-zip": "^0.5.14",
"bepaint": "^0.1.0-beta.3",
"csv-parse": "^5.5.6",
"decompress": "^4.2.1",
"discord.js": "^14.15.3",
"dotenv": "^16.4.5",
"esbuild": "^0.19.12",
"express": "^4.19.2",
"false": "^0.0.4",
"fuzzysort": "^2.0.4",
"googleapis": "^134.0.0",
"immer": "^10.1.1",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"lz4js": "^0.2.0",
"markdown-escape": "^2.0.0",
"markdown-to-jsx": "^7.4.7",
"next": "^14.2.5",
"parse-dds": "^1.2.1",
"pickleparser": "^0.2.1",
"postprocessing": "^6.35.6",
"progress": "^2.0.3",
"protobufjs": "^7.3.2",
"react": "^18.3.1",
"react-device-detect": "^2.2.3",
"react-dom": "^18.3.1",
"react-fuzzysort": "^1.0.1",
"react-promise-suspense": "^0.3.4",
"satori": "^0.10.14",
"sharp": "^0.33.4",
"three": "0.159.0",
"three-stdlib": "^2.30.4",
"vitepress": "^1.3.0",
"vitepress-plugin-auto-sidebar": "^1.2.0",
"yaml": "^2.4.5",
"zustand": "^4.5.4"
"sharp": "^0.33.5",
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@total-typescript/ts-reset": "^0.5.1",
"@types/adm-zip": "^0.5.5",
"@types/bun": "^1.1.6",
"@types/decompress": "^4.2.7",
"@types/escape-html": "^1.0.4",
"@types/express": "^4.17.21",
"@types/js-yaml": "^4.0.9",
"@types/lodash": "^4.17.6",
"@types/lz4": "^0.6.4",
"@types/lz4js": "^0.2.1",
"@types/markdown-escape": "^1.1.3",
"@types/node": "^20.14.10",
"@types/parse-dds": "^1.0.3",
"@types/pngjs": "^6.0.5",
"@types/progress": "^2.0.7",
"@types/react": "^18.3.3",
"@vanilla-extract/next-plugin": "^2.4.3",
"compare-versions": "^6.1.0",
"crc": "^4.3.2",
"fast-xml-parser": "^4.4.0",
"knip": "^3.13.2",
"prettier": "^3.3.2",
"prisma": "^5.16.2",
"typescript": "^5.5.3"
},
"packageManager": "[email protected]",
"trustedDependencies": [
"protobufjs"
]
"@types/bun": "latest",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.5.4",
"prettier": "^3.3.3",
"prisma": "^6.0.0",
"typescript": "^5.5.4"
}
}
+26
View File
@@ -0,0 +1,26 @@
{
"name": "@blitzkit/bot",
"private": true,
"type": "module",
"types": "src/types.d.ts",
"dependencies": {
"@blitzkit/core": "workspace:*",
"@blitzkit/i18n": "workspace:*",
"satori": "^0.10.14",
"@resvg/resvg-js": "^2.6.2",
"discord.js": "^14.16.3",
"react": "^18.3.1",
"@radix-ui/colors": "^3.0.0",
"fuzzysort": "^2.0.4",
"bepaint": "^0.1.0-beta.3",
"dotenv": "^16.4.5",
"markdown-escape": "^2.0.0"
},
"scripts": {
"dev": "bun --watch src/main.ts",
"start": "bun src/main.ts"
},
"devDependencies": {
"@types/markdown-escape": "^1.1.3"
}
}
@@ -7,7 +7,7 @@ const subcommands = [
'introduction',
'invite',
'timezones',
'creators',
'credits',
] as const;
type Subcommand = (typeof subcommands)[number];
@@ -16,7 +16,7 @@ const DOCS: Record<Subcommand, string> = {
introduction: 'guide/introduction',
invite: 'guide/invite',
timezones: 'guide/timezones',
creators: 'guide/creators',
credits: 'about/credits',
};
export const aboutCommand = new Promise<CommandRegistry>(async (resolve) => {
@@ -28,10 +28,10 @@ export const aboutCommand = new Promise<CommandRegistry>(async (resolve) => {
async handler(interaction) {
const subcommand = interaction.options.getSubcommand();
const { t } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
if (subcommand === 'commands') {
return t`bot.commands.about.subcommands.commands.body${(
return `${strings.bot.commands.about.subcommands.commands.body}${(
await Promise.all(COMMANDS_RAW)
)
.sort((a, b) =>
+144
View File
@@ -0,0 +1,144 @@
import {
BlitzTankClass,
Region,
regionToRegionSubdomain,
} from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import { tankDefinitions } from '../core/blitzkit/nonBlockingPromises';
import { chunkLines } from '../core/discord/chunkLines';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
type Auction = null | {
count: number;
has_next: boolean;
results: Result[];
};
type Result =
| {
id?: number;
type: 'vehicle';
countable?: boolean;
entity?: Entity;
initial_count: number;
current_count: number;
saleable?: boolean;
available_from?: Date;
available_before?: Date;
price?: Price;
next_price: Price | null;
available: true;
display?: boolean;
next_price_datetime: Date;
next_price_timestamp: number;
}
| {
available: false;
type: 'vehicle';
};
interface Entity {
id: number;
name: string;
nation: string;
subnation: string;
use_subnation_flag: boolean;
type_slug: BlitzTankClass;
level: number;
roman_level: string;
user_string: string;
image_url: string;
preview_image_url: string;
is_premium: boolean;
is_collectible: boolean;
}
interface Price {
currency: Currency;
value: number;
}
interface Currency {
name: 'gold';
count: number;
title: 'Gold';
image_url: string;
sizes: unknown;
type: 'currency';
}
const WARNING_COUNT = 500;
export const auctionCommand = new Promise<CommandRegistry>((resolve) => {
resolve({
command: createLocalizedCommand('auction'),
async handler(interaction) {
const { strings } = translator(interaction.locale);
const awaitedTankDefinitions = await tankDefinitions;
const region: Region = 'com';
const pageSize = 80;
const saleable = true;
const data = await fetch(
`https://${regionToRegionSubdomain(
region,
)}.wotblitz.com/en/api/events/items/auction/?page_size=${
pageSize
}&type[]=vehicle&saleable=${saleable}`,
).then((response) => response.json() as Promise<Auction>);
if (data === null) {
return strings.bot.commands.auction.errors.no_auction;
}
const saleableTanks = data.results.filter((result) => result.available);
const nextPricesTimestamp = saleableTanks[0].next_price_timestamp;
const title = `# ${strings.bot.commands.auction.body.title}`;
const subtitle = `${literals(strings.bot.commands.auction.body.subtitle, [
`${saleableTanks.length} / ${data.results.length}`,
`<t:${nextPricesTimestamp}:R>`,
'<https://wotblitz.com/auction/>',
])}`;
const body = saleableTanks.map((data, index) => {
const tank = awaitedTankDefinitions.tanks[data.entity!.id];
if (!tank) return '';
const name = `[${tank.name}](<https://blitzkit.app/tools/tankopedia/${
tank.id
}>)`;
const next =
data.next_price === null
? ''
: `\n-# ${literals(strings.bot.commands.auction.body.next, [
`<:gold:1317173197082333244> ${data.next_price.value.toLocaleString(
interaction.locale,
)}`,
])}`;
const available = literals(
strings.bot.commands.auction.body.available,
[
data.current_count.toLocaleString(interaction.locale),
data.initial_count.toLocaleString(interaction.locale),
],
);
const isOut = data.current_count === 0;
const outString = isOut ? '~~' : '';
const isLow = data.current_count <= WARNING_COUNT;
return `${index + 1}. ${
outString
}${name} <:gold:1317173197082333244> ${data.price!.value.toLocaleString(
interaction.locale,
)}${outString}\n-#${isLow ? ' ‼️ ' : ' '}${available}${isOut ? '' : next}`;
});
const header = `${title}\n${subtitle}`;
const lines = [header, ...body];
return chunkLines(lines, '\n\n');
},
});
});
@@ -1,18 +1,18 @@
import { getBlitzStarsLinkButton } from '../../core/blitzstars/getBlitzStarsLinkButton';
import addPeriodicFilterOptions from '../../core/discord/addPeriodicFilterOptions';
import addUsernameChoices from '../../core/discord/addUsernameChoices';
import autocompleteTanks from '../../core/discord/autocompleteTanks';
import autocompleteUsername from '../../core/discord/autocompleteUsername';
import { addPeriodicFilterOptions } from '../../core/discord/addPeriodicFilterOptions';
import { addUsernameChoices } from '../../core/discord/addUsernameChoices';
import { autocompleteTanks } from '../../core/discord/autocompleteTanks';
import { autocompleteUsername } from '../../core/discord/autocompleteUsername';
import { buttonRefresh } from '../../core/discord/buttonRefresh';
import commandToURL from '../../core/discord/commandToURL';
import { commandToURL } from '../../core/discord/commandToURL';
import { createLocalizedCommand } from '../../core/discord/createLocalizedCommand';
import { getCustomPeriodParams } from '../../core/discord/getCustomPeriodParams';
import { getFiltersFromButton } from '../../core/discord/getFiltersFromButton';
import { getFiltersFromCommand } from '../../core/discord/getFiltersFromCommand';
import resolvePeriodFromButton from '../../core/discord/resolvePeriodFromButton';
import resolvePeriodFromCommand from '../../core/discord/resolvePeriodFromCommand';
import resolvePlayerFromButton from '../../core/discord/resolvePlayerFromButton';
import resolvePlayerFromCommand from '../../core/discord/resolvePlayerFromCommand';
import { resolvePeriodFromButton } from '../../core/discord/resolvePeriodFromButton';
import { resolvePeriodFromCommand } from '../../core/discord/resolvePeriodFromCommand';
import { resolvePlayerFromButton } from '../../core/discord/resolvePlayerFromButton';
import { resolvePlayerFromCommand } from '../../core/discord/resolvePlayerFromCommand';
import { CommandRegistry } from '../../events/interactionCreate';
import { renderBreakdown } from './render';
@@ -1,26 +1,28 @@
import { Locale } from 'discord.js';
import { chunk } from 'lodash';
import * as Breakdown from '../../components/Breakdown';
import CommandWrapper from '../../components/CommandWrapper';
import NoData from '../../components/NoData';
import TitleBar from '../../components/TitleBar';
import { AllStats, getAccountInfo } from '../../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../../core/blitz/getClanAccountInfo';
import getTankStats from '../../core/blitz/getTankStats';
import { filtersToDescription } from '../../core/blitzkit/filtersToDescription';
import {
BlitzStats,
calculateWN8,
getAccountInfo,
getClanAccountInfo,
getTankStats,
getWN8Percentile,
TankDefinition,
tankDefinitions,
} from '../../core/blitzkit/tankDefinitions';
import getStatsInPeriod from '../../core/blitzstars/getStatsInPeriod';
import { tankAverages } from '../../core/blitzstars/tankAverages';
} from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import { Locale } from 'discord.js';
import { chunk } from 'lodash-es';
import * as Breakdown from '../../components/Breakdown';
import { CommandWrapper } from '../../components/CommandWrapper';
import { NoData } from '../../components/NoData';
import { TitleBar } from '../../components/TitleBar';
import { filtersToDescription } from '../../core/blitzkit/filtersToDescription';
import { tankDefinitions } from '../../core/blitzkit/nonBlockingPromises';
import { UserError } from '../../core/blitzkit/userError';
import { filterStats, StatFilters } from '../../core/blitzstars/filterStats';
import { getStatsInPeriod } from '../../core/blitzstars/getStatsInPeriod';
import { blitzStarsTankAverages } from '../../core/blitzstars/tankAverages';
import { ResolvedPeriod } from '../../core/discord/resolvePeriodFromCommand';
import { ResolvedPlayer } from '../../core/discord/resolvePlayerFromCommand';
import { translator } from '../../core/localization/translator';
import calculateWN8 from '../../core/statistics/calculateWN8';
import { StatFilters, filterStats } from '../../core/statistics/filterStats';
import getWN8Percentile from '../../core/statistics/getWN8Percentile';
import { UserError } from '../../hooks/userError';
const ROWS_PER_PAGE = 8;
const MAX_PAGES = 9;
@@ -31,23 +33,23 @@ export async function renderBreakdown(
filters: StatFilters,
locale: Locale,
) {
const { t, translate } = translator(locale);
const { strings, unwrap } = translator(locale);
const awaitedTankDefinitions = await tankDefinitions;
const awaitedTankAverages = await tankAverages;
const awaitedTankAverages = await blitzStarsTankAverages;
const statsInPeriod = await getStatsInPeriod(region, id, start, end, locale);
const { filteredOrder } = await filterStats(statsInPeriod, filters);
const accountInfo = await getAccountInfo(region, id);
const clanData = await getClanAccountInfo(region, id, ['clan']);
const tankStats = await getTankStats(region, id);
const filterDescriptions = await filtersToDescription(filters, locale);
const orderedCurrentStats: AllStats[] = [];
const orderedCareerStats: AllStats[] = [];
const orderedCurrentStats: BlitzStats[] = [];
const orderedCareerStats: BlitzStats[] = [];
const orderedCurrentWN8: (number | undefined)[] = [];
const orderedCareerWN8: (number | undefined)[] = [];
const orderedCareerWN8Full: (number | undefined)[] = [];
if (tankStats === null) {
throw new UserError(t`bot.common.errors.no_tank_stats`);
throw new UserError(strings.bot.common.errors.no_tank_stats);
}
filteredOrder.forEach((id) => {
@@ -134,22 +136,22 @@ export async function renderBreakdown(
children.push(
<Breakdown.Row
key={id}
type="summary"
title={t`bot.commands.breakdown.body.total`}
displayType="summary"
title={strings.bot.commands.breakdown.body.total}
stats={[
{
title: t`bot.commands.breakdown.body.battles`,
title: strings.bot.commands.breakdown.body.battles,
current: currentBattles,
career: careerBattles,
},
{
title: t`bot.commands.breakdown.body.winrate`,
title: strings.bot.commands.breakdown.body.winrate,
current: `${(100 * currentWinrate).toFixed(2)}%`,
career: `${(100 * careerWinrate).toFixed(2)}%`,
delta: currentWinrate - careerWinrate,
},
{
title: t`bot.commands.breakdown.body.wn8`,
title: strings.bot.commands.breakdown.body.wn8,
current:
currentWN8 === undefined
? undefined
@@ -164,7 +166,7 @@ export async function renderBreakdown(
: getWN8Percentile(currentWN8),
},
{
title: t`bot.commands.breakdown.body.damage`,
title: strings.bot.commands.breakdown.body.damage,
current: Math.round(currentDamage).toLocaleString(),
career: Math.round(careerDamage).toLocaleString(),
delta: currentDamage - careerDamage,
@@ -174,7 +176,7 @@ export async function renderBreakdown(
);
filteredOrder.forEach((id, index) => {
const tankDefinition = awaitedTankDefinitions[id] as
const tankDefinition = awaitedTankDefinitions.tanks[id] as
| TankDefinition
| undefined;
const current = orderedCurrentStats[index];
@@ -185,21 +187,24 @@ export async function renderBreakdown(
children.push(
<Breakdown.Row
key={id}
type="tank"
tankType={tankDefinition?.class}
treeType={tankDefinition?.treeType}
displayType="tank"
class={tankDefinition?.class}
type={tankDefinition?.type}
title={
tankDefinition?.name ??
translate('bot.commands.breakdown.body.unknown_tank', [`${id}`])
tankDefinition
? unwrap(tankDefinition.name)
: literals(strings.bot.commands.breakdown.body.unknown_tank, [
`${id}`,
])
}
stats={[
{
title: t`bot.commands.breakdown.body.battles`,
title: strings.bot.commands.breakdown.body.battles,
current: current.battles.toLocaleString(),
career: career.battles.toLocaleString(),
},
{
title: t`bot.commands.breakdown.body.winrate`,
title: strings.bot.commands.breakdown.body.winrate,
current: `${(100 * (current.wins / current.battles)).toFixed(
2,
)}%`,
@@ -208,7 +213,7 @@ export async function renderBreakdown(
current.wins / current.battles - career.wins / career.battles,
},
{
title: t`bot.commands.breakdown.body.wn8`,
title: strings.bot.commands.breakdown.body.wn8,
current:
currentWN8 === undefined
? undefined
@@ -223,7 +228,7 @@ export async function renderBreakdown(
: getWN8Percentile(currentWN8),
},
{
title: t`bot.commands.breakdown.body.damage`,
title: strings.bot.commands.breakdown.body.damage,
current: Math.round(
current.damage_dealt / current.battles,
).toLocaleString(),
@@ -1,4 +1,4 @@
import packageJSON from '../../package.json' assert { type: 'json' };
import packageJSON from '../../../../package.json';
import { client } from '../core/discord/client';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { translator } from '../core/localization/translator';
@@ -11,17 +11,17 @@ export const debugCommand = new Promise<CommandRegistry>((resolve) => {
command: createLocalizedCommand('debug'),
async handler(interaction) {
const { t } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
const currentTime = new Date().getTime();
const uptime = currentTime - executionStart;
const list = [
[t`bot.commands.debug.body.version`, packageJSON.version],
[strings.bot.commands.debug.body.version, packageJSON.version],
[
t`bot.commands.debug.body.shard`,
client.shard?.ids[0] ?? t`bot.commands.debug.body.shard.default`,
strings.bot.commands.debug.body.shard,
client.shard?.ids[0] ?? strings.bot.commands.debug.body.shard.default,
],
[
t`bot.commands.debug.body.uptime`,
strings.bot.commands.debug.body.uptime,
`${Math.floor((uptime / 1000 / 60 / 60) % 24)}h ${Math.floor(
(uptime / 1000 / 60) % 60,
)}m ${Math.floor((uptime / 1000) % 60)}s ${Math.floor(
@@ -29,7 +29,7 @@ export const debugCommand = new Promise<CommandRegistry>((resolve) => {
)}ms`,
],
];
return t`bot.commands.debug.body.title${list
return `${strings.bot.commands.debug.body.title}${list
.map(([key, value]) => `- ${key}: ${value}`)
.join('\n')}`;
},
@@ -1,32 +1,32 @@
import { emblemURL, getAccountInfo, getClanAccountInfo } from '@blitzkit/core';
import { Locale, SlashCommandSubcommandGroupBuilder } from 'discord.js';
import CommandWrapper from '../components/CommandWrapper';
import { CommandWrapper } from '../components/CommandWrapper';
import * as Graph from '../components/Graph';
import { LineColor } from '../components/Graph/components/Line/constants';
import NoData from '../components/NoData';
import TitleBar from '../components/TitleBar';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo';
import resolveTankId from '../core/blitz/resolveTankId';
import { emblemURL } from '../core/blitzkit/emblemURL';
import getTankHistories from '../core/blitzkit/getTankHistories';
import { NoData } from '../components/NoData';
import { TitleBar } from '../components/TitleBar';
import { resolveTankId } from '../core/blitz/resolveTankId';
import { getBlitzStarsLinkButton } from '../core/blitzstars/getBlitzStarsLinkButton';
import getPlayerHistories from '../core/blitzstars/getPlayerHistories';
import { getPlayerHistories } from '../core/blitzstars/getPlayerHistories';
import { getTankHistories } from '../core/blitzstars/getTankHistories';
import { addPeriodSubCommands } from '../core/discord/addPeriodSubCommands';
import addTankChoices from '../core/discord/addTankChoices';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import autocompleteTanks from '../core/discord/autocompleteTanks';
import autocompleteUsername from '../core/discord/autocompleteUsername';
import { addTankChoices } from '../core/discord/addTankChoices';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { autocompleteTanks } from '../core/discord/autocompleteTanks';
import { autocompleteUsername } from '../core/discord/autocompleteUsername';
import { buttonRefresh } from '../core/discord/buttonRefresh';
import commandToURL from '../core/discord/commandToURL';
import { commandToURL } from '../core/discord/commandToURL';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { getCustomPeriodParams } from '../core/discord/getCustomPeriodParams';
import resolvePeriodFromButton from '../core/discord/resolvePeriodFromButton';
import resolvePeriodFromCommand, {
import { resolvePeriodFromButton } from '../core/discord/resolvePeriodFromButton';
import {
ResolvedPeriod,
resolvePeriodFromCommand,
} from '../core/discord/resolvePeriodFromCommand';
import resolvePlayerFromButton from '../core/discord/resolvePlayerFromButton';
import resolvePlayerFromCommand, {
import { resolvePlayerFromButton } from '../core/discord/resolvePlayerFromButton';
import {
ResolvedPlayer,
resolvePlayerFromCommand,
} from '../core/discord/resolvePlayerFromCommand';
import { CommandRegistry } from '../events/interactionCreate';
@@ -1,35 +1,39 @@
import {
emblemURL,
getAccountInfo,
getClanAccountInfo,
getTierWeights,
} from '@blitzkit/core';
import { Locale } from 'discord.js';
import CommandWrapper from '../components/CommandWrapper';
import GenericAllStats from '../components/GenericAllStats';
import NoData from '../components/NoData';
import TierWeights from '../components/TierWeights';
import TitleBar from '../components/TitleBar';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo';
import { emblemURL } from '../core/blitzkit/emblemURL';
import { CommandWrapper } from '../components/CommandWrapper';
import { GenericAllStats } from '../components/GenericAllStats';
import { NoData } from '../components/NoData';
import { TierWeights } from '../components/TierWeights';
import { TitleBar } from '../components/TitleBar';
import { filtersToDescription } from '../core/blitzkit/filtersToDescription';
import { filterStats, StatFilters } from '../core/blitzstars/filterStats';
import { getBlitzStarsLinkButton } from '../core/blitzstars/getBlitzStarsLinkButton';
import getStatsInPeriod from '../core/blitzstars/getStatsInPeriod';
import addPeriodicFilterOptions from '../core/discord/addPeriodicFilterOptions';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import autocompleteTanks from '../core/discord/autocompleteTanks';
import autocompleteUsername from '../core/discord/autocompleteUsername';
import { getStatsInPeriod } from '../core/blitzstars/getStatsInPeriod';
import { addPeriodicFilterOptions } from '../core/discord/addPeriodicFilterOptions';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { autocompleteTanks } from '../core/discord/autocompleteTanks';
import { autocompleteUsername } from '../core/discord/autocompleteUsername';
import { buttonRefresh } from '../core/discord/buttonRefresh';
import commandToURL from '../core/discord/commandToURL';
import { commandToURL } from '../core/discord/commandToURL';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { getCustomPeriodParams } from '../core/discord/getCustomPeriodParams';
import { getFiltersFromButton } from '../core/discord/getFiltersFromButton';
import { getFiltersFromCommand } from '../core/discord/getFiltersFromCommand';
import resolvePeriodFromButton from '../core/discord/resolvePeriodFromButton';
import resolvePeriodFromCommand, {
import { resolvePeriodFromButton } from '../core/discord/resolvePeriodFromButton';
import {
ResolvedPeriod,
resolvePeriodFromCommand,
} from '../core/discord/resolvePeriodFromCommand';
import resolvePlayerFromButton from '../core/discord/resolvePlayerFromButton';
import resolvePlayerFromCommand, {
import { resolvePlayerFromButton } from '../core/discord/resolvePlayerFromButton';
import {
ResolvedPlayer,
resolvePlayerFromCommand,
} from '../core/discord/resolvePlayerFromCommand';
import { StatFilters, filterStats } from '../core/statistics/filterStats';
import { getTierWeights } from '../core/statistics/getTierWeights';
import { CommandRegistry } from '../events/interactionCreate';
async function render(
@@ -1,15 +1,15 @@
import { getAccountInfo, getClanInfo } from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import { Locale } from 'discord.js';
import CommandWrapper from '../components/CommandWrapper';
import GenericStats from '../components/GenericStats';
import NoData from '../components/NoData';
import TitleBar from '../components/TitleBar';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanInfo } from '../core/blitz/getClanInfo';
import addClanChoices from '../core/discord/addClanChoices';
import autocompleteClan from '../core/discord/autocompleteClan';
import { CommandWrapper } from '../components/CommandWrapper';
import { GenericStats } from '../components/GenericStats';
import { NoData } from '../components/NoData';
import { TitleBar } from '../components/TitleBar';
import { addClanChoices } from '../core/discord/addClanChoices';
import { autocompleteClan } from '../core/discord/autocompleteClan';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { localizationObject } from '../core/discord/localizationObject';
import resolveClanFromCommand from '../core/discord/resolveClanFromCommand';
import { resolveClanFromCommand } from '../core/discord/resolveClanFromCommand';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
@@ -20,26 +20,31 @@ export const inactiveCommand = new Promise<CommandRegistry>((resolve) => {
command: createLocalizedCommand('inactive')
.addStringOption(addClanChoices)
.addNumberOption((option) => {
const { translate } = translator(Locale.EnglishUS);
const { strings } = translator(Locale.EnglishUS);
return option
.setName('threshold')
.setNameLocalizations(
localizationObject('bot.commands.inactive.options.threshold'),
localizationObject(
(strings) => strings.bot.commands.inactive.options.threshold.name,
undefined,
true,
),
)
.setDescription(
translate('bot.commands.inactive.options.threshold.description'),
strings.bot.commands.inactive.options.threshold.description,
)
.setDescriptionLocalizations(
localizationObject(
'bot.commands.inactive.options.threshold.description',
(strings) =>
strings.bot.commands.inactive.options.threshold.description,
),
)
.setMinValue(0);
}),
async handler(interaction) {
const { translate } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
const { region, id } = await resolveClanFromCommand(interaction);
const threshold =
interaction.options.getNumber('threshold')! ?? DEFAULT_THRESHOLD;
@@ -60,7 +65,7 @@ export const inactiveCommand = new Promise<CommandRegistry>((resolve) => {
([name, days]) =>
[
name,
translate('bot.commands.inactive.body.listing', [
literals(strings.bot.commands.inactive.body.listing, [
days.toFixed(0),
]),
] as [string, string],
@@ -72,7 +77,10 @@ export const inactiveCommand = new Promise<CommandRegistry>((resolve) => {
<TitleBar
title={clanInfo.name}
image={`https://wotblitz-gc.gcdn.co/icons/clanEmblems1x/clan-icon-v2-${clanInfo.emblem_set_id}.png`}
description={`${translate('bot.commands.inactive.body.subtitle', [`${threshold}`])} • ${new Date().toLocaleDateString(interaction.locale)}`}
description={`${literals(
strings.bot.commands.inactive.body.subtitle,
[`${threshold}`],
)} • ${new Date().toLocaleDateString(interaction.locale)}`}
/>
{!hasInactiveMembers && (
@@ -1,14 +1,16 @@
import {
getAccountInfo,
getClanAccountInfo,
linkBlitzAndDiscord,
} from '@blitzkit/core';
import { teal } from '@radix-ui/colors';
import { Glow } from '../components/AllStatsOverview/components/HeroStat/components/Glow';
import CommandWrapper from '../components/CommandWrapper';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo';
import { linkBlitzAndDiscord } from '../core/blitzkit/discordBlitzLink';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import autocompleteUsername from '../core/discord/autocompleteUsername';
import { CommandWrapper } from '../components/CommandWrapper';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { autocompleteUsername } from '../core/discord/autocompleteUsername';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import embedInfo from '../core/discord/embedInfo';
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand';
import { embedInfo } from '../core/discord/embedInfo';
import { resolvePlayerFromCommand } from '../core/discord/resolvePlayerFromCommand';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
import { theme } from '../stitches.config';
@@ -20,7 +22,7 @@ export const verifyCommand = new Promise<CommandRegistry>((resolve) => {
),
async handler(interaction) {
const { t, translate } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
const { id, region } = await resolvePlayerFromCommand(interaction);
const discordId = BigInt(interaction.user.id);
const accountInfo = await getAccountInfo(region, id);
@@ -118,9 +120,9 @@ export const verifyCommand = new Promise<CommandRegistry>((resolve) => {
height: 16,
}}
/>
<span
style={{ fontSize: 16 }}
>{t`bot.commands.link.body.accounts_linked`}</span>
<span style={{ fontSize: 16 }}>
{strings.bot.commands.link.body.accounts_linked}
</span>
</div>
<div
@@ -172,7 +174,7 @@ export const verifyCommand = new Promise<CommandRegistry>((resolve) => {
{clanAccountInfo?.clan
? `[${clanAccountInfo?.clan?.tag}] • `
: ''}
{translate(`common.regions.normal.${region}`)}
{strings.common.regions.normal[region]}
</span>
</div>
</div>
@@ -183,8 +185,8 @@ export const verifyCommand = new Promise<CommandRegistry>((resolve) => {
</CommandWrapper>,
embedInfo(
t`bot.commands.link.embed.title`,
t`bot.commands.link.embed.description`,
strings.bot.commands.link.embed.title,
strings.bot.commands.link.embed.description,
),
];
},
@@ -1,26 +1,26 @@
import { chunk } from 'lodash';
import markdownEscape from 'markdown-escape';
import { TANK_CLASSES } from '../components/Tanks/components/Item/constants';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import getTankStats from '../core/blitz/getTankStats';
import { gameDefinitions } from '../core/blitzkit/gameDefinitions';
import {
TANK_CLASSES,
TIER_ROMAN_NUMERALS,
TankDefinition,
Tier,
flags,
getAccountInfo,
getTankStats,
} from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import markdownEscape from 'markdown-escape';
import {
gameDefinitions,
tankDefinitions,
} from '../core/blitzkit/tankDefinitions';
import { TIER_ROMAN_NUMERALS } from '../core/blitzkit/tankDefinitions/constants';
import addTierChoices from '../core/discord/addTierChoices';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import autocompleteUsername from '../core/discord/autocompleteUsername';
} from '../core/blitzkit/nonBlockingPromises';
import { addTierChoices } from '../core/discord/addTierChoices';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { autocompleteUsername } from '../core/discord/autocompleteUsername';
import { chunkLines } from '../core/discord/chunkLines';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand';
import { resolvePlayerFromCommand } from '../core/discord/resolvePlayerFromCommand';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
const TANKS_PER_MESSAGE = 64;
export const ownedTanksCommand = new Promise<CommandRegistry>((resolve) => {
resolve({
command: createLocalizedCommand('owned-tanks')
@@ -28,20 +28,20 @@ export const ownedTanksCommand = new Promise<CommandRegistry>((resolve) => {
.addStringOption(addUsernameChoices),
async handler(interaction) {
const { t, translate } = translator(interaction.locale);
const { strings, unwrap } = translator(interaction.locale);
const tier = Number(interaction.options.getString('tier'));
const { id, region } = await resolvePlayerFromCommand(interaction);
const accountInfo = await getAccountInfo(region, id);
const tankStats = await getTankStats(region, id);
if (tankStats === null) {
return t`bot.common.errors.no_tank_stats`;
return strings.bot.common.errors.no_tank_stats;
}
const filteredTanks = (
await Promise.all(
tankStats.map(async (tankData) => ({
tankDefinitions: (await tankDefinitions)[tankData.tank_id]!,
tankDefinitions: (await tankDefinitions).tanks[tankData.tank_id]!,
id: tankData.tank_id,
})),
)
@@ -60,8 +60,12 @@ export const ownedTanksCommand = new Promise<CommandRegistry>((resolve) => {
const awaitedTankDefinitions = await tankDefinitions;
const awaitedGameDefinitions = await gameDefinitions;
const lines = tankStats
.map(({ tank_id }) => awaitedTankDefinitions[tank_id])
const title = literals(strings.bot.commands.owned_tanks.body.title, [
markdownEscape(accountInfo.nickname),
TIER_ROMAN_NUMERALS[tier],
]);
const tankList = tankStats
.map(({ tank_id }) => awaitedTankDefinitions.tanks[tank_id])
.filter((tank) => tank.tier === tier)
.sort(
(a, b) =>
@@ -72,16 +76,13 @@ export const ownedTanksCommand = new Promise<CommandRegistry>((resolve) => {
awaitedGameDefinitions.nations.indexOf(a.nation) -
awaitedGameDefinitions.nations.indexOf(b.nation),
)
.map((tank) => `${flags[tank.nation]} ${markdownEscape(tank.name)}`);
.map(
(tank) =>
`[${flags[tank.nation]} ${markdownEscape(unwrap(tank.name))}](<https://blitzkit.app/tools/tankopedia/${tank.id}>)`,
);
const lines = [title, ...tankList];
return chunk(lines, TANKS_PER_MESSAGE).map((lines, index) =>
index === 0
? `${translate('bot.commands.owned_tanks.body.title', [
markdownEscape(accountInfo.nickname),
TIER_ROMAN_NUMERALS[tier as Tier],
])}${lines.join('\n')}`
: lines.join('\n'),
);
return chunkLines(lines);
},
autocomplete: autocompleteUsername,
@@ -1,3 +1,4 @@
import { literals } from '@blitzkit/i18n';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
@@ -7,26 +8,26 @@ export const permissionsCommand = new Promise<CommandRegistry>((resolve) => {
command: createLocalizedCommand('permissions'),
async handler(interaction) {
const { t, translate } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
// friday the 13th permissions easter egg
const isFridayThe13th =
new Date().getDay() === 5 && new Date().getDate() === 13;
const permissions = [
[
interaction.appPermissions?.has('ViewChannel'),
t`bot.commands.permissions.body.view_channels`,
strings.bot.commands.permissions.body.view_channels,
],
[
interaction.appPermissions?.has('ReadMessageHistory'),
t`bot.commands.permissions.body.read_message_history`,
strings.bot.commands.permissions.body.read_message_history,
],
[
interaction.appPermissions?.has('AttachFiles'),
t`bot.commands.permissions.body.attach_files`,
strings.bot.commands.permissions.body.attach_files,
],
[
interaction.appPermissions?.has('UseExternalEmojis'),
t`bot.commands.permissions.body.external_emojis`,
strings.bot.commands.permissions.body.external_emojis,
],
];
const body = permissions
@@ -39,7 +40,7 @@ export const permissionsCommand = new Promise<CommandRegistry>((resolve) => {
})
.join('\n');
return translate('bot.commands.permissions.body.title', [body]);
return literals(strings.bot.commands.permissions.body.title, [body]);
},
});
});
@@ -1,3 +1,4 @@
import { literals } from '@blitzkit/i18n';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
@@ -12,19 +13,19 @@ export const pingCommand = new Promise<CommandRegistry>((resolve) => {
]),
async handler(interaction) {
const { t, translate } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
const subcommand = interaction.options.getSubcommand();
const executionStart = Date.now();
if (subcommand === 'blitzkit') {
await interaction.editReply(t`bot.commands.ping.body.pong`);
await interaction.editReply(strings.bot.commands.ping.body.pong);
} else {
await fetch('https://api.wotblitz.com/');
}
const executionTime = Date.now() - executionStart;
interaction.editReply(
translate('bot.commands.ping.body.pong_with_time', [
literals(strings.bot.commands.ping.body.pong_with_time, [
`${Math.round(executionTime)}`,
]),
);
@@ -1,11 +1,12 @@
import { getAccountInfo } from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import markdownEscape from 'markdown-escape';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import autocompleteUsername from '../core/discord/autocompleteUsername';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { autocompleteUsername } from '../core/discord/autocompleteUsername';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import embedInfo from '../core/discord/embedInfo';
import markdownTable from '../core/discord/markdownTable';
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand';
import { embedInfo } from '../core/discord/embedInfo';
import { markdownTable } from '../core/discord/markdownTable';
import { resolvePlayerFromCommand } from '../core/discord/resolvePlayerFromCommand';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
@@ -15,27 +16,27 @@ export const playerInfoCommand = new Promise<CommandRegistry>((resolve) => {
createLocalizedCommand('player-info').addStringOption(addUsernameChoices),
async handler(interaction) {
const { t, translate } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
const account = await resolvePlayerFromCommand(interaction);
const { id, region: region } = account;
const accountInfo = await getAccountInfo(region, id);
return embedInfo(
translate('bot.commands.player_info.body.title', [
literals(strings.bot.commands.player_info.body.title, [
markdownEscape(accountInfo.nickname),
]),
markdownTable([
[
t`bot.commands.player_info.body.nickname`,
strings.bot.commands.player_info.body.nickname,
`${accountInfo.nickname}`,
],
[
t`bot.commands.player_info.body.battles`,
strings.bot.commands.player_info.body.battles,
`${accountInfo.statistics.all.battles}`,
],
[
t`bot.commands.player_info.body.winrate`,
strings.bot.commands.player_info.body.winrate,
`${(
100 *
(accountInfo.statistics.all.wins /
@@ -44,17 +45,17 @@ export const playerInfoCommand = new Promise<CommandRegistry>((resolve) => {
],
[],
[
t`bot.commands.player_info.body.account_id`,
strings.bot.commands.player_info.body.account_id,
`${accountInfo.account_id}`,
],
[
t`bot.commands.player_info.body.created`,
strings.bot.commands.player_info.body.created,
new Date(accountInfo.created_at * 1000).toLocaleDateString(
interaction.locale,
),
],
[
t`bot.commands.player_info.body.last_battle`,
strings.bot.commands.player_info.body.last_battle,
new Date(accountInfo.last_battle_time * 1000).toLocaleDateString(
interaction.locale,
),
@@ -1,24 +1,27 @@
import {
deltaBkrlBlitzStats,
emblemURL,
getAccountInfo,
getArchivedRatingLeaderboard,
getClanAccountInfo,
getLeagueFromScore,
getRatingInfo,
getRatingNeighbors,
imgur,
} from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import { SlashCommandSubcommandBuilder } from 'discord.js';
import markdownEscape from 'markdown-escape';
import { Glow } from '../components/AllStatsOverview/components/HeroStat/components/Glow';
import CommandWrapper from '../components/CommandWrapper';
import { CommandWrapper } from '../components/CommandWrapper';
import { DeltaCaret } from '../components/DeltaCaret';
import TitleBar from '../components/TitleBar';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo';
import { getLeagueFromScore } from '../core/blitz/getLeagueFromScore';
import getRatingInfo from '../core/blitz/getRatingInfo';
import { getRatingNeighbors } from '../core/blitz/getRatingNeighbors';
import { TitleBar } from '../components/TitleBar';
import { normalizeLeagueIcon } from '../core/blitz/normalizeLeagueIcon';
import { emblemURL } from '../core/blitzkit/emblemURL';
import getArchivedRatingMidnightLeaderboard from '../core/blitzkit/getArchivedRatingMidnightLeaderboard';
import { iconPng } from '../core/blitzkit/iconPng';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand';
import { resolvePlayerFromCommand } from '../core/discord/resolvePlayerFromCommand';
import { translator } from '../core/localization/translator';
import { deltaBkrlBlitzStats } from '../core/statistics/deltaBkrlBlitzStats';
import { BkrlFormat } from '../core/streams/bkrl';
import { CommandRegistry } from '../events/interactionCreate';
import { theme } from '../stitches.config';
@@ -51,7 +54,7 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
const subcommand = interaction.options.getSubcommand(true) as
| 'season'
| 'today';
const { t, translate } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
const { id, region } = await resolvePlayerFromCommand(interaction);
const clan = (await getClanAccountInfo(region, id, ['clan']))?.clan;
const clanImage = clan ? emblemURL(clan.emblem_set_id) : undefined;
@@ -62,12 +65,12 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
throw new Error(`Rating info not available for ${region}`);
}
const leaderboard = await getArchivedRatingMidnightLeaderboard(
const leaderboard = await getArchivedRatingLeaderboard(
region,
ratingInfo.current_season - (subcommand === 'today' ? 0 : 1),
);
if (leaderboard?.format === BkrlFormat.Base) {
if (leaderboard.version!.$case === 'v1') {
throw new Error(
'Encountered bkrl minimal format in latest season. Wait till next cron?',
);
@@ -76,16 +79,18 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
const accountInfo = await getAccountInfo(region, id, [
'statistics.rating',
]);
const statsIndex = leaderboard?.entries.findIndex(
const statsIndex = leaderboard.version!.value.entries.findIndex(
(entry) => entry.id === id,
);
const statsA = leaderboard ? leaderboard.entries[statsIndex!] : null;
const statsA = leaderboard
? leaderboard.version!.value.entries[statsIndex!]
: null;
const positionA = leaderboard ? statsIndex! + 1 : undefined;
const statsB1 = accountInfo.statistics.rating!;
const statsB2Array = (await getRatingNeighbors(region, id, 0)).neighbors;
if (statsB2Array === undefined) {
return translate('bot.commands.rating.errors.no_participation', [
return literals(strings.bot.commands.rating.errors.no_participation, [
markdownEscape(accountInfo.nickname),
]);
}
@@ -94,10 +99,10 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
const league = getLeagueFromScore(statsB2.score);
if (!statsA) {
return t`bot.commands.rating.errors.unrecorded_stats`;
return strings.bot.commands.rating.errors.unrecorded_stats;
}
if (!statsB1) {
return translate('bot.commands.rating.errors.no_participation', [
return literals(strings.bot.commands.rating.errors.no_participation, [
markdownEscape(accountInfo.nickname),
]);
}
@@ -116,15 +121,28 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
statsB2,
);
const leagueTheme = LEAGUE_ACCENT[league.index];
let rewardImage = reward
? reward.type === 'vehicle'
? reward.vehicle.preview_image_url
: reward.stuff.image_url
: undefined;
if (rewardImage) {
const { ok } = await fetch(rewardImage);
if (!ok) {
rewardImage = imgur('kP88vqr');
}
}
return (
<CommandWrapper>
<TitleBar
title={accountInfo.nickname}
image={clanImage}
description={`${translate(`bot.commands.rating.body.subtitle.${subcommand}`)} • ${new Date().toLocaleDateString(
interaction.locale,
)}`}
description={`${
strings.bot.commands.rating.body.subtitle[subcommand]
} • ${new Date().toLocaleDateString(interaction.locale)}`}
/>
<div
@@ -140,7 +158,9 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
padding: 16,
backgroundColor: theme.colors[`appBackground2${leagueTheme}`],
borderRadius: 4,
border: `1px solid ${theme.colors[`componentInteractive${leagueTheme}`]}`,
border: `1px solid ${
theme.colors[`componentInteractive${leagueTheme}`]
}`,
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
@@ -320,11 +340,7 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
height: 64,
objectFit: 'cover',
}}
src={await iconPng(
reward.type === 'vehicle'
? reward.vehicle.preview_image_url
: reward.stuff.image_url,
)}
src={await iconPng(rewardImage!)}
/>
</div>
)}
@@ -1,123 +1,39 @@
import {
FIRST_MINIMAL_ARCHIVED_RATING_SEASON,
getAccountInfo,
getArchivedLatestSeasonNumber,
getArchivedRatingLeaderboard,
getClanAccountInfo,
getRatingInfo,
getRatingLeague,
getRatingNeighbors,
imgur,
isOnGoingRatingSeason,
LEAGUES,
RatingInfo,
RatingLeaderboard,
Region,
} from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import {
APIApplicationCommandOptionChoice,
Locale,
SlashCommandSubcommandBuilder,
} from 'discord.js';
import { range } from 'lodash';
import { range } from 'lodash-es';
import markdownEscape from 'markdown-escape';
import CommandWrapper from '../components/CommandWrapper';
import { CommandWrapper } from '../components/CommandWrapper';
import * as Leaderboard from '../components/Leaderboard';
import TitleBar from '../components/TitleBar';
import { LEAGUES } from '../constants/leagues';
import { FIRST_MINIMAL_ARCHIVED_RATING_SEASON } from '../constants/rating';
import { Region } from '../constants/regions';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo';
import getRatingInfo from '../core/blitz/getRatingInfo';
import { getRatingLeague } from '../core/blitz/getRatingLeague';
import { getRatingNeighbors } from '../core/blitz/getRatingNeighbors';
import { isOnGoingRatingSeason } from '../core/blitz/isOnGoingRatingSeason';
import { getArchivedLatestSeasonNumber } from '../core/blitzkit/getArchivedLatestSeasonNumber';
import getArchivedRatingInfo from '../core/blitzkit/getArchivedRatingInfo';
import { getArchivedRatingLeaderboard } from '../core/blitzkit/getArchivedRatingLeaderboard';
import getArchivedRatingMidnightLeaderboard from '../core/blitzkit/getArchivedRatingMidnightLeaderboard';
import addRegionChoices from '../core/discord/addRegionChoices';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import autocompleteUsername from '../core/discord/autocompleteUsername';
import { TitleBar } from '../components/TitleBar';
import { UserError } from '../core/blitzkit/userError';
import { addRegionChoices } from '../core/discord/addRegionChoices';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { autocompleteUsername } from '../core/discord/autocompleteUsername';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { localizationObject } from '../core/discord/localizationObject';
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand';
import { resolvePlayerFromCommand } from '../core/discord/resolvePlayerFromCommand';
import { translator } from '../core/localization/translator';
import { BkrlDiscriminatedEntries } from '../core/streams/bkrl';
import { CommandRegistry } from '../events/interactionCreate';
import { UserError } from '../hooks/userError';
export interface RatingPlayer {
spa_id: number;
mmr: number;
season_number: number;
calibrationBattlesLeft: number;
number: number;
percentile: number;
skip: boolean;
updated_at: string;
score: number;
nickname: string;
clan_tag: string;
}
export interface LeagueTop {
result: RatingPlayer[];
}
export type RatingReward = {
from_position: number;
to_position: number;
count: number;
} & (
| {
type: 'vehicle';
vehicle: {
id: number;
name: string;
nation: string;
subnation: string;
use_subnation_flag: boolean;
type_slug: string;
level: number;
roman_level: string;
user_string: string;
image_url: string;
preview_image_url: string;
is_premium: boolean;
is_collectible: boolean;
};
}
| {
type: 'stuff';
stuff: {
name: string;
count: number;
title: string;
image_url: string;
type: string;
sizes: {};
};
}
);
export interface RatingLeague {
title: string;
small_icon: string;
big_icon: string;
background: string;
index: number;
percentile: number;
}
export type RatingInfo =
| {
detail: undefined;
title: string;
icon: string | null;
start_at: string;
finish_at: string;
current_season: number;
updated_at: string;
count: number;
rewards: RatingReward[];
leagues: RatingLeague[];
}
| { detail: { error: string } };
export interface RatingNeighbors {
neighbors: RatingPlayer[];
}
interface SimplifiedPlayer {
id: number;
@@ -139,26 +55,32 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
);
function addOptions(option: SlashCommandSubcommandBuilder) {
const { t, translate } = translator(Locale.EnglishUS);
const { strings } = translator(Locale.EnglishUS);
return option
.addIntegerOption((option) =>
option
.setName(t`bot.commands.rating_leaderboard.options.limit`)
.setName(strings.bot.commands.rating_leaderboard.options.limit.name)
.setNameLocalizations(
localizationObject(
'bot.commands.rating_leaderboard.options.limit',
(strings) =>
strings.bot.commands.rating_leaderboard.options.limit.name,
undefined,
true,
),
)
.setDescription(
translate(
'bot.commands.rating_leaderboard.options.limit.description',
literals(
strings.bot.commands.rating_leaderboard.options.limit
.description,
[`${DEFAULT_LIMIT}`],
),
)
.setDescriptionLocalizations(
localizationObject(
'bot.commands.rating_leaderboard.options.limit.description',
(strings) =>
strings.bot.commands.rating_leaderboard.options.limit
.description,
[`${DEFAULT_LIMIT}`],
),
)
@@ -168,20 +90,26 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
)
.addStringOption((option) =>
option
.setName(t`bot.commands.rating_leaderboard.options.season`)
.setName(
strings.bot.commands.rating_leaderboard.options.season.name,
)
.setNameLocalizations(
localizationObject(
'bot.commands.rating_leaderboard.options.season',
(strings) =>
strings.bot.commands.rating_leaderboard.options.season.name,
undefined,
true,
),
)
.setDescription(
translate(
'bot.commands.rating_leaderboard.options.season.description',
),
strings.bot.commands.rating_leaderboard.options.season
.description,
)
.setDescriptionLocalizations(
localizationObject(
'bot.commands.rating_leaderboard.options.season.description',
(strings) =>
strings.bot.commands.rating_leaderboard.options.season
.description,
),
)
.setRequired(false)
@@ -193,15 +121,18 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
return {
name: current
? translate(
'bot.commands.rating_leaderboard.options.season.choices.current',
? literals(
strings.bot.commands.rating_leaderboard.options.season
.choices.current,
[`${number}`],
)
: `${number}`,
value: `${number}`,
name_localizations: current
? localizationObject(
'bot.commands.rating_leaderboard.options.season.choices.current',
(strings) =>
strings.bot.commands.rating_leaderboard.options
.season.choices.current,
[`${number}`],
)
: undefined,
@@ -226,33 +157,45 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
modify(option: SlashCommandSubcommandBuilder) {
option
.addStringOption((option) => {
const { t, translate } = translator(Locale.EnglishUS);
const { strings } = translator(Locale.EnglishUS);
return option
.setName(t`bot.commands.rating_leaderboard.options.league`)
.setName(
strings.bot.commands.rating_leaderboard.options.league.name,
)
.setNameLocalizations(
localizationObject(
'bot.commands.rating_leaderboard.options.league',
(strings) =>
strings.bot.commands.rating_leaderboard.options.league
.name,
undefined,
true,
),
)
.setDescription(
translate(
'bot.commands.rating_leaderboard.options.league.description',
),
strings.bot.commands.rating_leaderboard.options.league
.description,
)
.setDescriptionLocalizations(
localizationObject(
'bot.commands.rating_leaderboard.options.league.description',
(strings) =>
strings.bot.commands.rating_leaderboard.options.league
.description,
),
)
.addChoices(
...LEAGUES.map(
({ name }, value) =>
({
name: translate(`common.leagues.${name}`),
name: (
strings.common.leagues as Record<string, string>
)[name],
value: `${value}`,
name_localizations: localizationObject(
`common.leagues.${name}`,
(strings) =>
(
strings.common.leagues as Record<string, string>
)[name],
),
}) satisfies APIApplicationCommandOptionChoice<string>,
),
@@ -268,7 +211,7 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
// BIG TODO: title seems to be in english
async handler(interaction) {
const { t, translate } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
const subcommand = interaction.options.getSubcommand(true) as
| 'league'
| 'neighbors';
@@ -285,9 +228,9 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
let titleDescription: string;
let playersAfter: number;
let players: SimplifiedPlayer[] | undefined;
let midnightLeaderboard: BkrlDiscriminatedEntries | null;
let archivedLeaderboard: RatingLeaderboard | null;
let playerId: number | undefined;
let regionRatingInfo: RatingInfo;
let regionRatingInfo: RatingInfo | null;
if (subcommand === 'league') {
const leagueIndex = parseInt(
@@ -296,10 +239,15 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
const region = interaction.options.getString('region') as Region;
regionRatingInfo = await (isCurrentSeason
? getRatingInfo(region)
: getArchivedRatingInfo(region, season!));
: null);
if (regionRatingInfo.detail !== undefined)
return t`bot.commands.rating_leaderboard.body.no_ongoing_season`;
if (
regionRatingInfo !== null &&
regionRatingInfo.detail !== undefined
) {
return strings.bot.commands.rating_leaderboard.body
.no_ongoing_season;
}
const result = isCurrentSeason
? await getRatingLeague(region, leagueIndex).then(async (result) =>
@@ -319,12 +267,12 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
const firstPlayerIndex =
leagueIndex === 0
? 0
: players.entries.findIndex(
: players.version!.value.entries.findIndex(
(player) =>
player.score < LEAGUES[leagueIndex - 1].minScore,
);
const lastPlayerIndex = firstPlayerIndex + limit - 1;
const trimmed = players.entries.slice(
const trimmed = players.version!.value.entries.slice(
firstPlayerIndex,
lastPlayerIndex + 1,
);
@@ -343,45 +291,51 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
clan: clanData[player.id]?.clan?.tag,
nickname:
clanData[index]?.account_name ??
translate(
'bot.commands.rating_leaderboard.body.deleted_player',
literals(
strings.bot.commands.rating_leaderboard.body
.deleted_player,
[`${player.id}`],
),
}) satisfies SimplifiedPlayer,
);
},
);
const leagueInfo = regionRatingInfo.leagues[leagueIndex];
midnightLeaderboard = isCurrentSeason
? await getArchivedRatingMidnightLeaderboard(
region,
regionRatingInfo.current_season,
)
: await getArchivedRatingMidnightLeaderboard(region, season!);
const leagueInfo = LEAGUES[leagueIndex];
archivedLeaderboard = await getArchivedRatingLeaderboard(
region,
season,
);
players = result;
playersAfter =
regionRatingInfo.count - result[result.length - 1].position;
(regionRatingInfo === null
? archivedLeaderboard.version!.value.entries.length
: regionRatingInfo.count) - result[result.length - 1].position;
titleName = `${
leagueInfo
? translate(`common.leagues.${LEAGUES[leagueInfo.index].name}`)
? (strings.common.leagues as Record<string, string>)[
LEAGUES[leagueInfo.index].name
]
: ''
} - ${translate(`common.regions.short.${region}`)}`;
titleImage = leagueInfo.big_icon.startsWith('http')
? leagueInfo.big_icon
: `https:${leagueInfo.big_icon}`;
titleDescription = translate(
'bot.commands.rating_leaderboard.body.top_players',
} - ${strings.common.regions.short[region]}`;
titleImage = imgur(leagueInfo.icon);
titleDescription = literals(
strings.bot.commands.rating_leaderboard.body.top_players,
[`${limit}`],
);
} else {
const { region, id } = await resolvePlayerFromCommand(interaction);
regionRatingInfo = isCurrentSeason
? await getRatingInfo(region)
: await getArchivedRatingInfo(region, season!);
: null;
if (regionRatingInfo.detail !== undefined)
return t`bot.commands.rating_leaderboard.body.no_ongoing_season`;
if (
regionRatingInfo !== null &&
regionRatingInfo.detail !== undefined
) {
return strings.bot.commands.rating_leaderboard.body
.no_ongoing_season;
}
const accountInfo = await getAccountInfo(region, id);
const clan = (await getClanAccountInfo(region, id, ['clan']))?.clan;
@@ -401,21 +355,22 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
)
: await getArchivedRatingLeaderboard(region, season!).then(
async (players) => {
const playerIndex = players.entries.findIndex(
const playerIndex = players.version!.value.entries.findIndex(
(player) => player.id === id,
);
if (playerIndex === -1) {
throw new UserError(
translate(
'bot.commands.rating_leaderboard.body.no_participation',
literals(
strings.bot.commands.rating_leaderboard.body
.no_participation,
[markdownEscape(accountInfo.nickname), `${season}`],
),
);
}
const halfRange = Math.round(limit / 2);
const trimmed = players.entries.slice(
const trimmed = players.version!.value.entries.slice(
playerIndex - halfRange,
playerIndex + halfRange + 1,
);
@@ -436,32 +391,36 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
}));
},
);
midnightLeaderboard = isCurrentSeason
? await getArchivedRatingMidnightLeaderboard(
region,
regionRatingInfo.current_season,
)
: await getArchivedRatingMidnightLeaderboard(region, season!);
archivedLeaderboard = await getArchivedRatingLeaderboard(
region,
season,
);
players = neighbors;
titleImage = clan
? `https://wotblitz-gc.gcdn.co/icons/clanEmblems1x/clan-icon-v2-${clan.emblem_set_id}.png`
: undefined;
titleName = neighbors ? accountInfo.nickname : '';
titleDescription = t`bot.commands.rating_leaderboard.body.neighbors`;
titleDescription =
strings.bot.commands.rating_leaderboard.body.neighbors;
playersAfter =
regionRatingInfo.count - neighbors[neighbors.length - 1].position;
(regionRatingInfo === null
? archivedLeaderboard.version!.value.entries.length
: regionRatingInfo.count) -
neighbors[neighbors.length - 1].position;
playerId = id;
}
const items = players.map((player) => {
const midnightIndex = midnightLeaderboard?.entries.findIndex(
(item) => item.id === player.id,
);
const midnightIndex =
archivedLeaderboard?.version!.value.entries.findIndex(
(item) => item.id === player.id,
);
const midnightScore =
midnightIndex === undefined
? player.score
: midnightLeaderboard!.entries[midnightIndex].score;
: archivedLeaderboard!.version!.value.entries[midnightIndex]
.score;
const midnightPosition =
midnightIndex === undefined ? player.position : midnightIndex + 1;
@@ -492,8 +451,8 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
{items}
{playersAfter > 0 && (
<Leaderboard.Gap
message={translate(
'bot.commands.rating_leaderboard.body.more',
message={literals(
strings.bot.commands.rating_leaderboard.body.more,
[`${playersAfter.toLocaleString(interaction.locale)}`],
)}
/>
@@ -1,19 +1,25 @@
import { clamp } from 'lodash';
import CommandWrapper from '../components/CommandWrapper';
import TitleBar from '../components/TitleBar';
import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo';
import { idToRegion } from '../core/blitz/idToRegion';
import { emblemURL } from '../core/blitzkit/emblemURL';
import {
calculateWN8,
emblemURL,
getClanAccountInfo,
idToRegion,
tankIcon,
TIER_ROMAN_NUMERALS,
} from '@blitzkit/core';
import { Locale } from 'discord.js';
import { clamp } from 'lodash-es';
import { CommandWrapper } from '../components/CommandWrapper';
import { TitleBar } from '../components/TitleBar';
import { iconPng } from '../core/blitzkit/iconPng';
import { mapDefinitions } from '../core/blitzkit/mapDefinitions';
import {
mapDefinitions,
tankDefinitions,
} from '../core/blitzkit/nonBlockingPromises';
import { RenderConfiguration } from '../core/blitzkit/renderConfiguration';
import { tankDefinitions } from '../core/blitzkit/tankDefinitions';
import { TIER_ROMAN_NUMERALS } from '../core/blitzkit/tankDefinitions/constants';
import { tankIcon } from '../core/blitzkit/tankIcon';
import { tankAverages } from '../core/blitzstars/tankAverages';
import buttonLink from '../core/discord/buttonLink';
import { blitzStarsTankAverages } from '../core/blitzstars/tankAverages';
import { buttonLink } from '../core/discord/buttonLink';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import calculateWN8 from '../core/statistics/calculateWN8';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
import { theme } from '../stitches.config';
@@ -214,14 +220,16 @@ function stat(value: string | number, flex = 2) {
}
async function playerListing(
locale: Locale,
player: WotInspectorReplayPlayerData,
protagonistTeam: boolean,
winningTeam: number,
recordingPlayer = false,
) {
const awaitedTankAverages = await tankAverages;
const { unwrap } = translator(locale);
const awaitedTankAverages = await blitzStarsTankAverages;
const awaitedTankDefinitions = await tankDefinitions;
const tank = awaitedTankDefinitions[player.vehicle_descr];
const tank = awaitedTankDefinitions.tanks[player.vehicle_descr];
const blockAccent = recordingPlayer ? '_amber' : '';
const healthAccent = protagonistTeam
? recordingPlayer
@@ -271,7 +279,7 @@ async function playerListing(
}}
>
<img
alt={tank.name}
alt={unwrap(tank.name)}
src={await iconPng(tankIcon(tank.id))}
style={{
width: 32,
@@ -308,7 +316,7 @@ async function playerListing(
fontSize: 16,
}}
>
{tank.name}
{unwrap(tank.name)}
</span>
</div>
@@ -500,7 +508,7 @@ export const replayCommand = new Promise<CommandRegistry>((resolve) => {
replayData.protagonist_team === replayData.winner_team
? 'Victory'
: 'Defeat'
} • ${awaitedMapDefinitions[replayData.map_id].name}`}
} • ${awaitedMapDefinitions.maps[replayData.map_id].name}`}
/>
<div
@@ -526,6 +534,7 @@ export const replayCommand = new Promise<CommandRegistry>((resolve) => {
)
.map((player) =>
playerListing(
interaction.locale,
player,
true,
replayData.winner_team,
@@ -549,7 +558,12 @@ export const replayCommand = new Promise<CommandRegistry>((resolve) => {
players
.filter((player) => player.team === antagonistTeamId)
.map((player) =>
playerListing(player, false, replayData.winner_team),
playerListing(
interaction.locale,
player,
false,
replayData.winner_team,
),
),
)}
</div>
@@ -1,48 +1,56 @@
import { Locale, escapeMarkdown } from 'discord.js';
import CommandWrapper from '../components/CommandWrapper';
import TitleBar from '../components/TitleBar';
import { equipmentPriceMatrix } from '../constants/equipmentPrice';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo';
import getTankStats from '../core/blitz/getTankStats';
import resolveTankId from '../core/blitz/resolveTankId';
import { asset } from '../core/blitzkit/asset';
import { buildTechTreeLine } from '../core/blitzkit/buildTechTreeLine';
import { emblemURL } from '../core/blitzkit/emblemURL';
import { iconPng } from '../core/blitzkit/iconPng';
import { resolveAncestry } from '../core/blitzkit/resolveAncestry';
import { tankDefinitions } from '../core/blitzkit/tankDefinitions';
import {
asset,
emblemURL,
equipmentPriceMatrix,
getAccountInfo,
getClanAccountInfo,
getTankStats,
TANK_ICONS,
TankType,
TIER_ROMAN_NUMERALS,
} from '../core/blitzkit/tankDefinitions/constants';
} from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import { escapeMarkdown, Locale } from 'discord.js';
import { CommandWrapper } from '../components/CommandWrapper';
import { TitleBar } from '../components/TitleBar';
import { resolveTankId } from '../core/blitz/resolveTankId';
import { buildTechTreeLine } from '../core/blitzkit/buildTechTreeLine';
import { iconPng } from '../core/blitzkit/iconPng';
import { tankDefinitions } from '../core/blitzkit/nonBlockingPromises';
import { resolveAncestry } from '../core/blitzkit/resolveAncestry';
import { tankIconPng } from '../core/blitzkit/tankIconPng';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import autocompleteTanks from '../core/discord/autocompleteTanks';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { autocompleteTanks } from '../core/discord/autocompleteTanks';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { localizationObject } from '../core/discord/localizationObject';
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand';
import { resolvePlayerFromCommand } from '../core/discord/resolvePlayerFromCommand';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
import { theme } from '../stitches.config';
export const researchCommand = new Promise<CommandRegistry>((resolve) => {
const { t } = translator(Locale.EnglishUS);
const { strings } = translator(Locale.EnglishUS);
resolve({
command: createLocalizedCommand('research')
.addStringOption((option) =>
option
.setName(t`bot.commands.research.options.target_tank`)
.setName(strings.bot.commands.research.options.target_tank.name)
.setNameLocalizations(
localizationObject('bot.commands.research.options.target_tank'),
localizationObject(
(strings) =>
strings.bot.commands.research.options.target_tank.name,
undefined,
true,
),
)
.setDescription(
t`bot.commands.research.options.target_tank.description`,
strings.bot.commands.research.options.target_tank.description,
)
.setDescriptionLocalizations(
localizationObject(
'bot.commands.research.options.target_tank.description',
(strings) =>
strings.bot.commands.research.options.target_tank.description,
),
)
.setAutocomplete(true)
@@ -50,16 +58,22 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
)
.addStringOption((option) =>
option
.setName(t`bot.commands.research.options.starting_tank`)
.setName(strings.bot.commands.research.options.starting_tank.name)
.setNameLocalizations(
localizationObject('bot.commands.research.options.starting_tank'),
localizationObject(
(strings) =>
strings.bot.commands.research.options.starting_tank.name,
undefined,
true,
),
)
.setDescription(
t`bot.commands.research.options.starting_tank.description`,
strings.bot.commands.research.options.starting_tank.description,
)
.setDescriptionLocalizations(
localizationObject(
'bot.commands.research.options.starting_tank.description',
(strings) =>
strings.bot.commands.research.options.starting_tank.description,
),
)
.setAutocomplete(true)
@@ -68,7 +82,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
.addStringOption(addUsernameChoices),
async handler(interaction) {
const { t, translate } = translator(interaction.locale);
const { strings, unwrap } = translator(interaction.locale);
const awaitedTankDefinitions = await tankDefinitions;
const targetTankId = await resolveTankId(
interaction.options.getString('target-tank', true),
@@ -76,7 +90,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
true,
);
const startingTankRaw = interaction.options.getString('starting-tank');
const targetTank = awaitedTankDefinitions[targetTankId];
const targetTank = awaitedTankDefinitions.tanks[targetTankId];
const { id, region } = await resolvePlayerFromCommand(interaction);
let startingTankId: number;
const targetTankAncestry = await resolveAncestry(targetTankId);
@@ -89,55 +103,60 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
);
if (targetTankId === startingTankId) {
return translate('bot.commands.research.errors.start_end_equal', [
escapeMarkdown(targetTank.name),
]);
return literals(
strings.bot.commands.research.errors.start_end_equal,
[escapeMarkdown(unwrap(targetTank.name))],
);
}
const startingTank = awaitedTankDefinitions[startingTankId];
const startingTank = awaitedTankDefinitions.tanks[startingTankId];
if (startingTank.tier > targetTank.tier) {
return translate('bot.commands.research.errors.unordered', [
escapeMarkdown(startingTank.name),
escapeMarkdown(targetTank.name),
escapeMarkdown(targetTank.name),
return literals(strings.bot.commands.research.errors.unordered, [
escapeMarkdown(unwrap(startingTank.name)),
escapeMarkdown(unwrap(targetTank.name)),
escapeMarkdown(unwrap(targetTank.name)),
]);
}
if (!targetTankAncestry.includes(startingTankId)) {
return translate('bot.commands.research.errors.tanks_not_on_line', [
escapeMarkdown(targetTank.name),
escapeMarkdown(startingTank.name),
]);
return literals(
strings.bot.commands.research.errors.tanks_not_on_line,
[
escapeMarkdown(unwrap(targetTank.name)),
escapeMarkdown(unwrap(startingTank.name)),
],
);
}
} else {
if (targetTank.treeType !== 'researchable') {
return translate('bot.commands.research.errors.non_tech_tree', [
escapeMarkdown(targetTank.name),
if (targetTank.type !== TankType.RESEARCHABLE) {
return literals(strings.bot.commands.research.errors.non_tech_tree, [
escapeMarkdown(unwrap(targetTank.name)),
]);
}
if (targetTank.tier === 1) {
return translate('bot.commands.research.errors.tier_1', [
escapeMarkdown(targetTank.name),
return literals(strings.bot.commands.research.errors.tier_1, [
escapeMarkdown(unwrap(targetTank.name)),
]);
}
const tankStats = await getTankStats(region, id);
if (tankStats === null) {
return t`bot.common.errors.no_tank_stats`;
return strings.bot.common.errors.no_tank_stats;
}
if (tankStats.some(({ tank_id }) => tank_id === targetTankId)) {
return translate('bot.commands.research.errors.already_researched', [
escapeMarkdown(targetTank.name),
]);
return literals(
strings.bot.commands.research.errors.already_researched,
[escapeMarkdown(unwrap(targetTank.name))],
);
}
const foundAncestor = targetTankAncestry.find(
(id) =>
awaitedTankDefinitions[id].tier === 1 ||
awaitedTankDefinitions.tanks[id].tier === 1 ||
tankStats.some(({ tank_id }) => tank_id === id),
);
@@ -159,33 +178,59 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
const clanImage = clan ? emblemURL(clan.emblem_set_id) : undefined;
const costs = await Promise.all(
line.map(async (id) => {
const tank = awaitedTankDefinitions[id];
const tank = awaitedTankDefinitions.tanks[id];
const turretXps = new Map<number, number>();
const gunXps = new Map<number, number>();
const engineXps = new Map<number, number>();
const trackXps = new Map<number, number>();
tank.turrets.forEach((turret) => {
if (turret.xp !== undefined) {
turretXps.set(turret.id, turret.xp);
if (
turret.research_cost !== undefined &&
typeof turret.research_cost.research_cost_type!.value === 'number'
) {
turretXps.set(
turret.id,
turret.research_cost.research_cost_type!.value,
);
}
turret.guns.forEach((gun) => {
if (gun.xp !== undefined) {
gunXps.set(gun.id, gun.xp);
if (
gun.gun_type!.value.base.research_cost !== undefined &&
typeof gun.gun_type!.value.base.research_cost
.research_cost_type!.value === 'number'
) {
gunXps.set(
gun.gun_type!.value.base.id,
gun.gun_type!.value.base.research_cost.research_cost_type!
.value,
);
}
});
});
tank.engines.forEach((engine) => {
if (engine.xp !== undefined) {
engineXps.set(engine.id, engine.xp);
if (
engine.research_cost !== undefined &&
typeof engine.research_cost.research_cost_type!.value === 'number'
) {
engineXps.set(
engine.id,
engine.research_cost.research_cost_type!.value,
);
}
});
tank.tracks.forEach((track) => {
if (track.xp !== undefined) {
trackXps.set(track.id, track.xp);
if (
track.research_cost !== undefined &&
typeof track.research_cost.research_cost_type!.value === 'number'
) {
trackXps.set(
track.id,
track.research_cost.research_cost_type!.value,
);
}
});
@@ -204,7 +249,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
});
return {
research: tank.xp,
research: tank.research_cost!.research_cost_type!.value as number,
upgrades: moduleXp,
purchase: tank.price.value,
equipment: equipmentPriceMatrix[tank.tier].reduce(
@@ -220,7 +265,9 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
<TitleBar
title={nickname}
image={clanImage}
description={`${t`bot.commands.research.body.subtitle`} • ${targetTank.name}`}
description={`${strings.bot.commands.research.body.subtitle} • ${
targetTank.name
}`}
/>
<div
@@ -255,7 +302,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
color: theme.colors.textHighContrast,
}}
>
{t`bot.commands.research.body.total`}
{strings.bot.commands.research.body.total}
</span>
</div>
@@ -351,7 +398,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
{await Promise.all(
line.map(async (id, index) => {
const tank = awaitedTankDefinitions[id];
const tank = awaitedTankDefinitions.tanks[id];
return (
<div
@@ -415,7 +462,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
}}
>
<img
alt={tank.name}
alt={unwrap(tank.name)}
src={TANK_ICONS[tank.class]}
width={16}
height={16}
@@ -426,7 +473,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
color: theme.colors.textHighContrast,
}}
>
{tank.name}
{unwrap(tank.name)}
</span>
</div>
</div>
@@ -460,11 +507,14 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
color: theme.colors.textHighContrast,
}}
>
{translate('bot.commands.research.body.research', [
`${costs[index].research?.toLocaleString(
interaction.locale,
)}`,
])}
{literals(
strings.bot.commands.research.body.research,
[
`${costs[index].research?.toLocaleString(
interaction.locale,
)}`,
],
)}
</span>
</div>
@@ -490,9 +540,10 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
color: theme.colors.textHighContrast,
}}
>
{translate('bot.commands.research.body.upgrades', [
costs[index].upgrades.toLocaleString(),
])}
{literals(
strings.bot.commands.research.body.upgrades,
[costs[index].upgrades.toLocaleString()],
)}
</span>
</div>
)}
@@ -518,11 +569,14 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
color: theme.colors.textHighContrast,
}}
>
{translate('bot.commands.research.body.purchase', [
costs[index].purchase.toLocaleString(
interaction.locale,
),
])}
{literals(
strings.bot.commands.research.body.purchase,
[
costs[index].purchase.toLocaleString(
interaction.locale,
),
],
)}
</span>
</div>
@@ -547,11 +601,14 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
color: theme.colors.textHighContrast,
}}
>
{translate('bot.commands.research.body.equipment', [
costs[index].equipment.toLocaleString(
interaction.locale,
),
])}
{literals(
strings.bot.commands.research.body.equipment,
[
costs[index].equipment.toLocaleString(
interaction.locale,
),
],
)}
</span>
</div>
</div>
@@ -565,7 +622,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
return startingTankRaw
? image
: [t`bot.commands.research.body.estimation`, image];
: [strings.bot.commands.research.body.estimation, image];
},
autocomplete(interaction) {
@@ -1,15 +1,14 @@
import { ClanList, fetchBlitz, Region } from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import { Locale } from 'discord.js';
import markdownEscape from 'markdown-escape';
import { Region } from '../constants/regions';
import fetchBlitz from '../core/blitz/fetchBlitz';
import addClanChoices from '../core/discord/addClanChoices';
import addRegionChoices from '../core/discord/addRegionChoices';
import { addClanChoices } from '../core/discord/addClanChoices';
import { addRegionChoices } from '../core/discord/addRegionChoices';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import embedInfo from '../core/discord/embedInfo';
import { embedInfo } from '../core/discord/embedInfo';
import { localizationObject } from '../core/discord/localizationObject';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
import { ClanList } from '../types/clanList';
const DEFAULT_LIMIT = 25;
@@ -21,21 +20,27 @@ export const searchClansCommand = new Promise<CommandRegistry>((resolve) => {
addClanChoices(option).setAutocomplete(false),
)
.addIntegerOption((option) => {
const { t, translate } = translator(Locale.EnglishUS);
const { strings } = translator(Locale.EnglishUS);
return option
.setName(t`bot.commands.search_clans.options.limit`)
.setName(strings.bot.commands.search_clans.options.limit.name)
.setNameLocalizations(
localizationObject('bot.commands.search_clans.options.limit'),
localizationObject(
(strings) => strings.bot.commands.search_clans.options.limit.name,
undefined,
true,
),
)
.setDescription(
translate('bot.commands.search_clans.options.limit.description', [
`${DEFAULT_LIMIT}`,
]),
literals(
strings.bot.commands.search_clans.options.limit.description,
[`${DEFAULT_LIMIT}`],
),
)
.setDescriptionLocalizations(
localizationObject(
'bot.commands.search_clans.options.limit.description',
(strings) =>
strings.bot.commands.search_clans.options.limit.description,
[`${DEFAULT_LIMIT}`],
),
)
@@ -44,7 +49,7 @@ export const searchClansCommand = new Promise<CommandRegistry>((resolve) => {
}),
async handler(interaction) {
const { translate } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
const region = interaction.options.getString('region') as Region;
const clan = interaction.options.getString('clan')!;
const limit = interaction.options.getInteger('limit') ?? DEFAULT_LIMIT;
@@ -54,12 +59,12 @@ export const searchClansCommand = new Promise<CommandRegistry>((resolve) => {
});
return embedInfo(
translate('bot.commands.search_clans.body.title', [
literals(strings.bot.commands.search_clans.body.title, [
markdownEscape(clan),
translate(`common.regions.normal.${region}`),
strings.common.regions.normal[region],
]),
clanList.length === 0
? translate('bot.commands.search_clans.body.no_results')
? strings.bot.commands.search_clans.body.no_results
: `\`\`\`\n${clanList
.map((clan) => `${clan.name} [${clan.tag}]`)
.join('\n')}\n\`\`\``,
@@ -1,13 +1,16 @@
import {
AccountList,
fetchBlitz,
Region,
usernamePattern,
} from '@blitzkit/core';
import { literals } from '@blitzkit/i18n';
import { Locale } from 'discord.js';
import markdownEscape from 'markdown-escape';
import { Region } from '../constants/regions';
import fetchBlitz from '../core/blitz/fetchBlitz';
import { AccountList } from '../core/blitz/searchPlayersAcrossRegions';
import { usernamePattern } from '../core/blitz/searchPlayersAcrossRegions/constants';
import addRegionChoices from '../core/discord/addRegionChoices';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import { addRegionChoices } from '../core/discord/addRegionChoices';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import embedInfo from '../core/discord/embedInfo';
import { embedInfo } from '../core/discord/embedInfo';
import { localizationObject } from '../core/discord/localizationObject';
import { translator } from '../core/localization/translator';
import { CommandRegistry } from '../events/interactionCreate';
@@ -15,7 +18,7 @@ import { CommandRegistry } from '../events/interactionCreate';
const DEFAULT_LIMIT = 25;
export const searchPlayersCommand = new Promise<CommandRegistry>((resolve) => {
const { t, translate } = translator(Locale.EnglishUS);
const { strings } = translator(Locale.EnglishUS);
resolve({
command: createLocalizedCommand('search-players')
@@ -25,18 +28,25 @@ export const searchPlayersCommand = new Promise<CommandRegistry>((resolve) => {
)
.addIntegerOption((option) =>
option
.setName(t`bot.commands.search_players.options.limit`)
.setName(strings.bot.commands.search_players.options.limit.name)
.setNameLocalizations(
localizationObject('bot.commands.search_players.options.limit'),
localizationObject(
(strings) =>
strings.bot.commands.search_players.options.limit.name,
undefined,
true,
),
)
.setDescription(
translate('bot.commands.search_players.options.limit.description', [
`${DEFAULT_LIMIT}`,
]),
literals(
strings.bot.commands.search_players.options.limit.description,
[`${DEFAULT_LIMIT}`],
),
)
.setDescriptionLocalizations(
localizationObject(
'bot.commands.search_players.options.limit.description',
(strings) =>
strings.bot.commands.search_players.options.limit.description,
[`${DEFAULT_LIMIT}`],
),
)
@@ -45,7 +55,7 @@ export const searchPlayersCommand = new Promise<CommandRegistry>((resolve) => {
),
async handler(interaction) {
const { translate } = translator(interaction.locale);
const { strings } = translator(interaction.locale);
const region = interaction.options.getString('region') as Region;
const name = interaction.options.getString('username')!;
const limit = interaction.options.getInteger('limit') ?? 25;
@@ -58,13 +68,13 @@ export const searchPlayersCommand = new Promise<CommandRegistry>((resolve) => {
: [];
return embedInfo(
translate('bot.commands.search_players.body.title', [
literals(strings.bot.commands.search_players.body.title, [
markdownEscape(trimmedSearch),
translate(`common.regions.normal.${region}`),
strings.common.regions.normal[region],
]),
`\`\`\`${
players.length === 0
? translate('bot.commands.search_players.body.no_results')
? strings.bot.commands.search_players.body.no_results
: players.map((player) => player.nickname).join('\n')
}\`\`\``,
);
@@ -1,33 +1,33 @@
import { emblemURL, getAccountInfo, getClanAccountInfo } from '@blitzkit/core';
import { Locale } from 'discord.js';
import AllStatsOverview from '../components/AllStatsOverview';
import CommandWrapper from '../components/CommandWrapper';
import NoData from '../components/NoData';
import TitleBar from '../components/TitleBar';
import { getAccountInfo } from '../core/blitz/getAccountInfo';
import { getClanAccountInfo } from '../core/blitz/getClanAccountInfo';
import { emblemURL } from '../core/blitzkit/emblemURL';
import { AllStatsOverview } from '../components/AllStatsOverview';
import { CommandWrapper } from '../components/CommandWrapper';
import { NoData } from '../components/NoData';
import { TitleBar } from '../components/TitleBar';
import { filtersToDescription } from '../core/blitzkit/filtersToDescription';
import { filterStats, StatFilters } from '../core/blitzstars/filterStats';
import { getBlitzStarsLinkButton } from '../core/blitzstars/getBlitzStarsLinkButton';
import getStatsInPeriod from '../core/blitzstars/getStatsInPeriod';
import addPeriodicFilterOptions from '../core/discord/addPeriodicFilterOptions';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import autocompleteTanks from '../core/discord/autocompleteTanks';
import autocompleteUsername from '../core/discord/autocompleteUsername';
import { getStatsInPeriod } from '../core/blitzstars/getStatsInPeriod';
import { addPeriodicFilterOptions } from '../core/discord/addPeriodicFilterOptions';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { autocompleteTanks } from '../core/discord/autocompleteTanks';
import { autocompleteUsername } from '../core/discord/autocompleteUsername';
import { buttonRefresh } from '../core/discord/buttonRefresh';
import commandToURL from '../core/discord/commandToURL';
import { commandToURL } from '../core/discord/commandToURL';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { getCustomPeriodParams } from '../core/discord/getCustomPeriodParams';
import { getFiltersFromButton } from '../core/discord/getFiltersFromButton';
import { getFiltersFromCommand } from '../core/discord/getFiltersFromCommand';
import resolvePeriodFromButton from '../core/discord/resolvePeriodFromButton';
import resolvePeriodFromCommand, {
import { resolvePeriodFromButton } from '../core/discord/resolvePeriodFromButton';
import {
ResolvedPeriod,
resolvePeriodFromCommand,
} from '../core/discord/resolvePeriodFromCommand';
import resolvePlayerFromButton from '../core/discord/resolvePlayerFromButton';
import resolvePlayerFromCommand, {
import { resolvePlayerFromButton } from '../core/discord/resolvePlayerFromButton';
import {
ResolvedPlayer,
resolvePlayerFromCommand,
} from '../core/discord/resolvePlayerFromCommand';
import { StatFilters, filterStats } from '../core/statistics/filterStats';
import { CommandRegistry } from '../events/interactionCreate';
async function render(
@@ -1,19 +1,19 @@
import { gameDefinitions } from '../core/blitzkit/gameDefinitions';
import { gameDefinitions } from '../core/blitzkit/nonBlockingPromises';
import { getBlitzStarsLinkButton } from '../core/blitzstars/getBlitzStarsLinkButton';
import { addFilterOptions } from '../core/discord/addFilterOptions';
import addUsernameChoices from '../core/discord/addUsernameChoices';
import autocompleteTanks from '../core/discord/autocompleteTanks';
import autocompleteUsername from '../core/discord/autocompleteUsername';
import { addUsernameChoices } from '../core/discord/addUsernameChoices';
import { autocompleteTanks } from '../core/discord/autocompleteTanks';
import { autocompleteUsername } from '../core/discord/autocompleteUsername';
import { buttonRefresh } from '../core/discord/buttonRefresh';
import commandToURL from '../core/discord/commandToURL';
import { commandToURL } from '../core/discord/commandToURL';
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
import { getCustomPeriodParams } from '../core/discord/getCustomPeriodParams';
import { getFiltersFromButton } from '../core/discord/getFiltersFromButton';
import { getFiltersFromCommand } from '../core/discord/getFiltersFromCommand';
import resolvePeriodFromButton from '../core/discord/resolvePeriodFromButton';
import resolvePeriodFromCommand from '../core/discord/resolvePeriodFromCommand';
import resolvePlayerFromButton from '../core/discord/resolvePlayerFromButton';
import resolvePlayerFromCommand from '../core/discord/resolvePlayerFromCommand';
import { resolvePeriodFromButton } from '../core/discord/resolvePeriodFromButton';
import { resolvePeriodFromCommand } from '../core/discord/resolvePeriodFromCommand';
import { resolvePlayerFromButton } from '../core/discord/resolvePlayerFromButton';
import { resolvePlayerFromCommand } from '../core/discord/resolvePlayerFromCommand';
import { CommandRegistry } from '../events/interactionCreate';
import { renderBreakdown } from './breakdown/render';
@@ -1,8 +1,10 @@
import {
getWN8Percentile,
Percentile,
SupplementaryStats,
} from '@blitzkit/core';
import { Locale } from 'discord.js';
import { Percentile } from '../../constants/percentiles';
import { SupplementaryStats } from '../../core/blitz/getAccountInfo';
import { translator } from '../../core/localization/translator';
import getWN8Percentile from '../../core/statistics/getWN8Percentile';
import { PERCENTILE_COLORS } from '../PercentileIndicator/constants';
import { HeroStat } from './components/HeroStat';
import {
@@ -25,12 +27,12 @@ export interface AllStatsOverviewProps {
locale: Locale;
}
export default function AllStatsOverview({
export function AllStatsOverview({
stats,
locale,
supplementaryStats,
}: AllStatsOverviewProps) {
const { t, translate } = translator(locale);
const { strings } = translator(locale);
const percentile =
typeof supplementaryStats.WN8 === 'number'
? getWN8Percentile(supplementaryStats.WN8)
@@ -61,18 +63,18 @@ export default function AllStatsOverview({
}}
>
<WN8SurroundingStat
label={t`bot.common.hero_stats.battles`}
label={strings.bot.common.hero_stats.battles}
value={stats.battles.toLocaleString()}
align={WN8SurroundingStatAlign.Right}
/>
<WN8SurroundingStat
label={t`bot.common.hero_stats.winrate`}
label={strings.bot.common.hero_stats.winrate}
value={`${(100 * (stats.wins / stats.battles)).toFixed(2)}%`}
align={WN8SurroundingStatAlign.Right}
padded
/>
<WN8SurroundingStat
label={t`bot.common.hero_stats.damage`}
label={strings.bot.common.hero_stats.damage}
value={Math.round(
stats.damage_dealt / stats.battles,
).toLocaleString()}
@@ -80,7 +82,7 @@ export default function AllStatsOverview({
padded
/>
<WN8SurroundingStat
label={t`bot.common.hero_stats.damage_ratio`}
label={strings.bot.common.hero_stats.damage_ratio}
value={(stats.damage_dealt / stats.damage_received).toFixed(2)}
align={WN8SurroundingStatAlign.Right}
/>
@@ -88,7 +90,7 @@ export default function AllStatsOverview({
<HeroStat
value={heroStat}
subtitle={translate(`common.wn8_percentile.${percentile}`)}
subtitle={strings.common.wn8_percentile[percentile]}
color={color}
/>
@@ -101,25 +103,25 @@ export default function AllStatsOverview({
}}
>
<WN8SurroundingStat
label={t`bot.common.hero_stats.tier`}
label={strings.bot.common.hero_stats.tier}
value={
supplementaryStats.tier ? supplementaryStats.tier.toFixed(2) : '--'
}
/>
<WN8SurroundingStat
label={t`bot.common.hero_stats.survival`}
label={strings.bot.common.hero_stats.survival}
value={`${(100 * (stats.survived_battles / stats.battles)).toFixed(
2,
)}%`}
padded
/>
<WN8SurroundingStat
label={t`bot.common.hero_stats.accuracy`}
label={strings.bot.common.hero_stats.accuracy}
value={`${(100 * (stats.hits / stats.shots)).toFixed(2)}%`}
padded
/>
<WN8SurroundingStat
label={t`bot.common.hero_stats.kills`}
label={strings.bot.common.hero_stats.kills}
value={(stats.frags / stats.battles).toFixed(2)}
/>
</div>
@@ -1,12 +1,15 @@
import {
Percentile,
TankClass,
TankType,
TREE_TYPE_ICONS,
} from '@blitzkit/core';
import { createColors } from 'bepaint';
import { Percentile } from '../../../constants/percentiles';
import {
AccentColor,
GrayColor,
PALETTES,
} from '../../../constants/radixColors';
import { TankClass, TreeType } from '../../Tanks';
import { TREE_TYPE_ICONS } from '../../Tanks/components/Item/constants';
} from '../../../core/radix/radixColors';
import { RowStat } from './RowStat';
export interface RowStatItem {
@@ -18,12 +21,12 @@ export interface RowStatItem {
}
interface RowProps {
type?: 'tank' | 'summary';
displayType?: 'tank' | 'summary';
naked?: boolean;
title: string;
minimized?: boolean;
treeType?: TreeType;
tankType?: TankClass;
type?: TankType;
class?: TankClass;
color?: AccentColor | GrayColor;
stats: (RowStatItem | undefined)[];
}
@@ -33,10 +36,10 @@ export function Row({
stats,
title,
minimized,
tankType,
treeType,
naked = false,
class: tankClass,
type,
naked = false,
displayType,
}: RowProps) {
const palette = PALETTES[`${color}Dark`];
const theme = createColors(palette);
@@ -67,10 +70,10 @@ export function Row({
: theme.componentInteractive,
}}
>
{type === 'tank' && tankType !== undefined && (
{displayType === 'tank' && tankClass !== undefined && (
<img
alt={tankType}
src={TREE_TYPE_ICONS[treeType ?? 'researchable'][tankType]}
alt={TankClass[tankClass]}
src={TREE_TYPE_ICONS[type ?? TankType.RESEARCHABLE][tankClass]}
style={{ width: 16, height: 16 }}
/>
)}
@@ -78,10 +81,10 @@ export function Row({
<span
style={{
color:
type === 'tank'
? treeType === 'collector'
displayType === 'tank'
? type === TankType.COLLECTOR
? theme.textLowContrast_blue
: treeType === 'premium'
: type === TankType.PREMIUM
? theme.textLowContrast_amber
: theme.textHighContrast
: theme.textLowContrast,
@@ -1,11 +1,11 @@
import { Percentile } from '@blitzkit/core';
import { createColors } from 'bepaint';
import { Percentile } from '../../../constants/percentiles';
import {
AccentColor,
GrayColor,
PALETTES,
} from '../../../constants/radixColors';
import PercentileIndicator from '../../PercentileIndicator';
} from '../../../core/radix/radixColors';
import { PercentileIndicator } from '../../PercentileIndicator';
interface RowStatProps {
name: string;
Loaded 100 of 993 files, more files were not shown because too many files have changed in this diff. Show more