@tuya-sat/sdf-main-sdk 2.0.0-alpha.99 → 2.0.1-outdoorSpaceUi
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/dark-variable.less +1 -3
- package/dist/{131.95cff292.chunk.js → 131.40499d1c.chunk.js} +1 -1
- package/dist/{131.95cff292.chunk.js.map → 131.40499d1c.chunk.js.map} +1 -1
- package/dist/api/index.d.ts +7 -7
- package/dist/api/urls.d.ts +17 -0
- package/dist/components/403/index.d.ts +4 -1
- package/dist/components/BLayout/components/Logo.d.ts +4 -1
- package/dist/components/BLayout/components/MenuIcon.d.ts +2 -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/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 +1 -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/useOrgInfo.d.ts +44 -0
- package/dist/components/Layout/antd/components/UserAccount/UserAvatar.d.ts +8 -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 +5 -1
- package/dist/components/MicroComponent/Header/index.d.ts +21 -2
- package/dist/components/PEnterprise/EnterpriseList.d.ts +3 -1
- package/dist/components/PSetting/AccountSetting.d.ts +10 -1
- 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/en.json +60 -6
- package/dist/hooks/index.d.ts +9 -4
- package/dist/index.d.ts +6 -1
- package/dist/lang/utils.d.ts +1 -1
- package/dist/main.bundle.js +1 -1
- package/dist/main.bundle.js.LICENSE.txt +43 -0
- package/dist/main.bundle.js.map +1 -1
- package/dist/main.css +739 -423
- package/dist/main.css.map +1 -1
- package/dist/manifest.json +7 -2
- package/dist/pages/403.d.ts +4 -1
- package/dist/pages/home/notice/hooks.d.ts +2 -2
- package/dist/qiankun/utils/index.d.ts +7 -5
- package/dist/static/img/5ed883a35968f1f1cd89.png +0 -0
- 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/utils/common.d.ts +6 -0
- package/dist/utils/index.d.ts +87 -5
- package/dist/utils/theme/antd5/index.d.ts +57 -141
- package/dist/utils/theme/antd5/token.d.ts +65 -138
- package/dist/utils/theme/store.d.ts +114 -282
- package/dist/zh.json +56 -4
- package/package.json +5 -1
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",
|
|
@@ -51,7 +53,10 @@
|
|
|
51
53
|
"menu.edition.stable": "STABLE",
|
|
52
54
|
"menu.edition.trial": "TRIAL",
|
|
53
55
|
"menu.logout": "Sign out",
|
|
54
|
-
"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",
|
|
55
60
|
"setting.account": "User Account",
|
|
56
61
|
"setting.phone": "Phone Number",
|
|
57
62
|
"setting.email": "Mail",
|
|
@@ -68,9 +73,12 @@
|
|
|
68
73
|
"setting.name": "Name",
|
|
69
74
|
"setting.username": "Username",
|
|
70
75
|
"setting.password": "Password",
|
|
71
|
-
"setting.role": "",
|
|
76
|
+
"setting.role": "Roles",
|
|
72
77
|
"setting.modifyPwd": "Change Password",
|
|
73
78
|
"setting.language": "Language",
|
|
79
|
+
"setting.form.avatar.label": "Avatar",
|
|
80
|
+
"setting.form.avatar.label.desc": "Supports png, jpg, and jpeg images within 2Mb",
|
|
81
|
+
"setting.form.avatar.modalTitle": "Upload an avatar",
|
|
74
82
|
"setting.form.oldPassword.label": "Old password",
|
|
75
83
|
"setting.form.oldPassword.validate.require": "Please enter the old password",
|
|
76
84
|
"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)",
|
|
@@ -98,6 +106,7 @@
|
|
|
98
106
|
"notice.StatusSelect.all": "All",
|
|
99
107
|
"notice.StatusSelect.readed": "Read",
|
|
100
108
|
"notice.StatusSelect.unread": "Unread",
|
|
109
|
+
"notice.buttons.read": "Mark as unread",
|
|
101
110
|
"notice.badge.title": "Message Notifications",
|
|
102
111
|
"notice.badge.type": "Notification Types",
|
|
103
112
|
"notice.badge.message": "View all messages",
|
|
@@ -150,8 +159,8 @@
|
|
|
150
159
|
"navItem.theme.light": "Light Mode",
|
|
151
160
|
"navItem.theme.dark": "Dark Mode",
|
|
152
161
|
"navItem.app.download": "Download APP",
|
|
153
|
-
"appHint1": "Scan the QR code
|
|
154
|
-
"appHint2": "explorer more features",
|
|
162
|
+
"appHint1": "Scan the QR code to download the Tuya Spatial App",
|
|
163
|
+
"appHint2": "and explorer more features",
|
|
155
164
|
"backLoginPage": "Back to Page Login",
|
|
156
165
|
"backHome": "Back Home",
|
|
157
166
|
"pageError": "Sorry, you are not authorized to access this page.",
|
|
@@ -170,7 +179,7 @@
|
|
|
170
179
|
"forgot.managerRole": "Tanant admin",
|
|
171
180
|
"forgot.noAccount": "No account yet?",
|
|
172
181
|
"forgot.toRegister": "Tenant Register",
|
|
173
|
-
"forgot.toRegisterNormal": "
|
|
182
|
+
"forgot.toRegisterNormal": "Register",
|
|
174
183
|
"register.form.enterprise.label": "Name of organization",
|
|
175
184
|
"register.form.enterprise.validate.require": "Please enter name of organization",
|
|
176
185
|
"register.form.enterprise.placeholder": "Please enter name of organization",
|
|
@@ -180,6 +189,7 @@
|
|
|
180
189
|
"relogin.tip": "The account has been logged in on another device (browser) or has expired",
|
|
181
190
|
"relogin.btn": "Re-Login",
|
|
182
191
|
"relogin.pwd": "If it is not your operation, it is recommended to go to the account settings to change the password",
|
|
192
|
+
"etip": "Oops, there seems to be a problem. Please try again later.",
|
|
183
193
|
"microApp.expired.result.title1": "You have not purchased this micro-app.",
|
|
184
194
|
"microApp.expired.result.title2": "Micro-app has expired.",
|
|
185
195
|
"microApp.expired.result.title3": "SaaS has expired.",
|
|
@@ -195,8 +205,16 @@
|
|
|
195
205
|
"microApp.purchaseModal.title": "Solution selection",
|
|
196
206
|
"global.saas.expired.tips1": "Your SaaS service has expired. To continue using it, please visit the Tuya Developer Platform to renew your subscription.",
|
|
197
207
|
"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.",
|
|
208
|
+
"dynamicNav.more.unfold": "More",
|
|
209
|
+
"dynamicNav.more.fold": "Retract",
|
|
210
|
+
"enterprise.modal.title": "Company List",
|
|
198
211
|
"enterprise.meta.status.current": "Current",
|
|
199
212
|
"enterprise.meta.status.expired": "Expired",
|
|
213
|
+
"enterprise.meta.status.expired.tips": "The company or account is temporarily unavailable. Please contact the administrator for processing.",
|
|
214
|
+
"enterprise.meta.status.account.disabled": "Account Disabled",
|
|
215
|
+
"enterprise.meta.status.account.expired": "Account Expired",
|
|
216
|
+
"enterprise.meta.status.enterprise.disabled": "Company Disabled",
|
|
217
|
+
"enterprise.meta.status.enterprise.expired": "Company Expired",
|
|
200
218
|
"enterprise.meta.status.permanent": "Permanent",
|
|
201
219
|
"enterprise.meta.type.brander": "Industry Merchants",
|
|
202
220
|
"enterprise.meta.type.channel": "Channel Partners",
|
|
@@ -205,6 +223,42 @@
|
|
|
205
223
|
"enterprise.field.expireDate": "Expiration Date: ",
|
|
206
224
|
"enterprise.field.type": "Type: ",
|
|
207
225
|
"enterprise.field.role": "Roles: ",
|
|
208
|
-
"enterprise.field.loginDefault": "Default Login"
|
|
226
|
+
"enterprise.field.loginDefault": "Default Login",
|
|
227
|
+
"enterprise.page.title": "Select a company to log in",
|
|
228
|
+
"yrule.closeTip": "Please complete verification first.",
|
|
229
|
+
"project.emptyTip": "You do not have any project permissions, please contact the administrator to authorize the project.",
|
|
230
|
+
"cancel": "Cancel",
|
|
231
|
+
"confirm": "Confirm",
|
|
232
|
+
"imageUpload.cropErrorSize": "The image upload size exceeds the limit",
|
|
233
|
+
"imageUpload.cropErrorType": "Image upload format error",
|
|
234
|
+
"imageUpload.cropImage": "Crop the image",
|
|
235
|
+
"imageUpload.tip": "Image upload requirements: within 10MB, support JPG, PNG, GIF format",
|
|
236
|
+
"imageUpload.uploadImage": "Upload image",
|
|
237
|
+
"imageUpload.uploadImageFail": "Image upload failed",
|
|
238
|
+
"imageUpload.uploadImageSuccess": "Image uploaded successfully",
|
|
239
|
+
"enums.accountType.phone": "Telephone",
|
|
240
|
+
"enums.accountType.email": "Email",
|
|
241
|
+
"registerPage.title": "Enterprise account registration",
|
|
242
|
+
"registerPage.registerBtn": "Register",
|
|
243
|
+
"registerPage.form.enterpriseName": "Company Name",
|
|
244
|
+
"registerPage.form.enterpriseAddressRegion": "Country/Region",
|
|
245
|
+
"registerPage.form.enterpriseAddressDetail": "Company Address",
|
|
246
|
+
"registerPage.form.enterpriseContactPerson": "Company Contact Person",
|
|
247
|
+
"registerPage.form.enterpriseContactInformation": "Company Contact Information",
|
|
248
|
+
"registerPage.form.account.title": "Administrator Settings",
|
|
249
|
+
"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.",
|
|
250
|
+
"registerPage.form.accountType": "Account Type",
|
|
251
|
+
"registerPage.form.account.phone": "Phone Number",
|
|
252
|
+
"registerPage.form.account.phone.tips": "Please enter correct phone number",
|
|
253
|
+
"registerPage.form.account.email": "Email Address",
|
|
254
|
+
"registerPage.form.account.email.tips": "Please enter a correct email address",
|
|
255
|
+
"registerPage.form.code": "Verification code",
|
|
256
|
+
"registerPage.result.success.title": "Registration successful!",
|
|
257
|
+
"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.",
|
|
258
|
+
"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.",
|
|
259
|
+
"registerPage.result.success.loginBtn": "Login",
|
|
260
|
+
"registerPage.result.audit.title": "Your registration application is under review!",
|
|
261
|
+
"registerPage.result.field.createTime": "Registration time",
|
|
262
|
+
"registerPage.result.field.account": "Administrator Account"
|
|
209
263
|
}
|
|
210
264
|
}
|
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
|
@@ -3,8 +3,9 @@ import './public-path.js';
|
|
|
3
3
|
import { FC } from 'react';
|
|
4
4
|
import * as _langUtils from './lang/utils';
|
|
5
5
|
import { LayoutProps } from "./components/Layout/interface";
|
|
6
|
+
import { EmitterEvent } from './utils';
|
|
6
7
|
export { initGlobalState, globalStateActions } from './qiankun/globalState';
|
|
7
|
-
export {
|
|
8
|
+
export { getOrgCode } from "./components/Layout/antd/components/ProjectSelect/useOrgInfo";
|
|
8
9
|
export { api, URLS } from './api';
|
|
9
10
|
export { useYRule } from './utils/yrule';
|
|
10
11
|
export { initialTheme, useTheme } from "./utils/theme";
|
|
@@ -50,7 +51,9 @@ export interface IHooks {
|
|
|
50
51
|
}>;
|
|
51
52
|
unLoginSaaSHook?: (saasBasicInfo: any) => Promise<any>;
|
|
52
53
|
loginedSaaSHook?: (saasInfo: any) => Promise<any>;
|
|
54
|
+
qiankunPropsHook?(): Record<string, any>;
|
|
53
55
|
}
|
|
56
|
+
export { EmitterEvent };
|
|
54
57
|
export type { LoginProps } from './pages/login';
|
|
55
58
|
export { default as LoginPage } from './pages/login';
|
|
56
59
|
export { default as LoginForm } from './components/BLogin';
|
|
@@ -60,8 +63,10 @@ export { default as ForgetPage } from './pages/forgot';
|
|
|
60
63
|
export { default as ForgetForm } from './components/BForgot';
|
|
61
64
|
export { default as RegisterPage } from './pages/register';
|
|
62
65
|
export { default as SettingPage } from './pages/home/setting';
|
|
66
|
+
export { mainHistory } from './pages/home';
|
|
63
67
|
export { default as MBdb } from './components/MicroComponent/Header';
|
|
64
68
|
export type { IBdbInfo } from './components/MicroComponent/Header';
|
|
69
|
+
export type { IMdb } from './components/MicroComponent/Header';
|
|
65
70
|
export type { IMenus } from './components/BLayout/components/Layout';
|
|
66
71
|
export { MMenu } from './components/BLayout/components/Layout';
|
|
67
72
|
export type { Dmenus, NavProps } from './components/BLayout/components/Header';
|
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;
|