feat: add env var VITE_DISABLE_SIGNUPS to allow admins to disable all signups, closes #1592

This commit is contained in:
Amruth Pillai
2023-11-26 15:48:17 +01:00
parent f090573147
commit e26ca2adf1
53 changed files with 958 additions and 754 deletions
+20 -16
View File
@@ -125,7 +125,7 @@ msgstr "Aggiungi una nuova pagina"
msgid "AI"
msgstr "IA"
#: apps/client/src/pages/auth/register/page.tsx:71
#: apps/client/src/pages/auth/register/page.tsx:74
msgid "Already have an account?"
msgstr "Ha già un account?"
@@ -323,8 +323,8 @@ msgstr "Copia negli appunti"
msgid "Create"
msgstr "Crea"
#: apps/client/src/pages/auth/register/page.tsx:64
#: apps/client/src/pages/auth/register/page.tsx:69
#: apps/client/src/pages/auth/register/page.tsx:67
#: apps/client/src/pages/auth/register/page.tsx:72
msgid "Create a new account"
msgstr "Crea un nuovo account"
@@ -485,7 +485,7 @@ msgstr "Effetti"
#: apps/client/src/pages/auth/forgot-password/page.tsx:82
#: apps/client/src/pages/auth/login/page.tsx:84
#: apps/client/src/pages/auth/register/page.tsx:134
#: apps/client/src/pages/auth/register/page.tsx:148
#: apps/client/src/pages/builder/sidebars/left/sections/basics.tsx:50
#: apps/client/src/pages/dashboard/settings/_sections/account.tsx:180
msgid "Email"
@@ -666,7 +666,7 @@ msgid "Hide Icons"
msgstr "Nascondi icone"
#: apps/client/src/pages/auth/login/page.tsx:104
#: apps/client/src/pages/auth/register/page.tsx:160
#: apps/client/src/pages/auth/register/page.tsx:174
#: apps/client/src/pages/auth/reset-password/page.tsx:88
msgid "Hold <0>Ctrl</0> to display your password temporarily."
msgstr "Tieni premuto <0>Ctrl</0> per visualizzare temporaneamente la tua password."
@@ -766,17 +766,17 @@ msgstr "Sembra che il token di verifica che hai fornito non sia valido. Prova a
msgid "It looks like your email address has already been verified."
msgstr "Sembra che il tuo indirizzo email sia già stato verificato."
#: apps/client/src/pages/auth/register/page.tsx:95
#: apps/client/src/pages/auth/register/page.tsx:109
msgctxt "Localized version of a placeholder name. For example, Max Mustermann in German or Jan Kowalski in Polish."
msgid "John Doe"
msgstr "Mario Rossi"
#: apps/client/src/pages/auth/register/page.tsx:116
#: apps/client/src/pages/auth/register/page.tsx:130
msgctxt "Localized version of a placeholder username. For example, max.mustermann in German or jan.kowalski in Polish."
msgid "john.doe"
msgstr "mario. rossi"
#: apps/client/src/pages/auth/register/page.tsx:137
#: apps/client/src/pages/auth/register/page.tsx:151
msgctxt "Localized version of a placeholder email. For example, max.mustermann@example.de in German or jan.kowalski@example.pl in Polish."
msgid "john.doe@example.com"
msgstr "mario.rossi@esempio.it"
@@ -910,7 +910,7 @@ msgstr "Margine"
msgid "MIT License"
msgstr "Licenza MIT"
#: apps/client/src/pages/auth/register/page.tsx:92
#: apps/client/src/pages/auth/register/page.tsx:106
#: apps/client/src/pages/builder/sidebars/left/dialogs/custom-section.tsx:53
#: apps/client/src/pages/builder/sidebars/left/dialogs/interests.tsx:40
#: apps/client/src/pages/builder/sidebars/left/dialogs/languages.tsx:36
@@ -936,7 +936,7 @@ msgstr "Rete"
msgid "New Password"
msgstr "Nuova Password"
#: apps/client/src/components/locale-combobox.tsx:39
#: apps/client/src/components/locale-combobox.tsx:43
msgid "No results found"
msgstr "Nessun risultato trovato"
@@ -1009,7 +1009,7 @@ msgid "Page {0}"
msgstr "Pagina {0}"
#: apps/client/src/pages/auth/login/page.tsx:99
#: apps/client/src/pages/auth/register/page.tsx:155
#: apps/client/src/pages/auth/register/page.tsx:169
#: apps/client/src/pages/auth/reset-password/page.tsx:83
#: apps/client/src/pages/dashboard/settings/_sections/security.tsx:76
msgid "Password"
@@ -1102,7 +1102,7 @@ msgstr "Segnala un problema"
#: apps/client/src/pages/auth/backup-otp/page.tsx:52
#: apps/client/src/pages/auth/forgot-password/page.tsx:49
#: apps/client/src/pages/auth/login/page.tsx:55
#: apps/client/src/pages/auth/register/page.tsx:64
#: apps/client/src/pages/auth/register/page.tsx:67
#: apps/client/src/pages/auth/reset-password/page.tsx:60
#: apps/client/src/pages/auth/verify-email/page.tsx:43
#: apps/client/src/pages/auth/verify-otp/page.tsx:52
@@ -1219,7 +1219,7 @@ msgstr "Cerca un sottoinsieme di caratteri"
msgid "Search for a font variant"
msgstr "Cerca una variante del carattere"
#: apps/client/src/components/locale-combobox.tsx:37
#: apps/client/src/components/locale-combobox.tsx:41
msgid "Search for a language"
msgstr "Cerca una lingua"
@@ -1281,7 +1281,7 @@ msgstr "Barra laterale"
msgid "Sign in"
msgstr "Accedi"
#: apps/client/src/pages/auth/register/page.tsx:74
#: apps/client/src/pages/auth/register/page.tsx:77
msgid "Sign in now"
msgstr "Accedi ora"
@@ -1302,10 +1302,14 @@ msgstr "Accedi con GitHub"
msgid "Sign in with Google"
msgstr "Accedi con Google"
#: apps/client/src/pages/auth/register/page.tsx:171
#: apps/client/src/pages/auth/register/page.tsx:185
msgid "Sign up"
msgstr "Registrazione"
#: apps/client/src/pages/auth/register/page.tsx:85
msgid "Signups are currently disabled by the administrator."
msgstr ""
#: apps/client/src/pages/builder/sidebars/left/sections/picture/options.tsx:72
msgid "Size (in px)"
msgstr "Dimensioni (in px)"
@@ -1553,7 +1557,7 @@ msgstr "Usa il tuo codice di backup"
msgid "User does not have an associated 'secrets' record. Please report this issue on GitHub."
msgstr "L'utente non ha un record 'segreti' associato. La preghiamo di segnalare questo problema su GitHub."
#: apps/client/src/pages/auth/register/page.tsx:113
#: apps/client/src/pages/auth/register/page.tsx:127
#: apps/client/src/pages/builder/sidebars/left/dialogs/profiles.tsx:54
#: apps/client/src/pages/dashboard/settings/_sections/account.tsx:166
msgid "Username"