From b608ae6faf75605fcfdcf6d7f2d0e15e74ea4790 Mon Sep 17 00:00:00 2001 From: shuai Date: Fri, 25 Aug 2023 12:32:16 +0800 Subject: [PATCH 01/26] fix: password maxlength remove --- i18n/en_US.yaml | 5 ++ ui/src/components/Editor/toolItem.tsx | 45 +++++++++--------- .../Install/components/FourthStep/index.tsx | 46 +++++++++++++++++-- ui/src/pages/Install/index.tsx | 2 +- ui/src/pages/Users/Login/index.tsx | 1 - ui/src/pages/Users/PasswordReset/index.tsx | 2 - .../Register/components/SignUpForm/index.tsx | 1 - .../Account/components/ModifyEmail/index.tsx | 1 - .../Account/components/ModifyPass/index.tsx | 2 - 9 files changed, 70 insertions(+), 35 deletions(-) diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml index 37ed2be2..7b1d8b18 100644 --- a/i18n/en_US.yaml +++ b/i18n/en_US.yaml @@ -1263,12 +1263,14 @@ ui: site_name: label: Site name msg: Site name cannot be empty. + msg_max_length: Site name must be at maximum 30 characters in length. site_url: label: Site URL text: The address of your site. msg: empty: Site URL cannot be empty. incorrect: Site URL incorrect format. + max_length: Site URL must be at maximum 512 characters in length. contact_email: label: Contact email text: Email address of key contact responsible for this site. @@ -1283,12 +1285,15 @@ ui: label: Name msg: Name cannot be empty. character: 'Must use the character set "a-z", "0-9", " - . _"' + msg_max_length: Name must be at maximum 30 characters in length. admin_password: label: Password text: >- You will need this password to log in. Please store it in a secure location. msg: Password cannot be empty. + msg_min_length: Password must be at least 8 characters in length. + msg_max_length: Password must be at maximum 32 characters in length. admin_email: label: Email text: You will need this email to log in. diff --git a/ui/src/components/Editor/toolItem.tsx b/ui/src/components/Editor/toolItem.tsx index cba3a622..2af40682 100644 --- a/ui/src/components/Editor/toolItem.tsx +++ b/ui/src/components/Editor/toolItem.tsx @@ -1,5 +1,5 @@ import { FC, useContext, useEffect } from 'react'; -import { Dropdown, OverlayTrigger, Tooltip, Button } from 'react-bootstrap'; +import { Dropdown, Button } from 'react-bootstrap'; import { EditorContext } from './EditorContext'; @@ -49,28 +49,27 @@ const ToolItem: FC = (props) => { }, []); const btnRender = () => ( - {tip}}> -