@tuya-sat/sdf-main-sdk 2.0.0-alpha.98 → 2.0.0-spaceUi

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/{131.58e0735d.chunk.js → 131.798ceb8f.chunk.js} +1 -1
  2. package/dist/{131.58e0735d.chunk.js.map → 131.798ceb8f.chunk.js.map} +1 -1
  3. package/dist/api/index.d.ts +7 -7
  4. package/dist/api/urls.d.ts +18 -0
  5. package/dist/components/403/index.d.ts +4 -1
  6. package/dist/components/BLayout/components/Logo.d.ts +4 -1
  7. package/dist/components/BLogin/component/UserName/index.d.ts +6 -3
  8. package/dist/components/BLogin/component/VerifyCode/VerifyCodeInput.d.ts +6 -0
  9. package/dist/components/BLogin/component/VerifyCode/index.d.ts +1 -1
  10. package/dist/components/ImageUpload/index.d.ts +4 -0
  11. package/dist/components/ImageUpload/utils.d.ts +1 -0
  12. package/dist/components/Layout/antd/Header/index.d.ts +10 -1
  13. package/dist/components/Layout/antd/Menu/HorizontalMenu/index.d.ts +1 -0
  14. package/dist/components/Layout/antd/Menu/index.d.ts +3 -0
  15. package/dist/components/Layout/antd/Sider/index.d.ts +1 -0
  16. package/dist/components/Layout/antd/components/AppDownload/index.d.ts +2 -6
  17. package/dist/components/Layout/antd/components/DynamicNavs/index.d.ts +1 -0
  18. package/dist/components/Layout/antd/components/NavItem/index.d.ts +2 -1
  19. package/dist/components/Layout/antd/components/ProjectSelect/index.d.ts +4 -0
  20. package/dist/components/Layout/antd/components/ProjectSelect/useProjectInfo.d.ts +12 -0
  21. package/dist/components/Layout/antd/components/UserAccount/UserAvatar.d.ts +8 -0
  22. package/dist/components/Layout/antd/components/UserAccount/index.d.ts +1 -0
  23. package/dist/components/Layout/antd/index.d.ts +2 -0
  24. package/dist/components/Layout/interface.d.ts +5 -1
  25. package/dist/components/MicroComponent/Header/index.d.ts +17 -2
  26. package/dist/components/PEnterprise/EnterpriseList.d.ts +3 -1
  27. package/dist/components/PSetting/AccountSetting.d.ts +10 -1
  28. package/dist/components/Register/components/CountryRegionCascader/RegionCascader.d.ts +19 -0
  29. package/dist/components/Register/components/CountryRegionCascader/index.d.ts +10 -0
  30. package/dist/components/Register/components/CountryRegionCascader/services.d.ts +9 -0
  31. package/dist/components/Register/components/RegisterForm/AccountForm.d.ts +23 -0
  32. package/dist/components/Register/components/RegisterForm/EnterpriseForm.d.ts +2 -0
  33. package/dist/components/Register/components/RegisterForm/index.d.ts +7 -0
  34. package/dist/components/Register/components/RegisterResult/index.d.ts +3 -0
  35. package/dist/components/Register/index.d.ts +1 -0
  36. package/dist/en.json +61 -6
  37. package/dist/hooks/index.d.ts +9 -4
  38. package/dist/index.d.ts +8 -0
  39. package/dist/lang/utils.d.ts +1 -1
  40. package/dist/main.bundle.js +1 -1
  41. package/dist/main.bundle.js.LICENSE.txt +43 -0
  42. package/dist/main.bundle.js.map +1 -1
  43. package/dist/main.css +699 -431
  44. package/dist/main.css.map +1 -1
  45. package/dist/manifest.json +6 -2
  46. package/dist/pages/403.d.ts +4 -1
  47. package/dist/pages/home/notice/hooks.d.ts +2 -2
  48. package/dist/qiankun/utils/index.d.ts +7 -5
  49. package/dist/static/img/7d9900e808e2197745be.png +0 -0
  50. package/dist/static/img/a10132bbdef90aa7baaf.png +0 -0
  51. package/dist/static/img/a20c372b6039996ba351.png +0 -0
  52. package/dist/static/img/b765d4caa82d7e5eae80.png +0 -0
  53. package/dist/utils/checkPass.d.ts +4 -0
  54. package/dist/utils/common.d.ts +7 -0
  55. package/dist/utils/index.d.ts +43 -5
  56. package/dist/utils/theme/antd5/index.d.ts +57 -141
  57. package/dist/utils/theme/antd5/token.d.ts +65 -138
  58. package/dist/utils/theme/store.d.ts +114 -282
  59. package/dist/zh.json +57 -4
  60. package/package.json +5 -1
@@ -1,2 +1,2 @@
1
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)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)}}}]);
2
- //# sourceMappingURL=131.58e0735d.chunk.js.map
2
+ //# sourceMappingURL=131.798ceb8f.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"131.58e0735d.chunk.js","mappings":"+PAAA,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,IAAIe,qBAAoB,SAAUjB,GAAG,OAAOA,EAAEqB,aAAaC,IAAIrB,EAAG,IAAG,OAAOC,EAAEqB,QAAQ,CAACC,KAAKxB,EAAEyB,UAAS,IAAKvB,CAAC,CAAW,CAAT,MAAMF,GAAG,CAAC,EAAE0B,EAAE,SAAS1B,EAAEC,GAAG,IAAIC,EAAE,SAASA,EAAEC,GAAG,aAAaA,EAAEqB,MAAM,WAAWG,SAASC,kBAAkB5B,EAAEG,GAAGF,IAAI4B,oBAAoB,mBAAmB3B,GAAE,GAAI2B,oBAAoB,WAAW3B,GAAE,IAAK,EAAE4B,iBAAiB,mBAAmB5B,GAAE,GAAI4B,iBAAiB,WAAW5B,GAAE,EAAG,EAAE6B,EAAE,SAAS/B,GAAG8B,iBAAiB,YAAW,SAAU7B,GAAGA,EAAE+B,WAAWhC,EAAEC,EAAG,IAAE,EAAG,EAAEgC,EAAE,mBAAmBC,QAAQ,IAAIA,QAAQ,IAAIC,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AAG,IAAI2C,EAAE,WAAWX,EAAEI,IAAIC,KAAKK,EAAEF,cAAcnB,IAAIoB,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":""}
1
+ {"version":3,"file":"131.798ceb8f.chunk.js","mappings":"+PAAA,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,IAAIe,qBAAoB,SAAUjB,GAAG,OAAOA,EAAEqB,aAAaC,IAAIrB,EAAG,IAAG,OAAOC,EAAEqB,QAAQ,CAACC,KAAKxB,EAAEyB,UAAS,IAAKvB,CAAC,CAAW,CAAT,MAAMF,GAAG,CAAC,EAAE0B,EAAE,SAAS1B,EAAEC,GAAG,IAAIC,EAAE,SAASA,EAAEC,GAAG,aAAaA,EAAEqB,MAAM,WAAWG,SAASC,kBAAkB5B,EAAEG,GAAGF,IAAI4B,oBAAoB,mB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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":""}
@@ -7,12 +7,12 @@ export interface ResData<T> {
7
7
  [keys: string]: any;
8
8
  }
9
9
  export interface IAxiosInstance extends AxiosInstance {
10
- request<T = any, R = ResData<T>>(config: AxiosRequestConfig): Promise<R>;
11
- get<T = any, R = ResData<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
12
- delete<T = any, R = ResData<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
13
- head<T = any, R = ResData<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
14
- post<T = any, R = ResData<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
15
- put<T = any, R = ResData<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
16
- patch<T = any, R = ResData<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
10
+ request<T = any>(config: AxiosRequestConfig): Promise<T>;
11
+ get<T = any, R = T>(url: string, config?: AxiosRequestConfig): Promise<T>;
12
+ delete<T = any>(url: string, config?: AxiosRequestConfig): Promise<T>;
13
+ head<T = any>(url: string, config?: AxiosRequestConfig): Promise<T>;
14
+ post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<T>;
15
+ put<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<T>;
16
+ patch<T = any>(url: string, data?: any, config?: AxiosRequestConfig): Promise<T>;
17
17
  }
18
18
  export declare const api: IAxiosInstance;
@@ -3,16 +3,26 @@ export declare const UNLOGIN_APIS: {
3
3
  CODE: string;
4
4
  TENANDCODE: string;
5
5
  REGISTER: string;
6
+ LOGIN_CAPTCHA: string;
6
7
  CAPTCHA: string;
7
8
  SAAS: string;
9
+ COUNTRY_LIST: string;
10
+ COUNTRY_PROVINCE_LIST: string;
11
+ ENTERPRISE_REGISTER: string;
12
+ ENTERPRISE_REGISTER_CAPTCHA: string;
8
13
  };
9
14
  export declare const URLS: {
10
15
  FORGET_PWD: string;
11
16
  CODE: string;
12
17
  TENANDCODE: string;
13
18
  REGISTER: string;
19
+ LOGIN_CAPTCHA: string;
14
20
  CAPTCHA: string;
15
21
  SAAS: string;
22
+ COUNTRY_LIST: string;
23
+ COUNTRY_PROVINCE_LIST: string;
24
+ ENTERPRISE_REGISTER: string;
25
+ ENTERPRISE_REGISTER_CAPTCHA: string;
16
26
  RESET_PWD: string;
17
27
  SAAS_INFO: string;
18
28
  QRCODE: string;
@@ -20,6 +30,8 @@ export declare const URLS: {
20
30
  ModifyPhoneAndEmail: string;
21
31
  USER_INFO: string;
22
32
  USER_INFO_V1: string;
33
+ USER_INFO_V3: string;
34
+ USER_CAPTCHA: string;
23
35
  NOTICE_QUERY_LIST_GET: string;
24
36
  NOTICE_HANDLE_READ_PUT: string;
25
37
  NOTICE_DELETE_DELETE: string;
@@ -30,6 +42,12 @@ export declare const URLS: {
30
42
  ENTERPRISES_LIST: string;
31
43
  ENTERPRISES_DEFAULT: string;
32
44
  ENTERPRISES_SWITCHER: string;
45
+ PROJECT_LIST: string;
46
+ PROJECT_SWITCH: string;
47
+ ACCOUNT_AVATAR: string;
48
+ UPLOAD_STEP1: string;
49
+ UPLOAD_STEP3: string;
50
+ UPLOAD_STEP4: string;
33
51
  LOGIN: string;
34
52
  LOGOUT: string;
35
53
  };
@@ -1 +1,4 @@
1
- export default function Com403(): JSX.Element;
1
+ export default function Com403(props: {
2
+ title?: string | boolean;
3
+ description?: string;
4
+ }): JSX.Element;
@@ -1,2 +1,5 @@
1
- declare const Logo: () => JSX.Element;
1
+ import React from "react";
2
+ declare const Logo: (props: {
3
+ style?: React.CSSProperties;
4
+ }) => JSX.Element;
2
5
  export default Logo;
@@ -1,4 +1,7 @@
1
- declare const UserName: ({ label }: {
2
- label?: any;
3
- }) => JSX.Element;
1
+ import React from 'react';
2
+ interface UserNameProps {
3
+ label?: React.ReactNode;
4
+ showCountryCode?: boolean;
5
+ }
6
+ declare const UserName: (props: UserNameProps) => JSX.Element;
4
7
  export default UserName;
@@ -0,0 +1,6 @@
1
+ import { InputProps } from "antd";
2
+ interface VerifyCodeInputProps extends InputProps {
3
+ sendVerifyCode(secureKey: string): Promise<boolean | undefined>;
4
+ }
5
+ export default function VerifyCodeInput(props: VerifyCodeInputProps): JSX.Element;
6
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { FormInstance } from 'antd';
2
2
  declare const VerifyCode: ({ form, action, }: {
3
3
  form: FormInstance;
4
- action: 'forgot' | 'register';
4
+ action: 'forgot' | 'register' | 'login';
5
5
  }) => JSX.Element;
6
6
  export default VerifyCode;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ImageUploadProps } from './interface';
3
+ declare const ImageUpload: React.FC<ImageUploadProps>;
4
+ export default ImageUpload;
@@ -0,0 +1 @@
1
+ export declare const getFileNameFromURL: (url: string) => string;
@@ -1 +1,10 @@
1
- export default function LayoutHeader(props: any): JSX.Element;
1
+ import React from "react";
2
+ export default function LayoutHeader(props: {
3
+ style: React.CSSProperties;
4
+ title: string;
5
+ logo: string;
6
+ menus: any[];
7
+ layoutMode: string;
8
+ requiredProject: boolean;
9
+ isSysSettings: boolean;
10
+ }): JSX.Element;
@@ -4,5 +4,6 @@ import { IMenu } from "@/components/BLayout/components/Menu";
4
4
  declare const HorizontalMenu: React.FC<MenuProps & {
5
5
  items: IMenu[];
6
6
  showHistory?: boolean;
7
+ layoutMode?: string;
7
8
  }>;
8
9
  export default HorizontalMenu;
@@ -1,7 +1,10 @@
1
+ import { MutableRefObject } from "react";
1
2
  export declare const modifySelectedMenu: (path: string) => void;
2
3
  export default function SiteMenu(props: {
3
4
  collapsed?: boolean;
4
5
  isInSider?: boolean;
5
6
  className?: string;
7
+ layoutMode?: string;
8
+ eleRef?: MutableRefObject<HTMLDivElement>;
6
9
  menus: any[];
7
10
  }): JSX.Element;
@@ -3,6 +3,7 @@ interface LayoutSiderProps {
3
3
  title: string;
4
4
  menus: any[];
5
5
  isSubSider?: boolean;
6
+ requiredProject?: boolean;
6
7
  }
7
8
  export default function LayoutSider(props: LayoutSiderProps): JSX.Element;
8
9
  export {};
@@ -1,10 +1,6 @@
1
1
  import React from "react";
2
- import { PopoverProps } from "antd";
3
- interface AppDownloadProps extends PopoverProps {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- icon?: React.ReactNode;
7
- renderTxt?(): React.ReactNode;
2
+ import { NavItemProps } from "../NavItem";
3
+ interface AppDownloadProps extends NavItemProps {
8
4
  renderContent?(info: {
9
5
  tip: string;
10
6
  url: string;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { PopoverProps } from "antd";
3
3
  interface DynamicNavsProps extends Omit<PopoverProps, 'content'> {
4
4
  isInAsider?: boolean;
5
+ afterSlot?: React.ReactNode;
5
6
  renderTxt?(): any;
6
7
  renderCollapsedTxt?(): any;
7
8
  }
@@ -1,11 +1,12 @@
1
1
  import React from "react";
2
2
  import { MenuProps, PopoverProps } from "antd";
3
- interface NavItemProps extends Omit<PopoverProps, 'content'> {
3
+ export interface NavItemProps extends Omit<PopoverProps, 'content'> {
4
4
  className?: string;
5
5
  style?: React.CSSProperties;
6
6
  icon?: React.ReactNode;
7
7
  url?: string;
8
8
  menu?: MenuProps;
9
+ enableEllipsis?: boolean;
9
10
  renderTxt?(): React.ReactNode;
10
11
  renderPopupContent?(): React.ReactNode;
11
12
  onClick?(): void;
@@ -0,0 +1,4 @@
1
+ export default function ProjectSelect(props: {
2
+ aside?: boolean;
3
+ collapsed?: boolean;
4
+ }): JSX.Element;
@@ -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,8 @@
1
+ import React from "react";
2
+ export declare const AvatarSvg: (props: {
3
+ className?: string;
4
+ }) => JSX.Element;
5
+ export default function UserAvatar(props: {
6
+ avatar?: string;
7
+ style?: React.CSSProperties;
8
+ }): JSX.Element;
@@ -8,6 +8,7 @@ interface UserAccountProps extends PopoverProps {
8
8
  className?: string;
9
9
  style?: React.CSSProperties;
10
10
  avatar?: string;
11
+ avatarStyle?: React.CSSProperties;
11
12
  renderTxt?(user: UserInfo): React.ReactNode;
12
13
  renderContent?(user: UserInfo): React.ReactNode;
13
14
  }
@@ -1,4 +1,6 @@
1
1
  import { LayoutProps } from "@/components/Layout/interface";
2
2
  export default function AntdLayout(props: Partial<LayoutProps & {
3
3
  children: any;
4
+ requiredProject: boolean;
5
+ isSysSettings: boolean;
4
6
  }>): JSX.Element;
@@ -1,4 +1,5 @@
1
- import { IMenu } from "@/components/BLayout/components/Menu";
1
+ import { IMenu } from "../BLayout/components/Menu";
2
+ import { ProjectInfo } from "./antd/components/ProjectSelect/useProjectInfo";
2
3
  export interface LayoutProps {
3
4
  layoutConfig: {
4
5
  mode: 'LR' | 'TB' | 'TL';
@@ -11,6 +12,9 @@ export interface LayoutProps {
11
12
  logo: string;
12
13
  bgImage: string;
13
14
  menus: Array<IMenu>;
15
+ selectedMenu: IMenu;
16
+ isEmpty: boolean;
17
+ projectList: ProjectInfo[];
14
18
  currentLanguage: string;
15
19
  supportLanguages: Array<{
16
20
  label: string;
@@ -6,6 +6,7 @@ export interface BreadcrumbInfo {
6
6
  name?: string;
7
7
  path?: string;
8
8
  render?(eleTitle: HTMLDivElement): React.ReactNode;
9
+ goBack?(): void;
9
10
  }
10
11
  export type BreadcrumbInfoInput = {
11
12
  type: 'auto' | 'root';
@@ -20,6 +21,15 @@ export type BreadcrumbInfoInput = {
20
21
  name: string;
21
22
  path: string;
22
23
  };
24
+ export type BreadcrumbActions = {
25
+ activeKey?: string;
26
+ onClick?(key: string): void;
27
+ options: Array<{
28
+ label: string;
29
+ value: string;
30
+ tooltip: string;
31
+ }>;
32
+ };
23
33
  interface MenuEntry {
24
34
  micro_app_name: string;
25
35
  oem_micro_app_id: string;
@@ -38,7 +48,8 @@ export declare function initHeaderInfoWithRouterChange(pathname: string, prevMic
38
48
  export declare function useHeader(): {
39
49
  prevMicroAppInfo: React.MutableRefObject<PrevMicroAppInfo>;
40
50
  headerInfo: BreadcrumbInfo[];
41
- setBreadcrumb: (breadcrumbInfos?: BreadcrumbInfoInput[]) => void;
51
+ actionsInfo: BreadcrumbActions;
52
+ setBreadcrumb: (breadcrumbInfos?: BreadcrumbInfoInput[], actions?: BreadcrumbActions) => void;
42
53
  };
43
54
  export type IBdbInfo = BreadcrumbInfo[];
44
55
  /**
@@ -48,6 +59,7 @@ export interface IMdb {
48
59
  bdbInfo: IBdbInfo;
49
60
  bdbProps?: BreadcrumbProps;
50
61
  itemBdbProps?: BreadcrumbItemProps;
62
+ actionsInfo?: BreadcrumbActions;
51
63
  hooks?: {
52
64
  /**
53
65
  * 功能:修改面包屑数据
@@ -55,5 +67,8 @@ export interface IMdb {
55
67
  modify: (bdbInfo: IBdbInfo) => void;
56
68
  };
57
69
  }
58
- export default function Header({ bdbInfo, bdbProps, itemBdbProps, hooks, }: IMdb): JSX.Element;
70
+ export declare const ArrowLeftIcon: (props: {
71
+ onClick?(): void;
72
+ }) => JSX.Element;
73
+ export default function Header(props: IMdb): JSX.Element;
59
74
  export {};
@@ -1 +1,3 @@
1
- export default function EnterpriseList(): JSX.Element;
1
+ export default function EnterpriseList(props: {
2
+ afterSwitchEnterprise?(): void;
3
+ }): JSX.Element;
@@ -1,2 +1,11 @@
1
- declare const AccountSetting: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ import { loadUserInfo } from "@/api/utils";
3
+ declare const AccountSetting: (props: {
4
+ userInfo?: Window['_SDF']['user'];
5
+ loadUserInfo?: () => Promise<void>;
6
+ extra?: {
7
+ beforeSlot?: React.FC;
8
+ afterSlot?: React.FC;
9
+ };
10
+ }) => JSX.Element;
2
11
  export default AccountSetting;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface Option {
3
+ value?: string | number | null;
4
+ label: React.ReactNode;
5
+ children?: Option[];
6
+ isLeaf?: boolean;
7
+ }
8
+ interface RegionCascaderProps {
9
+ open?: boolean;
10
+ placeholder?: string;
11
+ value?: Array<string | number>;
12
+ defaultVal?: string;
13
+ onChange?: (value: Array<string | number>, selectedOptions?: Option[]) => void;
14
+ disabled?: boolean;
15
+ className?: string;
16
+ country?: string | number;
17
+ }
18
+ export default function RegionCascader(props: RegionCascaderProps): JSX.Element;
19
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface CountryRegionCascaderProps {
3
+ value?: string[] | number[];
4
+ placeholder?: string;
5
+ className?: string;
6
+ onChange?: (value: string[] | number[]) => void;
7
+ style?: React.CSSProperties;
8
+ }
9
+ export default function CountryRegionCascader(props: CountryRegionCascaderProps): JSX.Element;
10
+ export {};
@@ -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,2 @@
1
+ import { FormProps } from "antd";
2
+ export default function EnterpriseForm(props: FormProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export default function RegisterForm(props: {
3
+ style?: React.CSSProperties;
4
+ actionRef?: React.MutableRefObject<{
5
+ getFieldsValue(): Promise<Record<string, any>>;
6
+ } | undefined>;
7
+ }): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export default function RegisterResult(props: {
2
+ detail: any;
3
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ export default function RegisterPage(props: any): JSX.Element;
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",
@@ -50,7 +53,10 @@
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",
54
60
  "setting.account": "User Account",
55
61
  "setting.phone": "Phone Number",
56
62
  "setting.email": "Mail",
@@ -67,9 +73,12 @@
67
73
  "setting.name": "Name",
68
74
  "setting.username": "Username",
69
75
  "setting.password": "Password",
70
- "setting.role": "",
76
+ "setting.role": "Roles",
71
77
  "setting.modifyPwd": "Change Password",
72
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",
73
82
  "setting.form.oldPassword.label": "Old password",
74
83
  "setting.form.oldPassword.validate.require": "Please enter the old password",
75
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)",
@@ -97,6 +106,7 @@
97
106
  "notice.StatusSelect.all": "All",
98
107
  "notice.StatusSelect.readed": "Read",
99
108
  "notice.StatusSelect.unread": "Unread",
109
+ "notice.buttons.read": "Mark as unread",
100
110
  "notice.badge.title": "Message Notifications",
101
111
  "notice.badge.type": "Notification Types",
102
112
  "notice.badge.message": "View all messages",
@@ -149,8 +159,8 @@
149
159
  "navItem.theme.light": "Light Mode",
150
160
  "navItem.theme.dark": "Dark Mode",
151
161
  "navItem.app.download": "Download APP",
152
- "appHint1": "Scan the QR code with Smart Industry App",
153
- "appHint2": "explorer more features",
162
+ "appHint1": "Scan the QR code to download the Tuya Spatial App",
163
+ "appHint2": "and explorer more features",
154
164
  "backLoginPage": "Back to Page Login",
155
165
  "backHome": "Back Home",
156
166
  "pageError": "Sorry, you are not authorized to access this page.",
@@ -169,7 +179,7 @@
169
179
  "forgot.managerRole": "Tanant admin",
170
180
  "forgot.noAccount": "No account yet?",
171
181
  "forgot.toRegister": "Tenant Register",
172
- "forgot.toRegisterNormal": "Goto Register",
182
+ "forgot.toRegisterNormal": "Register",
173
183
  "register.form.enterprise.label": "Name of organization",
174
184
  "register.form.enterprise.validate.require": "Please enter name of organization",
175
185
  "register.form.enterprise.placeholder": "Please enter name of organization",
@@ -179,6 +189,7 @@
179
189
  "relogin.tip": "The account has been logged in on another device (browser) or has expired",
180
190
  "relogin.btn": "Re-Login",
181
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.",
182
193
  "microApp.expired.result.title1": "You have not purchased this micro-app.",
183
194
  "microApp.expired.result.title2": "Micro-app has expired.",
184
195
  "microApp.expired.result.title3": "SaaS has expired.",
@@ -194,8 +205,16 @@
194
205
  "microApp.purchaseModal.title": "Solution selection",
195
206
  "global.saas.expired.tips1": "Your SaaS service has expired. To continue using it, please visit the Tuya Developer Platform to renew your subscription.",
196
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",
197
211
  "enterprise.meta.status.current": "Current",
198
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",
199
218
  "enterprise.meta.status.permanent": "Permanent",
200
219
  "enterprise.meta.type.brander": "Industry Merchants",
201
220
  "enterprise.meta.type.channel": "Channel Partners",
@@ -204,6 +223,42 @@
204
223
  "enterprise.field.expireDate": "Expiration Date: ",
205
224
  "enterprise.field.type": "Type: ",
206
225
  "enterprise.field.role": "Roles: ",
207
- "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"
208
263
  }
209
264
  }