Commit Graph

3532 Commits

Author SHA1 Message Date
Kalle
0affb028a0 Build Analyzer: Big ink tank to CJR 2022-12-03 02:09:18 +02:00
Kalle
938a208698 Fix CI 2022-11-30 22:29:23 +02:00
Kalle
ffc92bdbce Chill Season 2022 update (2.0) 2022-11-30 22:24:56 +02:00
Gell
14a929cfb2
Update Chinese translation (#1173)
* Update analyzer.json

* Update calendar.json

* Update common.json

* Update contributions.json

* Update common.json

* Update faq.json

* Update front.json

* Update tournament.json
2022-11-29 21:58:51 +02:00
Igor
6df9257b20
Ru-translation (tournaments + planner) (#1171)
* tournaments translation by yaga, other updates by DblCookies
2022-11-28 23:25:20 +03:00
William Lam
fe65b42d9f
BuildCard: Link to weapon builds page (#1167)
* Feature Implementation: Weapon icon on build card now links to the builds page that contains all builds corresponding to said weapon

* Refactor to an actual React hook

* Refactored the URL construction for the Weapon Builds page to urls.ts

* Changes

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-11-27 17:46:10 +02:00
Frederik
3b7a46f27b
Update Danish translations (#1168)
* Added Danish translations for planner

Added Tanslations for the following lines in the common.json file.

pages.plans
actions.setBg
plans.poweredBy

* Added Danish translations for contributions

Added translations for the following lines in the contributions.json file.
code
twig

fixed wrong translations in the following lines
borzoic #The first letter was uncapitalised and the translations used English words instead of Danish.

* Added Danish translations

Added translations in the front.json file 
plans.description

Changed translation or changed formating in the front.json file of the following lines
-  calendarGoTo (Added a dot)
- plus.description (added a dot)
- "badges.description" (changed translation in order to make it more compact)
- "maps.description (added a dot)
- "recentWinners" (Changed translation to make it a more faithfull translation)

* Added Danish translations

Added Danish translations in the tournament.json file.

added
- "preview": "Se forhåndsvisning af banelistegeneratoren (kun for admins)",
- admin.download
 - admin.download.discord
2022-11-27 17:00:33 +02:00
Kalle
47899b5bf2 Calendar: Add feature to delete an event
Closes #1121
2022-11-26 18:17:57 +02:00
Kalle
2067e8f7a7 Build Analyzer: Highlight when section/card active 2022-11-26 17:38:17 +02:00
Kalle
1648e28ba9 BuildCard: Better title wrapping and alignment
Closes #1163
2022-11-26 17:08:00 +02:00
Kalle
bbf0e9a034 BuildCard: Move mode icons inside popup 2022-11-26 16:42:20 +02:00
Kalle
bb722b225f Move all immutable assets to one folder
Closes #918
2022-11-26 16:33:43 +02:00
Kalle
2fc3136a35 Upgrade deps 2022-11-24 00:50:07 +02:00
Kalle
aef8ac5f61 Fix build pages not loading required i18n json 2022-11-24 00:17:05 +02:00
Kalle
a0414ee98a Upgrade to Node 18
Closes #1106
2022-11-24 00:14:56 +02:00
Kalle
3b418be3fb Planner: Add link to go back to home page
Closes #1153
2022-11-23 22:12:40 +02:00
Kalle
0e7371d125 Fix checks 2022-11-23 21:53:36 +02:00
Kalle
54dd5a63da Update Danish translation 2022-11-23 21:37:00 +02:00
Kalle
78d55fc896 Switch to renderToPipeableStream API
Closes #1152

Did something weird to remove errors on /plans
2022-11-23 21:33:46 +02:00
Kalle
6061c9672a Fix nanoid warning by replacing it with own function
Closes #1160
2022-11-23 21:15:42 +02:00
Kalle
14df9359ac Document adding new article
Closes #1151
2022-11-23 20:52:10 +02:00
Kalle
acffb83997 Add SOS and SAC badges 2022-11-23 17:42:21 +02:00
Kalle
aea7406586
Map Planner (#1145)
* Initial

* Add images

* Tweaks

* Proper sized bg image and weapons

* Stage bg picker

* Outlined weapon images for planner

* First version

* Lint

* Add alt and title to weapon
2022-11-23 17:38:38 +02:00
William Lam
02516e26bd
Add script that generates a CSV containing basic attribute information on each Main Weapon (#1148)
* Added a script that generates a CSV containing basic attribute information on each Main Weapon

* Improved some names & console info

* More comments

* Renamed file & fixed Prettier error

* Shortened the default string a weapon attribute if it doesn't exist
2022-11-22 17:48:43 +02:00
William Lam
dd14efb9ae
Fix analyzer weapon combobox flicker issue (#1131)
* Fixed flicker with combobox issue using unstable_shouldReload().
- Reference: https://remix.run/docs/en/v1/api/conventions#never-reloading-the-root

* Update app/routes/analyzer.tsx

Changed to false based on Sendou's recommendation

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-11-20 23:56:23 +02:00
William Lam
b69302c095
Fix <select /> dropdown arrow color for Light Mode (#1142) 2022-11-20 23:52:19 +02:00
Ai Suzuki
3d41e5ede1
Update Japanese translation (#1144)
* update translation

* add items
2022-11-20 23:49:01 +02:00
Remmy Cat Stock
a6afd28953
Separate action value from submit in TO inputs due to Safari 15 bug
Fixes #1138
2022-11-19 22:06:05 +01:00
Kalle
0383d4a3e9 Fix picking (Unlisted team) crashing 2022-11-19 20:17:36 +02:00
Remmy Cat Stock
0bfa16eb3f Re-enable bulk edit controls for map pools when logged out 2022-11-19 16:29:55 +01:00
Kalle
045cb5ce83 Preview maplist generator toggle for admins 2022-11-19 17:14:12 +02:00
Kalle
29057d60db Download participants as Discord list button 2022-11-19 16:59:36 +02:00
dependabot[bot]
2590d81b7a
Bump loader-utils from 2.0.3 to 2.0.4 (#1132)
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.3...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-19 16:13:25 +02:00
William Lam
f704f97be3
External links are now opened in a new tab (#1136)
- Reference: https://bobbyhadz.com/blog/react-open-link-in-new-tab#open-a-link-in-a-new-tab-in-react
2022-11-19 16:12:42 +02:00
Kalle
0730e86eb2 Give role position of 10 on create 2022-11-19 01:49:00 +02:00
Kalle
9d7cd816c9 Color role Lohi command 2022-11-19 01:33:58 +02:00
Ai Suzuki
266ffc99ae
Update Japanese translation (#1133) 2022-11-18 20:37:16 +02:00
Kalle
7658f8cb27 Add default description 2022-11-16 19:45:38 +02:00
Kalle
fd390f3fc3 Move menu up 2022-11-16 19:36:07 +02:00
Kalle
cc994776f4 Better ordering for TO Tools teams
Closes #1127
2022-11-16 19:30:42 +02:00
Kalle
e2dedf0526 Add Q&A about Patreon 2022-11-16 19:05:26 +02:00
William Lam
2da0738dc6
Ability Chunks Required section in Build Analyzer (#1120)
* Added Ability Chunks Required section in Build Analyzer

* Renamed a variable to be more precisely correct

* Added reference

* Removed some extra Javadoc comments

* Prettier fix

* We now only render the AbilityChunksRequired section only if the main abilities array contains a value other than "UNKNOWN"

* Improved React keys naming for performance reasons

* Ability Chunks map is now converted to an array & sorted by value (descending) before it gets rendered as visual components

* Fixed typing error

* Moved logical function to a new file in the analyzer module called abilityChunksCalc.ts
- Refactored for loop content to be cleaner
- Removed & changed some comments

* More for loop refactoring

* We now pass the entire build into abilityChunksCalc.ts

* Refactored map() to flatMap() so we avoid unknowns/null/undefined

* Refactored code to process mainAbilities and subAbilities

* Fixed subability list construction logic & typing in updateAbilityChunksMap()

* Got my first unit test working

* Added working unit tests, also changed sort order slightly

* Added a "real" build for testing

* Removed residual console.warn() call

* Moved constants to abilityChunksCalc.ts

* Ability chunk calculation is now correct for sub abilities

* Uncommented tests & improved their descriptions

* Rearranged expected output to match sorted order for clarity (even though it doesn't have to be)

* Fixed Prettier error

* Spacing

* Moved comments around

* More spacing

* Prettier error on test file

* Improved check in the tests

* Added a second "real" build to tests for good measure

* Added error message to empty array test

* Updated comments again

* More comments updated

* Update test name

* Ability Chunks section is now shown if we have at least one selected ability (handles edge case for primary slot-only abilities being the only chosen ability)
2022-11-16 00:10:48 +02:00
Kalle
a5fbc55bf5 Add badges 2022-11-15 21:23:03 +02:00
Gell
d18b162393
Update Chinese translation (#1125)
* Update calendar.json

* Update common.json

* Create tournament.json
2022-11-15 18:59:54 +02:00
Ai Suzuki
7161cd1e1b
Update Japanese translation (#1124) 2022-11-15 18:59:31 +02:00
Frederik
8800e43dcf
Update Danish translation (#1123)
* Added Danish translation

Added Danish translation for the line

"pages.articles":

* Added Danish translation

Added Danish translation for the following line.

"articlesGoTo"

* Added Danish translation

Added Danish translation for 
"articlesGoTo"

added missing comma's in the code, so it follows correct formatting.

* removed empty line at end of the file

Removed an empty line under the "}" symbol.

* Fixed formating

Removed line 16, as it was completely empty.

* Update front.json

* Update front.json

* Fix CI

* Added Danish Translation

Added Danish translation in the common.JSON file for the following lines. 

header.language
header.loggedInAs
header.theme
theme.light
theme.dark
theme.auto

Changes translation of the following lines in order to comply with translations in the game-misc.json 
"maps.halfSz"

* Added Danish Translations for TO-tools.

Added Danish translations for 
 "forms.toTools.header": 

  "forms.toTools.explanation": 
Note. the translations is assumed that the "seed creator tool" is a tool to seed the teams in the tournament.

* added Danish translations for TO-tool.

Added Danish translations for the following lines

The following lines have been translated

actions.saveChanges
maps.tieBreakerMapPool
maps.validation.PICKING
maps.validation.NOT_ONE_MAP_PER_MODE
maps.validation.MAP_REPEATED
maps.validation.MODE_REPEATED
maps.validation.TOO_MUCH_STAGE_REPEAT
maps.validation.VALID

* Added Danish translations for tournament.json

Added Danish translations for the TO tool.

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-11-15 18:58:52 +02:00
Kalle
7bce94d97e Show Plus Voting % to patrons 2022-11-15 18:04:37 +02:00
Kalle
dd3377e7f3 TO Tools roster link to user page 2022-11-15 00:45:42 +02:00
Kalle
ef0866a1b9 Fix linebreaks not working in calendar event description 2022-11-13 15:15:13 +02:00
Kalle
077df1ec98 Fix all teams showing without map pool 2022-11-13 14:45:04 +02:00