Commit Graph

388 Commits

Author SHA1 Message Date
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
Ai Suzuki
266ffc99ae
Update Japanese translation (#1133) 2022-11-18 20:37:16 +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
ecd5a2a2f7
TO Tools (#1077)
* Add DB tables

* Toggle TO Tools in new calendar event page

* TO tools page initial

* Add counter pick map pool UI

* Save tie breaker map pool

* Save team name

* Layout initial

* Load users own team

* Make team name input required

* Rename team

* Divide to sections

* Submit team map pool

* New style for counter pick map pool section expand

* Fix tiebreaker map pool not saved when new event made

* Split to many forms

* According for team name

* Small UI consistency tweaks

* Add explanation to tie breaker maps

* Remove redundant prop

* Fix new calendar event todos

* Use required hidden input component in new build page

* Fix to tools page showing even when toToolsEnabled = 0

* Delete team

* Map list generation tests initial

* Add tournament map list generation tests

* First version of map list generation

* Add seeded RNG

* Rearrange files

* Generation with strats initial

* Default map pool + allow one team not to have any maps

* Implement map generation via backtracking

* Make order of stages irrelevant

* Add one more TODO

* Seed

* Fixes

* Tournament map list generator initial

* More functional maplist

* Fix any

* Persist in search params initial

* Add date to calendar seed

* Revert "Persist in search params initial"

This reverts commit f01a9e6982.

* Allow admin to start tournament

* Rate maplist instead of optimal / suboptimal

* Add fallback if map list generation errors out

* Hide TO Tools if not admin

* Submit team roster and delete members

* Teams page

* Give roster s p a c e

* Clear user combobox on sent + layout tweaks

* Gracefully handle updating after tournament has started

* Add title

* Persist map list in search params

* Add i18n
2022-11-13 14:41:13 +02:00
Kalle
0806f9ed9c Add Leblanc Hideout Tournament badge 2022-11-10 18:01:36 +02:00
Gell
5f810cc32c
Update Chinese translation (#1114)
* Update user.json

* Update common.json

* Update analyzer.json

* Update builds.json

* Update faq.json

* Update analyzer.json
2022-11-09 18:49:33 +02:00
Frederik
dbbbf72d35
Update Danish translation (#1100)
* 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"

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-11-09 00:05:13 +02:00
Gell
b8acc5d4ea
Update Chinese translation (#1109)
* Update calendar.json

* Update contributions.json

* Update game-misc.json

* Update front.json

* Update user.json

* Update analyzer.json

* Update common.json

* Update common.json

* Update common.json

* Add missing comma

* Add missing comma

* reformat by Prettier

* Reformat by Prettier

* Update builds.json

* Remove duplicated key

* Fix period
2022-11-08 22:07:36 +02:00
Ai Suzuki
aaa1560e36
Update Japanese translation (#1112) 2022-11-08 22:05:07 +02:00
Igor
0f2631de73
Additional ru-translation (#1110)
* Translating missing keys (up to 08.11.2022)
2022-11-08 12:24:03 +03:00
Remmy Cat Stock
a73be2e742
Add placement ordinal translation (#1102) 2022-11-06 11:18:03 +01:00
Kalle
da8cd1c7ca Add new badges 2022-11-06 00:13:43 +02:00
Frederik
27a427a81b
Update Danish translation (#1089)
* 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

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-11-05 14:05:44 +02:00
Kalle
6ff4efdc20 Add American Spanish language
Closes #985

Just in-game names are different. Rest is copied from EU translation.
2022-11-03 22:10:24 +02:00
Kalle
123565a952 Add November's Salmon Run gear 2022-11-03 20:20:34 +02:00
Remmy Cat Stock
19fbd85f8f
Add auto theme option for detecting the theme from system/browser preferences (#1083)
* Add "auto" option to theme switcher

* Add labels to language and user menu buttons

* Update translation-progress.md
2022-11-03 01:44:56 +01:00
William Lam
0d8b88ea5a
All articles page (#1072)
* Added new Article route that renders all Articles (with a reasonable upper limit for now).
- Also added a GoToPageBanner for the main Articles page (/a) on the front page. This is placed above the ArticlesPeek component
- Used the sendou_love navItem icon for the moment (this can be replaced at any time once a new art asset is added)

* Fixed Prettier CI pipeline error

* Ran `npm run check-translation-jsons` to update missing Translations for new key added

* Update public/locales/en/front.json

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

* French localizations

* Removed unnecessary comment

* Converted h2 to h1 tags for Main Articles page

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

* Moved GoToPageBanner element for main articles page to below ArticlesPeek element

* Refactored some files so that the articles prop is passed into ArticlesPeek
- Also added the Articles header title in common.json

* Updated translation-progress.md

* Cleaned up data type for articles prop in ArticlesPeek

* Fixed React hydration error for translations on imported articles
- Added in SendouRouteHandle component on new Articles main page

* GoToPageBanner now optionally accepts a `navItem` parameter. It does not render the image if navItem is not passed into it

* Removed <Outlet /> JSX element on the main Articles page

* Removed sendou_love navItem on GoToPageBanner for articles page

* Fixed spacing issue by grouping ArticlesPeek and its corresponding GoToPageBanner element into a `stack` div

* Fixed pipeline error

* Update translation again

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-11-01 08:57:44 +02:00
Ai Suzuki
5ace920cc6
Update JP translation (#1086)
Co-authored-by: Ai Suzuki <asuzuki@blockchains.com>
2022-10-31 23:21:53 +02:00
Frederik
22a5c30762
Update DA translation (#1078)
* Added translations for object dmg calculator

Added translation for the Object DMG calc

changes translations to make them more correct.
fixed minor typos and misspellings.

* Added translations

Added Danish translations for following lines

pages.object-damage-calculator
actions.loading
actions.clear
actions.selectAll
actions.search
maps.template
maps.template.none
maps.template.event
maps.template.presets
maps.template.yourRecentEvents
maps.template.preset.ANARCHY
maps.template.preset.ALL
maps.template.preset.onlyMode
forms.errors.noSearchMatches
errors.genericReload

* Added translation for ojb calc

Added translation for the following line
"object-damage-calculator.description"

* Added mode long desc translation

Added translations for the following lines

MODE_LONG_TW
MODE_LONG_SZ
MODE_LONG_TC
MODE_LONG_RM
MODE_LONG_CB

* Fix

* Prettify

* Added translation for torpedo explanation

Added translation for 
"torpedoExplanation":

* Update translation-progress.md

* Added Danish translations

Added Danish translations for

damage.toSplat_one
damage.DIRECT_MIN
damage.DIRECT_MAX

Added capital starting letter for
 "damage.DISTANCE": 
  "damage.SPLASH":

* Update translation-progress.md

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-10-31 17:23:40 +02:00
lolametro
fce6632d59
Update DE translation (#1076)
* Update analyzer.json for DE

* Minor fix for DE analyzer.json

* Update common.json for DE

* Update front.json for DE

* Update translation-progress.md

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-10-31 17:17:10 +02:00
Frederik
d98d9f5768
Update Danish translation (#1069)
* Added translations for object dmg calculator

Added translation for the Object DMG calc

changes translations to make them more correct.
fixed minor typos and misspellings.

* Added translations

Added Danish translations for following lines

pages.object-damage-calculator
actions.loading
actions.clear
actions.selectAll
actions.search
maps.template
maps.template.none
maps.template.event
maps.template.presets
maps.template.yourRecentEvents
maps.template.preset.ANARCHY
maps.template.preset.ALL
maps.template.preset.onlyMode
forms.errors.noSearchMatches
errors.genericReload

* Added translation for ojb calc

Added translation for the following line
"object-damage-calculator.description"

* Added mode long desc translation

Added translations for the following lines

MODE_LONG_TW
MODE_LONG_SZ
MODE_LONG_TC
MODE_LONG_RM
MODE_LONG_CB

* Fix

* Prettify

* Added translation for torpedo explanation

Added translation for 
"torpedoExplanation":

* Update translation-progress.md

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-10-30 10:33:48 +02:00
Kalle
1667048496 Fix JP translations for "duration" 2022-10-30 01:53:32 +03:00
Kalle
60a0495b9d Support for blob 4 shots in analyzer
+ fixed L-3 showing curling damage in multiples.
+ fixed "1 hit" typoed to "1 hits"

Closes #1065
2022-10-29 21:04:34 +03:00
Kalle
7af8e7a9db Add slosher class weapons damages 2022-10-29 20:36:48 +03:00
Frederik
f89a67cdf6
Update Danish translations (#1059)
* Added translations for object dmg calculator

Added translation for the Object DMG calc

changes translations to make them more correct.
fixed minor typos and misspellings.

* Added translations

Added Danish translations for following lines

pages.object-damage-calculator
actions.loading
actions.clear
actions.selectAll
actions.search
maps.template
maps.template.none
maps.template.event
maps.template.presets
maps.template.yourRecentEvents
maps.template.preset.ANARCHY
maps.template.preset.ALL
maps.template.preset.onlyMode
forms.errors.noSearchMatches
errors.genericReload

* Added translation for ojb calc

Added translation for the following line
"object-damage-calculator.description"

* Added mode long desc translation

Added translations for the following lines

MODE_LONG_TW
MODE_LONG_SZ
MODE_LONG_TC
MODE_LONG_RM
MODE_LONG_CB

* Fix

* Prettify

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2022-10-29 11:11:46 +03:00
Kalle
cef0bf73d5 Update dutch translation 2022-10-29 10:58:46 +03:00
Igor
327df35380
Disable double torpedos in analyzer (#1058)
* Note about torpedo

* no magic numbers -> constant
2022-10-29 10:17:27 +03:00
Kalle
4eb0775532 Fix problems with translations jsons 2022-10-29 00:26:50 +03:00
Ai Suzuki
e0380392d5 add more translation 2022-10-28 11:39:14 +02:00
Ai Suzuki
bc73ace835 Merge branch 'master' into update-translation 2022-10-28 11:22:23 +02:00
Ai Suzuki
5e18d61fb6 update 2022-10-28 11:13:01 +02:00
Ai Suzuki
d13ae0e6a6 brash up translation + additional translations 2022-10-28 11:09:04 +02:00
Ai Suzuki
8937502fa9 refine transalation 2022-10-27 19:14:25 +02:00
Ai Suzuki
18986dccee first commit 2022-10-27 18:47:42 +02:00
Remmy Cat Stock
d1b1367651
Add event search to map pool templates 2022-10-27 13:31:37 +02:00
Remmy Cat Stock
0a85ad08d2
Add recent events to map pool templates 2022-10-27 13:31:37 +02:00
Remmy Cat Stock
63154e507e
Initial support for map pool templates 2022-10-27 13:31:36 +02:00
Remmy Cat Stock
edd3a1d91b
Improve MapPoolSelector UI 2022-10-27 13:31:36 +02:00
DoubleCookies
96475f1b73 Merge remote-tracking branch 'origin/rewrite' into rewrite 2022-10-27 10:42:57 +03:00
Igor
60ed2f02e3
Merge branch 'Sendouc:rewrite' into rewrite 2022-10-27 10:34:12 +03:00
DoubleCookies
c7b4bb1f74 updates 2022-10-27 10:33:44 +03:00
Kalle
e6c25967e9 Analyzer add link to Obj DMG page when OS selected
Closes #1039
2022-10-27 09:43:56 +03:00
Kalle
41120088e0 Add Hydra fully charged shot damage to analyzer
Closes #1046
2022-10-27 09:27:12 +03:00
Kalle
b4762d6455 Fix crash when no damage data on obj dmg calc 2022-10-26 17:29:32 +03:00