@gct-paas/core 0.1.4-dev.3 → 0.1.4-dev.5

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 (124) hide show
  1. package/dist/index.min.cjs +2 -2
  2. package/dist/index.system.min.js +4 -4
  3. package/es/controller/form/form.controller.mjs +1 -2
  4. package/es/controller/gct-form/gct-form.controller.mjs +1 -2
  5. package/es/global/gct/gct.d.ts +1 -1
  6. package/es/interface/controller/form/form.controller.mjs +1 -1
  7. package/es/interface/hooks/i-designer-hooks.mjs +1 -1
  8. package/es/interface/i-modal/i-modal.mjs +1 -1
  9. package/es/interface/i-pinia-action/i-global-actions.d.ts +4 -7
  10. package/es/interface/i-pinia-getter/i-global-getters.d.ts +1 -5
  11. package/es/modules/api-service/api-manage.mjs +1 -1
  12. package/es/modules/api-service/api-service.interface.d.ts +2 -2
  13. package/es/modules/api-service/api-service.interface.mjs +2 -2
  14. package/es/modules/api-service/api-service.mjs +1 -1
  15. package/es/modules/api-service/index.mjs +2 -4
  16. package/es/modules/env-manager/env-manager.d.ts +1 -1
  17. package/es/modules/env-manager/env-manager.interface.d.ts +1 -1
  18. package/es/modules/platform-config/useBasicSetting.d.ts +2 -2
  19. package/es/modules/platform-config/useDeploySetting.d.ts +1 -1
  20. package/es/modules/platform-config/useLoginSetting.d.ts +1 -1
  21. package/es/modules/platform-config/useOrgSetting.d.ts +1 -1
  22. package/es/modules/platform-config/useSecuritySetting.d.ts +1 -1
  23. package/es/modules/platform-config/useThemeSetting.d.ts +1 -1
  24. package/es/modules/platform-config/useWatermarkSetting.d.ts +1 -1
  25. package/es/register/designer-register/designer-register.mjs +1 -2
  26. package/es/register/render-register/render-register.mjs +1 -2
  27. package/es/store/global-store.mjs +6 -11
  28. package/es/types/index.d.ts +2 -2
  29. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -1
  30. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +1 -1
  31. package/es/utils/tools/tools.mjs +1 -2
  32. package/package.json +6 -8
  33. package/es/_virtual/_commonjs-dynamic-modules.mjs +0 -5
  34. package/es/_virtual/_commonjsHelpers.mjs +0 -44
  35. package/es/_virtual/aes.mjs +0 -3
  36. package/es/_virtual/blowfish.mjs +0 -3
  37. package/es/_virtual/cipher-core.mjs +0 -3
  38. package/es/_virtual/core.mjs +0 -3
  39. package/es/_virtual/enc-base64.mjs +0 -3
  40. package/es/_virtual/enc-base64url.mjs +0 -3
  41. package/es/_virtual/enc-utf16.mjs +0 -3
  42. package/es/_virtual/evpkdf.mjs +0 -3
  43. package/es/_virtual/format-hex.mjs +0 -3
  44. package/es/_virtual/hmac.mjs +0 -3
  45. package/es/_virtual/index.mjs +0 -7
  46. package/es/_virtual/index2.mjs +0 -7
  47. package/es/_virtual/index3.mjs +0 -3
  48. package/es/_virtual/lib-typedarrays.mjs +0 -3
  49. package/es/_virtual/md5.mjs +0 -3
  50. package/es/_virtual/mode-cfb.mjs +0 -3
  51. package/es/_virtual/mode-ctr-gladman.mjs +0 -3
  52. package/es/_virtual/mode-ctr.mjs +0 -3
  53. package/es/_virtual/mode-ecb.mjs +0 -3
  54. package/es/_virtual/mode-ofb.mjs +0 -3
  55. package/es/_virtual/pad-ansix923.mjs +0 -3
  56. package/es/_virtual/pad-iso10126.mjs +0 -3
  57. package/es/_virtual/pad-iso97971.mjs +0 -3
  58. package/es/_virtual/pad-nopadding.mjs +0 -3
  59. package/es/_virtual/pad-zeropadding.mjs +0 -3
  60. package/es/_virtual/pbkdf2.mjs +0 -3
  61. package/es/_virtual/rabbit-legacy.mjs +0 -3
  62. package/es/_virtual/rabbit.mjs +0 -3
  63. package/es/_virtual/rc4.mjs +0 -3
  64. package/es/_virtual/ripemd160.mjs +0 -3
  65. package/es/_virtual/sha1.mjs +0 -3
  66. package/es/_virtual/sha224.mjs +0 -3
  67. package/es/_virtual/sha256.mjs +0 -3
  68. package/es/_virtual/sha3.mjs +0 -3
  69. package/es/_virtual/sha384.mjs +0 -3
  70. package/es/_virtual/sha512.mjs +0 -3
  71. package/es/_virtual/tripledes.mjs +0 -3
  72. package/es/_virtual/x64-core.mjs +0 -3
  73. package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/index.mjs +0 -3
  74. package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/service/api-config.mjs +0 -8213
  75. package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/index.mjs +0 -3
  76. package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/service/api-config.mjs +0 -7156
  77. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.mjs +0 -255
  78. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.mjs +0 -492
  79. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.mjs +0 -913
  80. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.mjs +0 -824
  81. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.mjs +0 -153
  82. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.mjs +0 -165
  83. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.mjs +0 -166
  84. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.mjs +0 -153
  85. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.mjs +0 -84
  86. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.mjs +0 -160
  87. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs +0 -69
  88. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.mjs +0 -93
  89. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.mjs +0 -285
  90. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.mjs +0 -98
  91. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.mjs +0 -134
  92. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.mjs +0 -76
  93. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.mjs +0 -58
  94. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.mjs +0 -72
  95. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.mjs +0 -67
  96. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.mjs +0 -62
  97. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.mjs +0 -58
  98. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.mjs +0 -48
  99. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.mjs +0 -65
  100. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.mjs +0 -164
  101. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.mjs +0 -211
  102. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.mjs +0 -213
  103. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.mjs +0 -160
  104. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.mjs +0 -284
  105. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.mjs +0 -167
  106. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.mjs +0 -98
  107. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.mjs +0 -216
  108. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.mjs +0 -344
  109. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.mjs +0 -102
  110. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.mjs +0 -344
  111. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.mjs +0 -800
  112. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.mjs +0 -321
  113. package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +0 -541
  114. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/async-series-hook/async-series-hook.mjs +0 -73
  115. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +0 -2
  116. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs +0 -100
  117. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +0 -2
  118. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +0 -47
  119. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +0 -5
  120. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +0 -24
  121. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +0 -94
  122. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.mjs +0 -146
  123. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +0 -149
  124. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +0 -227
@@ -1,7 +1,6 @@
1
1
  import { reactive } from 'vue';
2
2
  import '../../state/index.mjs';
3
- import '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs';
4
- import { QXEvent } from '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs';
3
+ import { QXEvent } from 'qx-util';
5
4
  import { FormState } from '../../state/form/form.state.mjs';
6
5
 
7
6
  "use strict";
@@ -1,6 +1,5 @@
1
1
  import '../../state/index.mjs';
2
- import '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs';
3
- import { QXEvent } from '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs';
2
+ import { QXEvent } from 'qx-util';
4
3
  import { FormState } from '../../state/form/form.state.mjs';
5
4
 
6
5
  "use strict";
@@ -40,7 +40,7 @@ export declare class GctGlobal {
40
40
  /**
41
41
  * 全局 store 实例
42
42
  */
43
- readonly store: import('pinia').Store<"global-store", import('../../interface').IGlobalState, import('../../interface').IGlobalGetters, import('../../interface').IGlobalActions>;
43
+ readonly store: import('pinia').Store<"global-store", import('../..').IGlobalState, import('../..').IGlobalGetters, import('../..').IGlobalActions>;
44
44
  /**
45
45
  * 全局 router 工具类
46
46
  */
@@ -1,3 +1,3 @@
1
- import '../../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs';
1
+ import 'qx-util';
2
2
 
3
3
  "use strict";
@@ -1,3 +1,3 @@
1
- import '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs';
1
+ import 'qx-util';
2
2
 
3
3
  "use strict";
@@ -1,3 +1,3 @@
1
- import '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs';
1
+ import 'qx-util';
2
2
 
3
3
  "use strict";
@@ -6,12 +6,6 @@ import { ProjectName } from '../../enums';
6
6
  * @interface IGlobalActions
7
7
  */
8
8
  export interface IGlobalActions {
9
- /**
10
- * 获取应用信息, todo: 等 api 包完成后,实际类型从 api 导入
11
- *
12
- * @returns {*} {IObject}
13
- */
14
- getAppInfo(): IObject;
15
9
  /**
16
10
  * 设置项目名称
17
11
  *
@@ -35,7 +29,10 @@ export interface IGlobalActions {
35
29
  *
36
30
  * @return {Promise<IObject>} {Promise<IObject>}
37
31
  */
38
- login(): Promise<IObject>;
32
+ login(payload: {
33
+ username: string;
34
+ password: string;
35
+ }): Promise<IObject>;
39
36
  /**
40
37
  * 获取用户信息
41
38
  *
@@ -8,9 +8,5 @@ import { IGlobalState } from '../i-pinia-state/i-global-state';
8
8
  * @extends {_GettersTree<IGlobalState>}
9
9
  */
10
10
  export interface IGlobalGetters extends _GettersTree<IGlobalState> {
11
- /**
12
- * 获取应用信息,, todo: 等 api 包完成后,实际类型从 api 导入
13
- *
14
- */
15
- getAppInfo: () => IObject;
11
+ tenantList: () => IObject[];
16
12
  }
@@ -1,4 +1,4 @@
1
- import path from '../../_virtual/index2.mjs';
1
+ import path from 'path-browserify';
2
2
  import { ApiService } from './api-service.mjs';
3
3
 
4
4
  "use strict";
@@ -1,5 +1,5 @@
1
- import { ApiManage as APaasApiManage } from '@gct-paas/api-apaas';
2
- import { ApiManage as PlatformApiManage } from '@gct-paas/api-platform';
1
+ import { ApiManage as APaasApiManage } from '@gct-paas/api/apaas';
2
+ import { ApiManage as PlatformApiManage } from '@gct-paas/api/platform';
3
3
  /**
4
4
  * HTTP 响应接口
5
5
  *
@@ -1,4 +1,4 @@
1
- import '../../node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/index.mjs';
2
- import '../../node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/index.mjs';
1
+ import '@gct-paas/api/apaas';
2
+ import '@gct-paas/api/platform';
3
3
 
4
4
  "use strict";
@@ -1,4 +1,4 @@
1
- import path from '../../_virtual/index2.mjs';
1
+ import path from 'path-browserify';
2
2
  import { HttpUtil } from './http.util.mjs';
3
3
 
4
4
  "use strict";
@@ -1,10 +1,8 @@
1
- import '../../node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/index.mjs';
2
- import '../../node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/index.mjs';
1
+ import { apiConfig as apiConfig$1 } from '@gct-paas/api/apaas';
2
+ import { apiConfig } from '@gct-paas/api/platform';
3
3
  import { ApiManage } from './api-manage.mjs';
4
4
  export { BizServiceEnum, ContentTypeEnum, RequestEnum, ResultEnum } from './http.enum.mjs';
5
5
  export { HttpUtil } from './http.util.mjs';
6
- import { apiConfig } from '../../node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/service/api-config.mjs';
7
- import { apiConfig as apiConfig$1 } from '../../node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/service/api-config.mjs';
8
6
 
9
7
  "use strict";
10
8
  const api = {
@@ -1,4 +1,4 @@
1
- import { Tenant } from '@gct-paas/api-platform';
1
+ import { Tenant } from '@gct-paas/api/platform';
2
2
  import { IEnvironmentManager, EnvironmentType } from './env-manager.interface';
3
3
  /**
4
4
  * 环境管理器
@@ -1,4 +1,4 @@
1
- import { Tenant } from '@gct-paas/api-platform';
1
+ import { Tenant } from '@gct-paas/api/platform';
2
2
  /**
3
3
  * 环境类型枚举
4
4
  */
@@ -1,7 +1,7 @@
1
- import { PlatformBaseConfig, SysConfigResponse } from '@gct-paas/api-platform';
1
+ import { PlatformBaseConfig, SysConfigResponse } from '@gct-paas/api/platform';
2
2
  export declare function useBasicSetting(isPlatform?: boolean): {
3
3
  basicSetting: PlatformBaseConfig;
4
4
  loadBasicSetting: () => Promise<void>;
5
5
  setBasicSetting: (data: SysConfigResponse, transfer?: boolean) => void;
6
- postBasicSetting: () => Promise<IHttpResponse<string>>;
6
+ postBasicSetting: () => any;
7
7
  };
@@ -1,4 +1,4 @@
1
- import { SysConfigResponse } from '@gct-paas/api-platform';
1
+ import { SysConfigResponse } from '@gct-paas/api/platform';
2
2
  export declare enum DeployModeEnum {
3
3
  STANDARD = "STANDARD",// 标准部署
4
4
  INDEPENDENT_APP = "INDEPENDENT_APP"
@@ -1,4 +1,4 @@
1
- import { AuthConfig, SysConfigResponse } from '@gct-paas/api-platform';
1
+ import { AuthConfig, SysConfigResponse } from '@gct-paas/api/platform';
2
2
  export declare function useLoginSetting(): {
3
3
  loginSetting: AuthConfig;
4
4
  loadLoginSetting: () => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { OrgConfig, SysConfigResponse } from '@gct-paas/api-platform';
1
+ import { OrgConfig, SysConfigResponse } from '@gct-paas/api/platform';
2
2
  export declare function useOrgSetting(isPlatform?: boolean): {
3
3
  orgSetting: OrgConfig;
4
4
  loadOrgSetting: () => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { SecurityConfig, SysConfigResponse } from '@gct-paas/api-platform';
1
+ import { SecurityConfig, SysConfigResponse } from '@gct-paas/api/platform';
2
2
  export declare function useSecuritySetting(isPlatform?: boolean): {
3
3
  securitySetting: SecurityConfig;
4
4
  postSecuritySetting: () => Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import { ThemeSetting } from './types';
2
- import { SysConfigResponse } from '@gct-paas/api-platform';
2
+ import { SysConfigResponse } from '@gct-paas/api/platform';
3
3
  export declare function useThemeSetting(): {
4
4
  themeSetting: ThemeSetting;
5
5
  loadThemeSetting: () => Promise<void>;
@@ -1,4 +1,4 @@
1
- import { SysConfigResponse } from '@gct-paas/api-platform';
1
+ import { SysConfigResponse } from '@gct-paas/api/platform';
2
2
  export declare function useWatermarkSetting(): {
3
3
  watermarkSetting: {
4
4
  openWatermark: boolean;
@@ -1,5 +1,4 @@
1
- import '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs';
2
- import { SyncSeriesHook } from '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs';
1
+ import { SyncSeriesHook } from 'qx-util';
3
2
 
4
3
  "use strict";
5
4
  class DesignerRegister {
@@ -1,5 +1,4 @@
1
- import '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs';
2
- import { SyncSeriesHook } from '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs';
1
+ import { SyncSeriesHook } from 'qx-util';
3
2
 
4
3
  "use strict";
5
4
  class RenderRegister {
@@ -1,6 +1,6 @@
1
1
  import { defineStore } from 'pinia';
2
2
  import '../state/index.mjs';
3
- import CryptoJS from '../_virtual/index.mjs';
3
+ import CryptoJS from 'crypto-js';
4
4
  import '../utils/index.mjs';
5
5
  import { setToken } from '../utils/tools/tools.mjs';
6
6
  import { GlobalPiniaState } from '../state/global-pinia-state/global-pinia-state.mjs';
@@ -11,17 +11,11 @@ const useGlobalStore = defineStore("global-store", {
11
11
  return new GlobalPiniaState();
12
12
  },
13
13
  getters: {
14
- getAppInfo() {
15
- return this.appInfo;
16
- },
17
- getTenantList() {
14
+ tenantList() {
18
15
  return this.userInfo.tenantList || [];
19
16
  }
20
17
  },
21
18
  actions: {
22
- getAppInfo() {
23
- return this.appInfo;
24
- },
25
19
  setProjectName(name) {
26
20
  this.$state.projectName = name;
27
21
  },
@@ -31,10 +25,11 @@ const useGlobalStore = defineStore("global-store", {
31
25
  setLang(lang) {
32
26
  this.$state.lang = lang;
33
27
  },
34
- async login() {
28
+ async login(payload) {
29
+ const { username, password } = payload;
35
30
  const res = await _gct.api.platform.login.postSign({
36
- username: "gct-admin",
37
- password: CryptoJS.SHA256("123456").toString(CryptoJS.enc.Hex)
31
+ username,
32
+ password: CryptoJS.SHA256(password).toString(CryptoJS.enc.Hex)
38
33
  });
39
34
  this.$state.userInfo = res.data;
40
35
  setToken(res.data.token);
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import 'systemjs';
3
- import 'vite/types/import-meta';
3
+ import 'vite/types/importMeta.d.ts';
4
4
  import type { GctGlobal } from '../global';
5
5
  import type { ApiManage as APaasApiManage } from '@gct-paas/api-apaas';
6
- import type { ApiManage as PlatformApiManage } from '@gct-paas/api-platform';
6
+ import type { ApiManage as PlatformApiManage } from '@gct-paas/api/platform';
7
7
 
8
8
  declare module 'pluralize';
9
9
 
@@ -1,4 +1,4 @@
1
- import path from '../../_virtual/index2.mjs';
1
+ import path from 'path-browserify';
2
2
  import { PLUGIN_BASE_URL } from '../../constants/index.mjs';
3
3
  import '../../enums/index.mjs';
4
4
  import { Platform } from '../../enums/page-designer/widget.mjs';
@@ -1,4 +1,4 @@
1
- import path from '../../_virtual/index2.mjs';
1
+ import path from 'path-browserify';
2
2
 
3
3
  "use strict";
4
4
  class PluginStaticResource {
@@ -1,8 +1,7 @@
1
- import '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs';
1
+ import { getCookie, setCookie, clearCookie } from 'qx-util';
2
2
  import { mergeWith, cloneDeep, unionWith, isEqual } from 'lodash-es';
3
3
  import '../../constants/index.mjs';
4
4
  import '../../enums/index.mjs';
5
- import { getCookie, setCookie, clearCookie } from '../../node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs';
6
5
  import { CoreConst } from '../../constants/core.mjs';
7
6
  import { TIMEZONE_KEY } from '../../enums/cacheEnum.mjs';
8
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core",
3
- "version": "0.1.4-dev.3",
3
+ "version": "0.1.4-dev.5",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心包",
6
6
  "main": "dist/index.min.cjs",
@@ -47,8 +47,7 @@
47
47
  "gen-api:platform": "gct-paas gen-api --url=http://paas.paasdev.gct-paas.com --tag=platform -t ../cli/hbs-temp -o ./src/service/gct-platform && prettier './src/service/gct-platform' --write"
48
48
  },
49
49
  "dependencies": {
50
- "@gct-paas/api-apaas": "0.0.2-dev.4",
51
- "@gct-paas/api-platform": "0.0.2-dev.4",
50
+ "@gct-paas/api": "0.1.0-dev.1",
52
51
  "@vueuse/core": "^13.7.0",
53
52
  "async-validator": "^4.2.5",
54
53
  "axios": "^1.11.0",
@@ -65,8 +64,8 @@
65
64
  "vue-router": "^4.5.1"
66
65
  },
67
66
  "devDependencies": {
68
- "@gct-paas/build": "0.1.4-dev.3",
69
- "@gct-paas/cli": "0.1.4-dev.3",
67
+ "@gct-paas/build": "0.1.4-dev.5",
68
+ "@gct-paas/cli": "0.1.4-dev.5",
70
69
  "@types/crypto-js": "^4.2.2",
71
70
  "@types/lodash-es": "^4.17.12",
72
71
  "@types/path-browserify": "^1.0.3",
@@ -84,9 +83,8 @@
84
83
  "vitest": "^3.2.4"
85
84
  },
86
85
  "peerDependencies": {
87
- "@gct-paas/api-apaas": "*",
88
- "@gct-paas/api-platform": "*",
86
+ "@gct-paas/api": "*",
89
87
  "vue": "^3.x"
90
88
  },
91
- "gitHead": "caa65b07a6bbfb27d41911da2f5459567db38b1d"
89
+ "gitHead": "6fd4f6f4c3a0e1bd1fc4eea78fa9c2760e2219be"
92
90
  }
@@ -1,5 +0,0 @@
1
- function commonjsRequire(path) {
2
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
3
- }
4
-
5
- export { commonjsRequire };
@@ -1,44 +0,0 @@
1
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
-
3
- function getDefaultExportFromCjs (x) {
4
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
- }
6
-
7
- function getDefaultExportFromNamespaceIfPresent (n) {
8
- return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
9
- }
10
-
11
- function getDefaultExportFromNamespaceIfNotNamed (n) {
12
- return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
13
- }
14
-
15
- function getAugmentedNamespace(n) {
16
- if (Object.prototype.hasOwnProperty.call(n, '__esModule')) return n;
17
- var f = n.default;
18
- if (typeof f == "function") {
19
- var a = function a () {
20
- var isInstance = false;
21
- try {
22
- isInstance = this instanceof a;
23
- } catch {}
24
- if (isInstance) {
25
- return Reflect.construct(f, arguments, this.constructor);
26
- }
27
- return f.apply(this, arguments);
28
- };
29
- a.prototype = f.prototype;
30
- } else a = {};
31
- Object.defineProperty(a, '__esModule', {value: true});
32
- Object.keys(n).forEach(function (k) {
33
- var d = Object.getOwnPropertyDescriptor(n, k);
34
- Object.defineProperty(a, k, d.get ? d : {
35
- enumerable: true,
36
- get: function () {
37
- return n[k];
38
- }
39
- });
40
- });
41
- return a;
42
- }
43
-
44
- export { commonjsGlobal, getAugmentedNamespace, getDefaultExportFromCjs, getDefaultExportFromNamespaceIfNotNamed, getDefaultExportFromNamespaceIfPresent };
@@ -1,3 +0,0 @@
1
- var aes = {exports: {}};
2
-
3
- export { aes as __module };
@@ -1,3 +0,0 @@
1
- var blowfish = {exports: {}};
2
-
3
- export { blowfish as __module };
@@ -1,3 +0,0 @@
1
- var cipherCore = {exports: {}};
2
-
3
- export { cipherCore as __module };
@@ -1,3 +0,0 @@
1
- var core = {exports: {}};
2
-
3
- export { core as __module };
@@ -1,3 +0,0 @@
1
- var encBase64 = {exports: {}};
2
-
3
- export { encBase64 as __module };
@@ -1,3 +0,0 @@
1
- var encBase64url = {exports: {}};
2
-
3
- export { encBase64url as __module };
@@ -1,3 +0,0 @@
1
- var encUtf16 = {exports: {}};
2
-
3
- export { encUtf16 as __module };
@@ -1,3 +0,0 @@
1
- var evpkdf = {exports: {}};
2
-
3
- export { evpkdf as __module };
@@ -1,3 +0,0 @@
1
- var formatHex = {exports: {}};
2
-
3
- export { formatHex as __module };
@@ -1,3 +0,0 @@
1
- var hmac = {exports: {}};
2
-
3
- export { hmac as __module };
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requireCryptoJs } from '../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs';
3
-
4
- var cryptoJsExports = requireCryptoJs();
5
- var CryptoJS = /*@__PURE__*/getDefaultExportFromCjs(cryptoJsExports);
6
-
7
- export { CryptoJS as default };
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
- import { __require as requirePathBrowserify } from '../node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs';
3
-
4
- var pathBrowserifyExports = requirePathBrowserify();
5
- var path = /*@__PURE__*/getDefaultExportFromCjs(pathBrowserifyExports);
6
-
7
- export { path as default };
@@ -1,3 +0,0 @@
1
- var cryptoJs = {exports: {}};
2
-
3
- export { cryptoJs as __module };
@@ -1,3 +0,0 @@
1
- var libTypedarrays = {exports: {}};
2
-
3
- export { libTypedarrays as __module };
@@ -1,3 +0,0 @@
1
- var md5 = {exports: {}};
2
-
3
- export { md5 as __module };
@@ -1,3 +0,0 @@
1
- var modeCfb = {exports: {}};
2
-
3
- export { modeCfb as __module };
@@ -1,3 +0,0 @@
1
- var modeCtrGladman = {exports: {}};
2
-
3
- export { modeCtrGladman as __module };
@@ -1,3 +0,0 @@
1
- var modeCtr = {exports: {}};
2
-
3
- export { modeCtr as __module };
@@ -1,3 +0,0 @@
1
- var modeEcb = {exports: {}};
2
-
3
- export { modeEcb as __module };
@@ -1,3 +0,0 @@
1
- var modeOfb = {exports: {}};
2
-
3
- export { modeOfb as __module };
@@ -1,3 +0,0 @@
1
- var padAnsix923 = {exports: {}};
2
-
3
- export { padAnsix923 as __module };
@@ -1,3 +0,0 @@
1
- var padIso10126 = {exports: {}};
2
-
3
- export { padIso10126 as __module };
@@ -1,3 +0,0 @@
1
- var padIso97971 = {exports: {}};
2
-
3
- export { padIso97971 as __module };
@@ -1,3 +0,0 @@
1
- var padNopadding = {exports: {}};
2
-
3
- export { padNopadding as __module };
@@ -1,3 +0,0 @@
1
- var padZeropadding = {exports: {}};
2
-
3
- export { padZeropadding as __module };
@@ -1,3 +0,0 @@
1
- var pbkdf2 = {exports: {}};
2
-
3
- export { pbkdf2 as __module };
@@ -1,3 +0,0 @@
1
- var rabbitLegacy = {exports: {}};
2
-
3
- export { rabbitLegacy as __module };
@@ -1,3 +0,0 @@
1
- var rabbit = {exports: {}};
2
-
3
- export { rabbit as __module };
@@ -1,3 +0,0 @@
1
- var rc4 = {exports: {}};
2
-
3
- export { rc4 as __module };
@@ -1,3 +0,0 @@
1
- var ripemd160 = {exports: {}};
2
-
3
- export { ripemd160 as __module };
@@ -1,3 +0,0 @@
1
- var sha1 = {exports: {}};
2
-
3
- export { sha1 as __module };
@@ -1,3 +0,0 @@
1
- var sha224 = {exports: {}};
2
-
3
- export { sha224 as __module };
@@ -1,3 +0,0 @@
1
- var sha256 = {exports: {}};
2
-
3
- export { sha256 as __module };
@@ -1,3 +0,0 @@
1
- var sha3 = {exports: {}};
2
-
3
- export { sha3 as __module };
@@ -1,3 +0,0 @@
1
- var sha384 = {exports: {}};
2
-
3
- export { sha384 as __module };
@@ -1,3 +0,0 @@
1
- var sha512 = {exports: {}};
2
-
3
- export { sha512 as __module };
@@ -1,3 +0,0 @@
1
- var tripledes = {exports: {}};
2
-
3
- export { tripledes as __module };
@@ -1,3 +0,0 @@
1
- var x64Core = {exports: {}};
2
-
3
- export { x64Core as __module };
@@ -1,3 +0,0 @@
1
- export { apiConfig } from './service/api-config.mjs';
2
-
3
- "use strict";