From 246c30b72e0a88c81eba69a1f4d52f9bdf4e3460 Mon Sep 17 00:00:00 2001 From: Kim Lan Phan Hoang Date: Mon, 8 Jan 2024 13:28:10 +0100 Subject: [PATCH] feat: remove auth (#310) --- src/constants/auth.ts | 28 ---------------------------- src/constants/index.ts | 1 - src/langs/ar/auth.json | 21 --------------------- src/langs/de/auth.json | 27 --------------------------- src/langs/en/auth.json | 27 --------------------------- src/langs/es/auth.json | 1 - src/langs/fr/auth.json | 27 --------------------------- src/langs/index.ts | 12 ------------ src/langs/it/auth.json | 1 - 9 files changed, 145 deletions(-) delete mode 100644 src/constants/auth.ts delete mode 100644 src/langs/ar/auth.json delete mode 100644 src/langs/de/auth.json delete mode 100644 src/langs/en/auth.json delete mode 100644 src/langs/es/auth.json delete mode 100644 src/langs/fr/auth.json delete mode 100644 src/langs/it/auth.json diff --git a/src/constants/auth.ts b/src/constants/auth.ts deleted file mode 100644 index 4f8615ad..00000000 --- a/src/constants/auth.ts +++ /dev/null @@ -1,28 +0,0 @@ -export const AUTH = { - BACK_BUTTON: 'BACK_BUTTON', - EMAIL_FIELD_TEXT: 'EMAIL_FIELD_TEXT', - EMAIL_SIGN_IN_METHOD: 'EMAIL_SIGN_IN_METHOD', - MOBILE_APP_NOT_INSTALLED_MESSAGE: 'MOBILE_APP_NOT_INSTALLED_MESSAGE', - MOBILE_BACK_TO_LOGIN: 'MOBILE_BACK_TO_LOGIN', - MOBILE_GET_APP_FROM_APPLE_STORE: 'MOBILE_GET_APP_FROM_APPLE_STORE', - MOBILE_GET_APP_FROM_GOOGLE_PLAY_STORE: - 'MOBILE_GET_APP_FROM_GOOGLE_PLAY_STORE', - NAME_FIELD_LABEL: 'NAME_FIELD_LABEL', - NOT_SIGNED_IN_TOOLTIP: 'NOT_SIGNED_IN_TOOLTIP', - PASSWORD_FIELD_LABEL: 'PASSWORD_FIELD_LABEL', - PASSWORD_SIGN_IN_METHOD: 'PASSWORD_SIGN_IN_METHOD', - RESEND_EMAIL_BUTTON: 'RESEND_EMAIL_BUTTON', - SIGN_IN_BUTTON: 'SIGN_IN_BUTTON', - SIGN_IN_HEADER: 'SIGN_IN_HEADER', - SIGN_IN_LINK_TEXT: 'SIGN_IN_LINK_TEXT', - SIGN_IN_SUCCESS_EMAIL_PROBLEM: 'SIGN_IN_SUCCESS_EMAIL_PROBLEM', - SIGN_IN_SUCCESS_TEXT: 'SIGN_IN_SUCCESS_TEXT', - SIGN_IN_SUCCESS_TITLE: 'SIGN_IN_SUCCESS_TITLE', - SIGN_UP_BUTTON: 'SIGN_UP_BUTTON', - SIGN_UP_HEADER: 'SIGN_UP_HEADER', - SIGN_UP_LINK_TEXT: 'SIGN_UP_LINK_TEXT', - SIGN_UP_SAVE_ACTIONS_LABEL: 'SIGN_UP_SAVE_ACTIONS_LABEL', - SIGN_UP_SAVE_ACTIONS_TOOLTIP: 'SIGN_UP_SAVE_ACTIONS_TOOLTIP', - SIGN_UP_SUCCESS_TITLE: 'SIGN_UP_SUCCESS_TITLE', - SWITCH_ACCOUNT_TEXT: 'SWITCH_ACCOUNT_TEXT', -}; diff --git a/src/constants/index.ts b/src/constants/index.ts index 1b7d37ab..2e061690 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -1,5 +1,4 @@ export * from './association'; -export * from './auth'; export * from './categories'; export * from './common'; export * from './chatbox'; diff --git a/src/langs/ar/auth.json b/src/langs/ar/auth.json deleted file mode 100644 index ae6b7bf5..00000000 --- a/src/langs/ar/auth.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "SIGN_IN_BUTTON": "تسجيل الدخول", - "SIGN_IN_HEADER": "تسجيل الدخول", - "SIGN_UP_LINK_TEXT": "غير مسجل؟ اضغط هنا للتسجيل", - "SIGN_IN_LINK_TEXT": "هل لديك حساب؟ اضغط هنا لتسجيل الدخول", - "EMAIL_SIGN_IN_METHOD": "تسجيل الدخول عبر البريد الإلكتروني", - "PASSWORD_SIGN_IN_METHOD": "تسجيل الدخول عبر كلمة المرور", - "NAME_FIELD_LABEL": "الأسم", - "PASSWORD_FIELD_LABEL": "كلمة المرور", - "SIGN_UP_BUTTON": "اشتراك", - "SIGN_UP_HEADER": "اشتراك", - "EMAIL_FIELD_TEXT": "بريد إلكتروني", - "SWITCH_ACCOUNT_TEXT": "قم باستعمال حساب آخر", - "NOT_SIGNED_IN_TOOLTIP": "أنت غير مسجل الدخول.", - "SIGN_IN_SUCCESS_TITLE": "مرحبًا بعودتك!", - "SIGN_UP_SUCCESS_TITLE": "مرحباً!", - "SIGN_IN_SUCCESS_TEXT": "يرجى التحقق من الصندوق الوارد في البريد الالكتروني لاسترداد رابط تسجيل الدخول الشخصي للدخول إلى چراسپ . هذا يمكن أن يستغرق عدة دقائق.", - "SIGN_IN_SUCCESS_EMAIL_PROBLEM": "إذا لم تتلق أي بريد إلكتروني ، فتحقق من البريد المزعج. إذا كنت تستخدم بريدًا إلكترونيًا مؤسساتيًّا (مثل المدرسة أو الشركة) ، فقد يكون قد تم حظره وسيتعيّن عليك الانتظار حتى يتم تحرير البريد الإلكتروني بواسطة نظام البريد المزعج الخاص بك.", - "RESEND_EMAIL_BUTTON": "إعادة إرسال البريد الإلكتروني", - "BACK_BUTTON": "إلى الخلف" -} diff --git a/src/langs/de/auth.json b/src/langs/de/auth.json deleted file mode 100644 index 6414fa52..00000000 --- a/src/langs/de/auth.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "BACK_BUTTON": "Zurück", - "EMAIL_FIELD_TEXT": "Email", - "EMAIL_SIGN_IN_METHOD": "E-Mail Anmeldung", - "MOBILE_APP_NOT_INSTALLED_MESSAGE": "Sie haben einen mobilen Link angefordert, aber unsere App ist auf diesem Gerät nicht installiert.", - "MOBILE_BACK_TO_LOGIN": "Zurück zur Anmeldung", - "MOBILE_GET_APP_FROM_APPLE_STORE": "Im Apple App Store herunterladen", - "MOBILE_GET_APP_FROM_GOOGLE_PLAY_STORE": "Im Google Play Store herunterladen", - "NAME_FIELD_LABEL": "Name", - "NOT_SIGNED_IN_TOOLTIP": "Sie sind nicht eingeloggt.", - "PASSWORD_FIELD_LABEL": "Passwort", - "PASSWORD_SIGN_IN_METHOD": "Passwort Anmeldung", - "RESEND_EMAIL_BUTTON": "E-Mail wieder senden", - "SIGN_IN_BUTTON": "Einloggen", - "SIGN_IN_HEADER": "Einloggen", - "SIGN_IN_LINK_TEXT": "Sie haben bereits ein Konto? Klicken Sie hier, um sich anzumelden", - "SIGN_IN_SUCCESS_EMAIL_PROBLEM": "Wenn Sie keine E-Mail erhalten haben, überprüfen Sie Ihren Spam-Ordner. Wenn Sie eine institutionelle E-Mail (z. B. eine Schule oder ein Unternehmen) verwendet haben, wurde diese möglicherweise blockiert und Sie müssen warten, bis die E-Mail von Ihrem Spam-System freigegeben wird.", - "SIGN_IN_SUCCESS_TEXT": "Bitte überprüfen Sie Ihren Emails {{email}}, um Ihren persönlichen Login-Link für den Zugriff auf Graasp abzurufen. Dies kann mehrere Minuten dauern.", - "SIGN_IN_SUCCESS_TITLE": "Willkommen zurück!", - "SIGN_UP_BUTTON": "Anmelden", - "SIGN_UP_HEADER": "Anmelden", - "SIGN_UP_LINK_TEXT": "Nicht registriert? Klicken Sie hier, um sich zu registrieren", - "SIGN_UP_SAVE_ACTIONS_LABEL": "Analytik Aktivieren", - "SIGN_UP_SAVE_ACTIONS_TOOLTIP": "Bald erhältlich!", - "SIGN_UP_SUCCESS_TITLE": "Willkommen!", - "SWITCH_ACCOUNT_TEXT": "Auf ein anderes Konto wechseln" -} diff --git a/src/langs/en/auth.json b/src/langs/en/auth.json deleted file mode 100644 index a911b39d..00000000 --- a/src/langs/en/auth.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "BACK_BUTTON": "Back", - "EMAIL_FIELD_TEXT": "Email", - "EMAIL_SIGN_IN_METHOD": "Email Sign In", - "MOBILE_APP_NOT_INSTALLED_MESSAGE": "It looks like you requested a mobile link but you do not have our app installed on this device.", - "MOBILE_BACK_TO_LOGIN": "Back to login", - "MOBILE_GET_APP_FROM_APPLE_STORE": "Get from the Apple App Store", - "MOBILE_GET_APP_FROM_GOOGLE_PLAY_STORE": "Get from the Google Play Store", - "NAME_FIELD_LABEL": "Name", - "NOT_SIGNED_IN_TOOLTIP": "You are not signed in.", - "PASSWORD_FIELD_LABEL": "Password", - "PASSWORD_SIGN_IN_METHOD": "Password Sign In", - "RESEND_EMAIL_BUTTON": "Resend Email", - "SIGN_IN_BUTTON": "Sign In", - "SIGN_IN_HEADER": "Sign In", - "SIGN_IN_LINK_TEXT": "Already have an account? Click here to sign in", - "SIGN_IN_SUCCESS_EMAIL_PROBLEM": "If you did not receive any email, check your spam. If you used an institutional email (ie. school, company), it might have been blocked and will have to wait until the email is released by your spam system.", - "SIGN_IN_SUCCESS_TEXT": "Please check your inbox {{email}} to retrieve your personal login link to access Graasp. This can take several minutes.", - "SIGN_IN_SUCCESS_TITLE": "Welcome back!", - "SIGN_UP_BUTTON": "Sign Up", - "SIGN_UP_HEADER": "Sign Up", - "SIGN_UP_LINK_TEXT": "Not registered? Click here to register", - "SIGN_UP_SAVE_ACTIONS_LABEL": "Enable Analytics", - "SIGN_UP_SAVE_ACTIONS_TOOLTIP": "Coming Soon!", - "SIGN_UP_SUCCESS_TITLE": "Welcome!", - "SWITCH_ACCOUNT_TEXT": "Switch to another account" -} diff --git a/src/langs/es/auth.json b/src/langs/es/auth.json deleted file mode 100644 index 0967ef42..00000000 --- a/src/langs/es/auth.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/src/langs/fr/auth.json b/src/langs/fr/auth.json deleted file mode 100644 index 865e2af6..00000000 --- a/src/langs/fr/auth.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "BACK_BUTTON": "Retour", - "EMAIL_FIELD_TEXT": "Email", - "EMAIL_SIGN_IN_METHOD": "Connexion avec email", - "MOBILE_APP_NOT_INSTALLED_MESSAGE": "Vous avez requis un lien de connexion pour mobile mais il semble que l'application ne soit pas installée sur votre appareil.", - "MOBILE_BACK_TO_LOGIN": "Retour à l'écran de connexion", - "MOBILE_GET_APP_FROM_APPLE_STORE": "Téléchargez l'app sur l'Apple App Store", - "MOBILE_GET_APP_FROM_GOOGLE_PLAY_STORE": "Téléchargez l'app sur le Google Play Store", - "NAME_FIELD_LABEL": "Nom", - "NOT_SIGNED_IN_TOOLTIP": "Vous n'êtes pas connecté.", - "PASSWORD_FIELD_LABEL": "Mot de passe", - "PASSWORD_SIGN_IN_METHOD": "Connexion avec mot de passe", - "RESEND_EMAIL_BUTTON": "Renvoyer l'email", - "SIGN_IN_BUTTON": "Se connecter", - "SIGN_IN_HEADER": "Se connecter", - "SIGN_IN_LINK_TEXT": "Déjà un compte? Cliquez ici pour vous connecter", - "SIGN_IN_SUCCESS_EMAIL_PROBLEM": "Si vous ne recevez aucun email, vérifiez vos spams. Si vous avez utilisé un email d'une institution, celle-ci peut avoir bloqué l'email de connexion. Cet email sera disponible dans une plus longue période de temps.", - "SIGN_IN_SUCCESS_TEXT": "Vous trouverez dans votre boîte mail {{email}} votre lien de connexion personnel pour accéder à Graasp. L'email peut prendre quelques minutes à arriver.", - "SIGN_IN_SUCCESS_TITLE": "Bon retour !", - "SIGN_UP_BUTTON": "S'enregistrer", - "SIGN_UP_HEADER": "S'enregistrer", - "SIGN_UP_LINK_TEXT": "Pas encore enregistré ? Cliquez ici pour vous enregistrer", - "SIGN_UP_SAVE_ACTIONS_LABEL": "Activer les statistiques d'utilisation", - "SIGN_UP_SAVE_ACTIONS_TOOLTIP": "Prochainement!", - "SIGN_UP_SUCCESS_TITLE": "Bienvenue !", - "SWITCH_ACCOUNT_TEXT": "Utiliser un autre compte" -} diff --git a/src/langs/index.ts b/src/langs/index.ts index 4170279b..dfaba125 100644 --- a/src/langs/index.ts +++ b/src/langs/index.ts @@ -10,12 +10,6 @@ import chatboxDE from './de/chatbox.json'; import chatboxIT from './it/chatbox.json'; import chatboxAR from './ar/chatbox.json'; import chatboxES from './es/chatbox.json'; -import authEN from './en/auth.json'; -import authFR from './fr/auth.json'; -import authDE from './de/auth.json'; -import authIT from './it/auth.json'; -import authAR from './ar/auth.json'; -import authES from './es/auth.json'; import categoriesEN from './en/categories.json'; import categoriesFR from './fr/categories.json'; import categoriesDE from './de/categories.json'; @@ -92,7 +86,6 @@ export const namespaces = { }; const en = { - [namespaces.auth]: authEN, [namespaces.association]: associationEN, [namespaces.categories]: categoriesEN, [namespaces.chatbox]: chatboxEN, @@ -110,7 +103,6 @@ const en = { }; const fr = { - [namespaces.auth]: authFR, [namespaces.association]: associationFR, [namespaces.categories]: categoriesFR, [namespaces.chatbox]: chatboxFR, @@ -129,7 +121,6 @@ const fr = { const de = { [namespaces.association]: associationDE, - [namespaces.auth]: authDE, [namespaces.categories]: categoriesDE, [namespaces.chatbox]: chatboxDE, [namespaces.common]: commonDE, @@ -147,7 +138,6 @@ const de = { const it = { [namespaces.association]: associationIT, - [namespaces.auth]: authIT, [namespaces.categories]: categoriesIT, [namespaces.chatbox]: chatboxIT, [namespaces.common]: commonIT, @@ -165,7 +155,6 @@ const it = { const ar = { [namespaces.association]: associationAR, - [namespaces.auth]: authAR, [namespaces.categories]: categoriesAR, [namespaces.chatbox]: chatboxAR, [namespaces.common]: commonAR, @@ -183,7 +172,6 @@ const ar = { const es = { [namespaces.association]: associationES, - [namespaces.auth]: authES, [namespaces.categories]: categoriesES, [namespaces.chatbox]: chatboxES, [namespaces.common]: commonES, diff --git a/src/langs/it/auth.json b/src/langs/it/auth.json deleted file mode 100644 index 0967ef42..00000000 --- a/src/langs/it/auth.json +++ /dev/null @@ -1 +0,0 @@ -{}