@authing/react-ui-components 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/lib/index.d.ts +2568 -201
  2. package/lib/index.min.css +2 -1
  3. package/lib/index.min.js +1 -1
  4. package/lib/index.min.js.LICENSE.txt +42 -0
  5. package/lib/static/media/loading.4a67a5f3.svg +29 -0
  6. package/package.json +54 -18
  7. package/.eslintignore +0 -6
  8. package/.eslintrc.js +0 -7
  9. package/.prettierrc +0 -5
  10. package/.vscode/settings.json +0 -31
  11. package/LICENSE +0 -21
  12. package/config/antdReplacer.js +0 -51
  13. package/config/env.js +0 -106
  14. package/config/getHttpsConfig.js +0 -66
  15. package/config/jest/cssTransform.js +0 -14
  16. package/config/jest/fileTransform.js +0 -40
  17. package/config/modules.js +0 -134
  18. package/config/paths.js +0 -71
  19. package/config/pnpTs.js +0 -35
  20. package/config/webpack.config.js +0 -857
  21. package/config/webpackDevServer.config.js +0 -130
  22. package/public/favicon.ico +0 -0
  23. package/public/index.html +0 -43
  24. package/public/logo192.png +0 -0
  25. package/public/logo512.png +0 -0
  26. package/public/manifest.json +0 -25
  27. package/public/robots.txt +0 -3
  28. package/scripts/build.js +0 -212
  29. package/scripts/lib.js +0 -200
  30. package/scripts/start.js +0 -166
  31. package/scripts/test.js +0 -53
  32. package/src/common/AuthingDropdown/index.tsx +0 -52
  33. package/src/common/AuthingDropdown/style.less +0 -43
  34. package/src/common/AuthingTabs/index.tsx +0 -98
  35. package/src/common/AuthingTabs/style.less +0 -135
  36. package/src/common/CopyAbleText/index.tsx +0 -54
  37. package/src/common/CopyAbleText/style.less +0 -13
  38. package/src/common/VerifyCodeInput/index.tsx +0 -76
  39. package/src/common/VerifyCodeInput/style.less +0 -24
  40. package/src/components/AuthingGuard/AppMFALayout/index.tsx +0 -74
  41. package/src/components/AuthingGuard/AppMFALayout/style.less +0 -12
  42. package/src/components/AuthingGuard/CompleteUserInfoLayout/index.tsx +0 -29
  43. package/src/components/AuthingGuard/CompleteUserInfoLayout/style.less +0 -8
  44. package/src/components/AuthingGuard/Forms/ADLoginForm/index.tsx +0 -117
  45. package/src/components/AuthingGuard/Forms/Agreements/index.tsx +0 -81
  46. package/src/components/AuthingGuard/Forms/Agreements/style.less +0 -44
  47. package/src/components/AuthingGuard/Forms/CompleteUserInfoForm/index.tsx +0 -139
  48. package/src/components/AuthingGuard/Forms/EmailMfaVerifyForm/CheckEmailForm.tsx +0 -86
  49. package/src/components/AuthingGuard/Forms/EmailMfaVerifyForm/VerifyCodeForm.tsx +0 -116
  50. package/src/components/AuthingGuard/Forms/EmailMfaVerifyForm/index.tsx +0 -40
  51. package/src/components/AuthingGuard/Forms/EmailMfaVerifyForm/style.less +0 -0
  52. package/src/components/AuthingGuard/Forms/EmailRegisterForm/index.tsx +0 -181
  53. package/src/components/AuthingGuard/Forms/EmailRegisterForm/style.less +0 -0
  54. package/src/components/AuthingGuard/Forms/LdapLoginForm/index.tsx +0 -161
  55. package/src/components/AuthingGuard/Forms/LdapLoginForm/style.less +0 -0
  56. package/src/components/AuthingGuard/Forms/LoginFormFooter/index.tsx +0 -76
  57. package/src/components/AuthingGuard/Forms/LoginFormFooter/style.less +0 -6
  58. package/src/components/AuthingGuard/Forms/MfaResetCodeForm/Step1.tsx +0 -86
  59. package/src/components/AuthingGuard/Forms/MfaResetCodeForm/Step2.tsx +0 -53
  60. package/src/components/AuthingGuard/Forms/MfaResetCodeForm/index.tsx +0 -65
  61. package/src/components/AuthingGuard/Forms/MfaResetCodeForm/style.less +0 -20
  62. package/src/components/AuthingGuard/Forms/MfaVerifyForm/index.tsx +0 -105
  63. package/src/components/AuthingGuard/Forms/MfaVerifyForm/style.less +0 -12
  64. package/src/components/AuthingGuard/Forms/PasswordLoginForm/index.tsx +0 -261
  65. package/src/components/AuthingGuard/Forms/PhoneCodeLoginForm/index.tsx +0 -133
  66. package/src/components/AuthingGuard/Forms/PhoneRegisterForm/index.tsx +0 -202
  67. package/src/components/AuthingGuard/Forms/QrCodeLoginForm/index.tsx +0 -61
  68. package/src/components/AuthingGuard/Forms/QrCodeLoginForm/style.less +0 -14
  69. package/src/components/AuthingGuard/Forms/RegisterFormFooter/index.tsx +0 -56
  70. package/src/components/AuthingGuard/Forms/RegisterFormFooter/style.less +0 -0
  71. package/src/components/AuthingGuard/Forms/ResetPwdForm/Footer.tsx +0 -21
  72. package/src/components/AuthingGuard/Forms/ResetPwdForm/Step1.tsx +0 -86
  73. package/src/components/AuthingGuard/Forms/ResetPwdForm/Step2.tsx +0 -127
  74. package/src/components/AuthingGuard/Forms/ResetPwdForm/Step3.tsx +0 -141
  75. package/src/components/AuthingGuard/Forms/ResetPwdForm/Step4.tsx +0 -51
  76. package/src/components/AuthingGuard/Forms/ResetPwdForm/index.tsx +0 -96
  77. package/src/components/AuthingGuard/Forms/ResetPwdForm/style.less +0 -3
  78. package/src/components/AuthingGuard/Forms/SendPhoneCode/SendCodeBtn.tsx +0 -88
  79. package/src/components/AuthingGuard/Forms/SendPhoneCode/index.tsx +0 -50
  80. package/src/components/AuthingGuard/Forms/SendPhoneCode/style.less +0 -26
  81. package/src/components/AuthingGuard/Forms/SmsMfaVerifyForm/CheckPhoneForm.tsx +0 -86
  82. package/src/components/AuthingGuard/Forms/SmsMfaVerifyForm/VerifyCodeForm.tsx +0 -113
  83. package/src/components/AuthingGuard/Forms/SmsMfaVerifyForm/index.tsx +0 -40
  84. package/src/components/AuthingGuard/Forms/SmsMfaVerifyForm/style.less +0 -3
  85. package/src/components/AuthingGuard/Forms/SocialAndIdpLogin/index.tsx +0 -325
  86. package/src/components/AuthingGuard/Forms/SocialAndIdpLogin/style.less +0 -75
  87. package/src/components/AuthingGuard/Forms/UploadImage/index.tsx +0 -70
  88. package/src/components/AuthingGuard/Forms/index.ts +0 -13
  89. package/src/components/AuthingGuard/GuardLayout/index.tsx +0 -488
  90. package/src/components/AuthingGuard/GuardLayout/style.less +0 -111
  91. package/src/components/AuthingGuard/Header/index.tsx +0 -28
  92. package/src/components/AuthingGuard/Header/style.less +0 -64
  93. package/src/components/AuthingGuard/IconFont/iconfont.js +0 -74
  94. package/src/components/AuthingGuard/IconFont/index.tsx +0 -19
  95. package/src/components/AuthingGuard/IconFont/style.less +0 -6
  96. package/src/components/AuthingGuard/IconFont/svg.js +0 -2
  97. package/src/components/AuthingGuard/LoginLayout/index.tsx +0 -205
  98. package/src/components/AuthingGuard/LoginLayout/style.less +0 -0
  99. package/src/components/AuthingGuard/MfaLayout/Steps.ts +0 -4
  100. package/src/components/AuthingGuard/MfaLayout/index.tsx +0 -49
  101. package/src/components/AuthingGuard/MfaLayout/style.less +0 -3
  102. package/src/components/AuthingGuard/RegisterLayout/index.tsx +0 -89
  103. package/src/components/AuthingGuard/RegisterLayout/style.less +0 -0
  104. package/src/components/AuthingGuard/ResetPwdLayout/index.tsx +0 -20
  105. package/src/components/AuthingGuard/ToggleLang/index.tsx +0 -51
  106. package/src/components/AuthingGuard/api/appConfig.ts +0 -154
  107. package/src/components/AuthingGuard/api/http.ts +0 -88
  108. package/src/components/AuthingGuard/api/index.ts +0 -3
  109. package/src/components/AuthingGuard/api/sso.ts +0 -29
  110. package/src/components/AuthingGuard/api/userPoolConfig.ts +0 -112
  111. package/src/components/AuthingGuard/constants.ts +0 -107
  112. package/src/components/AuthingGuard/hooks/index.tsx +0 -70
  113. package/src/components/AuthingGuard/hooks/useScreenSize.tsx +0 -68
  114. package/src/components/AuthingGuard/index.tsx +0 -134
  115. package/src/components/AuthingGuard/locales/en/common.json +0 -185
  116. package/src/components/AuthingGuard/locales/en/index.ts +0 -6
  117. package/src/components/AuthingGuard/locales/en/login.json +0 -94
  118. package/src/components/AuthingGuard/locales/en/map.json +0 -4
  119. package/src/components/AuthingGuard/locales/en/user.json +0 -81
  120. package/src/components/AuthingGuard/locales/index.ts +0 -45
  121. package/src/components/AuthingGuard/locales/zh/common.json +0 -185
  122. package/src/components/AuthingGuard/locales/zh/index.ts +0 -6
  123. package/src/components/AuthingGuard/locales/zh/login.json +0 -94
  124. package/src/components/AuthingGuard/locales/zh/map.json +0 -4
  125. package/src/components/AuthingGuard/locales/zh/user.json +0 -81
  126. package/src/components/AuthingGuard/style.less +0 -104
  127. package/src/components/AuthingGuard/types/Forms.ts +0 -95
  128. package/src/components/AuthingGuard/types/GuardConfig.ts +0 -424
  129. package/src/components/AuthingGuard/types/GuardState.ts +0 -7
  130. package/src/components/AuthingGuard/types/Locales.ts +0 -12
  131. package/src/components/AuthingGuard/types/index.ts +0 -4
  132. package/src/components/index.ts +0 -7
  133. package/src/context/base.tsx +0 -28
  134. package/src/context/global/context.tsx +0 -39
  135. package/src/context/global/reducer.tsx +0 -56
  136. package/src/index.tsx +0 -142
  137. package/src/logo.svg +0 -7
  138. package/src/react-app-env.d.ts +0 -71
  139. package/src/reportWebVitals.ts +0 -15
  140. package/src/setupTests.ts +0 -5
  141. package/src/utils/clipboard.ts +0 -27
  142. package/src/utils/index.ts +0 -180
  143. package/src/utils/popupCenter.ts +0 -48
  144. package/tsconfig.json +0 -24
@@ -1,185 +0,0 @@
1
- {
2
- "guidance": {
3
- "registerAcc": "注册账号",
4
- "registerAccStep1": "首先,我们来注册一个自己的账号吧!",
5
- "registerAccStep2": "我们已经帮你把信息填好了,点击注册就创建成功了!",
6
- "loginApp": "登录应用",
7
- "loginAppStep1": "现在点击登录体验吧"
8
- },
9
- "uploadFail": "{{name}} 上传失败",
10
- "confirm": "确认",
11
- "cancel": "取消",
12
- "editPic": "编辑图片",
13
- "picExtError": "图片格式错误",
14
- "picSizeLimit": "图片不能大于 5 兆",
15
- "modify": "修改",
16
- "image": "图片",
17
- "logoutSuccess": "退出成功",
18
- "confirmLogout": "确定退出登录?",
19
- "dashboard": "控制台",
20
- "personalCenter": "个人中心",
21
- "appPanel": "应用面板",
22
- "logout": "退出",
23
- "updateSuccess": "更新成功",
24
- "agreeAgreement": "我已阅读并接受",
25
- "retryAfterTime": "{{time}} 秒后重试",
26
- "sendVerifyCode": "发送验证码",
27
- "emailFormatError": "邮箱格式不正确",
28
- "phoneFormateError": "手机号格式不正确",
29
- "authoriztion": "授权",
30
- "authApp": "授权应用",
31
- "authAppSomePermisson": "{{name}} 申请访问您的账户信息,授权 {{name}} 以下权限",
32
- "visitPersonalAccData": "访问您的个人用户数据",
33
- "chooseRole": "选择角色",
34
- "administrator": "管理员",
35
- "authingBackendSystem": "Authing 后台管理系统",
36
- "username": "用户名",
37
- "appNotFound": "应用不存在,请检查应用链接是否正确",
38
- "enterprisePanel": "企业面板",
39
- "enterprisePanelInfo": "你的企业应用和个人配置的应用将在此展示,点击应用图标即可自动登录。",
40
- "noOpenedApp": "没有已开启的应用",
41
- "login": "登录",
42
- "loginSuccessWelcome": "登录成功,欢迎你:{{name}}",
43
- "hasForgotPwd": "忘记密码?",
44
- "noAccYet": "还没有账号,",
45
- "registerImmediate": "立即注册",
46
- "sure": "确定",
47
- "hasLooseSaftyCode": "安全码丢失?",
48
- "useRecoverCode": "使用恢复代码",
49
- "register": "注册",
50
- "welcomeJoin": "欢迎加入 {{name}}",
51
- "alreadyHasAcc": "已有账号,",
52
- "loginImmediate": "立即登录",
53
- "registerInfoFill": "注册信息补全",
54
- "operateSuccess": "操作成功",
55
- "perfectUserInfo": "完善用户信息",
56
- "welcomeJoinAndPerfect": "欢迎加入 {{name}} ,为了更好的使用体验,请先完善您的资料信息",
57
- "submit": "提交",
58
- "resetPwd": "\b重置密码",
59
- "jumpAfterCount": "{{number}}s 后自动跳转登录",
60
- "pwdModifySuccess": "密码修改成功",
61
- "man": "男",
62
- "female": "女",
63
- "unknown": "未知",
64
- "usernameLabel": "用户名:",
65
- "emailLabel": "邮箱:",
66
- "phoneLabel": "手机号:",
67
- "nicknameLabel": "昵称:",
68
- "nameLabel": "姓名:",
69
- "genderLabel": "性别:",
70
- "addressLabel": "所在地:",
71
- "companyLabel": "公司:",
72
- "birthdayLabel": "生日:",
73
- "registerDateLabel": "注册日期:",
74
- "blogLabel": "个人博客:",
75
- "baseInfo": "基本信息",
76
- "bindEmail": "绑定邮箱",
77
- "email": "邮箱",
78
- "verifyCode": "验证码",
79
- "inputFourVerifyCode": "请输入 {{length}} 位验证码",
80
- "bindPhone": "绑定手机号",
81
- "phoneNumber": "手机号",
82
- "modifyEmail": "修改邮箱",
83
- "currentEmail": "当前邮箱",
84
- "currentEmailVerifyCode": "当前邮箱验证码",
85
- "newMailbox": "新邮箱",
86
- "pleaseInputCorrectMailbox": "请输入正确的邮箱",
87
- "newMailboxVerifyCode": "新邮箱验证码",
88
- "modifyPhoneNumber": "修改手机号",
89
- "currentPhoneNumber": "当前手机号",
90
- "oldPhoneVerfiyCode": "旧手机号验证码",
91
- "newPhone": "新手机号",
92
- "inputNewPhone": "请输入新手机号",
93
- "newPhoneVerify": "新手机号验证码",
94
- "bind": "绑定",
95
- "quesitons": "遇到问题?",
96
- "start": "开始",
97
- "problem": {
98
- "title": "问题反馈",
99
- "noProblem": "没有问题了,",
100
- "goLogin": "去登录",
101
- "verifyTip": "联系方式是必填项!",
102
- "noVerify": "无法收到验证码",
103
- "noLogin": "无法登录",
104
- "noRegister": "无法注册",
105
- "noAccount": "帐号丢失",
106
- "noResetPass": "无法重置密码",
107
- "other": "其他",
108
- "noVerifyTip": {
109
- "tip": "如果没有手机验证码,建议您进行以下操作:",
110
- "type1": "1. 检查您的手机是否停机/无网络",
111
- "type2": "2. 检查您的手机号是否输入正确",
112
- "type3": "3. 检查您的验证码短信是否被屏蔽"
113
- },
114
- "noLoginTip": {
115
- "tip": "如果没有手机验证码,建议您进行以下操作:",
116
- "type1": "1. 检查您的用户名与密码输入是否正确",
117
- "type2": "2. 检查您的手机是否停机/无网络"
118
- },
119
- "noRegisterTip": {
120
- "tip": "如果无法注册,建议您进行以下操作:",
121
- "type1": "1. 检查您的帐号是否已注册",
122
- "type2": "2. 检查您的注册手机号是否输入正确",
123
- "type3": "3. 检查您的验证码短信是否被屏蔽"
124
- },
125
- "noAccountTip": {
126
- "tip": "如果帐号丢失,建议您进行以下操作:",
127
- "type1": "1. 检查您的用户名与密码输入是否正确",
128
- "type2": "2. 检查您的手机是否停机/无网络"
129
- },
130
- "noResetPassTip": {
131
- "tip": "如果无法重置密码,建议您进行以下操作:",
132
- "type1": "1. 检查您的手机是否停机/无网络",
133
- "type2": "2. 检查您的设置的密码是否正确"
134
- },
135
- "otherTip": {
136
- "tip": "其他:",
137
- "type1": "请在下栏描述您遇到的问题"
138
- },
139
- "successTip": "提交成功",
140
- "successTipMsg": "您的信息已经提交给应用管理员,会尽快处理您的反馈,请您耐心等待。",
141
- "form": {
142
- "phone": "联系方式",
143
- "phonePlaceholder": "请输入您的邮箱或手机号(必填)",
144
- "question": "相关问题",
145
- "questionDescript": "问题描述",
146
- "questionClip": "问题截图",
147
- "upload": "上传图片",
148
- "submit": "提交"
149
- }
150
- },
151
- "low": "低",
152
- "middle": "中",
153
- "high": "高",
154
- "weak": "弱",
155
- "strong": "强",
156
- "and": "和",
157
- "pleaseCheckReaded": "请勾选“我已阅读”",
158
- "backLoginPage": "返回登录页",
159
- "LoginSuccess": "登录成功",
160
- "unAppId": "请传入应用 ID",
161
- "welcomeDoc": "欢迎加入 {{name}} ,为了更好的使用体验,请先完善您的资料信息",
162
- "bindEmailDoc": "您暂未绑定邮箱,请输入邮箱进行绑定",
163
- "unBindEmaileDoc": "{{email}} 已被其他账号绑定",
164
- "copied": "已复制",
165
- "copy": "复制",
166
- "emailNotNull": "邮箱不能为空",
167
- "setPassword": "设置密码",
168
- "passwordNotNull": "密码不能为空",
169
- "repeatPassword": "请重复密码",
170
- "repeatPasswordDoc": "两次密码必须一致",
171
- "LDAPAccountNotNull": "LDAP 账号不能为空",
172
- "captchaCodeNotNull": "验证码不能为空",
173
- "recoverCodeNotNull": "恢复代码不能为空",
174
- "accNotNull": "账号不能为空",
175
- "phoneNotNull": "手机号不能为空",
176
- "phoneOrEmailNotNull": "手机号或邮箱不能为空",
177
- "inputVerifyCode": "请输入验证码",
178
- "SMS": "短信验证码验证",
179
- "EmailVerification": "电子邮箱验证",
180
- "saveSuccess": "保存成功",
181
- "retrievePassword": "找回密码",
182
- "registrationSuccess": "注册成功",
183
- "copyFailed": "复制失败",
184
- "networkError": "网络错误,请重试"
185
- }
@@ -1,6 +0,0 @@
1
- import common from './common.json'
2
- import login from './login.json'
3
- import user from './user.json'
4
- import map from './map.json'
5
-
6
- export { common, login, user, map }
@@ -1,94 +0,0 @@
1
- {
2
- "inputAccount": "请输入{{text}}",
3
- "inputAdUsername": "请输入 AD 用户名",
4
- "inputAdPwd": "请输入 AD 密码",
5
- "inputLdapUsername": "请输入 LDAP 用户名",
6
- "inputLdapPwd": "请输入 LDAP 密码",
7
- "inputCaptchaCode": "请输入图形验证码",
8
- "captchaCode": "图形验证码",
9
- "inputFullMfaCode": "请输入完整安全码",
10
- "accPwdLoginVerify": "账号登录验证",
11
- "inputSixCode": "请输入获取的 6 位数字安全码验证登录",
12
- "autoRegister": "登录时,如果帐号不存在会自动创建。",
13
- "inputEmailUsernamePhone": "请输入邮箱、用户名或手机号",
14
- "inputLoginPwd": "请输入登录密码",
15
- "phoneAutoRegister": "登录时,如果帐号不存在会自动创建。",
16
- "inputPhone": "请输入手机号",
17
- "inputFourVerifyCode": "请输入 {{length}} 位验证码",
18
- "inputEmail": "请输入邮箱",
19
- "inputPwdLimit": "请输入 6-20 位密码",
20
- "setPwdLimit": "设置 6-20 位密码",
21
- "inputConfirmPwd": "请输入确认密码",
22
- "mustEqualToPwd": "必须和密码一致",
23
- "inputPwdAgain": "再输入一次密码",
24
- "inputFourMsgVerifyCode": "请输入 {{length}} 位短信验证码",
25
- "loginBy": "使用 {{name}} 登录",
26
- "thridAccLogin": "第三方账号登录",
27
- "inputRecoverCode": "请输入恢复代码",
28
- "confirmSavedCode": "请确保您已保存密钥",
29
- "rememberedSecret": "已经安全地记录了这段密钥",
30
- "newGenered": "已为您生成新的恢复代码",
31
- "mfaAfterReset": "成功登录后,我们将生成一个新的恢复代码",
32
- "findedSafetyCode": "找到安全码直接验证",
33
- "getBackPwd": "\b找回密码",
34
- "noEmpty": "不能为空",
35
- "inputCorrectPhone": "请输入正确的手机号或邮箱",
36
- "inputPhoneOrEmail": "请输入手机号或邮箱",
37
- "resetPwd": "重置密码",
38
- "otherAccLogin": "其他账号登录",
39
- "fourVerifyCode": "{{length}} 位验证码",
40
- "pwdLimie": "密码长度在 6-20 位",
41
- "newPwdLimit": "6-20 位新密码",
42
- "twoPwdNeedSame": "两次输入的密码需要一致",
43
- "resetEmailSent": "重置密码邮件已发送至邮箱 {{email}}",
44
- "emailSent": "邮件发送成功",
45
- "resetPwdEmail": "重发密码重置邮件",
46
- "confirmUnbindEmail": "确定解除绑定邮箱?",
47
- "confirmUnbinPhont": "确定解除绑定手机号?",
48
- "accBind": "账号绑定",
49
- "releaseBind": "解除绑定",
50
- "pwdLogin": "密码登录",
51
- "verifyCodeLogin": "验证码登录",
52
- "appScanLogin": "APP 扫码登录",
53
- "scanLogin": "扫码登录",
54
- "ldapLogin": "LDAP 登录",
55
- "adLogin": "AD 登录",
56
- "emailRegister": "邮箱注册",
57
- "phoneRegister": "手机号注册",
58
- "sendingVerifyCode": "验证码发送中",
59
- "verifyCodeSended": "验证码已发送至",
60
- "inputEmailCode": "请输入邮箱验证码",
61
- "inputSmsCode": "请输入短信验证码",
62
- "otherVerifyWay": "其他验证方式",
63
- "fillPhoneEmail": "请联系管理员完善手机或邮箱信息",
64
- "clickSent": "点击发送验证码",
65
- "bindPhoneInfo": "您暂未绑定手机号,请输入绑定",
66
- "phoneError": "手机号格式错误",
67
- "bindEmailInfo": "您暂未绑定邮箱,请输入绑定",
68
- "emailError": "邮箱格式错误",
69
- "mailBinded": "该邮箱已被绑定",
70
- "phoneBinded": "该手机号已被绑定",
71
- "dontBindPhone": "您未绑定手机号,请输入手机号绑定",
72
- "inputPhoneCode": "请输入手机验证码",
73
- "dontbindEmail": "您未绑定邮箱,请输入邮箱绑定",
74
- "feedback": "遇到问题",
75
- "forgetPwd": "忘记密码",
76
- "subAccLogin": "子账号登录",
77
- "inputContactWayPlease": "请填写联系方式",
78
- "submitFailRetry": "提交失败,请重试",
79
- "selectYourProblem": "请选择您遇到的问题",
80
- "problemDetail": "请描述下您遇到的具体问题及相关图片",
81
- "inputContactWayCheap": "方便解决您遇到问题,请提供您的联系方式(必填)",
82
- "inputPwd": "请输入密码",
83
- "setPwdLimit1": "设置至少 6 位字符密码",
84
- "login": {
85
- "setPwdLimit2": "至少六位,需包含英文、数字与符号中的两种",
86
- "setPwdLimit3": "至少六位,需包含英文、数字与符号"
87
- },
88
- "setPwdLimitMsg1": "密码长度至少为 6 位",
89
- "setPwdLimitMsg2": "密码长度至少为 6 位,且要包含英文、数字与符号中的两种",
90
- "setPwdLimitMsg3": "密码长度至少为 6 位,且要同时包含英文、数字与符号",
91
- "wechatmpQrcode": "公众号关注登录",
92
- "inputEmailUsername": "请输入邮箱或用户名",
93
- "inputUsername": "请输入用户名"
94
- }
@@ -1,4 +0,0 @@
1
- {
2
- "注册": "注册",
3
- "登录": "登录"
4
- }
@@ -1,81 +0,0 @@
1
- {
2
- "scanQrcode": "扫描二维码",
3
- "inputSafteyCode": "输入安全码",
4
- "viewInputSixCode": "在手机查看并输入 6 位数字安全码,完成后进入下一步",
5
- "numberSafteyCode": "数字安全码",
6
- "saveSecret": "请妥善保存密钥",
7
- "resetCodeDoWhat": "当您的 MFA 丢失时,您需要重置代码来恢复账号访问。",
8
- "bindSuccess": "绑定成功",
9
- "bindedMfa": "您已成功绑定 MFA",
10
- "bindFail": "绑定失败",
11
- "unbindMfa": "解绑 MFA",
12
- "confirmUnbindMfa": "确定解绑 MFA 吗?",
13
- "unbindSuccess": "解绑成功",
14
- "unbindFail": "解绑失败",
15
- "bindInfoFetchFail": "绑定信息请求失败",
16
- "mfaBind": "MFA 绑定",
17
- "addMfa": "添加 MFA",
18
- "saveRecoverCode": "保存恢复代码",
19
- "bindFinish": "绑定完成",
20
- "prevStep": "上一步",
21
- "nextStep": "下一步",
22
- "currentPwd": "当前密码",
23
- "inputCurrPwd": "请输入当前密码",
24
- "newPwd": "新密码",
25
- "inputNewPwd": "请输入新密码",
26
- "confrimPwd": "确认密码",
27
- "needSameWithNewPwd": "需要与新密码一致",
28
- "confirmModify": "确认修改",
29
- "modifyPwd": "修改密码",
30
- "personalInfo": "个人信息",
31
- "accPwd": "账号密码",
32
- "authenticationInfo": "认证信息",
33
- "choosePrincipalAuthenticationType": "选择认证类型",
34
- "choosePrincipalAuthenticationDescription": "实名认证将影响账号归属权,请根据实际情况进行实名认证。",
35
- "personalAuthentication": "个人认证",
36
- "personalAuthenticationDescription": "适用个人用户,账号归属于个人",
37
- "enterpriseAuthentication": "企业认证",
38
- "enterpriseAuthenticationDescription": "适用企业、政府、事业单位、学校、组织等,账号归属于企业",
39
- "principalAuthenticationType": "认证类型",
40
- "realName": "真实姓名",
41
- "enterpriseName": "企业名称",
42
- "idCard": "证件号码",
43
- "authenticationTime": "认证时间",
44
- "alreadyCompletedPersonalAuthentication": "恭喜!你已经完成个人实名认证",
45
- "alreadyCompletedEnterpriseAuthentication": "恭喜!你已经完成企业实名认证",
46
- "personal": "个人",
47
- "enterprise": "企业",
48
- "changeToEnterpriseAuthentication": "变更为企业认证",
49
- "idNumberLabel": "身份证号:",
50
- "bankCardLabel": "银行卡号:",
51
- "inputName": "请输入姓名",
52
- "inputIdNumber": "请输入身份证号",
53
- "inputBankCard": "请输入银行卡号",
54
- "enterpriseCode": "统一社会信用代码/注册号/组织机构代码",
55
- "legalPersonName": "企业法人名称",
56
- "inputEnterpriseCode": "请输入统一社会信用代码/注册号/组织机构代码",
57
- "inputLegalPersonName": "请输入企业法人名称",
58
- "inputEnterpriseName": "请输入企业名称",
59
- "authenticationSuccess": "认证成功",
60
- "securityRank": "安全等级",
61
- "longTimeNoModifyPwd": "您的密码长时间未修改,存在安全隐患,建议您立刻修改",
62
- "noPwdDanger": "您的帐户存在隐患,请立刻设置密码。",
63
- "pwdSecurityInfo": "安全性高的密码可以使账户更安全。建议您定期更换密码。",
64
- "currSecurityLevel": "您当前的帐号安全程度:",
65
- "securityLevel": "安全级别:",
66
- "setted": "已设置",
67
- "unSet": "未设置",
68
- "pwdStrang": "密码强度",
69
- "modifyImmidate": "立即修改",
70
- "configImmediate": "立即设置",
71
- "phoneBind": "手机绑定",
72
- "phoneBindTips": "绑定手机号码,账户安全问题实时通知。",
73
- "binded": "已绑定",
74
- "unBind": "未绑定",
75
- "bindImmediate": "立即绑定",
76
- "emailBind": "邮箱绑定",
77
- "bindEmailTips": "为了您的账户安全,请绑定邮箱。",
78
- "personalMfa": "个人 MFA",
79
- "personalMfaTips": "绑定个人 MFA 后,您可以在登录时进行二次验证,更有效的保障您的账户安全。",
80
- "pleaseDownloadAuthenticator": "请在手机打开 Google Authenticator / Microsoft Authenticator 扫码添加 MFA"
81
- }
@@ -1,104 +0,0 @@
1
- @import '~antd/lib/style/mixins/index.less';
2
-
3
- *[class*='authing-'] {
4
- @import '~antd/lib/style/core/global.less';
5
- }
6
-
7
- .authing-guard-text-btn {
8
- color: #396aff;
9
- padding: 0;
10
-
11
- &:hover,
12
- &:focus {
13
- color: #6b90ff;
14
- background-color: transparent;
15
- }
16
- }
17
-
18
- .authing-text-center {
19
- text-align: center;
20
- .authing-code-input {
21
- justify-content: center;
22
- }
23
- .authing-dropdown-menu-container {
24
- text-align: left;
25
- }
26
- }
27
-
28
- .authing-guard-form-actions {
29
- display: flex;
30
- justify-content: space-between;
31
- margin-top: 8px;
32
- align-items: center;
33
- .authing-ant-divider-vertical {
34
- visibility: hidden;
35
- }
36
- }
37
-
38
- .authing-guard-tip {
39
- color: #999;
40
- }
41
-
42
- .authing-guard-tip-btn-comb {
43
- margin-left: auto;
44
- }
45
-
46
- .authing-guard-full-width-space {
47
- width: 100%;
48
- }
49
-
50
- .authing-data-tips {
51
- position: relative;
52
- &::after {
53
- content: attr(data-tips);
54
- position: absolute;
55
- white-space: nowrap;
56
- top: 100%;
57
- left: 50%;
58
- transform: translateX(-50%) translateY(6px);
59
- display: none;
60
- background-color: rgba(0, 0, 0, 0.75);
61
- font-size: 12px;
62
- padding: 12px;
63
- z-index: 500;
64
- border-radius: 4px;
65
- color: #fff;
66
- }
67
- &:hover {
68
- &::after {
69
- display: block;
70
- }
71
- }
72
- }
73
-
74
- .authing-data-tips__top {
75
- position: relative;
76
- &::after {
77
- top: auto;
78
- bottom: 100%;
79
- transform: translateX(-50%) translateY(-6px);
80
- }
81
- }
82
-
83
- .authing-guard-pointer {
84
- cursor: pointer;
85
- }
86
-
87
- @media only screen and (max-width: 719px) {
88
- .authing-guard-form-actions {
89
- .authing-ant-divider-vertical {
90
- visibility: initial;
91
- }
92
- justify-content: flex-end !important;
93
- .authing-guard-text-btn {
94
- color: #999999;
95
- font-size: 12px;
96
- }
97
- .authing-guard-tip-btn-comb {
98
- margin-left: initial !important;
99
- font-size: 12px;
100
- font-weight: 400;
101
- color: #999999;
102
- }
103
- }
104
- }
@@ -1,95 +0,0 @@
1
- import { User } from 'authing-js-sdk'
2
- import { LoginMethods } from './GuardConfig'
3
- import { ResetPwdMethods } from '../../../components/AuthingGuard/types/GuardConfig'
4
-
5
- export interface BaseFormProps extends React.HTMLAttributes<HTMLDivElement> {
6
- onSuccess?: (user: User) => void
7
- onFail?: (error: any) => void
8
- }
9
-
10
- export interface CompleteUserInfoFormProps extends BaseFormProps {}
11
-
12
- export interface PasswordLoginFormProps extends BaseFormProps {
13
- onValidateFail?: (error: any) => void
14
- }
15
-
16
- export interface ADLoginFormProps extends BaseFormProps {
17
- onValidateFail?: (error: any) => void
18
- }
19
-
20
- export interface PhoneCodeLoginFormProps extends BaseFormProps {
21
- onValidateFail?: (error: any) => void
22
- }
23
-
24
- export interface LdapLoginFormProps extends BaseFormProps {
25
- onValidateFail?: (error: any) => void
26
- }
27
-
28
- export interface QrLoginFormProps extends BaseFormProps {
29
- type: LoginMethods.AppQr | LoginMethods.WxMinQr | LoginMethods.WechatMpQrcode
30
- idpId?: string
31
- }
32
-
33
- export interface EmailRegisterFormProps extends BaseFormProps {
34
- onValidateFail?: (error: any) => void
35
- }
36
-
37
- export interface PhoneRegisterFormProps extends BaseFormProps {
38
- onValidateFail?: (error: any) => void
39
- }
40
-
41
- export interface ResetPasswordFormProps {
42
- onSuccess?: () => void
43
- onFail?: (error: any) => void
44
- }
45
-
46
- export interface ResetPasswordStep1Props {
47
- onSuccess: (resetMethod: ResetPwdMethods, val: string) => void
48
- }
49
-
50
- export interface ResetPasswordStep2Props {
51
- phone: string
52
- onSuccess: () => void
53
- onFail?: (error: any) => void
54
- }
55
-
56
- export interface ResetPasswordStep3Props {
57
- email: string
58
- onSuccess: () => void
59
- onFail?: (error: any) => void
60
- }
61
-
62
- export interface SocialAndIdpLoginProps extends BaseFormProps {}
63
-
64
- export interface MfaVerifyForm extends BaseFormProps {
65
- goReset: () => void
66
- }
67
- export interface SmsMFAVerifyFormProps extends BaseFormProps {
68
- phone?: string
69
- mfaToken: string
70
- sendCodeRef: React.RefObject<HTMLButtonElement>
71
- }
72
-
73
- export interface SmsMFAFormProps extends BaseFormProps {}
74
-
75
- export interface MFACheckPhoneFormProps {
76
- mfaToken: string
77
- onSuccess: (phone: string) => void
78
- }
79
-
80
- export interface EmailMFAVerifyFormProps extends BaseFormProps {
81
- email?: string
82
- mfaToken: string
83
- sendCodeRef: React.RefObject<HTMLButtonElement>
84
- }
85
-
86
- export interface EmailMFAFormProps extends BaseFormProps {}
87
-
88
- export interface MFACheckEmailFormProps {
89
- mfaToken: string
90
- onSuccess: (email: string) => void
91
- }
92
-
93
- export interface MfaResetForm extends BaseFormProps {
94
- goVerify: () => void
95
- }