@das-fed/upf-utils 6.4.0-dev.153 → 6.4.0-dev.155

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 (36) hide show
  1. package/api-services/index.js +839 -821
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +649 -653
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +727 -745
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/duty-manage/index.js +726 -740
  8. package/api-services/modules/duty-manage/index.js.gz +0 -0
  9. package/api-services/modules/enterpriseright/index.js +745 -727
  10. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  11. package/api-services/modules/gateway-edge/index.js +745 -727
  12. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  13. package/api-services/modules/index.js +920 -902
  14. package/api-services/modules/index.js.gz +0 -0
  15. package/api-services/modules/justauth/index.js +728 -746
  16. package/api-services/modules/justauth/index.js.gz +0 -0
  17. package/api-services/modules/link/index.js +727 -745
  18. package/api-services/modules/link/index.js.gz +0 -0
  19. package/api-services/modules/platformManage/index.js +737 -755
  20. package/api-services/modules/platformManage/index.js.gz +0 -0
  21. package/api-services/modules/portal/index.js +653 -649
  22. package/api-services/modules/portal/index.js.gz +0 -0
  23. package/api-services/modules/super-admin/index.js +747 -729
  24. package/api-services/modules/super-admin/index.js.gz +0 -0
  25. package/api-services/modules/supplychain-manage/index.js +727 -745
  26. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  27. package/api-services/modules/systemConfiguration/index.js +740 -726
  28. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  29. package/api-services/modules/tool/index.js +727 -745
  30. package/api-services/modules/tool/index.js.gz +0 -0
  31. package/common-tools/handle-data/index.d.ts +5 -0
  32. package/common-tools/handle-data/index.js +15 -2
  33. package/create-api-service/index.js +717 -699
  34. package/create-api-service/index.js.gz +0 -0
  35. package/esm-map.json +2 -1
  36. package/package.json +4 -4
@@ -4,3 +4,8 @@
4
4
  * @returns
5
5
  */
6
6
  export declare const isEmpty: (value: any) => boolean;
7
+ /**
8
+ * 处理多语言在打包时的数据
9
+ * @param opt
10
+ */
11
+ export declare const handleI18nData: (opt: any) => unknown;
@@ -1,4 +1,17 @@
1
- const t = (n) => n === null || typeof n > "u" || n === "";
1
+ const f = (t) => t === null || typeof t > "u" || t === "", i = async (t) => {
2
+ let { pathname: o = "back-end", langArr: l = ["zh-CN", "en"] } = t || {}, r = "", n = {};
3
+ r = "/upf/web/admin";
4
+ for (let e of l)
5
+ if (!n[e]) {
6
+ const a = await import(
7
+ /* @vite-ignore */
8
+ `${r}/i18n/${o}/${e}.js`
9
+ );
10
+ n[e] = (a == null ? void 0 : a.default) || {};
11
+ }
12
+ return n;
13
+ };
2
14
  export {
3
- t as isEmpty
15
+ i as handleI18nData,
16
+ f as isEmpty
4
17
  };