mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e513998a9 | ||
|
|
df34226a22 | ||
|
|
2f7f2362bb | ||
|
|
a78543c60f | ||
|
|
00783749ba | ||
|
|
9aba91a773 | ||
|
|
dd3c86aa5b | ||
|
|
f770ba0e5e | ||
|
|
c444210294 | ||
|
|
84dcfe4a14 | ||
|
|
7a3541439b | ||
|
|
7ab8a01fb6 | ||
|
|
88729e0eca | ||
|
|
63a6e47878 | ||
|
|
984dad4111 | ||
|
|
2540b71fb7 | ||
|
|
80fca2e53a | ||
|
|
4d0ca1cd1a | ||
|
|
50aeb01e0a | ||
|
|
a1a218c325 | ||
|
|
e560754bb6 | ||
|
|
dbc23c6473 | ||
|
|
a2bd62da92 | ||
|
|
c0d16b51de | ||
|
|
d68870c254 | ||
|
|
d91b46d730 | ||
|
|
0758f0d8aa | ||
|
|
eacd63d472 | ||
|
|
39240e908d | ||
|
|
2f734c237b | ||
|
|
f155bae9bf | ||
|
|
1d37df710e | ||
|
|
d35ed8a212 | ||
|
|
33cd556c45 | ||
|
|
2dd8ffe570 | ||
|
|
a22f9ca072 | ||
|
|
520d530155 | ||
|
|
5a4326dd32 | ||
|
|
eb41434565 | ||
|
|
bd160efdb2 | ||
|
|
766a7081db | ||
|
|
e091cf5d06 | ||
|
|
c81f6d08c0 | ||
|
|
ced3897696 | ||
|
|
5f256ed84d | ||
|
|
53d811eeef | ||
|
|
ef91eadaea | ||
|
|
17bfb7c397 | ||
|
|
f5d06631c2 | ||
|
|
258279205d | ||
|
|
6ace0aa38a | ||
|
|
bae1e944b7 | ||
|
|
62d4ec07f0 | ||
|
|
5e912e5b51 | ||
|
|
a08107d0b2 | ||
|
|
6a28fb0277 | ||
|
|
37b8e75f83 | ||
|
|
7a9f43657d | ||
|
|
6ca3ce731b | ||
|
|
ff48cdc44e | ||
|
|
2fe0e9379e | ||
|
|
e48c57068f | ||
|
|
755f879192 | ||
|
|
73a51cbb40 | ||
|
|
fa72e8efab | ||
|
|
166c26b65a | ||
|
|
7ff4da1fc1 | ||
|
|
6a8e1d14ee | ||
|
|
edf434ed95 | ||
|
|
5bf6a14cff | ||
|
|
fcb848df5b | ||
|
|
8089a5eaa6 | ||
|
|
4a7927b300 | ||
|
|
6822298ae3 | ||
|
|
19aaba9728 | ||
|
|
6b98f4d59b | ||
|
|
c20d3b6b67 | ||
|
|
a4451de79c | ||
|
|
5ae6961a13 | ||
|
|
02aed3e3a5 | ||
|
|
e06aaa4bcf | ||
|
|
f1c31c6d79 | ||
|
|
d851a05f53 | ||
|
|
0db4be4d20 | ||
|
|
eb6aa5bc5b | ||
|
|
b9895b1c0f | ||
|
|
71c1f8dac9 | ||
|
|
aee1ddb948 | ||
|
|
28e6b0eb98 | ||
|
|
b54d4a59cf | ||
|
|
b45ec7ae9e | ||
|
|
d9958558b5 | ||
|
|
b9f68d99e1 | ||
|
|
bb6fbf286f | ||
|
|
9277e45be5 | ||
|
|
c056cdfafe | ||
|
|
e586e90ecc | ||
|
|
b73676ad3c | ||
|
|
ee3616e30b | ||
|
|
182744e8f4 | ||
|
|
2d9d167788 | ||
|
|
132209c7fe | ||
|
|
039e760570 | ||
|
|
a8dcf9b279 | ||
|
|
65705ebda0 | ||
|
|
1a4ade76b7 | ||
|
|
429076c297 | ||
|
|
d165a1fc35 | ||
|
|
9687720a83 | ||
|
|
b9d4c391fe | ||
|
|
1da517746a | ||
|
|
19664d55aa | ||
|
|
a40f86f982 | ||
|
|
e0e5ea8995 | ||
|
|
cd277fb2f1 | ||
|
|
ffe6ccaed0 | ||
|
|
bc60b4b42c | ||
|
|
a83ce6d350 | ||
|
|
ac35540871 | ||
|
|
84dd3317dc | ||
|
|
a53c20fa6a | ||
|
|
87d01dab3f | ||
|
|
0dea93241b | ||
|
|
395240394f | ||
|
|
696b5a54b8 | ||
|
|
21fcc23548 | ||
|
|
48dd9bec2a | ||
|
|
970d93e7e0 | ||
|
|
387a67266f | ||
|
|
ea013c4df8 | ||
|
|
420bda8202 | ||
|
|
b48515bf37 | ||
|
|
d5d0a8b308 | ||
|
|
5b76a08167 | ||
|
|
e68b4bea5d | ||
|
|
b893409a0a | ||
|
|
8dd4d80fca | ||
|
|
81e7f78e55 | ||
|
|
4584490b0d | ||
|
|
5cf8e48747 | ||
|
|
3e2bfc453a | ||
|
|
dbc3d0df3a | ||
|
|
9a1c66932a | ||
|
|
e364d1fda2 | ||
|
|
0e6b79dcbe | ||
|
|
88a682bae8 | ||
|
|
1ea1b7fa41 | ||
|
|
b95d021144 | ||
|
|
e4a35600a4 | ||
|
|
3b933f2cbc | ||
|
|
3da154b75d | ||
|
|
c4fa6cebfa | ||
|
|
2d3e45df73 | ||
|
|
cb45faf83c | ||
|
|
0722ff6bfb | ||
|
|
594b1eb311 | ||
|
|
f2f7d8aa3d | ||
|
|
1cf6a9e76a | ||
|
|
8c0d48447f | ||
|
|
0e869307c3 | ||
|
|
c7d2009418 | ||
|
|
a8c3d482a5 | ||
|
|
703bb36226 | ||
|
|
f3b585827c | ||
|
|
5e4170be7a | ||
|
|
d660fa6375 | ||
|
|
cefacbeb25 | ||
|
|
ea9cb79d84 | ||
|
|
ceaf1ea70a | ||
|
|
205d9c0ddf | ||
|
|
2608d69ffe | ||
|
|
d910ed9f5e | ||
|
|
f1767bf5d7 | ||
|
|
86eecd202a | ||
|
|
6b8433c690 | ||
|
|
a2b67e215d | ||
|
|
42c1cb653a | ||
|
|
5ab6c45868 | ||
|
|
2e39b77c80 | ||
|
|
a58079eed6 | ||
|
|
06c1e05205 | ||
|
|
bc57231d53 | ||
|
|
a7a164d991 | ||
|
|
fa279292b0 | ||
|
|
c4ada11886 | ||
|
|
913bc82350 | ||
|
|
6f00728187 | ||
|
|
0beaf3f9d6 | ||
|
|
5deafff3ab | ||
|
|
e05f02099d | ||
|
|
0f29145ab0 | ||
|
|
563ada179b | ||
|
|
046b9f4de4 | ||
|
|
8512557e76 | ||
|
|
3c7a10a949 | ||
|
|
fa489a665a | ||
|
|
a0d6aecf7a | ||
|
|
94099412b0 | ||
|
|
abd63b92a8 | ||
|
|
a5aad61cb7 | ||
|
|
3293afba76 | ||
|
|
71c9d1461f | ||
|
|
7a8ad6c290 | ||
|
|
8d190b62b0 | ||
|
|
b69abbc75e | ||
|
|
1836f0041d | ||
|
|
5285f8fab1 | ||
|
|
9daab37ba1 | ||
|
|
cee082ab67 | ||
|
|
fd1884542d | ||
|
|
489fb23683 | ||
|
|
b3d206b0ae | ||
|
|
98797a6cf5 | ||
|
|
cd69023dff | ||
|
|
ab0d3f7170 | ||
|
|
282b8f8a37 | ||
|
|
d1f5ef01c9 | ||
|
|
4a1f3ea12d | ||
|
|
8c1fc6f9df | ||
|
|
cc734f3934 | ||
|
|
58271befde | ||
|
|
05c8e50e82 | ||
|
|
a28d6c49da | ||
|
|
f7f11aac58 | ||
|
|
88acf6bce6 | ||
|
|
5866072aa7 | ||
|
|
76016ae41f | ||
|
|
532315f37c | ||
|
|
68e79cb6b8 | ||
|
|
670debbe26 | ||
|
|
28de3a0283 | ||
|
|
f1c50c2531 | ||
|
|
e17470e419 | ||
|
|
515791e52f | ||
|
|
f6cf4a87f9 | ||
|
|
2c0965f437 | ||
|
|
3698826ac4 | ||
|
|
a2685394fd | ||
|
|
c51065e512 | ||
|
|
602f332ec5 | ||
|
|
95fea65409 | ||
|
|
90f4b2f8f3 | ||
|
|
760ddca1f3 | ||
|
|
28edce8033 | ||
|
|
b7e6bfa205 | ||
|
|
96844a074a | ||
|
|
a3bd3fcd41 | ||
|
|
454d1ad159 | ||
|
|
0cd5ea0322 | ||
|
|
ea77120bc5 | ||
|
|
eb6aa03a5e | ||
|
|
104ddab5a4 | ||
|
|
c708ab6004 | ||
|
|
bb6044a704 | ||
|
|
ab83015418 | ||
|
|
5e6f0e5d18 | ||
|
|
f2da3994e4 | ||
|
|
dee0dc6a14 | ||
|
|
973d24a615 | ||
|
|
221492c645 | ||
|
|
243c81cb0c | ||
|
|
7cef95e150 | ||
|
|
d71ea5c383 | ||
|
|
c98c19dc36 | ||
|
|
c8bb1f190a | ||
|
|
d8f6e8fe8e | ||
|
|
c7cb135a24 | ||
|
|
2f95c57b7f | ||
|
|
e40fd2d2b4 | ||
|
|
919c1fcd36 | ||
|
|
641e6c9d9f | ||
|
|
46fb043920 | ||
|
|
e5ec1a70d2 | ||
|
|
c1e472a6ab | ||
|
|
650dbf66a9 | ||
|
|
c92d355484 | ||
|
|
5f6780f0f7 | ||
|
|
0ba319432c | ||
|
|
236271d279 | ||
|
|
61d53936b2 | ||
|
|
76a8f8396b | ||
|
|
31f7618a09 | ||
|
|
099e878c55 | ||
|
|
1f7b78dabc | ||
|
|
2fd9205662 | ||
|
|
fa9ed570ce | ||
|
|
66ad7371ac | ||
|
|
495f20cd90 | ||
|
|
f673aefb8f | ||
|
|
458915473c | ||
|
|
72ff2574cd | ||
|
|
fda9c72980 | ||
|
|
b02963323e | ||
|
|
5b02f3ad02 | ||
|
|
ed59d8eefa | ||
|
|
4e6a1de6ca | ||
|
|
b52f742527 | ||
|
|
031c1948e7 | ||
|
|
700bb544a3 | ||
|
|
3d82a2ec75 | ||
|
|
eba2057306 | ||
|
|
8c0ddd473c | ||
|
|
0df58d2d2c | ||
|
|
da8025a0ad | ||
|
|
aa8bb1c040 | ||
|
|
b1f29a6148 | ||
|
|
5a5643ce3d | ||
|
|
dfc55b745b | ||
|
|
7b1fedf657 | ||
|
|
18869712e1 | ||
|
|
ea70033b08 | ||
|
|
ec9a3cb2ce | ||
|
|
0412eb478e | ||
|
|
30cb319c1e | ||
|
|
40f3311ff7 | ||
|
|
5510c25a59 | ||
|
|
1778529030 | ||
|
|
ad89679959 | ||
|
|
4f5a8c9a37 | ||
|
|
9bc745bc0e | ||
|
|
a17a8888ff | ||
|
|
97b9137e9a | ||
|
|
201f8f94a5 | ||
|
|
799d5e3fe2 | ||
|
|
d8d1b4a016 | ||
|
|
dea84321d4 | ||
|
|
adf00a0bbd | ||
|
|
a06fc87009 | ||
|
|
7af06d2120 | ||
|
|
8e26413628 | ||
|
|
b7d5e3eeab | ||
|
|
b48e6c4739 | ||
|
|
48441d0cda | ||
|
|
d0f277e878 | ||
|
|
7230d6663d | ||
|
|
cec79736bc | ||
|
|
0fc8ea8777 | ||
|
|
3d41198178 | ||
|
|
c195e5f440 | ||
|
|
11bbe9309e | ||
|
|
749d3fa7c5 | ||
|
|
2c15190606 | ||
|
|
0674112df6 | ||
|
|
9604eb90e1 | ||
|
|
9005383c65 | ||
|
|
9923efe8ab | ||
|
|
e52063c12d | ||
|
|
53662c1174 | ||
|
|
bba8118dd7 | ||
|
|
513105a624 | ||
|
|
1e64cb9e7d | ||
|
|
9ad3fb220f | ||
|
|
559f3edd06 | ||
|
|
e3c1306ef3 | ||
|
|
8a381b5d24 | ||
|
|
83586bdb71 | ||
|
|
a652fd29ae | ||
|
|
1f6eab2ef8 | ||
|
|
96b0761832 | ||
|
|
91bd3f7769 | ||
|
|
ddecff827a | ||
|
|
66f33746cb | ||
|
|
ae0e2f45dc | ||
|
|
1bd4c498c2 | ||
|
|
afb730924c | ||
|
|
25fe926cba | ||
|
|
7cf353df80 | ||
|
|
796f6685e7 | ||
|
|
76d83185a5 | ||
|
|
8073e4aa2d | ||
|
|
acb52b9888 | ||
|
|
6dffe3db45 | ||
|
|
5fcc42e065 | ||
|
|
fc8e0e55f0 | ||
|
|
ef52434a42 | ||
|
|
ea490628fb | ||
|
|
dc37b23727 | ||
|
|
746dd998aa | ||
|
|
e234b29e16 | ||
|
|
8d51ce2bea | ||
|
|
b31c7a6738 | ||
|
|
320aead17b | ||
|
|
b5cb2acdf4 | ||
|
|
0808bb0d9b | ||
|
|
95bb67bcf1 | ||
|
|
96310a9d63 | ||
|
|
53a9c5f2de | ||
|
|
f14ca394b5 | ||
|
|
79bc259565 | ||
|
|
94f67e30f1 | ||
|
|
78dce028d9 | ||
|
|
61fe8c7e7c | ||
|
|
3e18d5a8db | ||
|
|
57170469f2 | ||
|
|
9b134fab27 | ||
|
|
9cced11199 | ||
|
|
370ef2df65 | ||
|
|
45dc99e1ce | ||
|
|
d8a08a93e0 | ||
|
|
d90a3cc010 | ||
|
|
53c0f48437 | ||
|
|
a54ba78dbf | ||
|
|
2b5ffb2b84 | ||
|
|
f1410cf321 | ||
|
|
ffa1395b50 | ||
|
|
408b561b75 | ||
|
|
187230439b | ||
|
|
e241870ece | ||
|
|
0537418f6a | ||
|
|
cf4fa83d44 | ||
|
|
a6f60ac0de | ||
|
|
f02ae9833d | ||
|
|
18edc38433 | ||
|
|
4c5ad23edf | ||
|
|
6288e3f69a | ||
|
|
eebc33581c | ||
|
|
c873c32d09 | ||
|
|
36583add1d | ||
|
|
829df50eca | ||
|
|
264832d8a2 | ||
|
|
85491c7f22 | ||
|
|
8670e5f9a7 | ||
|
|
6b4dc4ca8d | ||
|
|
502dcf4e54 | ||
|
|
a1721eb05e | ||
|
|
292df5f5d9 | ||
|
|
fcac6e36fd | ||
|
|
8d9ca3d716 | ||
|
|
9640920863 | ||
|
|
887d3079df | ||
|
|
250b61b68d | ||
|
|
d306b51c2c | ||
|
|
8f44cdedd4 | ||
|
|
3a968fa8e5 | ||
|
|
7249c3be9e | ||
|
|
3d23ea1497 | ||
|
|
de6a4d5675 | ||
|
|
5e989a16bc | ||
|
|
fd2e2f9c7b | ||
|
|
843992e631 | ||
|
|
c51ddbc725 | ||
|
|
4f24db0956 | ||
|
|
25cfb7db74 | ||
|
|
636c54aa36 | ||
|
|
f30e9f810e | ||
|
|
2c9a7f9a99 | ||
|
|
7c6f381bbe | ||
|
|
6c0b46725d | ||
|
|
7b86c4e4eb | ||
|
|
5ab30c373e | ||
|
|
3c80a43435 | ||
|
|
9ae8b0ac49 | ||
|
|
135dd85a82 | ||
|
|
4055988478 | ||
|
|
6285f33989 | ||
|
|
e1c8194beb | ||
|
|
73c7bdf0c0 | ||
|
|
14f39d71ac | ||
|
|
943335f8a9 | ||
|
|
d269eb178d | ||
|
|
6fe7ce3952 | ||
|
|
3a66ccb6d2 | ||
|
|
7e9acfdd7b | ||
|
|
525c9ceac3 | ||
|
|
7b903f4fc7 | ||
|
|
17869d85c6 | ||
|
|
3f12b08a85 | ||
|
|
d2269a53cc | ||
|
|
8e3e26f677 | ||
|
|
449b4f59e5 | ||
|
|
b13d675692 | ||
|
|
46f1461de6 | ||
|
|
952523d3f9 | ||
|
|
319c865ef0 | ||
|
|
018c6802f4 | ||
|
|
583522c3a2 | ||
|
|
8461f6514a | ||
|
|
eef26defb4 | ||
|
|
68e2ececce | ||
|
|
169f757fb2 | ||
|
|
cbb5392525 | ||
|
|
bc088a699f | ||
|
|
8e004d0e3a | ||
|
|
ac2c7fe9ab | ||
|
|
d8a48043c5 | ||
|
|
a7ee81458c | ||
|
|
e067b1bf94 | ||
|
|
a774f631f0 | ||
|
|
720eb77341 | ||
|
|
a5bbbfc960 | ||
|
|
46c0726277 | ||
|
|
8ca2315874 | ||
|
|
bac2f097f2 | ||
|
|
f0ca38e828 | ||
|
|
176eb1424d | ||
|
|
2f10e68e98 | ||
|
|
33ccf47a92 | ||
|
|
13faad0977 | ||
|
|
ee9dbdaf74 | ||
|
|
76625dc7b2 | ||
|
|
eac15cc15d | ||
|
|
4e66f57150 | ||
|
|
4f80169f9b | ||
|
|
8b183269d1 | ||
|
|
c5e2c1fd0f | ||
|
|
2d2d31adf7 | ||
|
|
798df862f7 | ||
|
|
c3c16bf607 | ||
|
|
c3e449745e | ||
|
|
cd0769675e | ||
|
|
86e369af19 | ||
|
|
0bba768fbf | ||
|
|
8f12a77e12 | ||
|
|
0c2877d42f | ||
|
|
e22156e779 | ||
|
|
6a6eab1c94 | ||
|
|
bfb7928a74 | ||
|
|
9566065160 | ||
|
|
6949b27aa7 | ||
|
|
2482efba29 | ||
|
|
dc60f3c970 | ||
|
|
84cd18d1d5 | ||
|
|
770cd1f928 | ||
|
|
cf17b56cc7 | ||
|
|
0dd3e71353 | ||
|
|
be9b3a41a8 | ||
|
|
be7943d5e2 | ||
|
|
3ef102ba55 | ||
|
|
660e901283 | ||
|
|
b42d2a96a2 | ||
|
|
10d5e2453e | ||
|
|
e4d3e61bbb | ||
|
|
ab1c8a825f | ||
|
|
4b06e2a175 | ||
|
|
08e07957a7 | ||
|
|
ab4602094a | ||
|
|
efe380bdfe | ||
|
|
1bc7a49cdb | ||
|
|
4c30ce65ab | ||
|
|
6464708514 | ||
|
|
d642116dd4 | ||
|
|
4ef0b6d37f | ||
|
|
57b58775c6 | ||
|
|
7e076a1e34 | ||
|
|
27a958079f | ||
|
|
c9570e5fe8 | ||
|
|
71af5d2166 | ||
|
|
5da177e520 | ||
|
|
c6106f1b92 | ||
|
|
b2bcc8548f | ||
|
|
3005cadc97 | ||
|
|
c79a5a55ac | ||
|
|
b9c978548a | ||
|
|
48dcbbc227 | ||
|
|
ed041b78bb | ||
|
|
e11ab1ae33 | ||
|
|
e99b125517 | ||
|
|
f2d40d40fd | ||
|
|
21ece80187 | ||
|
|
f58b6dcd17 | ||
|
|
579f604b9f | ||
|
|
49b4810a78 | ||
|
|
51f28b5936 | ||
|
|
37a50f8bc1 | ||
|
|
e0ab00386c | ||
|
|
62fd98e075 | ||
|
|
aef020c744 | ||
|
|
5be9c94641 | ||
|
|
0ce34670c4 | ||
|
|
5bcfa88f48 | ||
|
|
7391937070 | ||
|
|
3d5b8e31c8 | ||
|
|
6cc616d993 | ||
|
|
9a686230c6 | ||
|
|
22831cc268 | ||
|
|
2f183896eb | ||
|
|
633090f967 | ||
|
|
ece0791a08 | ||
|
|
8bc4eab2c0 | ||
|
|
bb0b39fabb | ||
|
|
2b02158e19 | ||
|
|
2e97ccd40d | ||
|
|
da6691928e | ||
|
|
1a1b8c3a65 | ||
|
|
8ebd604cde | ||
|
|
d9521ce1e5 | ||
|
|
f91dd1e2c0 | ||
|
|
474846e9c2 | ||
|
|
cae2bcc3ea | ||
|
|
13784345af | ||
|
|
2f5e1eeadc | ||
|
|
69676da446 | ||
|
|
ed283d4d2e | ||
|
|
f7e1b08788 | ||
|
|
66e65587bd | ||
|
|
59d837bbb2 | ||
|
|
5dc55914ed | ||
|
|
912f134eb6 | ||
|
|
aeed328c18 | ||
|
|
17526ca59c | ||
|
|
c19eeb01e1 | ||
|
|
575fdbbcc3 | ||
|
|
679bd2956b | ||
|
|
e6b29a4ab8 | ||
|
|
d45637a407 | ||
|
|
876dee1870 | ||
|
|
263740dd30 | ||
|
|
09848c7b21 | ||
|
|
c2abc94241 | ||
|
|
781d2da933 | ||
|
|
cfe0060121 | ||
|
|
434d2d3d5d | ||
|
|
e6a1a98fd3 | ||
|
|
5b3723322e | ||
|
|
631dc547fa | ||
|
|
59324f7438 | ||
|
|
2727b2babe | ||
|
|
89f8136137 | ||
|
|
165e9c62e8 | ||
|
|
5091066d6c | ||
|
|
e8c1ce333c | ||
|
|
9b83cde515 | ||
|
|
c4a6b4a680 | ||
|
|
9c784228fb | ||
|
|
16e2f9ac96 | ||
|
|
b747d31574 | ||
|
|
14fccf3f6e | ||
|
|
c73eb0d951 | ||
|
|
2b008ecabe | ||
|
|
8908a720f3 | ||
|
|
d67b0ef5ab | ||
|
|
72769fbcb0 | ||
|
|
7268e5fc11 | ||
|
|
ec547af49e | ||
|
|
8f54b8a576 | ||
|
|
9d36ad6dab | ||
|
|
f64e85c1cf | ||
|
|
5f3a1b1311 | ||
|
|
207b9ae36c | ||
|
|
afd99a1dfe | ||
|
|
bc9e1c3007 | ||
|
|
4b88a52fcf | ||
|
|
ca7c01bbc8 | ||
|
|
7fcd4a1e94 | ||
|
|
6a3fefd513 | ||
|
|
b329152dc3 | ||
|
|
1cf31c67f8 | ||
|
|
5d603cc246 | ||
|
|
44f35a813c | ||
|
|
7e6e480788 | ||
|
|
987a14b68d | ||
|
|
d9c2f53c6a | ||
|
|
4811668832 | ||
|
|
354be775ad | ||
|
|
e9d5de7e97 | ||
|
|
b25814e399 | ||
|
|
91d98c6aad | ||
|
|
1132018d16 | ||
|
|
f07aa9a2a7 | ||
|
|
3e00860f7f | ||
|
|
6ada813dd5 | ||
|
|
643c7272ca | ||
|
|
97b251e3a3 | ||
|
|
94db2c9159 | ||
|
|
9d346082ea | ||
|
|
ea7d822420 | ||
|
|
3058756346 | ||
|
|
6cfa3b9c70 | ||
|
|
d43391e625 | ||
|
|
7f796c5ec1 | ||
|
|
8d32c7ce23 | ||
|
|
820c125912 | ||
|
|
79a01da317 | ||
|
|
d1a4b0d1d1 | ||
|
|
35db670f5c | ||
|
|
b2c4bfc926 | ||
|
|
400c6ebfe1 | ||
|
|
2b08ecad7f | ||
|
|
6303fbb961 | ||
|
|
d1fe7f6533 | ||
|
|
899aefd851 | ||
|
|
c04e1ae0f5 | ||
|
|
9f77936e3e | ||
|
|
34c2cfdb2a | ||
|
|
1359452f67 | ||
|
|
1fcb60ab3f | ||
|
|
33a0af1bcd | ||
|
|
acf36ec461 | ||
|
|
31666c9bb6 | ||
|
|
64139e301b | ||
|
|
84893842e9 | ||
|
|
11cc3aa783 | ||
|
|
bcd4f279a8 | ||
|
|
27cfc225de | ||
|
|
94623c43eb | ||
|
|
e8b8b19332 | ||
|
|
1b376746a2 | ||
|
|
1a2f440e11 | ||
|
|
b0dfa6949c | ||
|
|
de9254a221 | ||
|
|
c278bb094a | ||
|
|
bfc7d76853 | ||
|
|
4b2367699a | ||
|
|
ca39b8e215 | ||
|
|
38f3ccfbd8 | ||
|
|
4d9cf4329c | ||
|
|
33674a0d5b | ||
|
|
6a18abf17f | ||
|
|
6984794be1 | ||
|
|
f666023bef | ||
|
|
6830aa7ac0 | ||
|
|
6bcf5c25dc | ||
|
|
b559878667 | ||
|
|
c6184acf26 | ||
|
|
5d58530661 | ||
|
|
e04bfcde3c | ||
|
|
c8be2257ef | ||
|
|
0f45476a8b | ||
|
|
99cdf931a8 | ||
|
|
ed4658adcc | ||
|
|
0cc9089156 | ||
|
|
71e0e8e09e | ||
|
|
0dc708ab2a | ||
|
|
f73426df6a | ||
|
|
abc8acb6ed | ||
|
|
1944745902 | ||
|
|
e9bb76e698 | ||
|
|
5810ca8f81 | ||
|
|
c6249c5a83 | ||
|
|
2c0f9184db | ||
|
|
15cf4ec0f1 | ||
|
|
8ba56069c4 | ||
|
|
3889c0f75d | ||
|
|
b1685bcc12 | ||
|
|
d0055bb118 | ||
|
|
8a7d18d586 | ||
|
|
b6f235efcd | ||
|
|
b609fcbac7 | ||
|
|
969c9a903e | ||
|
|
c4b5baf6cc | ||
|
|
0aca2dab6c | ||
|
|
6fa70711d7 | ||
|
|
14cbd67e04 | ||
|
|
f8aa51941d | ||
|
|
f86a4022ea | ||
|
|
cddfef1b9f | ||
|
|
c12fb0d668 | ||
|
|
ce3c9b936b | ||
|
|
7c3bc8884d | ||
|
|
6ebced6f01 | ||
|
|
6e7df526ff | ||
|
|
5d1352590a | ||
|
|
b0aff726b5 | ||
|
|
ca002623b8 | ||
|
|
f0e8153a67 | ||
|
|
a0612b2beb | ||
|
|
3071c887cc | ||
|
|
47d7ebb15f | ||
|
|
2512134e15 | ||
|
|
e682172486 | ||
|
|
0c9714b5a5 | ||
|
|
f13622836e | ||
|
|
1a91214dd0 | ||
|
|
ceb759aba1 | ||
|
|
e88fdd861f | ||
|
|
85166a2614 | ||
|
|
fde9319bbd | ||
|
|
5d733a79ef | ||
|
|
ee58b3543e | ||
|
|
3d0c87579b | ||
|
|
4f7b4f1602 | ||
|
|
b1c3453d38 | ||
|
|
23974ee83a | ||
|
|
84951026e0 | ||
|
|
8cae642243 | ||
|
|
8b5638f82d | ||
|
|
16500793a5 | ||
|
|
e294f2e286 | ||
|
|
a237e1541b | ||
|
|
ffdb75d028 | ||
|
|
9ea307d90a | ||
|
|
1059b3e6e6 | ||
|
|
5ec40271f8 | ||
|
|
adf0aecd13 | ||
|
|
5ab102ed55 | ||
|
|
aec96d70d2 | ||
|
|
da50b5c8c8 | ||
|
|
043bc0494a | ||
|
|
d9a8fa82fa | ||
|
|
fe938772b6 | ||
|
|
fed9e5d157 | ||
|
|
f706eec483 | ||
|
|
a4e511bbca | ||
|
|
7402e30226 | ||
|
|
d3f519fa0b | ||
|
|
9850b21e2b | ||
|
|
9a193dde5e | ||
|
|
b814981828 | ||
|
|
39967154bb | ||
|
|
d6911c3e08 | ||
|
|
ccf08cd48a | ||
|
|
9978a0c2b3 |
No files matched your search
@@ -0,0 +1,123 @@
|
||||
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: Download depots
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: depots
|
||||
path: depots
|
||||
|
||||
- name: Build assets
|
||||
run: bun run build:assets --all-targets --depot --production
|
||||
@@ -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
|
||||
@@ -0,0 +1,58 @@
|
||||
name: Build 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: true
|
||||
|
||||
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 }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
name: Deploy
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
+6
-1
@@ -1,4 +1,5 @@
|
||||
node_modules
|
||||
_node_modules
|
||||
package-lock.json
|
||||
.env
|
||||
/test-results/
|
||||
@@ -20,4 +21,8 @@ temp/
|
||||
depots
|
||||
public/sitemap*
|
||||
/firebase.json
|
||||
target
|
||||
target
|
||||
# packages/core/src/protos/*
|
||||
# !packages/core/src/protos/*.proto
|
||||
/.vercel
|
||||
/.astro
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"recommendations": ["astro-build.astro-vscode"],
|
||||
"unwantedRecommendations": []
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"command": "./node_modules/.bin/astro dev",
|
||||
"name": "Development server",
|
||||
"request": "launch",
|
||||
"type": "node-terminal"
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+24
-4
@@ -2,6 +2,7 @@
|
||||
"cSpell.words": [
|
||||
"AABBOX",
|
||||
"Abhi",
|
||||
"absarc",
|
||||
"accountinfo",
|
||||
"adsense",
|
||||
"aeson",
|
||||
@@ -10,8 +11,10 @@
|
||||
"apcr",
|
||||
"applypatches",
|
||||
"artefacts",
|
||||
"astrojs",
|
||||
"atgm",
|
||||
"Avearges",
|
||||
"Autoloader",
|
||||
"Autoreloader",
|
||||
"AYUV",
|
||||
"battleresults",
|
||||
"bbox",
|
||||
@@ -27,7 +30,10 @@
|
||||
"blitzkit",
|
||||
"blitzrinth",
|
||||
"blitzstars",
|
||||
"cacheable",
|
||||
"Callouts",
|
||||
"Camo",
|
||||
"CCPAOPTOUT",
|
||||
"CDON",
|
||||
"classname",
|
||||
"cleandist",
|
||||
@@ -35,17 +41,20 @@
|
||||
"cockroackdb",
|
||||
"Coef",
|
||||
"cooldown",
|
||||
"corelations",
|
||||
"corsproxy",
|
||||
"CUBEMAP",
|
||||
"CUBETEXCOORD",
|
||||
"customperiod",
|
||||
"datasource",
|
||||
"Dava",
|
||||
"dbid",
|
||||
"Ddpf",
|
||||
"Ddsd",
|
||||
"debugflags",
|
||||
"deburr",
|
||||
"decalmask",
|
||||
"decompressor",
|
||||
"defence",
|
||||
"degressive",
|
||||
"devkrieg",
|
||||
@@ -53,20 +62,21 @@
|
||||
"DIDS",
|
||||
"donotremove",
|
||||
"drei",
|
||||
"Droodles",
|
||||
"dvpd",
|
||||
"dvpl",
|
||||
"DVPLCRC",
|
||||
"dvpm",
|
||||
"dxgi",
|
||||
"echarts",
|
||||
"Everytime",
|
||||
"FASTNAME",
|
||||
"flexdirection",
|
||||
"FOURCC",
|
||||
"frameloop",
|
||||
"fsformat",
|
||||
"Fullscreen",
|
||||
"fullstats",
|
||||
"fuzzysort",
|
||||
"gamemode",
|
||||
"gameplay",
|
||||
"glsl",
|
||||
"GLTF",
|
||||
@@ -88,6 +98,7 @@
|
||||
"loddist",
|
||||
"lods",
|
||||
"lossrate",
|
||||
"Maddoxkkm",
|
||||
"malum",
|
||||
"mantlets",
|
||||
"metallicness",
|
||||
@@ -99,14 +110,19 @@
|
||||
"mmnow",
|
||||
"modeltransform",
|
||||
"MURICA",
|
||||
"nanostores",
|
||||
"NEGATIVEX",
|
||||
"NEGATIVEY",
|
||||
"NEGATIVEZ",
|
||||
"NITROPAY",
|
||||
"nivo",
|
||||
"nmatname",
|
||||
"noout",
|
||||
"normalmap",
|
||||
"oneof",
|
||||
"oopsies",
|
||||
"Oopsy",
|
||||
"opentest",
|
||||
"OPTML",
|
||||
"outdir",
|
||||
"outfile",
|
||||
@@ -120,6 +136,7 @@
|
||||
"POSITIVEZ",
|
||||
"precompute",
|
||||
"Promisable",
|
||||
"proto",
|
||||
"protobuf",
|
||||
"protos",
|
||||
"Pyogenics",
|
||||
@@ -168,6 +185,7 @@
|
||||
"UNORM",
|
||||
"unpickled",
|
||||
"Unregistering",
|
||||
"unrotate",
|
||||
"vickers",
|
||||
"vitepress",
|
||||
"Vovko",
|
||||
@@ -187,11 +205,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"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": ".",
|
||||
},
|
||||
{
|
||||
"path": "C:/Program Files/WindowsApps/7458BE2C.WorldofTanksBlitz_11.1.256.0_x64__x4tje2y229k00/Data",
|
||||
},
|
||||
],
|
||||
}
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
files:
|
||||
- source: /src/lang/en-US.json
|
||||
translation: /src/lang/%locale%.json
|
||||
- source: /packages/core/lang/en-US.json
|
||||
translation: /%original_path%/%locale%.json
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"client_id": "1097673957865443370",
|
||||
"client_id_dev": "1099063696015229078"
|
||||
}
|
||||
@@ -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' },
|
||||
],
|
||||
},
|
||||
});
|
||||
@@ -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 }) {
|
||||
// ...
|
||||
},
|
||||
};
|
||||
@@ -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;
|
||||
}
|
||||
@@ -12,7 +12,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 |
|
||||
| Website advertisement platform | Aeson |
|
||||
| Compare pre-release testing | [OPTML] |
|
||||
| Redacted | GonnaHetzMe |
|
||||
@@ -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 | After |
|
||||
| ------------------------------------------- | ------------------------------------------ |
|
||||
|  |  |
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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)
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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!
|
||||
@@ -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!
|
||||
|
||||
|
||||
@@ -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.
|
||||
---
|
||||
@@ -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,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 |
@@ -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).
|
||||
|
||||

|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -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
|
||||
$$
|
||||
@@ -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.
|
||||
|
||||

|
||||
|
||||
$z=1.20\implies Z=1200$ is the $88\%$ percentile. The bar is now three quarters full.
|
||||
|
||||

|
||||
|
||||
Thus, by extension, negative scores are red bars originating from the right. $z=-1.20\implies Z=-1200$ is the $12\%$ percentile.
|
||||
|
||||

|
||||
|
||||
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.
|
||||
|
||||

|
||||
|
||||
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).
|
||||
|
||||

|
||||
|
||||
And this is what real data **DOES NOT** look like where $r$ remains constant as $m$ drops (https://www.desmos.com/calculator/5yfl2ulemf).
|
||||
|
||||

|
||||
|
||||
## 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.
|
||||
Vendored
-5
@@ -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.
|
||||
@@ -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;
|
||||
+34
-95
@@ -1,113 +1,52 @@
|
||||
{
|
||||
"name": "blitzkit",
|
||||
"version": "1.21.2",
|
||||
"private": true,
|
||||
"version": "1.26.1",
|
||||
"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"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "@blitzkit/bot",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"types": "src/types.d.ts",
|
||||
"dependencies": {
|
||||
"@blitzkit/core": "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) => {
|
||||
@@ -0,0 +1,128 @@
|
||||
import {
|
||||
BlitzTankClass,
|
||||
Region,
|
||||
regionToRegionSubdomain,
|
||||
} from '@blitzkit/core';
|
||||
import { tankDefinitions } from '../core/blitzkit/nonBlockingPromises';
|
||||
import { createLocalizedCommand } from '../core/discord/createLocalizedCommand';
|
||||
import { translator } from '../core/localization/translator';
|
||||
import { CommandRegistry } from '../events/interactionCreate';
|
||||
|
||||
interface Auction {
|
||||
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';
|
||||
}
|
||||
|
||||
export const auctionCommand = new Promise<CommandRegistry>((resolve) => {
|
||||
resolve({
|
||||
command: createLocalizedCommand('auction'),
|
||||
|
||||
async handler(interaction) {
|
||||
const { t, translate } = 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>);
|
||||
const saleableTanks = data.results.filter((result) => result.available);
|
||||
|
||||
if (saleableTanks.length === 0) {
|
||||
return t`bot.commands.auction.errors.no_auction`;
|
||||
}
|
||||
|
||||
const nextPricesTimestamp = saleableTanks[0].next_price_timestamp;
|
||||
|
||||
const title = `# ${t`bot.commands.auction.body.title`}`;
|
||||
const subtitle = `${translate('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 = translate('bot.commands.auction.body.next', [
|
||||
`<:gold:1317173197082333244> ${data.next_price!.value.toLocaleString(
|
||||
interaction.locale,
|
||||
)}`,
|
||||
]);
|
||||
|
||||
return `${
|
||||
index + 1
|
||||
}. ${name} <:gold:1317173197082333244> ${data.price!.value.toLocaleString(
|
||||
interaction.locale,
|
||||
)}\n-# ${next}`;
|
||||
})
|
||||
.join('\n\n');
|
||||
const content = `${title}\n${subtitle}\n\n${body}`;
|
||||
|
||||
return content;
|
||||
},
|
||||
});
|
||||
});
|
||||
@@ -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';
|
||||
|
||||
+27
-26
@@ -1,26 +1,27 @@
|
||||
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 { 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;
|
||||
@@ -33,15 +34,15 @@ export async function renderBreakdown(
|
||||
) {
|
||||
const { t, translate } = 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)[] = [];
|
||||
@@ -134,7 +135,7 @@ export async function renderBreakdown(
|
||||
children.push(
|
||||
<Breakdown.Row
|
||||
key={id}
|
||||
type="summary"
|
||||
displayType="summary"
|
||||
title={t`bot.commands.breakdown.body.total`}
|
||||
stats={[
|
||||
{
|
||||
@@ -174,7 +175,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,9 +186,9 @@ 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}`])
|
||||
@@ -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';
|
||||
@@ -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,14 @@
|
||||
import { getAccountInfo, getClanInfo } from '@blitzkit/core';
|
||||
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';
|
||||
|
||||
@@ -72,7 +71,9 @@ 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={`${translate('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';
|
||||
@@ -1,21 +1,22 @@
|
||||
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 { chunk } from 'lodash-es';
|
||||
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 { 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';
|
||||
|
||||
@@ -41,7 +42,7 @@ export const ownedTanksCommand = new Promise<CommandRegistry>((resolve) => {
|
||||
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,
|
||||
})),
|
||||
)
|
||||
@@ -61,7 +62,7 @@ export const ownedTanksCommand = new Promise<CommandRegistry>((resolve) => {
|
||||
const awaitedTankDefinitions = await tankDefinitions;
|
||||
const awaitedGameDefinitions = await gameDefinitions;
|
||||
const lines = tankStats
|
||||
.map(({ tank_id }) => awaitedTankDefinitions[tank_id])
|
||||
.map(({ tank_id }) => awaitedTankDefinitions.tanks[tank_id])
|
||||
.filter((tank) => tank.tier === tier)
|
||||
.sort(
|
||||
(a, b) =>
|
||||
@@ -78,7 +79,7 @@ export const ownedTanksCommand = new Promise<CommandRegistry>((resolve) => {
|
||||
index === 0
|
||||
? `${translate('bot.commands.owned_tanks.body.title', [
|
||||
markdownEscape(accountInfo.nickname),
|
||||
TIER_ROMAN_NUMERALS[tier as Tier],
|
||||
TIER_ROMAN_NUMERALS[tier],
|
||||
])}${lines.join('\n')}`
|
||||
: lines.join('\n'),
|
||||
);
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,11 +1,11 @@
|
||||
import { getAccountInfo } from '@blitzkit/core';
|
||||
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';
|
||||
|
||||
@@ -1,24 +1,25 @@
|
||||
import {
|
||||
deltaBkrlBlitzStats,
|
||||
emblemURL,
|
||||
getAccountInfo,
|
||||
getArchivedRatingLeaderboard,
|
||||
getClanAccountInfo,
|
||||
getLeagueFromScore,
|
||||
getRatingInfo,
|
||||
getRatingNeighbors,
|
||||
} from '@blitzkit/core';
|
||||
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';
|
||||
|
||||
@@ -62,12 +63,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,10 +77,12 @@ 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;
|
||||
@@ -122,9 +125,9 @@ export const ratingCommand = new Promise<CommandRegistry>((resolve) => {
|
||||
<TitleBar
|
||||
title={accountInfo.nickname}
|
||||
image={clanImage}
|
||||
description={`${translate(`bot.commands.rating.body.subtitle.${subcommand}`)} • ${new Date().toLocaleDateString(
|
||||
interaction.locale,
|
||||
)}`}
|
||||
description={`${translate(
|
||||
`bot.commands.rating.body.subtitle.${subcommand}`,
|
||||
)} • ${new Date().toLocaleDateString(interaction.locale)}`}
|
||||
/>
|
||||
|
||||
<div
|
||||
@@ -140,7 +143,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',
|
||||
+65
-141
@@ -1,123 +1,38 @@
|
||||
import {
|
||||
FIRST_MINIMAL_ARCHIVED_RATING_SEASON,
|
||||
getAccountInfo,
|
||||
getArchivedLatestSeasonNumber,
|
||||
getArchivedRatingLeaderboard,
|
||||
getClanAccountInfo,
|
||||
getRatingInfo,
|
||||
getRatingLeague,
|
||||
getRatingNeighbors,
|
||||
imgur,
|
||||
isOnGoingRatingSeason,
|
||||
LEAGUES,
|
||||
RatingInfo,
|
||||
RatingLeaderboard,
|
||||
Region,
|
||||
} from '@blitzkit/core';
|
||||
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;
|
||||
@@ -285,9 +200,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 +211,14 @@ 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)
|
||||
if (
|
||||
regionRatingInfo !== null &&
|
||||
regionRatingInfo.detail !== undefined
|
||||
) {
|
||||
return t`bot.commands.rating_leaderboard.body.no_ongoing_season`;
|
||||
}
|
||||
|
||||
const result = isCurrentSeason
|
||||
? await getRatingLeague(region, leagueIndex).then(async (result) =>
|
||||
@@ -319,12 +238,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,
|
||||
);
|
||||
@@ -351,25 +270,23 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
|
||||
);
|
||||
},
|
||||
);
|
||||
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}`)
|
||||
: ''
|
||||
} - ${translate(`common.regions.short.${region}`)}`;
|
||||
titleImage = leagueInfo.big_icon.startsWith('http')
|
||||
? leagueInfo.big_icon
|
||||
: `https:${leagueInfo.big_icon}`;
|
||||
titleImage = imgur(leagueInfo.icon);
|
||||
titleDescription = translate(
|
||||
'bot.commands.rating_leaderboard.body.top_players',
|
||||
[`${limit}`],
|
||||
@@ -378,10 +295,14 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
|
||||
const { region, id } = await resolvePlayerFromCommand(interaction);
|
||||
regionRatingInfo = isCurrentSeason
|
||||
? await getRatingInfo(region)
|
||||
: await getArchivedRatingInfo(region, season!);
|
||||
: null;
|
||||
|
||||
if (regionRatingInfo.detail !== undefined)
|
||||
if (
|
||||
regionRatingInfo !== null &&
|
||||
regionRatingInfo.detail !== undefined
|
||||
) {
|
||||
return t`bot.commands.rating_leaderboard.body.no_ongoing_season`;
|
||||
}
|
||||
|
||||
const accountInfo = await getAccountInfo(region, id);
|
||||
const clan = (await getClanAccountInfo(region, id, ['clan']))?.clan;
|
||||
@@ -401,7 +322,7 @@ 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,
|
||||
);
|
||||
|
||||
@@ -415,7 +336,7 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
|
||||
}
|
||||
|
||||
const halfRange = Math.round(limit / 2);
|
||||
const trimmed = players.entries.slice(
|
||||
const trimmed = players.version!.value.entries.slice(
|
||||
playerIndex - halfRange,
|
||||
playerIndex + halfRange + 1,
|
||||
);
|
||||
@@ -436,12 +357,10 @@ 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
|
||||
@@ -450,18 +369,23 @@ export const ratingLeaderboardCommand = new Promise<CommandRegistry>(
|
||||
titleName = neighbors ? accountInfo.nickname : '';
|
||||
titleDescription = t`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;
|
||||
|
||||
@@ -1,19 +1,23 @@
|
||||
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 { 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 { CommandRegistry } from '../events/interactionCreate';
|
||||
import { theme } from '../stitches.config';
|
||||
|
||||
@@ -219,9 +223,9 @@ async function playerListing(
|
||||
winningTeam: number,
|
||||
recordingPlayer = false,
|
||||
) {
|
||||
const awaitedTankAverages = await tankAverages;
|
||||
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
|
||||
@@ -500,7 +504,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
|
||||
@@ -1,27 +1,28 @@
|
||||
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 { 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';
|
||||
@@ -76,7 +77,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);
|
||||
@@ -94,7 +95,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
||||
]);
|
||||
}
|
||||
|
||||
const startingTank = awaitedTankDefinitions[startingTankId];
|
||||
const startingTank = awaitedTankDefinitions.tanks[startingTankId];
|
||||
|
||||
if (startingTank.tier > targetTank.tier) {
|
||||
return translate('bot.commands.research.errors.unordered', [
|
||||
@@ -111,7 +112,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
||||
]);
|
||||
}
|
||||
} else {
|
||||
if (targetTank.treeType !== 'researchable') {
|
||||
if (targetTank.type !== TankType.RESEARCHABLE) {
|
||||
return translate('bot.commands.research.errors.non_tech_tree', [
|
||||
escapeMarkdown(targetTank.name),
|
||||
]);
|
||||
@@ -137,7 +138,7 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
||||
|
||||
const foundAncestor = targetTankAncestry.find(
|
||||
(id) =>
|
||||
awaitedTankDefinitions[id].tier === 1 ||
|
||||
awaitedTankDefinitions.tanks[id].tier === 1 ||
|
||||
tankStats.some(({ tank_id }) => tank_id === id),
|
||||
);
|
||||
|
||||
@@ -159,33 +160,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 +231,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 +247,9 @@ export const researchCommand = new Promise<CommandRegistry>((resolve) => {
|
||||
<TitleBar
|
||||
title={nickname}
|
||||
image={clanImage}
|
||||
description={`${t`bot.commands.research.body.subtitle`} • ${targetTank.name}`}
|
||||
description={`${t`bot.commands.research.body.subtitle`} • ${
|
||||
targetTank.name
|
||||
}`}
|
||||
/>
|
||||
|
||||
<div
|
||||
@@ -351,7 +380,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
|
||||
@@ -1,15 +1,13 @@
|
||||
import { ClanList, fetchBlitz, Region } from '@blitzkit/core';
|
||||
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;
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
import {
|
||||
AccountList,
|
||||
fetchBlitz,
|
||||
Region,
|
||||
usernamePattern,
|
||||
} from '@blitzkit/core';
|
||||
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';
|
||||
@@ -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';
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+6
-4
@@ -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,7 +27,7 @@ export interface AllStatsOverviewProps {
|
||||
locale: Locale;
|
||||
}
|
||||
|
||||
export default function AllStatsOverview({
|
||||
export function AllStatsOverview({
|
||||
stats,
|
||||
locale,
|
||||
supplementaryStats,
|
||||
File renamed without changes.
+19
-16
@@ -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,
|
||||
+3
-3
@@ -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;
|
||||
File renamed without changes.
@@ -6,7 +6,7 @@ interface CommandWrapperProps {
|
||||
fat?: boolean;
|
||||
}
|
||||
|
||||
export default function CommandWrapper({ children, fat }: CommandWrapperProps) {
|
||||
export function CommandWrapper({ children, fat }: CommandWrapperProps) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
import { asset } from '../core/blitzkit/asset';
|
||||
import { asset } from '@blitzkit/core';
|
||||
|
||||
interface FlagProps {
|
||||
nation: string;
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import { Percentile } from '../../../constants/percentiles';
|
||||
import { Percentile } from '@blitzkit/core';
|
||||
import { theme } from '../../../stitches.config';
|
||||
import PercentileIndicator from '../../PercentileIndicator';
|
||||
import { PercentileIndicator } from '../../PercentileIndicator';
|
||||
|
||||
interface CardItem {
|
||||
label: string;
|
||||
File renamed without changes.
File renamed without changes.
+8
-5
@@ -1,19 +1,22 @@
|
||||
import {
|
||||
BlitzStats,
|
||||
getWN8Percentile,
|
||||
isNumber,
|
||||
SupplementaryStats,
|
||||
} from '@blitzkit/core';
|
||||
import { Locale } from 'discord.js';
|
||||
import { AllStats, SupplementaryStats } from '../../core/blitz/getAccountInfo';
|
||||
import { translator } from '../../core/localization/translator';
|
||||
import isNumber from '../../core/math/isNumber';
|
||||
import getWN8Percentile from '../../core/statistics/getWN8Percentile';
|
||||
import { Card } from './components/Card';
|
||||
import { Root } from './components/Root';
|
||||
import { Row } from './components/Row';
|
||||
|
||||
interface GenericAllStatsProps {
|
||||
stats: AllStats;
|
||||
stats: BlitzStats;
|
||||
supplementaryStats?: SupplementaryStats;
|
||||
locale: Locale;
|
||||
}
|
||||
|
||||
export default function GenericAllStats({
|
||||
export function GenericAllStats({
|
||||
stats,
|
||||
supplementaryStats,
|
||||
locale,
|
||||
Loaded 100 of 910 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user