Skip to content

Commit 990b9c8

Browse files
committed
Fix nickname length validation and update build
1 parent 2e655a8 commit 990b9c8

26 files changed

Lines changed: 96 additions & 15 deletions

build/contents/css/app.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/contents/js/app/app.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/contents/locales/locale-en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"CODE_EXAMPLE": "ex. 1234",
116116
"NICKNAME": "Nickname",
117117
"NICKNAME_EXAMPLE": "ex. johnAppleSeed96",
118+
"NICKNAME_TOO_SHORT": "The nickname must be at least 3 characters long.",
118119
"LOGIN_DESC": "Login to get detailed statistics on the games played, and to have the chance to compete in the global CodyColor ranking!",
119120
"LOGIN_SIGNUP":" Sign up / Log in",
120121
"PROVIDER_REGISTRATION":"The email {{email}} is registered with {{provider}}. \nReset your password to convert your account to an email/password account.",

build/contents/locales/locale-hu.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
"CODE_EXAMPLE": "pl. 1234",
118118
"NICKNAME": "Becenév",
119119
"NICKNAME_EXAMPLE": "pl. PistaBela96",
120+
"NICKNAME_TOO_SHORT": "A becenévnek legalább 3 karakter hosszúnak kell lennie",
120121
"LOGIN_DESC": "Lépj be, hogy részletes statisztikákat kapj a meccseidről és versenyezhess a CodyColor világranglistán!",
121122
"LOGIN_SIGNUP":"Regisztráció / Belépés",
122123
"PROVIDER_REGISTRATION":"Az {{email}} e-mail cím a {{provider}} szolgáltatónál van regisztrálva.\nÁllítsa vissza a jelszót, hogy fiókját e-mail/jelszó fiókká alakítsa.",

build/contents/locales/locale-it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
"GEN_RANKING": "Classifica generale",
119119
"MAT_RANKING": "Classifica match",
120120
"NICKNAME_EXAMPLE": "es. marioRossi96",
121+
"NICKNAME_TOO_SHORT": "Il nickname deve essere di almeno 3 caratteri",
121122
"LOGIN_DESC": "Effettua il login per avere dettagliate statistiche sulle partite giocate, e per avere la possibilità di competere nel ranking globale di CodyColor!",
122123
"LOGIN_SIGNUP":"Accedi / Registrati",
123124
"PROVIDER_REGISTRATION":"L'indirizzo e-mail {{email}} è registrato presso {{provider}}.\nResetta la password per convertire il tuo account in un account email/password.",

build/contents/pages/bootmp-mmaking.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
<input type="text" name="nickname" ng-maxlength="22" ng-model="nickname" id="nickname"
1616
placeholder="{{'NICKNAME_EXAMPLE' | translate}}" class="standard-input"
1717
required autofocus/>
18-
18+
<div class="error-text" ng-show="isNicknameShort">
19+
{{ 'NICKNAME_TOO_SHORT' | translate }}
20+
</div>
1921
</li>
2022

2123

build/contents/pages/custom-mmaking.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
<input type="text" name="nickname" ng-maxlength="22" ng-model="nickname" id="nickname"
6161
placeholder="{{'NICKNAME_EXAMPLE' | translate}}" class="standard-input"
6262
required autofocus/>
63+
<div class="error-text" ng-show="isNicknameShort">
64+
{{ 'NICKNAME_TOO_SHORT' | translate }}
65+
</div>
6366
</li>
6467
<li class="list--spaced-element">
6568
<button class="navigation--button flashing-animation"

build/contents/pages/custom-new-match.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ <h2>{{ 'NEW_CUSTOM_EXT' | translate }}</h2>
1818
<input type="text" name="nickname" ng-maxlength="22" ng-model="nickname" id="nickname"
1919
placeholder="{{'NICKNAME_EXAMPLE' | translate}}" class="standard-input"
2020
ng-disabled="false" required autofocus/>
21+
<div class="error-text" ng-show="isNicknameShort">
22+
{{ 'NICKNAME_TOO_SHORT' | translate }}
23+
</div>
2124
</li>
25+
2226
<li class="list--simple-element">
2327
{{ 'MATCH_TIME' | translate }}
2428
</li>

build/contents/pages/random-mmaking.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
placeholder="{{'NICKNAME_EXAMPLE' | translate}}" class="standard-input"
1919
ng-disabled="false"
2020
required autofocus/>
21+
<div class="error-text" ng-show="isNicknameShort">
22+
{{ 'NICKNAME_TOO_SHORT' | translate }}
23+
</div>
2124
</li>
2225
<li class="list--spaced-element">
2326
<button class="navigation--button flashing-animation"

build/contents/pages/royale-mmaking.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
<input type="text" name="nickname" ng-maxlength="22" ng-model="nickname" id="nickname"
6161
placeholder="{{'NICKNAME_EXAMPLE' | translate}}" class="standard-input"
6262
ng-disabled="false" required autofocus/>
63+
<div class="error-text" ng-show="isNicknameShort">
64+
{{ 'NICKNAME_TOO_SHORT' | translate }}
65+
</div>
6366
</li>
6467
<li class="list--spaced-element">
6568
<button class="navigation--button flashing-animation"

0 commit comments

Comments
 (0)