feat(account): add account access level badges

This commit is contained in:
Ash Monty 2022-07-21 10:51:30 +02:00
parent b7537920f7
commit 77fd0c6837
No known key found for this signature in database
GPG Key ID: 740B7C88251D49B6
18 changed files with 174 additions and 4 deletions

View File

@ -222,6 +222,15 @@
"title": "البلوج",
"description": "آخر التحديثات في أجزاء مكثفة. إذا كنت ترغب في رؤية المزيد من التحديثات المتكررة ، ففكر في دعمنا على <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\"> Patreon </a>. "
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "!لنترجم",
"description": "الصق رابطا إلي لغة الزيسون يمكن الوصول إليها بشكل عام لاختبارها على موقع الويب",

View File

@ -223,6 +223,15 @@
"title": "Blog",
"description": "As atualizações mais recentes em postagens condensadas. Se você quiser ver atualizações com mais frequência, considere nos ajudar no <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Vamos traduzir",
"description": "Cole um link para um arquivo JSON acessível publicamente para testá-lo no site",

View File

@ -223,6 +223,15 @@
"title": "博客",
"description": "压缩块的最新更新。如果您想看到更频繁的更新,请考虑在 <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a> 上支持我们。"
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "让我们本地化",
"description": "粘贴指向可公开访问的 JSON 语言环境的链接以在网站上对其进行测试",

View File

@ -223,6 +223,15 @@
"title": "Blog",
"description": "Die letzten Updates in Kurzform. Wenn du Updates häufiger einsehen möchtest, unterstütze uns doch bei <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Let's localize",
"description": "Paste a link to a publicly accessible JSON locale to test it on the website",

View File

@ -223,6 +223,15 @@
"title": "Blog",
"description": "Las últimas actualizaciones en pequeñas cantidades. Si quieres ver actualizaciones más frecuentes, considera apoyarnos en <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Vamos a localizar",
"description": "Pega un enlace a una localización JSON accesible pulicamente para probarla en el sitio",

View File

@ -225,6 +225,15 @@
"title": "Blog",
"description": "Les dernières mises à jour en blocs condensés. Si vous souhaitez voir des mises à jour plus fréquentes, envisagez de nous soutenir sur <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Localisons",
"description": "Collez un lien vers un paramètre régional JSON accessible au public pour le tester sur le site Web",

View File

@ -224,6 +224,15 @@
"title": "Blog",
"description": "Gli ultimi aggiornamenti, condensati. Se sei interessato a ricevere aggiornamenti più frequenti, considera l'idea di supportarci su <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderatore",
"Sviluppatore"
],
"banned": "Bannato"
},
"localizationPage": {
"title": "Localizziamo",
"description": "Incolla il link di una localizzazione in formato JSON accessibile al pubblico per testarla sul sito",

View File

@ -223,6 +223,15 @@
"title": "ブログ(英語)",
"description": "最新のアップデートをまとめてお届けします。もっと多くのアップデートを貰いたい方は、<a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>での寄付をご検討ください。"
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "レッツローカライズ",
"description": "公開されているJSONへのリンクを貼り付けてこのサイトに試してみて下さい",

View File

@ -223,6 +223,15 @@
"title": "블로그",
"description": "내용이 압축된 최신 업데이트입니다. 만약 더 많은 업데이트를 원하신다면, <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>에 기부하는 것을 검토해 주세요."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "같이 번역해 주세요!",
"description": "액세스 가능한 JSON의 링크를 붙여넣어서, 웹사이트에서 테스트해 보세요!",

View File

@ -223,6 +223,15 @@
"title": "Blog",
"description": "De meest recente samenvattingen. Als je vaker nieuws wil, overweeg ons op <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a> te ondersteunen."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Laten we meer talen toe voegen!",
"description": "Voeg hier een link in voor een openbaar JSON bestand om het op de site te testen.",

View File

@ -223,6 +223,15 @@
"title": "Blogg",
"description": "De nyeste oppdateringen er i kondensert biter. Hvis du har lyst til å se mer hyppig oppdateringen, tenk om å støtte oss på <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "La oss lokalisere",
"description": "Lim inn en lenke til en offentlig JSON lokal til å teste det på nettsiden",

View File

@ -222,6 +222,15 @@
"title": "Blog",
"description": "Najnowsze informacje w krótkich tekstach. Jeśli chcesz otrzymywać częstsze aktualizacje, pomyśl nad wsparciem nas na <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Tłumaczmy",
"description": "Wklej link do publicznego pliku JSON, aby przetestować go na stronie",

View File

@ -223,6 +223,15 @@
"title": "Blog",
"description": "Ultimele actualizări în bucăți condensate. Dacă vrei să vezi mai multe actualizări, consideră să ne susții pe <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Hai să localizăm",
"description": "Inserați un link către un JSON public pentru a testa traducerea pe site",

View File

@ -223,6 +223,15 @@
"title": "Blog",
"description": "The latest updates in condensed chunks. If you want to see more frequent updates, consider supporting us on <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Let's localize",
"description": "Paste a link to a publicly accessible JSON locale to test it on the website",

View File

@ -223,6 +223,15 @@
"title": "Blog",
"description": "The latest updates in condensed chunks. If you want to see more frequent updates, consider supporting us on <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Let's localize",
"description": "Paste a link to a publicly accessible JSON locale to test it on the website",

View File

@ -223,6 +223,15 @@
"title": "Blog",
"description": "The latest updates in condensed chunks. If you want to see more frequent updates, consider supporting us on <a href=\"https://www.patreon.com/PretendoNetwork\" target=\"_blank\">Patreon</a>."
},
"account": {
"accountLevel": [
"Standard",
"Tester",
"Moderator",
"Developer"
],
"banned": "Banned"
},
"localizationPage": {
"title": "Let's localize",
"description": "Paste a link to a publicly accessible JSON locale to test it on the website",

View File

@ -37,7 +37,9 @@ body.modal-open {
border-style: solid;
padding: 4px 16px;
}
.account-sidebar .user .tier-level-0 {
.account-sidebar .user .tier-level-0,
.account-sidebar .user .access-level-0 {
background: #2a2f50;
color: var(--text-secondary);
border-color: #383f6b;
@ -57,6 +59,26 @@ body.modal-open {
color:#cab1fb;
border-color: #cab1fb;
}
.account-sidebar .user .access-level-banned {
background: rgba(255, 63, 0, 0.1);
color:#FF3F00;
border-color: rgba(255, 63, 0, 0.8);
}
.account-sidebar .user .access-level-1 {
background: rgba(100, 247, 239, 0.3);
color: #64F7EF;
border-color: #64F7EF;
}
.account-sidebar .user .access-level-2 {
background: rgba(255, 199, 89, 0.3);
color: #FFC759;
border-color: #FFC759;
}
.account-sidebar .user .access-level-3 {
background: rgba(90, 255, 21, 0.3);
color:#5AFF15;
border-color: #5AFF15;
}
.account-sidebar .user .mii {
width: 128px;

View File

@ -11,9 +11,13 @@
<p class="miiname">{{account.mii.name}}</p>
<p class="username" value="{{account.username}}">PNID: {{account.username}}</p>
{{#if tierName}}
<p class="tier-name tier-level-{{tierLevel}}" value="{{tierName}}">{{tierName}}</p>
<p class="tier-name tier-level-{{tierLevel}}" value="{{tierName}}">{{tierName}}</p>
{{else}}
<p class="tier-name tier-level-0" value="Default">Default</p>
{{#if (neq account.access_level -1)}}
<p class="tier-name access-level-{{account.access_level}}" value="{{ localeHelper locale "account" "accountLevel" account.access_level }}">{{ localeHelper locale "account" "accountLevel" account.access_level }}</p>
{{else}}
<p class="tier-name access-level-banned" value="{{ localeHelper locale "account" "banned" }}">{{ localeHelper locale "account" "banned" }}</p>
{{/if}}
{{/if}}
</div>
<div class="buttons">
@ -92,7 +96,7 @@
{{#unless isTester}}
<p>Beta servers are exclusive to beta testers.<br>To become a beta tester, upgrade to a higher account tier.</p>
{{else}}
<p>Your current tier (insert current tier{{currentTier}}) gives you beta server access. Cool!</p>
<p>Your current tier gives you beta server access. Cool!</p>
{{/unless}}
</div>