@tuya-sat/sdf-main-sdk 2.0.0-alpha.21 → 2.0.0-alpha.210
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.
- package/README.md +83 -2
- package/dist/364.5460d578.chunk.js +2 -0
- package/dist/364.5460d578.chunk.js.map +1 -0
- package/dist/api/index.d.ts +7 -7
- package/dist/api/urls.d.ts +27 -0
- package/dist/components/403/index.d.ts +4 -1
- package/dist/components/BLayout/components/Logo.d.ts +4 -1
- package/dist/components/BLogin/component/UserName/index.d.ts +6 -3
- package/dist/components/BLogin/component/VerifyCode/VerifyCodeInput.d.ts +6 -0
- package/dist/components/BLogin/component/VerifyCode/index.d.ts +1 -1
- package/dist/components/IconFont/index.d.ts +7 -0
- package/dist/components/ImageUpload/index.d.ts +4 -0
- package/dist/components/ImageUpload/utils.d.ts +1 -0
- package/dist/components/Layout/antd/Header/index.d.ts +11 -1
- package/dist/components/Layout/antd/Menu/BaseMenu.d.ts +1 -1
- package/dist/components/Layout/antd/Menu/HorizontalMenu/index.d.ts +2 -0
- package/dist/components/Layout/antd/Menu/index.d.ts +3 -0
- package/dist/components/Layout/antd/Sider/index.d.ts +2 -0
- package/dist/components/Layout/antd/components/AppDownload/index.d.ts +2 -6
- package/dist/components/Layout/antd/components/DynamicNavs/index.d.ts +1 -0
- package/dist/components/Layout/antd/components/NavItem/index.d.ts +2 -1
- package/dist/components/Layout/antd/components/ProjectSelect/index.d.ts +4 -0
- package/dist/components/Layout/antd/components/ProjectSelect/useProjectInfo.d.ts +12 -0
- package/dist/components/Layout/antd/components/SwitchTheme/index.d.ts +8 -0
- package/dist/components/Layout/antd/components/UserAccount/UserAvatar.d.ts +9 -0
- package/dist/components/Layout/antd/components/UserAccount/index.d.ts +1 -0
- package/dist/components/Layout/antd/index.d.ts +2 -0
- package/dist/components/Layout/interface.d.ts +12 -28
- package/dist/components/MessageNotification/index.d.ts +13 -0
- package/dist/components/MessageNotification/manager.d.ts +13 -0
- package/dist/components/MessageNotification/messageNotificationManager.d.ts +3 -0
- package/dist/components/MicroComponent/Header/index.d.ts +17 -2
- package/dist/components/PEnterprise/EnterpriseList.d.ts +3 -0
- package/dist/components/PEnterprise/index.d.ts +1 -0
- package/dist/components/PSetting/AccountSetting.d.ts +11 -0
- package/dist/components/PSetting/index.d.ts +1 -2
- package/dist/components/Register/components/CountryRegionCascader/RegionCascader.d.ts +19 -0
- package/dist/components/Register/components/CountryRegionCascader/index.d.ts +10 -0
- package/dist/components/Register/components/CountryRegionCascader/services.d.ts +9 -0
- package/dist/components/Register/components/RegisterForm/AccountForm.d.ts +23 -0
- package/dist/components/Register/components/RegisterForm/EnterpriseForm.d.ts +2 -0
- package/dist/components/Register/components/RegisterForm/index.d.ts +7 -0
- package/dist/components/Register/components/RegisterResult/index.d.ts +3 -0
- package/dist/components/Register/index.d.ts +1 -0
- package/dist/constant/index.d.ts +9 -0
- package/dist/en.json +108 -8
- package/dist/hooks/index.d.ts +9 -4
- package/dist/hooks/useMultiLanguages.d.ts +8 -0
- package/dist/index.d.ts +20 -0
- package/dist/lang/utils.d.ts +1 -1
- package/dist/main.bundle.js +1 -1
- package/dist/main.bundle.js.LICENSE.txt +51 -11
- package/dist/main.bundle.js.map +1 -1
- package/dist/main.css +1393 -348
- package/dist/main.css.map +1 -1
- package/dist/manifest.json +7 -2
- package/dist/mqtt/business.d.ts +35 -0
- package/dist/pages/403.d.ts +4 -1
- package/dist/pages/home/enterprise/index.d.ts +5 -0
- package/dist/pages/home/notice/ConfirmCloseModal.d.ts +13 -0
- package/dist/pages/home/notice/MessageDetailModal.d.ts +37 -0
- package/dist/pages/home/notice/hooks.d.ts +14 -3
- package/dist/pages/home/notice/tools/index.d.ts +2 -1
- package/dist/qiankun/globalState.d.ts +6 -5
- package/dist/qiankun/index.d.ts +1 -2
- package/dist/qiankun/utils/index.d.ts +7 -5
- package/dist/static/img/7d9900e808e2197745be.png +0 -0
- package/dist/static/img/a10132bbdef90aa7baaf.png +0 -0
- package/dist/static/img/a20c372b6039996ba351.png +0 -0
- package/dist/static/img/b765d4caa82d7e5eae80.png +0 -0
- package/dist/static/img/f110c37284312f4d2af6.png +0 -0
- package/dist/utils/checkPass.d.ts +4 -0
- package/dist/utils/common.d.ts +10 -0
- package/dist/utils/index.d.ts +48 -7
- package/dist/utils/soundManager.d.ts +12 -0
- package/dist/utils/theme/antd5/InjectCssVariable.d.ts +3 -1
- package/dist/utils/theme/antd5/index.d.ts +362 -107
- package/dist/utils/theme/antd5/token.d.ts +275 -6
- package/dist/utils/theme/base.d.ts +2 -2
- package/dist/utils/theme/changeMenuCssVariable.d.ts +1 -1
- package/dist/utils/theme/index.d.ts +12 -6
- package/dist/utils/theme/store.d.ts +724 -214
- package/dist/zh.json +108 -6
- package/new-translations.json +68 -0
- package/package.json +16 -6
- package/webpack.config.js +1 -0
- package/dist/131.9ff515a6.chunk.js +0 -2
- package/dist/131.9ff515a6.chunk.js.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface RegionsInfo {
|
|
2
|
+
adRegionCode: string;
|
|
3
|
+
administrativeDivisionName: string;
|
|
4
|
+
hasChild: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const getCountries: () => Promise<RegionsInfo[]>;
|
|
7
|
+
export declare const getRegions: (params: {
|
|
8
|
+
ad_region_code: string;
|
|
9
|
+
}) => Promise<RegionsInfo[]>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FormProps, InputProps } from "antd";
|
|
2
|
+
interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
|
|
3
|
+
value?: {
|
|
4
|
+
countryCode?: string | undefined;
|
|
5
|
+
phone?: string | number;
|
|
6
|
+
};
|
|
7
|
+
onChange?(value?: PhoneInputProps['value']): void;
|
|
8
|
+
}
|
|
9
|
+
export declare const transformAccountInfo: (accountInfo: {
|
|
10
|
+
code?: string;
|
|
11
|
+
phone?: {
|
|
12
|
+
countryCode?: string | undefined;
|
|
13
|
+
phone?: string | number;
|
|
14
|
+
};
|
|
15
|
+
email?: string;
|
|
16
|
+
}) => {
|
|
17
|
+
code: string;
|
|
18
|
+
userName: string | number;
|
|
19
|
+
countryCode: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const PhoneInput: (props: PhoneInputProps) => JSX.Element;
|
|
22
|
+
export default function AccountForm(props: FormProps): JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function RegisterPage(props: any): JSX.Element;
|
package/dist/constant/index.d.ts
CHANGED
|
@@ -14,6 +14,15 @@ export declare enum LOGIN_TABS {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const EVENT_NOTICE = "EVENT_NOTICE";
|
|
16
16
|
export declare const EVENT_USERNAME = "EVENT_USERNAME";
|
|
17
|
+
export declare const EVENT_SHOW_MESSAGE_DETAIL = "EVENT_SHOW_MESSAGE_DETAIL";
|
|
18
|
+
export declare enum MESSAGE_TYPE {
|
|
19
|
+
/** 告警消息 */
|
|
20
|
+
ALERT_MESSAGE = 1,
|
|
21
|
+
/** 系统通知 */
|
|
22
|
+
SYSTEM_NOTICE = 3,
|
|
23
|
+
/** 业务消息 */
|
|
24
|
+
BUSINESS_MESSAGE = 4
|
|
25
|
+
}
|
|
17
26
|
export declare const SafePath: string[];
|
|
18
27
|
export declare const WhitePathList: string[];
|
|
19
28
|
export declare const OverWriteRoute: string[];
|
package/dist/en.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"translation": {
|
|
3
|
+
"input.placeholder": "Please Enter",
|
|
4
|
+
"select.placeholder": "Please Select",
|
|
3
5
|
"login.title": "SaaS Framework Demo",
|
|
4
6
|
"login.tabs.tele": "Phone Number",
|
|
5
7
|
"login.tabs.email": "Email",
|
|
@@ -12,6 +14,7 @@
|
|
|
12
14
|
"login.form.password.label": "Password",
|
|
13
15
|
"login.form.password.validate.require": "Please input password",
|
|
14
16
|
"login.form.password.validate.pattern": "Password length is 8-20 and contains at least three character types (numbers, uppercase letters, lowercase letters and English symbols)",
|
|
17
|
+
"login.form.password.validate.pattern2": "Password length is {{min}}-{{max}} and contains at least three character types (numbers, uppercase letters, lowercase letters and English symbols)",
|
|
15
18
|
"login.form.password.placeholder": "Please enter password",
|
|
16
19
|
"login.form.newPassword.label": "New Password",
|
|
17
20
|
"login.form.phone.label": "Phone number",
|
|
@@ -27,7 +30,7 @@
|
|
|
27
30
|
"login.form.tenantId.require": "Please enter tenant ID",
|
|
28
31
|
"login.form.tenantId.pattern": "The tenant ID is 4-16 characters long and must start with a lowercase letter (lowercase letters, numbers, and hyphens are supported)",
|
|
29
32
|
"login.signIn": "Sign In",
|
|
30
|
-
"login.forgot": "Forgot password
|
|
33
|
+
"login.forgot": "Forgot password",
|
|
31
34
|
"login.back2login": "Back to login",
|
|
32
35
|
"login.resetPwd": "Reset Password",
|
|
33
36
|
"login.resetPwdSuccess": "Password changed successfully, please use the new password to log in",
|
|
@@ -50,7 +53,11 @@
|
|
|
50
53
|
"menu.edition.stable": "STABLE",
|
|
51
54
|
"menu.edition.trial": "TRIAL",
|
|
52
55
|
"menu.logout": "Sign out",
|
|
53
|
-
"setting.title": "Settings",
|
|
56
|
+
"setting.sys.title": "System Settings",
|
|
57
|
+
"setting.sys.homeTitle": "Home",
|
|
58
|
+
"setting.account.title": "Account Information",
|
|
59
|
+
"setting.account.enterprise.changeBtn": "Switch Company",
|
|
60
|
+
"other.enterprise.unread.messages.tooltip": "Other enterprises have unread message notifications, you can switch to view",
|
|
54
61
|
"setting.account": "User Account",
|
|
55
62
|
"setting.phone": "Phone Number",
|
|
56
63
|
"setting.email": "Mail",
|
|
@@ -67,9 +74,12 @@
|
|
|
67
74
|
"setting.name": "Name",
|
|
68
75
|
"setting.username": "Username",
|
|
69
76
|
"setting.password": "Password",
|
|
70
|
-
"setting.role": "",
|
|
77
|
+
"setting.role": "Roles",
|
|
71
78
|
"setting.modifyPwd": "Change Password",
|
|
72
79
|
"setting.language": "Language",
|
|
80
|
+
"setting.form.avatar.label": "Avatar",
|
|
81
|
+
"setting.form.avatar.label.desc": "Supports png, jpg, and jpeg images within 2Mb",
|
|
82
|
+
"setting.form.avatar.modalTitle": "Upload an avatar",
|
|
73
83
|
"setting.form.oldPassword.label": "Old password",
|
|
74
84
|
"setting.form.oldPassword.validate.require": "Please enter the old password",
|
|
75
85
|
"setting.form.oldPassword.validate.pattern": "Password length is 8-20 and contains at least three character types (numbers, uppercase letters, lowercase letters and English symbols)",
|
|
@@ -86,6 +96,10 @@
|
|
|
86
96
|
"notice.typeSelect.all": "All",
|
|
87
97
|
"notice.typeSelect.message": "Message Notification",
|
|
88
98
|
"notice.typeSelect.alert": "Alarm Message",
|
|
99
|
+
"notice.messageType.alert": "Device Message",
|
|
100
|
+
"notice.messageType.system": "System Notice",
|
|
101
|
+
"notice.messageType.business": "Business Message",
|
|
102
|
+
"notice.messageType.unknown": "Unknown Message",
|
|
89
103
|
"notice.originSelect.placeholder": "Source",
|
|
90
104
|
"notice.originSelect.all": "All",
|
|
91
105
|
"notice.originSelect.center": "Message Center",
|
|
@@ -97,6 +111,7 @@
|
|
|
97
111
|
"notice.StatusSelect.all": "All",
|
|
98
112
|
"notice.StatusSelect.readed": "Read",
|
|
99
113
|
"notice.StatusSelect.unread": "Unread",
|
|
114
|
+
"notice.buttons.read": "Mark as unread",
|
|
100
115
|
"notice.badge.title": "Message Notifications",
|
|
101
116
|
"notice.badge.type": "Notification Types",
|
|
102
117
|
"notice.badge.message": "View all messages",
|
|
@@ -120,17 +135,40 @@
|
|
|
120
135
|
"notice.tools.pread": "Mark as read",
|
|
121
136
|
"notice.tools.punread": "Mark as unread",
|
|
122
137
|
"notice.tools.pdelete": "Delete",
|
|
138
|
+
"notice.tools.pread.success": "Marked as read successfully",
|
|
139
|
+
"notice.tools.pread.error": "Failed to mark as read",
|
|
140
|
+
"notice.tools.punread.success": "Marked as unread successfully",
|
|
141
|
+
"notice.tools.punread.error": "Failed to mark as unread",
|
|
142
|
+
"notice.tools.pdelete.success": "Deleted successfully",
|
|
143
|
+
"notice.tools.pdelete.error": "Failed to delete",
|
|
144
|
+
"notice.settings.title": "Message Notifications",
|
|
145
|
+
"notice.settings.soundToggle.enabled": "New message sound notification enabled",
|
|
146
|
+
"notice.settings.soundToggle.disabled": "New message sound notification disabled",
|
|
147
|
+
"notice.settings.confirm.enable.title": "Enable Confirmation",
|
|
148
|
+
"notice.settings.confirm.disable.title": "Disable Confirmation",
|
|
149
|
+
"notice.settings.confirm.enable.content": "Enable new message sound notification?",
|
|
150
|
+
"notice.settings.confirm.disable.content": "Disable new message sound notification?",
|
|
151
|
+
"notice.settings.confirm.ok": "Confirm",
|
|
152
|
+
"notice.settings.confirm.cancel": "Cancel",
|
|
153
|
+
"notice.settings.message.success": "Operation successful",
|
|
154
|
+
"notice.settings.message.error": "Operation failed",
|
|
123
155
|
"notice.table.column.content": "Message Content",
|
|
156
|
+
"notice.table.column.title": "Message Title",
|
|
124
157
|
"notice.table.column.status": "Message Status",
|
|
125
158
|
"notice.table.column.type": "Message Type",
|
|
126
159
|
"notice.table.column.source": "Message Source",
|
|
127
160
|
"notice.table.column.time": "Time",
|
|
161
|
+
"notice.table.column.project": "Project",
|
|
162
|
+
"notice.table.column.operation": "Operation",
|
|
128
163
|
"notice.table.render.status.read": "Read",
|
|
129
164
|
"notice.table.render.status.unread": "Unread",
|
|
130
165
|
"notice.table.hover.read": "Mark as read",
|
|
131
166
|
"notice.table.hover.unread": "Mark as unread",
|
|
132
167
|
"notice.table.hover.del": "Delete",
|
|
133
168
|
"notice.table.delTip": "Are you sure to delete?",
|
|
169
|
+
"notice.table.operation.primary": "Primary",
|
|
170
|
+
"notice.table.operation.secondary": "Secondary",
|
|
171
|
+
"notice.table.operation.detail": "Detail",
|
|
134
172
|
"httpCodeText.400": "Request error",
|
|
135
173
|
"httpCodeText.401": "Unauthorized, please log in again",
|
|
136
174
|
"httpCodeText.403": "access denied",
|
|
@@ -146,8 +184,11 @@
|
|
|
146
184
|
"httpCodeText.timeout": "Request timed out",
|
|
147
185
|
"httpCodeText.abort": "Connection failed",
|
|
148
186
|
"httpCodeText.callBack": "Network exception",
|
|
149
|
-
"
|
|
150
|
-
"
|
|
187
|
+
"navItem.theme.light": "Light Mode",
|
|
188
|
+
"navItem.theme.dark": "Dark Mode",
|
|
189
|
+
"navItem.app.download": "Download APP",
|
|
190
|
+
"appHint1": "Scan the QR code to download the Tuya Spatial App",
|
|
191
|
+
"appHint2": "and explorer more features",
|
|
151
192
|
"backLoginPage": "Back to Page Login",
|
|
152
193
|
"backHome": "Back Home",
|
|
153
194
|
"pageError": "Sorry, you are not authorized to access this page.",
|
|
@@ -159,13 +200,14 @@
|
|
|
159
200
|
"expirationPage": "The SaaS experience service has expired, please contact the developer to pay",
|
|
160
201
|
"trial": "Trial Version",
|
|
161
202
|
"admin": "Administrator",
|
|
203
|
+
"admin.enterprise": "Enterprise Administrator",
|
|
162
204
|
"forgot.title": "Retrive password",
|
|
163
205
|
"forgot.resetPwd": "Reset Password",
|
|
164
206
|
"forgot.tenantRole": "Tenant user",
|
|
165
207
|
"forgot.managerRole": "Tanant admin",
|
|
166
208
|
"forgot.noAccount": "No account yet?",
|
|
167
209
|
"forgot.toRegister": "Tenant Register",
|
|
168
|
-
"forgot.toRegisterNormal": "
|
|
210
|
+
"forgot.toRegisterNormal": "Register",
|
|
169
211
|
"register.form.enterprise.label": "Name of organization",
|
|
170
212
|
"register.form.enterprise.validate.require": "Please enter name of organization",
|
|
171
213
|
"register.form.enterprise.placeholder": "Please enter name of organization",
|
|
@@ -175,6 +217,7 @@
|
|
|
175
217
|
"relogin.tip": "The account has been logged in on another device (browser) or has expired",
|
|
176
218
|
"relogin.btn": "Re-Login",
|
|
177
219
|
"relogin.pwd": "If it is not your operation, it is recommended to go to the account settings to change the password",
|
|
220
|
+
"etip": "Oops, there seems to be a problem. Please try again later.",
|
|
178
221
|
"microApp.expired.result.title1": "You have not purchased this micro-app.",
|
|
179
222
|
"microApp.expired.result.title2": "Micro-app has expired.",
|
|
180
223
|
"microApp.expired.result.title3": "SaaS has expired.",
|
|
@@ -189,6 +232,63 @@
|
|
|
189
232
|
"microApp.purchaseModal.product2.title": " Option Two",
|
|
190
233
|
"microApp.purchaseModal.title": "Solution selection",
|
|
191
234
|
"global.saas.expired.tips1": "Your SaaS service has expired. To continue using it, please visit the Tuya Developer Platform to renew your subscription.",
|
|
192
|
-
"global.saas.expired.tips2": "Your SaaS service will expire in {{day}} days. To continue using it, please visit the Tuya Developer Platform to renew your subscription."
|
|
235
|
+
"global.saas.expired.tips2": "Your SaaS service will expire in {{day}} days. To continue using it, please visit the Tuya Developer Platform to renew your subscription.",
|
|
236
|
+
"dynamicNav.more.unfold": "More",
|
|
237
|
+
"dynamicNav.more.fold": "Retract",
|
|
238
|
+
"enterprise.modal.title": "Company List",
|
|
239
|
+
"enterprise.meta.status.current": "Current",
|
|
240
|
+
"enterprise.meta.status.expired": "Expired",
|
|
241
|
+
"enterprise.meta.status.expired.tips": "The company or account is temporarily unavailable. Please contact the administrator for processing.",
|
|
242
|
+
"enterprise.meta.status.account.disabled": "Account Disabled",
|
|
243
|
+
"enterprise.meta.status.account.expired": "Account Expired",
|
|
244
|
+
"enterprise.meta.status.enterprise.disabled": "Company Disabled",
|
|
245
|
+
"enterprise.meta.status.enterprise.expired": "Company Expired",
|
|
246
|
+
"enterprise.meta.status.permanent": "Permanent",
|
|
247
|
+
"enterprise.meta.type.brander": "Industry Merchants",
|
|
248
|
+
"enterprise.meta.type.channel": "Channel Partners",
|
|
249
|
+
"enterprise.meta.type.operator": "Service Provider",
|
|
250
|
+
"enterprise.meta.type.other": "Other",
|
|
251
|
+
"enterprise.field.expireDate": "Expiration Date: ",
|
|
252
|
+
"enterprise.field.type": "Type: ",
|
|
253
|
+
"enterprise.field.role": "Roles: ",
|
|
254
|
+
"enterprise.field.message": "Message Notification",
|
|
255
|
+
"enterprise.field.loginDefault": "Default Login",
|
|
256
|
+
"enterprise.page.title": "Select a company to log in",
|
|
257
|
+
"yrule.closeTip": "Please complete verification first.",
|
|
258
|
+
"project.emptyTip": "You do not have any project permissions, please contact the administrator to authorize the project.",
|
|
259
|
+
"cancel": "Cancel",
|
|
260
|
+
"confirm": "Confirm",
|
|
261
|
+
"imageUpload.cropErrorSize": "The image upload size exceeds the limit",
|
|
262
|
+
"imageUpload.cropErrorType": "Image upload format error",
|
|
263
|
+
"imageUpload.cropImage": "Crop the image",
|
|
264
|
+
"imageUpload.tip": "Image upload requirements: within 10MB, support JPG, PNG, GIF format",
|
|
265
|
+
"imageUpload.uploadImage": "Upload image",
|
|
266
|
+
"imageUpload.uploadImageFail": "Image upload failed",
|
|
267
|
+
"imageUpload.uploadImageSuccess": "Image uploaded successfully",
|
|
268
|
+
"enums.accountType.phone": "Telephone",
|
|
269
|
+
"enums.accountType.email": "Email",
|
|
270
|
+
"registerPage.title": "Enterprise account registration",
|
|
271
|
+
"registerPage.registerBtn": "Register",
|
|
272
|
+
"registerPage.form.enterpriseName": "Company Name",
|
|
273
|
+
"registerPage.form.enterpriseAddressRegion": "Country/Region",
|
|
274
|
+
"registerPage.form.enterpriseAddressDetail": "Company Address",
|
|
275
|
+
"registerPage.form.enterpriseContactPerson": "Company Contact Person",
|
|
276
|
+
"registerPage.form.enterpriseContactInformation": "Company Contact Information",
|
|
277
|
+
"registerPage.form.account.title": "Administrator Settings",
|
|
278
|
+
"registerPage.form.account.desc": "Company administrators have all functions and data permissions in the system, and can add new users to the system. Please set settings carefully.",
|
|
279
|
+
"registerPage.form.accountType": "Account Type",
|
|
280
|
+
"registerPage.form.account.phone": "Phone Number",
|
|
281
|
+
"registerPage.form.account.phone.tips": "Please enter correct phone number",
|
|
282
|
+
"registerPage.form.account.email": "Email Address",
|
|
283
|
+
"registerPage.form.account.email.tips": "Please enter a correct email address",
|
|
284
|
+
"registerPage.form.code": "Verification code",
|
|
285
|
+
"registerPage.result.success.title": "Registration successful!",
|
|
286
|
+
"registerPage.result.success.desc1": "The account password has been sent to you via text message or email. Please return to the login page to log in.",
|
|
287
|
+
"registerPage.result.success.desc2": "Please wait for the system administrator's review. After the review is passed, the account password will be sent to you via text message or email.",
|
|
288
|
+
"registerPage.result.success.loginBtn": "Login",
|
|
289
|
+
"registerPage.result.audit.title": "Your registration application is under review!",
|
|
290
|
+
"registerPage.result.field.createTime": "Registration time",
|
|
291
|
+
"registerPage.result.field.account": "Administrator Account",
|
|
292
|
+
"notice.empty.title": "No unread messages"
|
|
193
293
|
}
|
|
194
|
-
}
|
|
294
|
+
}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -2,11 +2,14 @@ export declare let micApps: any;
|
|
|
2
2
|
export declare let permissions: any;
|
|
3
3
|
export declare const universalIds: any[];
|
|
4
4
|
export declare let apis: {};
|
|
5
|
+
type TEntryInfo = Partial<Window['_SDF']['saasInfo']['entry_info']>;
|
|
5
6
|
export declare const useSaasInfo: () => {
|
|
6
|
-
entryInfo:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
entryInfo: TEntryInfo;
|
|
8
|
+
sysEntryInfo: TEntryInfo;
|
|
9
|
+
allEntryInfo: TEntryInfo;
|
|
10
|
+
apps: MicroApp[];
|
|
11
|
+
appIds: string[];
|
|
12
|
+
saasIdInfoList: Window['_SDF']['saasInfo']['saas_id_info_list'];
|
|
10
13
|
};
|
|
11
14
|
export declare const usePrevious: <T>(value: T) => T;
|
|
12
15
|
export declare const useQuery: () => URLSearchParams;
|
|
@@ -30,3 +33,5 @@ export declare const useMicroAppExpiration: (apps: any) => {
|
|
|
30
33
|
isAppExpiration: boolean;
|
|
31
34
|
isSaasExpiration: boolean;
|
|
32
35
|
};
|
|
36
|
+
export declare const useCurrentApp: () => MicroApp;
|
|
37
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,17 @@ import './index.css';
|
|
|
2
2
|
import './public-path.js';
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
import * as _langUtils from './lang/utils';
|
|
5
|
+
import { LayoutProps } from "./components/Layout/interface";
|
|
6
|
+
import type { FrameworkConfiguration } from "qiankun/src/interfaces";
|
|
7
|
+
export { initGlobalState, globalStateActions } from './qiankun/globalState';
|
|
8
|
+
export type { LayoutProps } from "./components/Layout/interface";
|
|
9
|
+
export { getProjectId } from "./components/Layout/antd/components/ProjectSelect/useProjectInfo";
|
|
5
10
|
export { api, URLS } from './api';
|
|
6
11
|
export { useYRule } from './utils/yrule';
|
|
12
|
+
export { initialTheme, useTheme } from "./utils/theme";
|
|
7
13
|
export { default as i18n } from './lang';
|
|
8
14
|
export declare const langUtils: typeof _langUtils;
|
|
15
|
+
export { default as useMultiLanguages } from './hooks/useMultiLanguages';
|
|
9
16
|
export interface IHooks {
|
|
10
17
|
/**
|
|
11
18
|
* 功能:SaaS 页面渲染前钩子,主应用生命周期中最早的钩子
|
|
@@ -45,6 +52,8 @@ export interface IHooks {
|
|
|
45
52
|
}>;
|
|
46
53
|
unLoginSaaSHook?: (saasBasicInfo: any) => Promise<any>;
|
|
47
54
|
loginedSaaSHook?: (saasInfo: any) => Promise<any>;
|
|
55
|
+
qiankunHook?(opts: Partial<FrameworkConfiguration>): Record<string, any>;
|
|
56
|
+
qiankunPropsHook?(): Record<string, any>;
|
|
48
57
|
}
|
|
49
58
|
export type { LoginProps } from './pages/login';
|
|
50
59
|
export { default as LoginPage } from './pages/login';
|
|
@@ -55,8 +64,10 @@ export { default as ForgetPage } from './pages/forgot';
|
|
|
55
64
|
export { default as ForgetForm } from './components/BForgot';
|
|
56
65
|
export { default as RegisterPage } from './pages/register';
|
|
57
66
|
export { default as SettingPage } from './pages/home/setting';
|
|
67
|
+
export { mainHistory } from './pages/home';
|
|
58
68
|
export { default as MBdb } from './components/MicroComponent/Header';
|
|
59
69
|
export type { IBdbInfo } from './components/MicroComponent/Header';
|
|
70
|
+
export type { IMdb } from './components/MicroComponent/Header';
|
|
60
71
|
export type { IMenus } from './components/BLayout/components/Layout';
|
|
61
72
|
export { MMenu } from './components/BLayout/components/Layout';
|
|
62
73
|
export type { Dmenus, NavProps } from './components/BLayout/components/Header';
|
|
@@ -67,6 +78,11 @@ interface IPages {
|
|
|
67
78
|
isHideMultiLang?: boolean;
|
|
68
79
|
isHidePhoneRegionNum?: boolean;
|
|
69
80
|
showClauseInModal?: boolean;
|
|
81
|
+
disableReLogin?: boolean;
|
|
82
|
+
passwordRules?: {
|
|
83
|
+
min?: number;
|
|
84
|
+
max?: number;
|
|
85
|
+
};
|
|
70
86
|
};
|
|
71
87
|
Forget: FC;
|
|
72
88
|
Register: FC & {
|
|
@@ -77,11 +93,15 @@ interface IPages {
|
|
|
77
93
|
};
|
|
78
94
|
[key: string]: FC;
|
|
79
95
|
}
|
|
96
|
+
interface Layout extends FC<LayoutProps> {
|
|
97
|
+
Login?: FC<Partial<LayoutProps>>;
|
|
98
|
+
}
|
|
80
99
|
export interface IUI {
|
|
81
100
|
pages?: IPages;
|
|
82
101
|
nav?: FC;
|
|
83
102
|
menu?: FC;
|
|
84
103
|
mdb?: FC;
|
|
104
|
+
layout: Layout;
|
|
85
105
|
}
|
|
86
106
|
export interface IMainConfig {
|
|
87
107
|
ui?: IUI;
|
package/dist/lang/utils.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const oemSaasAy: () => {
|
|
|
13
13
|
service_terms: any;
|
|
14
14
|
hostFiling: any;
|
|
15
15
|
layoutMode: any;
|
|
16
|
-
loginLayoutMode:
|
|
16
|
+
loginLayoutMode: string;
|
|
17
17
|
};
|
|
18
18
|
export declare const dynamicHeaderMenu: () => any;
|
|
19
19
|
export declare const getMenus: (entry_info: any) => any;
|