@tuya-sat/sdf-main-sdk 2.0.11-outdoorSpaceUi → 5.0.1
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 +37 -0
- package/dark-variable.less +3 -1
- package/dist/364.e25154ae.chunk.js +2 -0
- package/dist/364.e25154ae.chunk.js.map +1 -0
- package/dist/api/index.d.ts +10 -7
- package/dist/api/urls.d.ts +19 -1
- package/dist/components/BLayout/components/Layout/index.d.ts +4 -4
- package/dist/components/BLayout/components/MenuIcon.d.ts +1 -2
- package/dist/components/BackNotice/index.d.ts +2 -0
- package/dist/components/Download/index.d.ts +3 -0
- package/dist/components/Layout/antd/Header/index.d.ts +1 -0
- package/dist/components/Layout/antd/Menu/BaseMenu.d.ts +1 -1
- package/dist/components/Layout/antd/Sider/Nav/index.d.ts +0 -4
- package/dist/components/Layout/antd/Sider/index.d.ts +2 -4
- package/dist/components/Layout/antd/components/HomeSelect/homeSvg.d.ts +3 -0
- package/dist/components/Layout/antd/components/HomeSelect/index.d.ts +4 -0
- package/dist/components/Layout/antd/components/HomeSelect/projectSvg.d.ts +3 -0
- package/dist/components/Layout/antd/components/HomeSelect/useHomeInfo.d.ts +12 -0
- package/dist/components/Layout/antd/components/Notification/index.d.ts +0 -2
- package/dist/components/Layout/antd/components/ProjectSelect/useProjectInfo.d.ts +12 -0
- package/dist/components/Layout/antd/components/UserAccount/SmartHomeUserAccount.d.ts +16 -0
- package/dist/components/Layout/antd/components/UserAccount/UserAccount.d.ts +16 -0
- package/dist/components/Layout/antd/components/UserAccount/UserAvatar.d.ts +1 -0
- package/dist/components/Layout/antd/components/UserAccount/UserHome.d.ts +3 -0
- package/dist/components/Layout/antd/components/UserAccount/index.d.ts +3 -19
- package/dist/components/Layout/antd/index.d.ts +0 -4
- package/dist/components/Layout/interface.d.ts +5 -2
- 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 +0 -4
- package/dist/components/SmartHomeLogin/component/qrLogin.d.ts +17 -0
- package/dist/components/SmartHomeLogin/component/svg.d.ts +1 -0
- package/dist/components/SmartHomeLogin/index.d.ts +7 -0
- package/dist/components/SmartHomeSetting/index.d.ts +10 -0
- package/dist/constant/avatars.d.ts +16 -0
- package/dist/constant/index.d.ts +10 -0
- package/dist/en.json +64 -5
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/useMultiLanguages.d.ts +1 -1
- package/dist/index.d.ts +19 -7
- package/dist/main.bundle.js +1 -1
- package/dist/main.bundle.js.LICENSE.txt +11 -3
- package/dist/main.bundle.js.map +1 -1
- package/dist/main.css +1404 -170
- package/dist/main.css.map +1 -1
- package/dist/manifest.json +6 -3
- package/dist/mqtt/business.d.ts +35 -0
- package/dist/mqtt/index.d.ts +1 -1
- package/dist/pages/download.d.ts +2 -0
- package/dist/pages/home/notice/ConfirmCloseModal.d.ts +15 -0
- package/dist/pages/home/notice/MessageDetailModal.d.ts +37 -0
- package/dist/pages/home/notice/hooks.d.ts +14 -2
- package/dist/pages/home/notice/table/read.d.ts +6 -1
- package/dist/pages/home/notice/tools/index.d.ts +4 -1
- package/dist/pages/login.d.ts +1 -0
- package/dist/sky/index.d.ts +1 -0
- package/dist/static/img/18389c86094b537a3e60.png +0 -0
- package/dist/static/img/328d8b5c342b13933c5c.png +0 -0
- package/dist/static/img/76c556a61bed8625e262.png +0 -0
- package/dist/static/img/f110c37284312f4d2af6.png +0 -0
- package/dist/utils/common.d.ts +8 -0
- package/dist/utils/console.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -48
- package/dist/utils/maskSensitiveInfo.d.ts +5 -0
- package/dist/utils/soundManager.d.ts +12 -0
- package/dist/utils/switchHome.d.ts +8 -0
- package/dist/utils/theme/antd5/index.d.ts +872 -1
- package/dist/utils/theme/antd5/token.d.ts +875 -21
- package/dist/utils/theme/store.d.ts +1744 -2
- package/dist/zh.json +67 -6
- package/package.json +8 -5
- package/scripts/dev-yalc.js +114 -0
- package/dist/131.252aa017.chunk.js +0 -2
- package/dist/131.252aa017.chunk.js.map +0 -1
- package/dist/components/Layout/antd/components/ProjectSelect/useOrgInfo.d.ts +0 -50
- package/dist/static/img/5ed883a35968f1f1cd89.png +0 -0
package/README.md
CHANGED
|
@@ -25,6 +25,43 @@ module.exports = {
|
|
|
25
25
|
yarn start
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
## 本地联调
|
|
29
|
+
|
|
30
|
+
如果业务主应用通过 `yalc` 引用当前 SDK,可以按下面的方式进行本地联调。
|
|
31
|
+
|
|
32
|
+
### 1. SDK 仓库启动监听构建
|
|
33
|
+
|
|
34
|
+
```shell
|
|
35
|
+
yarn dev:yalc
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
该命令会在每次 webpack 构建成功后自动:
|
|
39
|
+
|
|
40
|
+
- 生成类型声明
|
|
41
|
+
- 执行 `yalc push --changed`
|
|
42
|
+
|
|
43
|
+
### 2. 业务主应用首次接入本地 SDK
|
|
44
|
+
|
|
45
|
+
在业务主应用仓库执行:
|
|
46
|
+
|
|
47
|
+
```shell
|
|
48
|
+
yalc add @tuya-sat/sdf-main-sdk
|
|
49
|
+
yarn install
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
然后启动业务主应用的本地开发服务。
|
|
53
|
+
|
|
54
|
+
### 3. 日常开发流程
|
|
55
|
+
|
|
56
|
+
1. 在 SDK 仓库修改代码
|
|
57
|
+
2. 等待 `yarn dev:yalc` 构建完成并自动执行 `yalc push`
|
|
58
|
+
3. 回到业务主应用刷新页面查看效果
|
|
59
|
+
|
|
60
|
+
### 4. 注意事项
|
|
61
|
+
|
|
62
|
+
- 当前 SDK 的运行产物依赖 `dist/main.bundle.js`,因此联调时需要先完成本地构建,再推送给业务主应用。
|
|
63
|
+
- 如果业务主应用没有拿到最新代码,可在业务主应用目录重新执行一次 `yarn install` 或重新启动开发服务。
|
|
64
|
+
|
|
28
65
|
## 功能介绍
|
|
29
66
|
### Hooks
|
|
30
67
|
|
package/dark-variable.less
CHANGED
|
@@ -160,7 +160,9 @@ html {
|
|
|
160
160
|
// Popover background color
|
|
161
161
|
@popover-background: @component-background;
|
|
162
162
|
@popover-customize-border-color: @border-color-split;
|
|
163
|
-
@font-family:
|
|
163
|
+
@font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
164
|
+
'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
|
|
165
|
+
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
164
166
|
@code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier,
|
|
165
167
|
monospace;
|
|
166
168
|
@text-color: fade(@black, 85%);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_SDF=self.webpackChunk_SDF||[]).push([[364],{364:function(e,t,n){n.d(t,{getCLS:function(){return v},getFCP:function(){return g},getFID:function(){return F},getLCP:function(){return k},getTTFB:function(){return C}});var i,a,r,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(function(e){return e.getEntries().map(t)});return n.observe({type:e,buffered:!0}),n}}catch(e){}},f=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(e){addEventListener("pageshow",function(t){t.persisted&&e(t)},!0)},m="function"==typeof WeakSet?new WeakSet:new Set,p=function(e,t,n){var i;return function(){t.value>=0&&(n||m.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},v=function(e,t){var n,i=u("CLS",0),a=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},r=c("layout-shift",a);r&&(n=p(e,i,t),f(function(){r.takeRecords().map(a),n()}),s(function(){i=u("CLS",0),n=p(e,i,t)}))},d=-1,l=function(){return"hidden"===document.visibilityState?0:1/0},h=function(){f(function(e){var t=e.timeStamp;d=t},!0)},S=function(){return d<0&&(d=l(),h(),s(function(){setTimeout(function(){d=l(),h()},0)})),{get timeStamp(){return d}}},g=function(e,t){var n,i=S(),a=u("FCP"),r=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime<i.timeStamp&&(a.value=e.startTime,a.entries.push(e),m.add(a),n()))},o=performance.getEntriesByName("first-contentful-paint")[0],f=o?null:c("paint",r);(o||f)&&(n=p(e,a,t),o&&r(o),s(function(i){a=u("FCP"),n=p(e,a,t),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-i.timeStamp,m.add(a),n()})})}))},y={passive:!0,capture:!0},E=new Date,w=function(e,t){i||(i=t,a=e,r=new Date,b(removeEventListener),L())},L=function(){if(a>=0&&a<r-E){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+a};o.forEach(function(t){t(e)}),o=[]}},T=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){w(e,t),a()},i=function(){a()},a=function(){removeEventListener("pointerup",n,y),removeEventListener("pointercancel",i,y)};addEventListener("pointerup",n,y),addEventListener("pointercancel",i,y)}(t,e):w(t,e)}},b=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,T,y)})},F=function(e,t){var n,r=S(),v=u("FID"),d=function(e){e.startTime<r.timeStamp&&(v.value=e.processingStart-e.startTime,v.entries.push(e),m.add(v),n())},l=c("first-input",d);n=p(e,v,t),l&&f(function(){l.takeRecords().map(d),l.disconnect()},!0),l&&s(function(){var r;v=u("FID"),n=p(e,v,t),o=[],a=-1,i=null,b(addEventListener),r=d,o.push(r),L()})},k=function(e,t){var n,i=S(),a=u("LCP"),r=function(e){var t=e.startTime;t<i.timeStamp&&(a.value=t,a.entries.push(e)),n()},o=c("largest-contentful-paint",r);if(o){n=p(e,a,t);var v=function(){m.has(a)||(o.takeRecords().map(r),o.disconnect(),m.add(a),n())};["keydown","click"].forEach(function(e){addEventListener(e,v,{once:!0,capture:!0})}),f(v,!0),s(function(i){a=u("LCP"),n=p(e,a,t),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-i.timeStamp,m.add(a),n()})})})}},C=function(e){var t,n=u("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)}}}]);
|
|
2
|
+
//# sourceMappingURL=364.e25154ae.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"364.e25154ae.chunk.js","mappings":"sPAAA,IAAIA,EAAEC,EAAEC,EAAEC,EAAEC,EAAE,SAASJ,EAAEC,GAAG,MAAM,CAACI,KAAKL,EAAEM,WAAM,IAASL,GAAG,EAAEA,EAAEM,MAAM,EAAEC,QAAQ,GAAGC,GAAG,MAAMC,OAAOC,KAAKC,MAAM,KAAKF,OAAOG,KAAKC,MAAM,cAAcD,KAAKE,UAAU,MAAM,EAAEC,EAAE,SAAShB,EAAEC,GAAG,IAAI,GAAGgB,oBAAoBC,oBAAoBC,SAASnB,GAAG,CAAC,GAAG,gBAAgBA,KAAK,2BAA2BoB,MAAM,OAAO,IAAIlB,EAAE,IAA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AAYqB,OAAOxE,EAAE,CAAC6D,UAAU,aAAaZ,UAAU,GAAG,IAAI,IAAIhD,KAAKF,EAAE,oBAAoBE,GAAG,WAAWA,IAAID,EAAEC,GAAGW,KAAK6D,IAAI1E,EAAEE,GAAGF,EAAE2E,gBAAgB,IAAI,OAAO1E,CAAC,CAAjL,GAAqL,GAAGC,EAAEI,MAAMJ,EAAEK,MAAMN,EAAE2E,cAAc1E,EAAEI,MAAM,EAAE,OAAOJ,EAAEM,QAAQ,CAACP,GAAGD,EAAEE,EAAE,CAAC,MAAMF,GAAG,CAAC,EAAE,aAAa2B,SAASkD,WAAW9B,WAAW9C,EAAE,GAAG6B,iBAAiB,WAAW7B,EAAE,C","sources":["webpack://_SDF/./node_modules/web-vitals/dist/web-vitals.js"],"sourcesContent":["var e,t,n,i,a=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:\"v1-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12)}},r=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if(\"first-input\"===e&&!(\"PerformanceEventTiming\"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},o=function(e,t){var n=function n(i){\"pagehide\"!==i.type&&\"hidden\"!==document.visibilityState||(e(i),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},c=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&e(t)}),!0)},u=\"function\"==typeof WeakSet?new WeakSet:new Set,f=function(e,t,n){var i;return function(){t.value>=0&&(n||u.has(t)||\"hidden\"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},s=function(e,t){var n,i=a(\"CLS\",0),u=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},s=r(\"layout-shift\",u);s&&(n=f(e,i,t),o((function(){s.takeRecords().map(u),n()})),c((function(){i=a(\"CLS\",0),n=f(e,i,t)})))},m=-1,p=function(){return\"hidden\"===document.visibilityState?0:1/0},v=function(){o((function(e){var t=e.timeStamp;m=t}),!0)},d=function(){return m<0&&(m=p(),v(),c((function(){setTimeout((function(){m=p(),v()}),0)}))),{get timeStamp(){return m}}},l=function(e,t){var n,i=d(),o=a(\"FCP\"),s=function(e){\"first-contentful-paint\"===e.name&&(p&&p.disconnect(),e.startTime<i.timeStamp&&(o.value=e.startTime,o.entries.push(e),u.add(o),n()))},m=performance.getEntriesByName(\"first-contentful-paint\")[0],p=m?null:r(\"paint\",s);(m||p)&&(n=f(e,o,t),m&&s(m),c((function(i){o=a(\"FCP\"),n=f(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-i.timeStamp,u.add(o),n()}))}))})))},h={passive:!0,capture:!0},S=new Date,y=function(i,a){e||(e=a,t=i,n=new Date,w(removeEventListener),g())},g=function(){if(t>=0&&t<n-S){var a={entryType:\"first-input\",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+t};i.forEach((function(e){e(a)})),i=[]}},E=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){y(e,t),a()},i=function(){a()},a=function(){removeEventListener(\"pointerup\",n,h),removeEventListener(\"pointercancel\",i,h)};addEventListener(\"pointerup\",n,h),addEventListener(\"pointercancel\",i,h)}(t,e):y(t,e)}},w=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,E,h)}))},L=function(n,s){var m,p=d(),v=a(\"FID\"),l=function(e){e.startTime<p.timeStamp&&(v.value=e.processingStart-e.startTime,v.entries.push(e),u.add(v),m())},h=r(\"first-input\",l);m=f(n,v,s),h&&o((function(){h.takeRecords().map(l),h.disconnect()}),!0),h&&c((function(){var r;v=a(\"FID\"),m=f(n,v,s),i=[],t=-1,e=null,w(addEventListener),r=l,i.push(r),g()}))},T=function(e,t){var n,i=d(),s=a(\"LCP\"),m=function(e){var t=e.startTime;t<i.timeStamp&&(s.value=t,s.entries.push(e)),n()},p=r(\"largest-contentful-paint\",m);if(p){n=f(e,s,t);var v=function(){u.has(s)||(p.takeRecords().map(m),p.disconnect(),u.add(s),n())};[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,v,{once:!0,capture:!0})})),o(v,!0),c((function(i){s=a(\"LCP\"),n=f(e,s,t),requestAnimationFrame((function(){requestAnimationFrame((function(){s.value=performance.now()-i.timeStamp,u.add(s),n()}))}))}))}},b=function(e){var t,n=a(\"TTFB\");t=function(){try{var t=performance.getEntriesByType(\"navigation\")[0]||function(){var e=performance.timing,t={entryType:\"navigation\",startTime:0};for(var n in e)\"navigationStart\"!==n&&\"toJSON\"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},\"complete\"===document.readyState?setTimeout(t,0):addEventListener(\"pageshow\",t)};export{s as getCLS,l as getFCP,L as getFID,T as getLCP,b as getTTFB};\n"],"names":["e","t","n","i","a","name","value","delta","entries","id","concat","Date","now","Math","floor","random","r","PerformanceObserver","supportedEntryTypes","includes","self","getEntries","map","observe","type","buffered","o","document","visibilityState","removeEventListener","addEventListener","c","persisted","u","WeakSet","Set","f","has","s","hadRecentInput","push","takeRecords","m","p","v","timeStamp","d","setTimeout","l","disconnect","startTime","add","performance","getEntriesByName","requestAnimationFrame","h","passive","capture","S","y","w","g","entryType","target","cancelable","processingStart","forEach","E","L","T","once","b","getEntriesByType","timing","max","navigationStart","responseStart","readyState"],"sourceRoot":""}
|
package/dist/api/index.d.ts
CHANGED
|
@@ -6,13 +6,16 @@ export interface ResData<T> {
|
|
|
6
6
|
result?: T;
|
|
7
7
|
[keys: string]: any;
|
|
8
8
|
}
|
|
9
|
+
export interface RequestConfig extends AxiosRequestConfig {
|
|
10
|
+
hideErrorMessage?: boolean;
|
|
11
|
+
}
|
|
9
12
|
export interface IAxiosInstance extends AxiosInstance {
|
|
10
|
-
request<T = any>(config:
|
|
11
|
-
get<T = any, R = T>(url: string, config?:
|
|
12
|
-
delete<T = any>(url: string, config?:
|
|
13
|
-
head<T = any>(url: string, config?:
|
|
14
|
-
post<T = any>(url: string, data?: any, config?:
|
|
15
|
-
put<T = any>(url: string, data?: any, config?:
|
|
16
|
-
patch<T = any>(url: string, data?: any, config?:
|
|
13
|
+
request<T = any>(config: RequestConfig): Promise<T>;
|
|
14
|
+
get<T = any, R = T>(url: string, config?: RequestConfig): Promise<T>;
|
|
15
|
+
delete<T = any>(url: string, config?: RequestConfig): Promise<T>;
|
|
16
|
+
head<T = any>(url: string, config?: RequestConfig): Promise<T>;
|
|
17
|
+
post<T = any>(url: string, data?: any, config?: RequestConfig): Promise<T>;
|
|
18
|
+
put<T = any>(url: string, data?: any, config?: RequestConfig): Promise<T>;
|
|
19
|
+
patch<T = any>(url: string, data?: any, config?: RequestConfig): Promise<T>;
|
|
17
20
|
}
|
|
18
21
|
export declare const api: IAxiosInstance;
|
package/dist/api/urls.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export declare const UNLOGIN_APIS: {
|
|
|
10
10
|
COUNTRY_PROVINCE_LIST: string;
|
|
11
11
|
ENTERPRISE_REGISTER: string;
|
|
12
12
|
ENTERPRISE_REGISTER_CAPTCHA: string;
|
|
13
|
+
BIND_APPS: string;
|
|
14
|
+
DOWNLOAD_URL: string;
|
|
13
15
|
};
|
|
14
16
|
export declare const URLS: {
|
|
15
17
|
FORGET_PWD: string;
|
|
@@ -23,18 +25,24 @@ export declare const URLS: {
|
|
|
23
25
|
COUNTRY_PROVINCE_LIST: string;
|
|
24
26
|
ENTERPRISE_REGISTER: string;
|
|
25
27
|
ENTERPRISE_REGISTER_CAPTCHA: string;
|
|
28
|
+
BIND_APPS: string;
|
|
29
|
+
DOWNLOAD_URL: string;
|
|
26
30
|
RESET_PWD: string;
|
|
27
31
|
SAAS_INFO: string;
|
|
28
32
|
QRCODE: string;
|
|
29
33
|
MQTT: string;
|
|
34
|
+
MQTT_BUSINESS: string;
|
|
30
35
|
ModifyPhoneAndEmail: string;
|
|
31
36
|
USER_INFO: string;
|
|
32
37
|
USER_INFO_V1: string;
|
|
33
38
|
USER_INFO_V3: string;
|
|
39
|
+
USER_INFO_SMART_HOME: string;
|
|
34
40
|
USER_CAPTCHA: string;
|
|
35
41
|
NOTICE_QUERY_LIST_GET: string;
|
|
36
42
|
NOTICE_HANDLE_READ_PUT: string;
|
|
43
|
+
NOTICE_HANDLE_READ_PUT_SMARTHOME: string;
|
|
37
44
|
NOTICE_DELETE_DELETE: string;
|
|
45
|
+
NOTICE_DELETE_DELETE_SMARTHOME: string;
|
|
38
46
|
NOTICE_UNREAD_COUNT_GET: string;
|
|
39
47
|
MODIFY_MOBILE: string;
|
|
40
48
|
MODIFY_EMAIL: string;
|
|
@@ -44,11 +52,21 @@ export declare const URLS: {
|
|
|
44
52
|
ENTERPRISES_SWITCHER: string;
|
|
45
53
|
PROJECT_LIST: string;
|
|
46
54
|
PROJECT_SWITCH: string;
|
|
55
|
+
HOME_LIST: string;
|
|
56
|
+
HOME_SWITCH: string;
|
|
47
57
|
ACCOUNT_AVATAR: string;
|
|
48
58
|
UPLOAD_STEP1: string;
|
|
49
59
|
UPLOAD_STEP3: string;
|
|
50
60
|
UPLOAD_STEP4: string;
|
|
51
|
-
|
|
61
|
+
ENTERPRISE_TONE_GET: string;
|
|
62
|
+
ENTERPRISE_TONE_ENABLE: string;
|
|
63
|
+
OTHER_ENTERPRISE_MESSAGES_UNREAD_FLAG: string;
|
|
64
|
+
OTHER_ENTERPRISE_MESSAGES_UNREAD_COUNT: string;
|
|
65
|
+
CURRENT_ENTERPRISE_MESSAGES_UNREAD_COUNT: string;
|
|
66
|
+
USER_LANG: string;
|
|
67
|
+
USER_INFO_UPDATE: string;
|
|
52
68
|
LOGIN: string;
|
|
53
69
|
LOGOUT: string;
|
|
70
|
+
GET_LOGIN_QRCODE: string;
|
|
71
|
+
LOGIN_WITH_QRCODE: string;
|
|
54
72
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC, ReactNode } from
|
|
2
|
-
import { SiderProps } from
|
|
3
|
-
import { MenuType } from
|
|
4
|
-
import { IMenu } from
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { SiderProps } from "antd";
|
|
3
|
+
import { MenuType } from "../Menu";
|
|
4
|
+
import { IMenu } from "../Menu";
|
|
5
5
|
export interface ILayoutProps {
|
|
6
6
|
mode: MenuType;
|
|
7
7
|
menus: Array<IMenu>;
|
|
@@ -4,7 +4,6 @@ interface IconProps {
|
|
|
4
4
|
src: string;
|
|
5
5
|
style?: CSSProperties;
|
|
6
6
|
mode?: MenuType | string;
|
|
7
|
-
showUrl?: boolean;
|
|
8
7
|
}
|
|
9
|
-
declare const MenuIcon: ({ src, mode, style
|
|
8
|
+
declare const MenuIcon: ({ src, mode, style }: IconProps) => JSX.Element;
|
|
10
9
|
export default MenuIcon;
|
|
@@ -2,13 +2,11 @@ interface LayoutSiderProps {
|
|
|
2
2
|
logo: string;
|
|
3
3
|
title: string;
|
|
4
4
|
menus: any[];
|
|
5
|
-
|
|
6
|
-
isMessageAppIdExists?: boolean;
|
|
7
|
-
orgRoutePath?: string;
|
|
8
|
-
messageRoutePath?: string;
|
|
5
|
+
collapsed?: boolean;
|
|
9
6
|
isSubSider?: boolean;
|
|
10
7
|
requiredProject?: boolean;
|
|
11
8
|
className?: string;
|
|
9
|
+
mode?: 'LR' | 'TB' | 'TL';
|
|
12
10
|
}
|
|
13
11
|
export default function LayoutSider(props: LayoutSiderProps): JSX.Element;
|
|
14
12
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface HomeInfo {
|
|
2
|
+
home_id: string;
|
|
3
|
+
home_name: string;
|
|
4
|
+
lastest_chosen: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const getHomeId: () => string;
|
|
7
|
+
export declare const cacheHomeId: (id: string) => void;
|
|
8
|
+
export default function useHomeInfo(): {
|
|
9
|
+
loading: boolean;
|
|
10
|
+
list?: HomeInfo[];
|
|
11
|
+
currentId?: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ProjectInfo {
|
|
2
|
+
project_id: string;
|
|
3
|
+
project_name: string;
|
|
4
|
+
is_last_chosen: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const getProjectId: () => string;
|
|
7
|
+
export declare const cacheProjectId: (id: string) => void;
|
|
8
|
+
export default function useProjectInfo(): {
|
|
9
|
+
loading: boolean;
|
|
10
|
+
list?: ProjectInfo[];
|
|
11
|
+
currentId?: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PopoverProps } from "antd";
|
|
3
|
+
interface UserInfo {
|
|
4
|
+
userName: string;
|
|
5
|
+
roles: any[];
|
|
6
|
+
}
|
|
7
|
+
interface UserAccountProps extends PopoverProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
avatar?: string;
|
|
11
|
+
avatarStyle?: React.CSSProperties;
|
|
12
|
+
renderTxt?(user: UserInfo): React.ReactNode;
|
|
13
|
+
renderContent?(user: UserInfo): React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const UserAccount: React.FC<UserAccountProps>;
|
|
16
|
+
export default UserAccount;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PopoverProps } from "antd";
|
|
3
|
+
interface UserInfo {
|
|
4
|
+
userName: string;
|
|
5
|
+
roles: any[];
|
|
6
|
+
}
|
|
7
|
+
export interface UserAccountProps extends PopoverProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
avatar?: string;
|
|
11
|
+
avatarStyle?: React.CSSProperties;
|
|
12
|
+
renderTxt?(user: UserInfo): React.ReactNode;
|
|
13
|
+
renderContent?(user: UserInfo): React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const UserAccount: React.FC<UserAccountProps>;
|
|
16
|
+
export default UserAccount;
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
userName: string;
|
|
5
|
-
roles: any[];
|
|
6
|
-
}
|
|
7
|
-
interface UserAccountProps extends PopoverProps {
|
|
8
|
-
orgRoutePath?: string;
|
|
9
|
-
messageRoutePath?: string;
|
|
10
|
-
isOemMicroAppIdExists?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
style?: React.CSSProperties;
|
|
13
|
-
avatar?: string;
|
|
14
|
-
avatarStyle?: React.CSSProperties;
|
|
15
|
-
renderTxt?(user: UserInfo): React.ReactNode;
|
|
16
|
-
renderContent?(user: UserInfo): React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
declare const UserAccount: React.FC<UserAccountProps>;
|
|
19
|
-
export default UserAccount;
|
|
1
|
+
import { UserAccountProps } from "./UserAccount";
|
|
2
|
+
declare const RenderUserAccount: (props: UserAccountProps) => JSX.Element;
|
|
3
|
+
export default RenderUserAccount;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { LayoutProps } from "@/components/Layout/interface";
|
|
2
2
|
export default function AntdLayout(props: Partial<LayoutProps & {
|
|
3
3
|
children: any;
|
|
4
|
-
orgRoutePath: string;
|
|
5
|
-
messageRoutePath: string;
|
|
6
|
-
isOemMicroAppIdExists: boolean;
|
|
7
|
-
isMessageAppIdExists: boolean;
|
|
8
4
|
requiredProject: boolean;
|
|
9
5
|
isSysSettings: boolean;
|
|
10
6
|
}>): JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IMenu } from "../BLayout/components/Menu";
|
|
2
|
-
import {
|
|
2
|
+
import { ProjectInfo } from "./antd/components/ProjectSelect/useProjectInfo";
|
|
3
3
|
export interface LayoutProps {
|
|
4
4
|
layoutConfig: {
|
|
5
5
|
mode: 'LR' | 'TB' | 'TL';
|
|
6
|
+
siderCollapsed: boolean;
|
|
6
7
|
hideSider: boolean;
|
|
7
8
|
hideHeader: boolean;
|
|
8
9
|
enableSubSider: boolean;
|
|
@@ -14,7 +15,9 @@ export interface LayoutProps {
|
|
|
14
15
|
menus: Array<IMenu>;
|
|
15
16
|
selectedMenu: IMenu;
|
|
16
17
|
isEmpty: boolean;
|
|
17
|
-
projectList:
|
|
18
|
+
projectList: ProjectInfo[];
|
|
19
|
+
setLoading(loading: boolean): void;
|
|
20
|
+
updateQiankunProps(customProps: Record<string, any>): void;
|
|
18
21
|
currentLanguage: string;
|
|
19
22
|
supportLanguages: Array<{
|
|
20
23
|
label: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface NotificationContentProps {
|
|
3
|
+
data: any;
|
|
4
|
+
onDetailClick: (data: any) => void;
|
|
5
|
+
onButtonClick: (operation: any, data: any) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const NotificationContent: React.FC<NotificationContentProps>;
|
|
8
|
+
interface NotificationTitleProps {
|
|
9
|
+
msgType: number | string;
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const NotificationTitle: React.FC<NotificationTitleProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IBusinessMessage } from '@/mqtt/business';
|
|
2
|
+
export declare class MessageNotificationManager {
|
|
3
|
+
private autoCloseDelay;
|
|
4
|
+
private currentNotificationKey;
|
|
5
|
+
private onDetailClickCallback?;
|
|
6
|
+
setOnDetailClickCallback(callback: (data: any) => void): void;
|
|
7
|
+
private parseOperationData;
|
|
8
|
+
private handleDetailClick;
|
|
9
|
+
private handleButtonClick;
|
|
10
|
+
handleMqttMessage(message: IBusinessMessage): void;
|
|
11
|
+
setAutoCloseDelay(seconds: number): void;
|
|
12
|
+
closeCurrentNotification(): void;
|
|
13
|
+
}
|
|
@@ -5,24 +5,20 @@ export interface BreadcrumbInfo {
|
|
|
5
5
|
type?: 'auto' | 'root' | 'menu' | 'c';
|
|
6
6
|
name?: string;
|
|
7
7
|
path?: string;
|
|
8
|
-
label?: never;
|
|
9
8
|
render?(eleTitle: HTMLDivElement): React.ReactNode;
|
|
10
9
|
goBack?(): void;
|
|
11
10
|
}
|
|
12
11
|
export type BreadcrumbInfoInput = {
|
|
13
12
|
type: 'auto' | 'root';
|
|
14
13
|
name?: never;
|
|
15
|
-
label?: never;
|
|
16
14
|
path?: never;
|
|
17
15
|
} | {
|
|
18
16
|
type: 'menu';
|
|
19
17
|
name?: never;
|
|
20
|
-
label?: never;
|
|
21
18
|
path: string;
|
|
22
19
|
} | {
|
|
23
20
|
type: 'c';
|
|
24
21
|
name: string;
|
|
25
|
-
label?: never;
|
|
26
22
|
path: string;
|
|
27
23
|
};
|
|
28
24
|
export type BreadcrumbActions = {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface QrLoginProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
size?: number;
|
|
6
|
+
afterLogin?(params: {
|
|
7
|
+
ticket: string;
|
|
8
|
+
saas_host: string;
|
|
9
|
+
}): void;
|
|
10
|
+
}
|
|
11
|
+
export declare enum EQrCodeStatus {
|
|
12
|
+
NEW = "NEW",
|
|
13
|
+
EXPIRED = "EXPIRED",
|
|
14
|
+
CONFIRMED = "CONFIRMED"
|
|
15
|
+
}
|
|
16
|
+
declare const QrLogin: React.FC<QrLoginProps>;
|
|
17
|
+
export default QrLogin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ErrorSvg: JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const AccountSetting: (props: {
|
|
3
|
+
userInfo?: Window["_SDF"]["user"];
|
|
4
|
+
loadUserInfo?: () => Promise<void>;
|
|
5
|
+
extra?: {
|
|
6
|
+
beforeSlot?: React.FC;
|
|
7
|
+
afterSlot?: React.FC;
|
|
8
|
+
};
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default AccountSetting;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** 完整 URL 映射表 */
|
|
2
|
+
export declare const AVATAR_LIST: string[];
|
|
3
|
+
export declare const AVATAR_COUNT: number;
|
|
4
|
+
/**
|
|
5
|
+
* 根据展示顺序下标(1-based)取该头像的 hash,用于保存到云端。
|
|
6
|
+
*/
|
|
7
|
+
export declare function getAvatarHashByIndex(index: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* 根据云端存的 head_pic(hash 或完整 URL)取展示顺序下标(1-based),用于弹窗初始选中。
|
|
10
|
+
* 找不到时返回 1。
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAvatarIndexByHash(hashOrHeadPic?: string): number;
|
|
13
|
+
/**
|
|
14
|
+
* 将云端 head_pic(存的是头像标识如 avatar1 或完整 URL)解析为可展示的图片 URL。
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveAvatarUrl(headPic?: string): string | undefined;
|
package/dist/constant/index.d.ts
CHANGED
|
@@ -13,7 +13,17 @@ export declare enum LOGIN_TABS {
|
|
|
13
13
|
TELE = "tele"
|
|
14
14
|
}
|
|
15
15
|
export declare const EVENT_NOTICE = "EVENT_NOTICE";
|
|
16
|
+
export declare const EVENT_NOTICE_REFRESH = "EVENT_NOTICE_REFRESH";
|
|
16
17
|
export declare const EVENT_USERNAME = "EVENT_USERNAME";
|
|
18
|
+
export declare const EVENT_SHOW_MESSAGE_DETAIL = "EVENT_SHOW_MESSAGE_DETAIL";
|
|
19
|
+
export declare enum MESSAGE_TYPE {
|
|
20
|
+
/** 告警消息 */
|
|
21
|
+
ALERT_MESSAGE = 1,
|
|
22
|
+
/** 系统通知 */
|
|
23
|
+
SYSTEM_NOTICE = 3,
|
|
24
|
+
/** 业务消息 */
|
|
25
|
+
BUSINESS_MESSAGE = 4
|
|
26
|
+
}
|
|
17
27
|
export declare const SafePath: string[];
|
|
18
28
|
export declare const WhitePathList: string[];
|
|
19
29
|
export declare const OverWriteRoute: string[];
|