@tuya-sat/sdf-main-sdk 2.0.0-alpha.224 → 2.0.0-alpha.225
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/dist/131.86dbdffb.chunk.js +2 -0
- package/dist/131.86dbdffb.chunk.js.map +1 -0
- package/dist/api/index.d.ts +10 -7
- package/dist/api/urls.d.ts +0 -7
- package/dist/components/Layout/antd/components/UserAccount/UserAvatar.d.ts +0 -1
- package/dist/constant/index.d.ts +0 -9
- package/dist/en.json +4 -43
- package/dist/index.d.ts +1 -1
- package/dist/main.bundle.js +1 -1
- package/dist/main.bundle.js.LICENSE.txt +3 -5
- package/dist/main.bundle.js.map +1 -1
- package/dist/main.css +30 -357
- package/dist/main.css.map +1 -1
- package/dist/manifest.json +2 -3
- package/dist/pages/home/notice/hooks.d.ts +1 -13
- package/dist/pages/home/notice/table/read.d.ts +1 -6
- package/dist/pages/home/notice/tools/index.d.ts +1 -4
- package/dist/utils/index.d.ts +1 -1
- package/dist/zh.json +4 -45
- package/package.json +5 -7
- package/dist/364.7ac731e9.chunk.js +0 -2
- package/dist/364.7ac731e9.chunk.js.map +0 -1
- package/dist/components/BackNotice/index.d.ts +0 -2
- package/dist/components/MessageNotification/index.d.ts +0 -13
- package/dist/components/MessageNotification/manager.d.ts +0 -13
- package/dist/components/MessageNotification/messageNotificationManager.d.ts +0 -3
- package/dist/mqtt/business.d.ts +0 -35
- package/dist/pages/home/notice/ConfirmCloseModal.d.ts +0 -15
- package/dist/pages/home/notice/MessageDetailModal.d.ts +0 -37
- package/dist/static/img/f110c37284312f4d2af6.png +0 -0
- package/dist/utils/soundManager.d.ts +0 -12
- package/new-translations.json +0 -72
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_SDF=self.webpackChunk_SDF||[]).push([[131],{82131:function(e,t,n){n.r(t),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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IoB,GAAGC,EAAEM,aAAahB,EAAEkB,IAAIb,GAAGpC,IAAI,EAAE,CAAC,UAAU,SAASgE,SAAQ,SAAUlE,GAAG8B,iBAAiB9B,EAAE4C,EAAE,CAAC0B,MAAK,EAAGb,SAAQ,GAAK,IAAG/B,EAAEkB,GAAE,GAAIb,GAAE,SAAU5B,GAAGmC,EAAElC,EAAE,OAAOF,EAAEkC,EAAEpC,EAAEsC,EAAErC,GAAGqD,uBAAsB,WAAYA,uBAAsB,WAAYhB,EAAEhC,MAAM8C,YAAYxC,MAAMT,EAAE0C,UAAUZ,EAAEkB,IAAIb,GAAGpC,GAAI,GAAG,GAAG,GAAE,CAAC,EAAEqE,EAAE,SAASvE,GAAG,IAAIC,EAAEC,EAAEE,EAAE,QAAQH,EAAE,WAAW,IAAI,IAAIA,EAAEmD,YAAYoB,iBAAiB,cAAc,IAAI,WAAW,IAAIxE,EAAEoD,YAAYqB,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,EAAY,CAAT,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
|
@@ -27,7 +27,6 @@ export declare const URLS: {
|
|
|
27
27
|
SAAS_INFO: string;
|
|
28
28
|
QRCODE: string;
|
|
29
29
|
MQTT: string;
|
|
30
|
-
MQTT_BUSINESS: string;
|
|
31
30
|
ModifyPhoneAndEmail: string;
|
|
32
31
|
USER_INFO: string;
|
|
33
32
|
USER_INFO_V1: string;
|
|
@@ -49,12 +48,6 @@ export declare const URLS: {
|
|
|
49
48
|
UPLOAD_STEP1: string;
|
|
50
49
|
UPLOAD_STEP3: string;
|
|
51
50
|
UPLOAD_STEP4: string;
|
|
52
|
-
ENTERPRISE_TONE_GET: string;
|
|
53
|
-
ENTERPRISE_TONE_ENABLE: string;
|
|
54
|
-
OTHER_ENTERPRISE_MESSAGES_UNREAD_FLAG: string;
|
|
55
|
-
OTHER_ENTERPRISE_MESSAGES_UNREAD_COUNT: string;
|
|
56
|
-
CURRENT_ENTERPRISE_MESSAGES_UNREAD_COUNT: string;
|
|
57
|
-
USER_LANG: string;
|
|
58
51
|
LOGIN: string;
|
|
59
52
|
LOGOUT: string;
|
|
60
53
|
};
|
package/dist/constant/index.d.ts
CHANGED
|
@@ -14,15 +14,6 @@ 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
|
-
}
|
|
26
17
|
export declare const SafePath: string[];
|
|
27
18
|
export declare const WhitePathList: string[];
|
|
28
19
|
export declare const OverWriteRoute: string[];
|
package/dist/en.json
CHANGED
|
@@ -56,9 +56,7 @@
|
|
|
56
56
|
"setting.sys.title": "System Settings",
|
|
57
57
|
"setting.sys.homeTitle": "Home",
|
|
58
58
|
"setting.account.title": "Account Information",
|
|
59
|
-
"setting.account.enterprise.
|
|
60
|
-
"setting.account.enterprise.changeBtn": "Switch",
|
|
61
|
-
"other.enterprise.unread.messages.tooltip": "Other enterprises have unread message notifications, you can switch to view",
|
|
59
|
+
"setting.account.enterprise.changeBtn": "Switch Company",
|
|
62
60
|
"setting.account": "User Account",
|
|
63
61
|
"setting.phone": "Phone Number",
|
|
64
62
|
"setting.email": "Mail",
|
|
@@ -93,15 +91,10 @@
|
|
|
93
91
|
"setting.form.confirm.validate.unanimous": "The two password entries are inconsistent",
|
|
94
92
|
"setting.modifySuccess": "Password successfully changed",
|
|
95
93
|
"notice.title": "Message Details",
|
|
96
|
-
"notice.title.message": "Message Notifications",
|
|
97
94
|
"notice.typeSelect.placeholder": " Type",
|
|
98
95
|
"notice.typeSelect.all": "All",
|
|
99
96
|
"notice.typeSelect.message": "Message Notification",
|
|
100
97
|
"notice.typeSelect.alert": "Alarm Message",
|
|
101
|
-
"notice.messageType.alert": "Device Message",
|
|
102
|
-
"notice.messageType.system": "System Notice",
|
|
103
|
-
"notice.messageType.business": "Business Message",
|
|
104
|
-
"notice.messageType.unknown": "Unknown Message",
|
|
105
98
|
"notice.originSelect.placeholder": "Source",
|
|
106
99
|
"notice.originSelect.all": "All",
|
|
107
100
|
"notice.originSelect.center": "Message Center",
|
|
@@ -116,7 +109,7 @@
|
|
|
116
109
|
"notice.buttons.read": "Mark as unread",
|
|
117
110
|
"notice.badge.title": "Message Notifications",
|
|
118
111
|
"notice.badge.type": "Notification Types",
|
|
119
|
-
"notice.badge.message": "View all",
|
|
112
|
+
"notice.badge.message": "View all messages",
|
|
120
113
|
"notice.tools.button.read": "Mark as Read",
|
|
121
114
|
"notice.tools.button.unread": "Mark as Unread",
|
|
122
115
|
"notice.tools.button.delete": "Delete",
|
|
@@ -126,7 +119,6 @@
|
|
|
126
119
|
"notice.tools.select.system": "System Notification",
|
|
127
120
|
"notice.tools.select.device": "Device Message",
|
|
128
121
|
"notice.tools.select.work": "Business Message",
|
|
129
|
-
"notice.tools.popconfirm.confirm": "Delete Confirmation",
|
|
130
122
|
"notice.tools.popconfirm.title": "Are you sure to delete the selected message(s)?",
|
|
131
123
|
"notice.tools.popconfirm.content": "Unrecoverable after deletion",
|
|
132
124
|
"notice.tools.popconfirm.cancel": "Cancel",
|
|
@@ -138,42 +130,17 @@
|
|
|
138
130
|
"notice.tools.pread": "Mark as read",
|
|
139
131
|
"notice.tools.punread": "Mark as unread",
|
|
140
132
|
"notice.tools.pdelete": "Delete",
|
|
141
|
-
"notice.tools.pread.success": "Marked as read successfully",
|
|
142
|
-
"notice.tools.pread.error": "Failed to mark as read",
|
|
143
|
-
"notice.tools.punread.success": "Marked as unread successfully",
|
|
144
|
-
"notice.tools.punread.error": "Failed to mark as unread",
|
|
145
|
-
"notice.tools.sdelete.success": "Deleted successfully",
|
|
146
|
-
"notice.tools.pdelete.success": "Batch deleted successfully",
|
|
147
|
-
"notice.tools.pdelete.error": "Failed to delete",
|
|
148
|
-
"notice.tools.sread.success": "Operation successful",
|
|
149
|
-
"notice.settings.title": "Message Notifications",
|
|
150
|
-
"notice.settings.soundToggle.enabled": "New message sound notification enabled",
|
|
151
|
-
"notice.settings.soundToggle.disabled": "New message sound notification disabled",
|
|
152
|
-
"notice.settings.confirm.enable.title": "Enable Confirmation",
|
|
153
|
-
"notice.settings.confirm.disable.title": "Disable Confirmation",
|
|
154
|
-
"notice.settings.confirm.enable.content": "Enable new message sound notification?",
|
|
155
|
-
"notice.settings.confirm.disable.content": "Disable new message sound notification?",
|
|
156
|
-
"notice.settings.confirm.ok": "Confirm",
|
|
157
|
-
"notice.settings.confirm.cancel": "Cancel",
|
|
158
|
-
"notice.settings.message.success": "Operation successful",
|
|
159
|
-
"notice.settings.message.error": "Operation failed",
|
|
160
133
|
"notice.table.column.content": "Message Content",
|
|
161
|
-
"notice.table.column.title": "Message Title",
|
|
162
134
|
"notice.table.column.status": "Message Status",
|
|
163
135
|
"notice.table.column.type": "Message Type",
|
|
164
136
|
"notice.table.column.source": "Message Source",
|
|
165
137
|
"notice.table.column.time": "Time",
|
|
166
|
-
"notice.table.column.project": "Project",
|
|
167
|
-
"notice.table.column.operation": "Operation",
|
|
168
138
|
"notice.table.render.status.read": "Read",
|
|
169
139
|
"notice.table.render.status.unread": "Unread",
|
|
170
140
|
"notice.table.hover.read": "Mark as read",
|
|
171
141
|
"notice.table.hover.unread": "Mark as unread",
|
|
172
142
|
"notice.table.hover.del": "Delete",
|
|
173
143
|
"notice.table.delTip": "Are you sure to delete?",
|
|
174
|
-
"notice.table.operation.primary": "Primary",
|
|
175
|
-
"notice.table.operation.secondary": "Secondary",
|
|
176
|
-
"notice.table.operation.detail": "Detail",
|
|
177
144
|
"httpCodeText.400": "Request error",
|
|
178
145
|
"httpCodeText.401": "Unauthorized, please log in again",
|
|
179
146
|
"httpCodeText.403": "access denied",
|
|
@@ -256,7 +223,6 @@
|
|
|
256
223
|
"enterprise.field.expireDate": "Expiration Date: ",
|
|
257
224
|
"enterprise.field.type": "Type: ",
|
|
258
225
|
"enterprise.field.role": "Roles: ",
|
|
259
|
-
"enterprise.field.message": "Message Notification",
|
|
260
226
|
"enterprise.field.loginDefault": "Default Login",
|
|
261
227
|
"enterprise.page.title": "Select a company to log in",
|
|
262
228
|
"yrule.closeTip": "Please complete verification first.",
|
|
@@ -293,11 +259,6 @@
|
|
|
293
259
|
"registerPage.result.success.loginBtn": "Login",
|
|
294
260
|
"registerPage.result.audit.title": "Your registration application is under review!",
|
|
295
261
|
"registerPage.result.field.createTime": "Registration time",
|
|
296
|
-
"registerPage.result.field.account": "Administrator Account"
|
|
297
|
-
"notice.empty.title": "No unread messages",
|
|
298
|
-
"notice.projectSelect.placeholder": "Project",
|
|
299
|
-
"notice.projectSelect.all": "All",
|
|
300
|
-
"notice.pagination.total": "Total {{total}} records",
|
|
301
|
-
"notice.empty.data": "No data"
|
|
262
|
+
"registerPage.result.field.account": "Administrator Account"
|
|
302
263
|
}
|
|
303
|
-
}
|
|
264
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as _langUtils from './lang/utils';
|
|
|
5
5
|
import { LayoutProps } from "./components/Layout/interface";
|
|
6
6
|
import type { FrameworkConfiguration } from "qiankun/src/interfaces";
|
|
7
7
|
export { initGlobalState, globalStateActions } from './qiankun/globalState';
|
|
8
|
-
export
|
|
8
|
+
export { LayoutProps } from "./components/Layout/interface";
|
|
9
9
|
export { getProjectId } from "./components/Layout/antd/components/ProjectSelect/useProjectInfo";
|
|
10
10
|
export { api, URLS } from './api';
|
|
11
11
|
export { useYRule } from './utils/yrule';
|