Commit Graph

3463 Commits

Author SHA1 Message Date
Remmy Cat Stock
cc396b8ac1
Add configs for better support of different development environments (#1092)
* Add prettierrc and editorconfig

* Updated README with `npm run cf` steps & also a git command that will fix a line ending error

* Added reference

* Prettier ;_;

* Add gitattributes to make sure git uses core.autocrlf on windows

Co-authored-by: William Lam <w.lam@honteam.com>
2022-11-05 22:45:00 +01:00
Remmy Cat Stock
222529b454 Make LanguageChanger respect existing search params 2022-11-05 14:51:22 +01:00
Remmy Cat Stock
4d84c1ad91
Fixed route translations issue detected by useTranslation 2022-11-05 14:51:02 +01:00
Remmy Cat Stock
2fa18547b0 Wrap useTranslation to detect missing translations on the route 2022-11-05 14:45:12 +01:00
Remmy Cat Stock
a6f62fa7b3 Improve date inputs UI when creating / editing events 2022-11-05 14:44:08 +01:00
Remmy Cat Stock
88e0649e79 Set default date for new events to the next full hour 2022-11-05 14:44:08 +01:00
Remmy Cat Stock
b4f8e4402e Make date input more reliable by handling invalid dates and different browser behaviours 2022-11-05 14:44:08 +01: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
Remmy Cat Stock
8fac1cca76
Rename Spanish language options according to feedback
Closes #1094
2022-11-05 00:43:32 +01: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
Kalle
0c2e077fc5 Add 10 Splatoon tips article 2022-11-03 20:06:29 +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
Remmy Cat Stock
1888168115
Fix potential bug from mutating matches state 2022-11-01 00:54:53 +01:00
Ai Suzuki
5ace920cc6
Update JP translation (#1086)
Co-authored-by: Ai Suzuki <asuzuki@blockchains.com>
2022-10-31 23:21:53 +02:00
Illya9999
bcf60a4890
Only allow numbers as discrim (#1085) 2022-10-31 19:50:00 +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
William Lam
09851faf83
New Date entry on the new Calendar page is now based off the previous one (#1070)
* Issue 858: On the new calendar page adding a new Date entry with the "Add" button will now insert a new date with an offset of +24 hours of the previous row's date value.

* Added comment to ignore the TSLint "object can be null" error

* Changed `var` to `const`

* Fixed Prettier checks in CI pipeline

* Fixed Typecheck CI pipeline error

* Moved getDateWithHoursOffset() function to app/utils/dates.ts

* Added new line at end of file

* Added getValidNewDateIfInvalid() function. This retrieves a valid date. If invalid, get a new Date object.
- So now, if we intentionally/accidentally delete the data in the Calendar's DateInput element, it will be reset to the current Date/Time

* Refactored DateInput component's update state mechanism to be handled by an onChange() function defined in the parent component that is passed to the child

* Prettier formatting so that the new CI pipeline won't output errors at me

* Removed unused imported types

* Removed the datesCount React Hook & refactored accordingly

* Removed unused loader-related variables

* DateInput onChange prop is now optional

* Instead of generating a new Array, iterate over DateInput's inputState's array instead

* Fix potential undefined error

* DatesInputState: refactored to remove index & access the index during iteration with map() 2nd arg

* Properly initialized state for pre-existing events =)
- Also added TODO comments for improving date input handling (1082)

* Prettier formatting

* Uncommented console.warn()

* Touched up comment
2022-10-31 03:59:51 +01:00
Remmy Cat Stock
ad61df057c
Load gear translations needed for build cards on index route 2022-10-31 00:14:48 +01:00
William Lam
3099db8914
Hide Highlights section if the user has exactly 1 result on their profile
* Issue 1068:  Hide Highlights section if the user has exactly 1 result on their profile

* Moved the logic so that we only hide the "Choose Highlights" button if the user has exactly 1 result & they have exactly 1 highlight selected

* Updated logic to hide the Highlights section if the user only has 1 total result

* Prettier fix
2022-10-30 15:59:36 +01:00
William Lam
d9689694b4
UserComboBox only one result if exact discord ID match (#1075)
* Passed a FUSE_OPTIONS object to the Fuse() object.
- We can now adjust how "strict" the search is.

* Refactored Combobox to accept an optional fuseOptions object as a prop

* Fixed fuseOptions prop data type & added a default initialized value of {}
- Moved the USER_COMBOBOX_FUSE_OPTIONS outside of the function
2022-10-30 16:34:18 +02:00
William Lam
924ae8bfff
Fix abilities appearing clickable when they aren't (#1057)
* Issue 1036: non-draggable ability icons will no longer have its cursor morphed to a pointing hand icon

* Revert "Issue 1036: non-draggable ability icons will no longer have its cursor morphed to a pointing hand icon"

This reverts commit a0de4e0047.

* Issue 1036: Non-draggable ability icons will no longer have its cursor morphed to a pointing hand icon.
- Done correctly by conditionally choosing to render a <button /> or <div /> HTML element for ability icons everywhere Ability() was invoked by passing in readonly

* Removed stray console.warn() line, added a brief comment

* Removed unnecessary tabIndex adjustment for AbilityTag element if it is readonly (since it is no longer rendered as a button if it is readonly)
- We now also condtionally give type="button" to AbilityTag only if it is actually a button

* Conditionally set AbilitiesSelector's Ability JSX elements to readonly if the ability is "UNKNOWN"

* Fixed failed check for Prettier in CI pipeline

* Ability component now only chooses the readonly class if no onClick function is passed into it
- Exception: if the ability is "UNKNOWN", it will be forced to readonly

* Fixed Prettier error in CI pipeline

* Fixed Typecheck error in BuildCard.tsx

* Fixed Prettier CI pipeline error again

* Was checking for an undefined type incorrectly. Now the logic works properly

* Fixed Prettier error

* Cleaned up classname declaration syntax to React's shorthand
2022-10-30 10:38:03 +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
c1d113905c Upgrade deps 2022-10-30 02:19:21 +03:00
Kalle
e97fcd4e99 Remove Cypress tests
Planned to be replaced with Playwright maybe?
Just removing in the meanwhile so they don't confuse people.
Or that people won't accidentally develop new.
2022-10-30 02:15:15 +03:00
Kalle
1667048496 Fix JP translations for "duration" 2022-10-30 01:53:32 +03:00
Kalle
b407127b36 Build card gear name title on hover 2022-10-29 21:46:39 +03:00
Kalle
0af5f262f5 Fix wpn in build card not showing title on hover 2022-10-29 21:07:06 +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
0ad6af0a23 Make npm run cf also create translation-json 2022-10-29 20:37:00 +03:00
Kalle
7af8e7a9db Add slosher class weapons damages 2022-10-29 20:36:48 +03:00
Kalle
bfc3cbfc87 Fix Hydra wrong dmg multipliers
Closes #1055
2022-10-29 12:42:40 +03:00
Kalle
518b778052 Add check that translation-progress.md is updates 2022-10-29 11:33:29 +03:00
Kalle
aeb8d2b070 Improve error message when lang json parsing fails 2022-10-29 11:25:17 +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
Kalle
085ef8abe5
Run checks on PR made (#1063)
* Run checks on PR made

* Prettify

* Refine criteria

* Bruh
2022-10-29 10:44:35 +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
e20b1b92b4 Remove note about WIP from README 2022-10-29 10:14:26 +03:00
Kalle
743a89bfc7 Preload translations to avoid layout flashing
Closes #869
2022-10-29 10:08:19 +03:00
Kalle
b775d70985 Add check of valid translations jsons to GA 2022-10-29 00:33:07 +03:00
Kalle
4eb0775532 Fix problems with translations jsons 2022-10-29 00:26:50 +03:00
Kalle
7397664e37 Add validation against i18n json duplicate keys 2022-10-29 00:25:18 +03:00
Kalle
132df15b9a
Merge pull request #1054 from aisuzuki/update-translation
Update translation  (JA)
2022-10-28 22:57:21 +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