From 2b3badc8e13a907d3dd5cca37daaf67e4c2ff498 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 10 Oct 2024 15:33:00 +0800 Subject: [PATCH] refactor: update login-related page templates structure (#6813) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area core /kind improvement /milestone 2.20.x #### What this PR does / why we need it: 重构登录、注册相关的模板结构,主要目的是为了解耦,修改页面时仅修改相关的模板和语言文件。 重构之后主题的引用方式如下: login.html ```html
``` #### Special notes for your reviewer: 需要测试各个页面是否功能正常 #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../templates/challenges/two-factor/totp.html | 6 +- .../common.html} | 4 +- .../common.properties} | 0 .../common_en.properties} | 0 .../common_es.properties} | 0 .../common_zh_TW.properties} | 0 .../input.html} | 0 .../layout.html | 2 +- .../templates/gateway_fragments/login.html | 57 ++++ .../gateway_fragments/login.properties | 12 + .../gateway_fragments/login_en.properties | 12 + .../gateway_fragments/login_es.properties | 12 + .../gateway_fragments/login_zh_TW.properties | 12 + .../templates/gateway_fragments/logout.html | 5 + .../gateway_fragments/logout.properties | 1 + .../gateway_fragments/logout_en.properties | 1 + .../gateway_fragments/logout_es.properties | 1 + .../gateway_fragments/logout_zh_TW.properties | 1 + .../password_reset_email_reset.html | 34 ++ .../password_reset_email_reset.properties | 4 + .../password_reset_email_reset_en.properties | 4 + .../password_reset_email_reset_es.properties | 4 + ...assword_reset_email_reset_zh_TW.properties | 4 + .../password_reset_email_send.html | 24 ++ .../password_reset_email_send.properties | 4 + .../password_reset_email_send_en.properties | 4 + .../password_reset_email_send_es.properties | 4 + ...password_reset_email_send_zh_TW.properties | 4 + .../templates/gateway_fragments/signup.html | 156 ++++++++++ .../gateway_fragments/signup.properties | 12 + .../gateway_fragments/signup_en.properties | 12 + .../gateway_fragments/signup_es.properties | 12 + .../gateway_fragments/signup_zh_TW.properties | 12 + .../templates/gateway_fragments/totp.html | 30 ++ .../gateway_fragments/totp.properties | 3 + .../gateway_fragments/totp_en.properties | 3 + .../gateway_fragments/totp_es.properties | 3 + .../gateway_fragments/totp_zh_TW.properties | 3 + .../gateway_modules/form_fragments.html | 291 ------------------ .../gateway_modules/form_fragments.properties | 36 --- .../form_fragments_en.properties | 36 --- .../form_fragments_es.properties | 36 --- .../form_fragments_zh_TW.properties | 36 --- .../gateway_modules/login_fragments.html | 20 -- .../login_fragments.properties | 4 - .../login_fragments_en.properties | 4 - .../login_fragments_es.properties | 4 - .../login_fragments_zh_TW.properties | 4 - .../src/main/resources/templates/login.html | 16 +- .../main/resources/templates/login_local.html | 2 +- .../src/main/resources/templates/logout.html | 4 +- .../templates/password-reset/email/reset.html | 8 +- .../templates/password-reset/email/send.html | 10 +- .../src/main/resources/templates/setup.html | 10 +- .../src/main/resources/templates/signup.html | 14 +- 55 files changed, 488 insertions(+), 509 deletions(-) rename application/src/main/resources/templates/{gateway_modules/common_fragments.html => gateway_fragments/common.html} (97%) rename application/src/main/resources/templates/{gateway_modules/common_fragments.properties => gateway_fragments/common.properties} (100%) rename application/src/main/resources/templates/{gateway_modules/common_fragments_en.properties => gateway_fragments/common_en.properties} (100%) rename application/src/main/resources/templates/{gateway_modules/common_fragments_es.properties => gateway_fragments/common_es.properties} (100%) rename application/src/main/resources/templates/{gateway_modules/common_fragments_zh_TW.properties => gateway_fragments/common_zh_TW.properties} (100%) rename application/src/main/resources/templates/{gateway_modules/input_fragments.html => gateway_fragments/input.html} (100%) rename application/src/main/resources/templates/{gateway_modules => gateway_fragments}/layout.html (90%) create mode 100644 application/src/main/resources/templates/gateway_fragments/login.html create mode 100644 application/src/main/resources/templates/gateway_fragments/login.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/login_en.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/login_es.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/login_zh_TW.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/logout.html create mode 100644 application/src/main/resources/templates/gateway_fragments/logout.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/logout_en.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/logout_es.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/logout_zh_TW.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.html create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_en.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_es.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_zh_TW.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_send.html create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_send.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_send_en.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_send_es.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/password_reset_email_send_zh_TW.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/signup.html create mode 100644 application/src/main/resources/templates/gateway_fragments/signup.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/signup_en.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/signup_es.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/signup_zh_TW.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/totp.html create mode 100644 application/src/main/resources/templates/gateway_fragments/totp.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/totp_en.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/totp_es.properties create mode 100644 application/src/main/resources/templates/gateway_fragments/totp_zh_TW.properties delete mode 100644 application/src/main/resources/templates/gateway_modules/form_fragments.html delete mode 100644 application/src/main/resources/templates/gateway_modules/form_fragments.properties delete mode 100644 application/src/main/resources/templates/gateway_modules/form_fragments_en.properties delete mode 100644 application/src/main/resources/templates/gateway_modules/form_fragments_es.properties delete mode 100644 application/src/main/resources/templates/gateway_modules/form_fragments_zh_TW.properties delete mode 100644 application/src/main/resources/templates/gateway_modules/login_fragments.html delete mode 100644 application/src/main/resources/templates/gateway_modules/login_fragments.properties delete mode 100644 application/src/main/resources/templates/gateway_modules/login_fragments_en.properties delete mode 100644 application/src/main/resources/templates/gateway_modules/login_fragments_es.properties delete mode 100644 application/src/main/resources/templates/gateway_modules/login_fragments_zh_TW.properties diff --git a/application/src/main/resources/templates/challenges/two-factor/totp.html b/application/src/main/resources/templates/challenges/two-factor/totp.html index 7b02af8ab..062ef511d 100644 --- a/application/src/main/resources/templates/challenges/two-factor/totp.html +++ b/application/src/main/resources/templates/challenges/two-factor/totp.html @@ -1,14 +1,14 @@
-
+

-
+
diff --git a/application/src/main/resources/templates/gateway_modules/common_fragments.html b/application/src/main/resources/templates/gateway_fragments/common.html similarity index 97% rename from application/src/main/resources/templates/gateway_modules/common_fragments.html rename to application/src/main/resources/templates/gateway_fragments/common.html index d434cd39d..50e23ebdd 100644 --- a/application/src/main/resources/templates/gateway_modules/common_fragments.html +++ b/application/src/main/resources/templates/gateway_fragments/common.html @@ -1,6 +1,6 @@ - - + + diff --git a/application/src/main/resources/templates/gateway_modules/common_fragments.properties b/application/src/main/resources/templates/gateway_fragments/common.properties similarity index 100% rename from application/src/main/resources/templates/gateway_modules/common_fragments.properties rename to application/src/main/resources/templates/gateway_fragments/common.properties diff --git a/application/src/main/resources/templates/gateway_modules/common_fragments_en.properties b/application/src/main/resources/templates/gateway_fragments/common_en.properties similarity index 100% rename from application/src/main/resources/templates/gateway_modules/common_fragments_en.properties rename to application/src/main/resources/templates/gateway_fragments/common_en.properties diff --git a/application/src/main/resources/templates/gateway_modules/common_fragments_es.properties b/application/src/main/resources/templates/gateway_fragments/common_es.properties similarity index 100% rename from application/src/main/resources/templates/gateway_modules/common_fragments_es.properties rename to application/src/main/resources/templates/gateway_fragments/common_es.properties diff --git a/application/src/main/resources/templates/gateway_modules/common_fragments_zh_TW.properties b/application/src/main/resources/templates/gateway_fragments/common_zh_TW.properties similarity index 100% rename from application/src/main/resources/templates/gateway_modules/common_fragments_zh_TW.properties rename to application/src/main/resources/templates/gateway_fragments/common_zh_TW.properties diff --git a/application/src/main/resources/templates/gateway_modules/input_fragments.html b/application/src/main/resources/templates/gateway_fragments/input.html similarity index 100% rename from application/src/main/resources/templates/gateway_modules/input_fragments.html rename to application/src/main/resources/templates/gateway_fragments/input.html diff --git a/application/src/main/resources/templates/gateway_modules/layout.html b/application/src/main/resources/templates/gateway_fragments/layout.html similarity index 90% rename from application/src/main/resources/templates/gateway_modules/layout.html rename to application/src/main/resources/templates/gateway_fragments/layout.html index f82bb0db5..1bcbfaad3 100644 --- a/application/src/main/resources/templates/gateway_modules/layout.html +++ b/application/src/main/resources/templates/gateway_fragments/layout.html @@ -13,7 +13,7 @@ - + diff --git a/application/src/main/resources/templates/gateway_fragments/login.html b/application/src/main/resources/templates/gateway_fragments/login.html new file mode 100644 index 000000000..07ada8fbb --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/login.html @@ -0,0 +1,57 @@ +
+ + + + + +
+ +
+ + +
+ +
+ +
+
+ +
+ +
+
+ +
+
+ +
+
\ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/login.properties b/application/src/main/resources/templates/gateway_fragments/login.properties new file mode 100644 index 000000000..a6fd816a8 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/login.properties @@ -0,0 +1,12 @@ +form.messages.logoutSuccess=登出成功。 +form.messages.signupSuccess=恭喜!注册成功,请立即登录。 +form.messages.oauth2Bind=当前登录未绑定账号,请尝试通过其他方式登录,登录成功后会自动绑定账号。 +form.error.invalidCredential=无效的凭证。 +form.error.rateLimitExceeded=请求过于频繁,请稍后再试。 +form.rememberMe.label=保持登录会话 +form.submit=登录 + +otherLogin.label=其他登录方式 + +# Rule: `formAuthProviders.${provider.metadata.name}.displayName` +formAuthProviders.local.displayName=账号密码登录 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/login_en.properties b/application/src/main/resources/templates/gateway_fragments/login_en.properties new file mode 100644 index 000000000..0b4829362 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/login_en.properties @@ -0,0 +1,12 @@ +form.messages.logoutSuccess=Logout successfully. +form.messages.signupSuccess=Congratulations! Sign up successfully, please login now. +form.messages.oauth2Bind=The current login is not bound to an account. Please try to log in through other methods. After successful login, the account will be automatically bound. +form.error.invalidCredential=Invalid credentials. +form.error.rateLimitExceeded=Too many requests, please try again later. +form.rememberMe.label=Remember me +form.submit=Login + +otherLogin.label=Other Login + +# Rule: `formAuthProviders.${provider.metadata.name}.displayName` +formAuthProviders.local.displayName=Login with credentials \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/login_es.properties b/application/src/main/resources/templates/gateway_fragments/login_es.properties new file mode 100644 index 000000000..d81ad60bc --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/login_es.properties @@ -0,0 +1,12 @@ +form.messages.logoutSuccess=Cierre de sesión exitoso. +form.messages.signupSuccess=¡Felicidades! Registro exitoso, por favor inicie sesión de inmediato. +form.messages.oauth2Bind=El inicio de sesión actual no está vinculado a una cuenta. Intente iniciar sesión a través de otros métodos. Después de un inicio de sesión exitoso, la cuenta se vinculará automáticamente. +form.error.invalidCredential=Credenciales inválidas. +form.error.rateLimitExceeded=Demasiadas solicitudes, por favor intente nuevamente más tarde. +form.rememberMe.label=Mantener sesión iniciada +form.submit=Iniciar sesión + +otherLogin.label=Otras formas de inicio de sesión + +# Rule: `formAuthProviders.${provider.metadata.name}.displayName` +formAuthProviders.local.displayName=Iniciar sesión con credenciales \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/login_zh_TW.properties b/application/src/main/resources/templates/gateway_fragments/login_zh_TW.properties new file mode 100644 index 000000000..c364adb35 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/login_zh_TW.properties @@ -0,0 +1,12 @@ +form.messages.logoutSuccess=登出成功。 +form.messages.signupSuccess=恭喜!註冊成功,請立即登入。 +form.messages.oauth2Bind=當前登入未綁定至帳戶。請嘗試通過其他方法登入。成功登入後,帳戶將自動綁定。 +form.error.invalidCredential=無效的憑證。 +form.error.rateLimitExceeded=請求過於頻繁,請稍後再試。 +form.form.rememberMe.label=保持登入會話 +form.form.submit=登入 + +otherLogin.label=其他登入方式 + +# Rule: `formAuthProviders.${provider.metadata.name}.displayName` +formAuthProviders.local.displayName=帳號密碼登入 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/logout.html b/application/src/main/resources/templates/gateway_fragments/logout.html new file mode 100644 index 000000000..84013bb58 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/logout.html @@ -0,0 +1,5 @@ +
+
+ +
+
\ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/logout.properties b/application/src/main/resources/templates/gateway_fragments/logout.properties new file mode 100644 index 000000000..0ad6b90f0 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/logout.properties @@ -0,0 +1 @@ +form.submit=退出登录 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/logout_en.properties b/application/src/main/resources/templates/gateway_fragments/logout_en.properties new file mode 100644 index 000000000..6f8a3da34 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/logout_en.properties @@ -0,0 +1 @@ +form.submit=Logout \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/logout_es.properties b/application/src/main/resources/templates/gateway_fragments/logout_es.properties new file mode 100644 index 000000000..3fda0b0f1 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/logout_es.properties @@ -0,0 +1 @@ +form.submit=Cerrar Sesión \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/logout_zh_TW.properties b/application/src/main/resources/templates/gateway_fragments/logout_zh_TW.properties new file mode 100644 index 000000000..2cbbd7523 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/logout_zh_TW.properties @@ -0,0 +1 @@ +form.submit=退出登入 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.html b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.html new file mode 100644 index 000000000..231a10990 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.html @@ -0,0 +1,34 @@ +
+ +
+ + +
+
+ + +
+
+
+
+
+ +
+ + +
\ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.properties new file mode 100644 index 000000000..c8240e54e --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.properties @@ -0,0 +1,4 @@ +form.password.label=密码 +form.confirmPassword.label=确认密码 +form.password.tips=密码必须至少包含 8 个字符,并且至少包含一个大写字母、一个小写字母、一个数字和一个特殊字符。 +form.submit=修改密码 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_en.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_en.properties new file mode 100644 index 000000000..a69e1b81d --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_en.properties @@ -0,0 +1,4 @@ +form.password.label=Password +form.confirmPassword.label=Confirm Password +form.password.tips=Password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number, and one special character. +form.submit=Change password \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_es.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_es.properties new file mode 100644 index 000000000..7c34bdbee --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_es.properties @@ -0,0 +1,4 @@ +form.password.label=Contraseña +form.confirmPassword.label=Confirmar Contraseña +form.password.tips=La contraseña debe tener al menos 8 caracteres e incluir al menos una letra mayúscula, una letra minúscula, un número y un carácter especial. +form.submit=Cambiar Contraseña \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_zh_TW.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_zh_TW.properties new file mode 100644 index 000000000..84d58c2aa --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_zh_TW.properties @@ -0,0 +1,4 @@ +form.password.label=密碼 +form.confirmPassword.label=確認密碼 +form.password.tips=密碼必須至少包含 8 個字元,並且至少包含一個大寫字母、一個小寫字母、一個數字和一個特殊字元。 +form.submit=修改密碼 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_send.html b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send.html new file mode 100644 index 000000000..ed9264ad2 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send.html @@ -0,0 +1,24 @@ + +
+
+
+
+
+ +
+
+
+
+ +
+
+ +
+ +
+
+
+ +
+
+
\ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_send.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send.properties new file mode 100644 index 000000000..5c4461f2a --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send.properties @@ -0,0 +1,4 @@ +form.email.label=电子邮箱 +form.submit=提交 +form.sent.submit=返回到登录页面 +form.message.success=检查您的电子邮件中是否有重置密码的链接。如果几分钟内没有出现,请检查您的垃圾邮件文件夹。 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_send_en.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send_en.properties new file mode 100644 index 000000000..62151a89b --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send_en.properties @@ -0,0 +1,4 @@ +form.email.label=Email +form.submit=Submit +form.sent.submit=Return to login +form.message.success=Check your email for a link to reset your password. If it doesn’t appear within a few minutes, check your spam folder. \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_send_es.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send_es.properties new file mode 100644 index 000000000..0944f6831 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send_es.properties @@ -0,0 +1,4 @@ +form.email.label=Correo Electrónico +form.submit=Enviar +form.sent.submit=Volver a la Página de Inicio de Sesión +form.message.success=Revisa tu correo electrónico para ver el enlace de restablecimiento de contraseña. Si no aparece en unos minutos, revisa tu carpeta de spam. \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_send_zh_TW.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send_zh_TW.properties new file mode 100644 index 000000000..f908f1299 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_send_zh_TW.properties @@ -0,0 +1,4 @@ +form.email.label=電子郵件 +form.submit=提交 +form.sent.submit=返回到登入頁面 +form.message.success=檢查您的電子郵件中是否有重置密碼的連結。如果幾分鐘內沒有出現,請檢查您的垃圾郵件資料夾。 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/signup.html b/application/src/main/resources/templates/gateway_fragments/signup.html new file mode 100644 index 000000000..d31b722c3 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/signup.html @@ -0,0 +1,156 @@ +
+ + + +
+
+ +
+ +
+

+
+ +
+ +
+ +
+

+
+
+ +
+
+ +
+ +
+

+
+ +
+ +
+
+ +
+ + +
+

+
+
+ +
+ + +

+
+ +
+ + +

+
+ +
+ +
+ + + + +
\ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/signup.properties b/application/src/main/resources/templates/gateway_fragments/signup.properties new file mode 100644 index 000000000..d5275f761 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/signup.properties @@ -0,0 +1,12 @@ +form.username.label=用户名 +form.displayName.label=名称 +form.email.label=电子邮箱 +form.emailCode.label=邮箱验证码 +form.emailCode.sendButton=发送 +form.emailCode.send.emptyValidation=请先输入邮箱地址 +form.password.label=密码 +form.confirmPassword.label=确认密码 +form.submit=注册 +form.error.invalidEmailCode=无效的邮箱验证码 +form.error.duplicateUsername=用户名已经被注册 +form.error.rateLimitExceeded=请求过于频繁,请稍后再试 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/signup_en.properties b/application/src/main/resources/templates/gateway_fragments/signup_en.properties new file mode 100644 index 000000000..3d56c1fca --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/signup_en.properties @@ -0,0 +1,12 @@ +form.username.label=Username +form.displayName.label=Display Name +form.email.label=Email +form.emailCode.label=Email Verification Code +form.emailCode.sendButton=Send +form.emailCode.send.emptyValidation=Please enter your email address first +form.password.label=Password +form.confirmPassword.label=Confirm Password +form.submit=Sign Up +form.error.invalidEmailCode=Invalid Email Verification Code +form.error.duplicateUsername=Username is already taken +form.error.rateLimitExceeded=Too many requests, please try again later \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/signup_es.properties b/application/src/main/resources/templates/gateway_fragments/signup_es.properties new file mode 100644 index 000000000..9ebb2bcbc --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/signup_es.properties @@ -0,0 +1,12 @@ +form.username.label=Nombre de Usuario +form.displayName.label=Nombre +form.email.label=Correo Electrónico +form.emailCode.label=Código de Verificación +form.emailCode.sendButton=Enviar +form.emailCode.send.emptyValidation=Por favor, introduce tu dirección de correo electrónico primero +form.password.label=Contraseña +form.confirmPassword.label=Confirmar Contraseña +form.submit=Registrarse +form.error.invalidEmailCode=Código de verificación del correo inválido +form.error.duplicateUsername=El nombre de usuario ya está registrado +form.error.rateLimitExceeded=Demasiadas solicitudes, por favor intente nuevamente más tarde \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/signup_zh_TW.properties b/application/src/main/resources/templates/gateway_fragments/signup_zh_TW.properties new file mode 100644 index 000000000..5135787d0 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/signup_zh_TW.properties @@ -0,0 +1,12 @@ +form.username.label=使用者名稱 +form.displayName.label=名稱 +form.email.label=電子郵件 +form.emailCode.label=郵箱驗證碼 +form.emailCode.sendButton=發送 +form.emailCode.send.emptyValidation=請先輸入電子郵件地址 +form.password.label=密碼 +form.confirmPassword.label=確認密碼 +form.submit=註冊 +form.error.invalidEmailCode=無效的郵箱驗證碼 +form.error.duplicateUsername=使用者名稱已經被註冊 +form.error.rateLimitExceeded=請求過於頻繁,請稍後再試 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/totp.html b/application/src/main/resources/templates/gateway_fragments/totp.html new file mode 100644 index 000000000..6cb2b7809 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/totp.html @@ -0,0 +1,30 @@ +
+ +
+ +
+ +
+
+
+ +
+
\ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/totp.properties b/application/src/main/resources/templates/gateway_fragments/totp.properties new file mode 100644 index 000000000..d2115d37e --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/totp.properties @@ -0,0 +1,3 @@ +form.messages.invalidError=错误的验证码 +form.code.label=验证码 +form.submit=验证 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/totp_en.properties b/application/src/main/resources/templates/gateway_fragments/totp_en.properties new file mode 100644 index 000000000..f9c456fa7 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/totp_en.properties @@ -0,0 +1,3 @@ +form.messages.invalidError=Invalid TOTP code +form.code.label=TOTP Code +form.submit=Verify \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/totp_es.properties b/application/src/main/resources/templates/gateway_fragments/totp_es.properties new file mode 100644 index 000000000..2dbc8b468 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/totp_es.properties @@ -0,0 +1,3 @@ +form.messages.invalidError=Código de verificación incorrecto +form.code.label=Código de Verificación +form.submit=Verificar \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/totp_zh_TW.properties b/application/src/main/resources/templates/gateway_fragments/totp_zh_TW.properties new file mode 100644 index 000000000..9c06d0cf4 --- /dev/null +++ b/application/src/main/resources/templates/gateway_fragments/totp_zh_TW.properties @@ -0,0 +1,3 @@ +form.messages.invalidError=錯誤的驗證碼 +form.code.label=驗證碼 +form.submit=驗證 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/form_fragments.html b/application/src/main/resources/templates/gateway_modules/form_fragments.html deleted file mode 100644 index 641943a95..000000000 --- a/application/src/main/resources/templates/gateway_modules/form_fragments.html +++ /dev/null @@ -1,291 +0,0 @@ -
- - - - - -
- -
- - -
- -
- -
-
- -
- - - -
-
- -
- -
-

-
- -
- -
- -
-

-
-
- -
-
- -
- -
-

-
- -
- -
-
- -
- - -
-

-
-
- -
- - -

-
- -
- - -

-
- -
- -
- - - - -
- -
- -
- -
- -
-
-
- -
-
- -
-
- -
-
- -
- -
- - -
-
- - -
-
-
-
-
- -
- - -
- - -
-
-
-
-
- -
-
-
-
- -
-
- -
- -
-
-
- -
-
-
diff --git a/application/src/main/resources/templates/gateway_modules/form_fragments.properties b/application/src/main/resources/templates/gateway_modules/form_fragments.properties deleted file mode 100644 index 48d3a835a..000000000 --- a/application/src/main/resources/templates/gateway_modules/form_fragments.properties +++ /dev/null @@ -1,36 +0,0 @@ -form.login.messages.logoutSuccess=登出成功。 -form.login.messages.signupSuccess=恭喜!注册成功,请立即登录。 -form.login.messages.oauth2Bind=当前登录未绑定账号,请尝试通过其他方式登录,登录成功后会自动绑定账号。 -form.login.error.invalidCredential=无效的凭证。 -form.login.error.rateLimitExceeded=请求过于频繁,请稍后再试。 -form.login.rememberMe.label=保持登录会话 -form.login.submit=登录 - -form.signup.username.label=用户名 -form.signup.displayName.label=名称 -form.signup.email.label=电子邮箱 -form.signup.emailCode.label=邮箱验证码 -form.signup.emailCode.sendButton=发送 -form.signup.emailCode.send.emptyValidation=请先输入邮箱地址 -form.signup.password.label=密码 -form.signup.confirmPassword.label=确认密码 -form.signup.submit=注册 -form.signup.error.invalidEmailCode=无效的邮箱验证码 -form.signup.error.duplicateUsername=用户名已经被注册 -form.signup.error.rateLimitExceeded=请求过于频繁,请稍后再试 - -form.totp.messages.invalidError=错误的验证码 -form.totp.code.label=验证码 -form.totp.submit=验证 - -form.logout.submit=退出登录 - -form.passwordResetLink.password.label=密码 -form.passwordResetLink.confirmPassword.label=确认密码 -form.passwordResetLink.password.tips=密码必须至少包含 8 个字符,并且至少包含一个大写字母、一个小写字母、一个数字和一个特殊字符。 -form.passwordResetLink.submit=修改密码 - -form.passwordReset.email.label=电子邮箱 -form.passwordReset.submit=提交 -form.passwordReset.sent.submit=返回到登录页面 -form.passwordReset.message.success=检查您的电子邮件中是否有重置密码的链接。如果几分钟内没有出现,请检查您的垃圾邮件文件夹。 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/form_fragments_en.properties b/application/src/main/resources/templates/gateway_modules/form_fragments_en.properties deleted file mode 100644 index 7f63f5e6d..000000000 --- a/application/src/main/resources/templates/gateway_modules/form_fragments_en.properties +++ /dev/null @@ -1,36 +0,0 @@ -form.login.messages.logoutSuccess=Logout successfully. -form.login.messages.signupSuccess=Congratulations! Sign up successfully, please login now. -form.login.messages.oauth2Bind=The current login is not bound to an account. Please try to log in through other methods. After successful login, the account will be automatically bound. -form.login.error.invalidCredential=Invalid credentials. -form.login.error.rateLimitExceeded=Too many requests, please try again later. -form.login.rememberMe.label=Remember me -form.login.submit=Login - -form.signup.username.label=Username -form.signup.displayName.label=Display Name -form.signup.email.label=Email -form.signup.emailCode.label=Email Verification Code -form.signup.emailCode.sendButton=Send -form.signup.emailCode.send.emptyValidation=Please enter your email address first -form.signup.password.label=Password -form.signup.confirmPassword.label=Confirm Password -form.signup.submit=Sign Up -form.signup.error.invalidEmailCode=Invalid Email Verification Code -form.signup.error.duplicateUsername=Username is already taken -form.signup.error.rateLimitExceeded=Too many requests, please try again later - -form.totp.messages.invalidError=Invalid TOTP code -form.totp.code.label=TOTP Code -form.totp.submit=Verify - -form.logout.submit=Logout - -form.passwordResetLink.password.label=Password -form.passwordResetLink.confirmPassword.label=Confirm Password -form.passwordResetLink.password.tips=Password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number, and one special character. -form.passwordResetLink.submit=Change password - -form.passwordReset.email.label=Email -form.passwordReset.submit=Submit -form.passwordReset.sent.submit=Return to login -form.passwordReset.message.success=Check your email for a link to reset your password. If it doesn’t appear within a few minutes, check your spam folder. \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/form_fragments_es.properties b/application/src/main/resources/templates/gateway_modules/form_fragments_es.properties deleted file mode 100644 index 8dab4708d..000000000 --- a/application/src/main/resources/templates/gateway_modules/form_fragments_es.properties +++ /dev/null @@ -1,36 +0,0 @@ -form.login.messages.logoutSuccess=Cierre de sesión exitoso. -form.login.messages.signupSuccess=¡Felicidades! Registro exitoso, por favor inicie sesión de inmediato. -form.login.messages.oauth2Bind=El inicio de sesión actual no está vinculado a una cuenta. Intente iniciar sesión a través de otros métodos. Después de un inicio de sesión exitoso, la cuenta se vinculará automáticamente. -form.login.error.invalidCredential=Credenciales inválidas. -form.login.error.rateLimitExceeded=Demasiadas solicitudes, por favor intente nuevamente más tarde. -form.login.rememberMe.label=Mantener sesión iniciada -form.login.submit=Iniciar sesión - -form.signup.username.label=Nombre de Usuario -form.signup.displayName.label=Nombre -form.signup.email.label=Correo Electrónico -form.signup.emailCode.label=Código de Verificación -form.signup.emailCode.sendButton=Enviar -form.signup.emailCode.send.emptyValidation=Por favor, introduce tu dirección de correo electrónico primero -form.signup.password.label=Contraseña -form.signup.confirmPassword.label=Confirmar Contraseña -form.signup.submit=Registrarse -form.signup.error.invalidEmailCode=Código de verificación del correo inválido -form.signup.error.duplicateUsername=El nombre de usuario ya está registrado -form.signup.error.rateLimitExceeded=Demasiadas solicitudes, por favor intente nuevamente más tarde - -form.totp.messages.invalidError=Código de verificación incorrecto -form.totp.code.label=Código de Verificación -form.totp.submit=Verificar - -form.logout.submit=Cerrar Sesión - -form.passwordResetLink.password.label=Contraseña -form.passwordResetLink.confirmPassword.label=Confirmar Contraseña -form.passwordResetLink.password.tips=La contraseña debe tener al menos 8 caracteres e incluir al menos una letra mayúscula, una letra minúscula, un número y un carácter especial. -form.passwordResetLink.submit=Cambiar Contraseña - -form.passwordReset.email.label=Correo Electrónico -form.passwordReset.submit=Enviar -form.passwordReset.sent.submit=Volver a la Página de Inicio de Sesión -form.passwordReset.message.success=Revisa tu correo electrónico para ver el enlace de restablecimiento de contraseña. Si no aparece en unos minutos, revisa tu carpeta de spam. \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/form_fragments_zh_TW.properties b/application/src/main/resources/templates/gateway_modules/form_fragments_zh_TW.properties deleted file mode 100644 index 7accc38c1..000000000 --- a/application/src/main/resources/templates/gateway_modules/form_fragments_zh_TW.properties +++ /dev/null @@ -1,36 +0,0 @@ -form.login.messages.logoutSuccess=登出成功。 -form.login.messages.signupSuccess=恭喜!註冊成功,請立即登入。 -form.login.messages.oauth2Bind=當前登入未綁定至帳戶。請嘗試通過其他方法登入。成功登入後,帳戶將自動綁定。 -form.login.error.invalidCredential=無效的憑證。 -form.login.error.rateLimitExceeded=請求過於頻繁,請稍後再試。 -form.login.form.rememberMe.label=保持登入會話 -form.login.form.submit=登入 - -form.signup.username.label=使用者名稱 -form.signup.displayName.label=名稱 -form.signup.email.label=電子郵件 -form.signup.emailCode.label=郵箱驗證碼 -form.signup.emailCode.sendButton=發送 -form.signup.emailCode.send.emptyValidation=請先輸入電子郵件地址 -form.signup.password.label=密碼 -form.signup.confirmPassword.label=確認密碼 -form.signup.submit=註冊 -form.signup.error.invalidEmailCode=無效的郵箱驗證碼 -form.signup.error.duplicateUsername=使用者名稱已經被註冊 -form.signup.error.rateLimitExceeded=請求過於頻繁,請稍後再試 - -form.totp.messages.invalidError=錯誤的驗證碼 -form.totp.code.label=驗證碼 -form.totp.submit=驗證 - -form.logout.submit=退出登入 - -form.passwordResetLink.password.label=密碼 -form.passwordResetLink.confirmPassword.label=確認密碼 -form.passwordResetLink.password.tips=密碼必須至少包含 8 個字元,並且至少包含一個大寫字母、一個小寫字母、一個數字和一個特殊字元。 -form.passwordResetLink.submit=修改密碼 - -form.passwordReset.email.label=電子郵件 -form.passwordReset.submit=提交 -form.passwordReset.sent.submit=返回到登入頁面 -form.passwordReset.message.success=檢查您的電子郵件中是否有重置密碼的連結。如果幾分鐘內沒有出現,請檢查您的垃圾郵件資料夾。 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments.html b/application/src/main/resources/templates/gateway_modules/login_fragments.html deleted file mode 100644 index 0b5671449..000000000 --- a/application/src/main/resources/templates/gateway_modules/login_fragments.html +++ /dev/null @@ -1,20 +0,0 @@ - -
- -
-
- -
-
- -
-
\ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments.properties b/application/src/main/resources/templates/gateway_modules/login_fragments.properties deleted file mode 100644 index 5396009aa..000000000 --- a/application/src/main/resources/templates/gateway_modules/login_fragments.properties +++ /dev/null @@ -1,4 +0,0 @@ -otherLogin.label=其他登录方式 - -# Rule: `formAuthProviders.${provider.metadata.name}.displayName` -formAuthProviders.local.displayName=账号密码登录 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments_en.properties b/application/src/main/resources/templates/gateway_modules/login_fragments_en.properties deleted file mode 100644 index 2ac24fcf2..000000000 --- a/application/src/main/resources/templates/gateway_modules/login_fragments_en.properties +++ /dev/null @@ -1,4 +0,0 @@ -otherLogin.label=Other Login - -# Rule: `formAuthProviders.${provider.metadata.name}.displayName` -formAuthProviders.local.displayName=Login with credentials \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments_es.properties b/application/src/main/resources/templates/gateway_modules/login_fragments_es.properties deleted file mode 100644 index 90da22132..000000000 --- a/application/src/main/resources/templates/gateway_modules/login_fragments_es.properties +++ /dev/null @@ -1,4 +0,0 @@ -otherLogin.label=Otras formas de inicio de sesión - -# Rule: `formAuthProviders.${provider.metadata.name}.displayName` -formAuthProviders.local.displayName=Iniciar sesión con credenciales \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_modules/login_fragments_zh_TW.properties b/application/src/main/resources/templates/gateway_modules/login_fragments_zh_TW.properties deleted file mode 100644 index 8a96457de..000000000 --- a/application/src/main/resources/templates/gateway_modules/login_fragments_zh_TW.properties +++ /dev/null @@ -1,4 +0,0 @@ -otherLogin.label=其他登入方式 - -# Rule: `formAuthProviders.${provider.metadata.name}.displayName` -formAuthProviders.local.displayName=帳號密碼登入 \ No newline at end of file diff --git a/application/src/main/resources/templates/login.html b/application/src/main/resources/templates/login.html index ac00d57c8..fd619e2c1 100644 --- a/application/src/main/resources/templates/login.html +++ b/application/src/main/resources/templates/login.html @@ -1,21 +1,21 @@
-
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/application/src/main/resources/templates/login_local.html b/application/src/main/resources/templates/login_local.html index 46d997c23..6e3eeefef 100644 --- a/application/src/main/resources/templates/login_local.html +++ b/application/src/main/resources/templates/login_local.html @@ -52,7 +52,7 @@ \ No newline at end of file diff --git a/application/src/main/resources/templates/logout.html b/application/src/main/resources/templates/logout.html index 88b1f6c8c..a91195c41 100644 --- a/application/src/main/resources/templates/logout.html +++ b/application/src/main/resources/templates/logout.html @@ -1,13 +1,13 @@

-
+
diff --git a/application/src/main/resources/templates/password-reset/email/reset.html b/application/src/main/resources/templates/password-reset/email/reset.html index 84b1f8da4..6178b967c 100644 --- a/application/src/main/resources/templates/password-reset/email/reset.html +++ b/application/src/main/resources/templates/password-reset/email/reset.html @@ -1,16 +1,16 @@
-
+

-
+
-
+
diff --git a/application/src/main/resources/templates/password-reset/email/send.html b/application/src/main/resources/templates/password-reset/email/send.html index f518e2d9f..e10481df2 100644 --- a/application/src/main/resources/templates/password-reset/email/send.html +++ b/application/src/main/resources/templates/password-reset/email/send.html @@ -1,19 +1,19 @@
-
+

-
+
-
+
-
+
diff --git a/application/src/main/resources/templates/setup.html b/application/src/main/resources/templates/setup.html index 2cf354f45..5a7350cfc 100644 --- a/application/src/main/resources/templates/setup.html +++ b/application/src/main/resources/templates/setup.html @@ -1,7 +1,7 @@