feat: add regex to SignupTable

This commit is contained in:
Yang Luo 2024-01-13 16:05:45 +08:00
parent 5bb12a30d4
commit 79b393afee
25 changed files with 41 additions and 0 deletions

View File

@ -37,6 +37,7 @@ type SignupItem struct {
Prompted bool `json:"prompted"` Prompted bool `json:"prompted"`
Label string `json:"label"` Label string `json:"label"`
Placeholder string `json:"placeholder"` Placeholder string `json:"placeholder"`
Regex string `json:"regex"`
Rule string `json:"rule"` Rule string `json:"rule"`
} }

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Bitte geben Sie Ihren richtigen Namen ein!", "Please input your real name!": "Bitte geben Sie Ihren richtigen Namen ein!",
"Please select your country code!": "Bitte wählen Sie Ihren Ländercode aus!", "Please select your country code!": "Bitte wählen Sie Ihren Ländercode aus!",
"Please select your country/region!": "Bitte wählen Sie Ihr Land/Ihre Region aus!", "Please select your country/region!": "Bitte wählen Sie Ihr Land/Ihre Region aus!",
"Regex": "Regex",
"Terms of Use": "Nutzungsbedingungen", "Terms of Use": "Nutzungsbedingungen",
"Terms of Use - Tooltip": "Nutzungsbedingungen, die Benutzer während der Registrierung lesen und akzeptieren müssen", "Terms of Use - Tooltip": "Nutzungsbedingungen, die Benutzer während der Registrierung lesen und akzeptieren müssen",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "¡Por favor, ingresa tu nombre real!", "Please input your real name!": "¡Por favor, ingresa tu nombre real!",
"Please select your country code!": "¡Por favor seleccione su código de país!", "Please select your country code!": "¡Por favor seleccione su código de país!",
"Please select your country/region!": "¡Por favor seleccione su país/región!", "Please select your country/region!": "¡Por favor seleccione su país/región!",
"Regex": "Regex",
"Terms of Use": "Términos de uso", "Terms of Use": "Términos de uso",
"Terms of Use - Tooltip": "Términos de uso que los usuarios necesitan leer y aceptar durante el registro", "Terms of Use - Tooltip": "Términos de uso que los usuarios necesitan leer y aceptar durante el registro",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Veuillez saisir votre nom complet !", "Please input your real name!": "Veuillez saisir votre nom complet !",
"Please select your country code!": "Sélectionnez votre code de pays, s'il vous plaît !", "Please select your country code!": "Sélectionnez votre code de pays, s'il vous plaît !",
"Please select your country/region!": "Veuillez sélectionner votre pays/région !", "Please select your country/region!": "Veuillez sélectionner votre pays/région !",
"Regex": "Regex",
"Terms of Use": "Conditions d'utilisation", "Terms of Use": "Conditions d'utilisation",
"Terms of Use - Tooltip": "Conditions d'utilisation qui doivent être lus acceptés lors de l'enregistrement du compte", "Terms of Use - Tooltip": "Conditions d'utilisation qui doivent être lus acceptés lors de l'enregistrement du compte",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Silakan masukkan nama asli Anda!", "Please input your real name!": "Silakan masukkan nama asli Anda!",
"Please select your country code!": "Tolong pilih kode negara Anda!", "Please select your country code!": "Tolong pilih kode negara Anda!",
"Please select your country/region!": "Silakan pilih negara/region Anda!", "Please select your country/region!": "Silakan pilih negara/region Anda!",
"Regex": "Regex",
"Terms of Use": "Syarat Penggunaan", "Terms of Use": "Syarat Penggunaan",
"Terms of Use - Tooltip": "Syarat penggunaan yang harus dibaca dan disetujui oleh pengguna selama proses registrasi", "Terms of Use - Tooltip": "Syarat penggunaan yang harus dibaca dan disetujui oleh pengguna selama proses registrasi",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "正しい名前を入力してください!", "Please input your real name!": "正しい名前を入力してください!",
"Please select your country code!": "あなたの国コードを選択してください!", "Please select your country code!": "あなたの国コードを選択してください!",
"Please select your country/region!": "あなたの国/地域を選択してください!", "Please select your country/region!": "あなたの国/地域を選択してください!",
"Regex": "Regex",
"Terms of Use": "利用規約", "Terms of Use": "利用規約",
"Terms of Use - Tooltip": "ユーザーが登録する際に読んで同意する必要がある利用規約", "Terms of Use - Tooltip": "ユーザーが登録する際に読んで同意する必要がある利用規約",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "진짜 이름을 입력해주세요!", "Please input your real name!": "진짜 이름을 입력해주세요!",
"Please select your country code!": "국가 코드를 선택해 주세요!", "Please select your country code!": "국가 코드를 선택해 주세요!",
"Please select your country/region!": "국가 / 지역을 선택해주세요!", "Please select your country/region!": "국가 / 지역을 선택해주세요!",
"Regex": "Regex",
"Terms of Use": "사용 약관", "Terms of Use": "사용 약관",
"Terms of Use - Tooltip": "등록 중 사용자가 읽어야 하고 동의해야하는 이용 약관", "Terms of Use - Tooltip": "등록 중 사용자가 읽어야 하고 동의해야하는 이용 약관",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Por favor, insira seu nome real!", "Please input your real name!": "Por favor, insira seu nome real!",
"Please select your country code!": "Por favor, selecione o código do seu país!", "Please select your country code!": "Por favor, selecione o código do seu país!",
"Please select your country/region!": "Por favor, selecione seu país/região!", "Please select your country/region!": "Por favor, selecione seu país/região!",
"Regex": "Regex",
"Terms of Use": "Termos de Uso", "Terms of Use": "Termos de Uso",
"Terms of Use - Tooltip": "Termos de uso que os usuários precisam ler e concordar durante o registro", "Terms of Use - Tooltip": "Termos de uso que os usuários precisam ler e concordar durante o registro",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Пожалуйста, введите своё настоящее имя!", "Please input your real name!": "Пожалуйста, введите своё настоящее имя!",
"Please select your country code!": "Пожалуйста, выберите код своей страны!", "Please select your country code!": "Пожалуйста, выберите код своей страны!",
"Please select your country/region!": "Пожалуйста, выберите свою страну / регион!", "Please select your country/region!": "Пожалуйста, выберите свою страну / регион!",
"Regex": "Regex",
"Terms of Use": "Условия использования", "Terms of Use": "Условия использования",
"Terms of Use - Tooltip": "Условия использования, которые пользователи должны прочитать и согласиться с ними при регистрации", "Terms of Use - Tooltip": "Условия использования, которые пользователи должны прочитать и согласиться с ними при регистрации",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Please input your real name!", "Please input your real name!": "Please input your real name!",
"Please select your country code!": "Please select your country code!", "Please select your country code!": "Please select your country code!",
"Please select your country/region!": "Please select your country/region!", "Please select your country/region!": "Please select your country/region!",
"Regex": "Regex",
"Terms of Use": "Terms of Use", "Terms of Use": "Terms of Use",
"Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration", "Terms of Use - Tooltip": "Terms of use that users need to read and agree to during registration",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "Vui lòng nhập tên thật của bạn!", "Please input your real name!": "Vui lòng nhập tên thật của bạn!",
"Please select your country code!": "Vui lòng chọn mã quốc gia của bạn!", "Please select your country code!": "Vui lòng chọn mã quốc gia của bạn!",
"Please select your country/region!": "Vui lòng chọn quốc gia/vùng của bạn!", "Please select your country/region!": "Vui lòng chọn quốc gia/vùng của bạn!",
"Regex": "Regex",
"Terms of Use": "Điều khoản sử dụng", "Terms of Use": "Điều khoản sử dụng",
"Terms of Use - Tooltip": "Điều khoản sử dụng mà người dùng cần đọc và đồng ý trong quá trình đăng ký", "Terms of Use - Tooltip": "Điều khoản sử dụng mà người dùng cần đọc và đồng ý trong quá trình đăng ký",
"Text 1": "Text 1", "Text 1": "Text 1",

View File

@ -888,6 +888,7 @@
"Please input your real name!": "请输入您的姓名!", "Please input your real name!": "请输入您的姓名!",
"Please select your country code!": "请选择国家代码!", "Please select your country code!": "请选择国家代码!",
"Please select your country/region!": "请选择您的国家或地区", "Please select your country/region!": "请选择您的国家或地区",
"Regex": "正则表达式",
"Terms of Use": "《用户协议》", "Terms of Use": "《用户协议》",
"Terms of Use - Tooltip": "用户注册时需要阅读并同意的使用条款", "Terms of Use - Tooltip": "用户注册时需要阅读并同意的使用条款",
"Text 1": "文本1", "Text 1": "文本1",

View File

@ -224,6 +224,23 @@ class SignupTable extends React.Component {
); );
}, },
}, },
{
title: i18next.t("signup:Regex"),
dataIndex: "regex",
key: "regex",
width: "200px",
render: (text, record, index) => {
if (record.name.startsWith("Text ") || record.name === "Password" || record.name === "Confirm password") {
return null;
}
return (
<Input value={text} onChange={e => {
this.updateField(table, index, "regex", e.target.value);
}} />
);
},
},
{ {
title: i18next.t("application:Rule"), title: i18next.t("application:Rule"),
dataIndex: "rule", dataIndex: "rule",