udxcms 1.0.15 → 1.0.17

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.
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = default_1;
4
1
  /*
5
2
  * @Descripttion:
6
3
  * @version:
@@ -18,7 +15,7 @@ function addZore(num) {
18
15
  * @param {String} separator // 连接符
19
16
  * @returns {String}
20
17
  */
21
- function default_1(time = 0, separator = "/") {
18
+ export default function (time = 0, separator = "/") {
22
19
  if (!time)
23
20
  return "";
24
21
  if (typeof time === 'string') {
@@ -1,13 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = default_1;
4
1
  const decimalFunc = function (val, decimal) {
5
2
  let reg = new RegExp(`^(\\d+)\\.(\\d{0,${decimal}}).*$`);
6
3
  val = val.toString().replace(reg, "$1.$2");
7
4
  // val = Number(val).toFixed(decimal)
8
5
  return val;
9
6
  };
10
- function default_1(num = 0, decimal = 0, addZero = true) {
7
+ export default function (num = 0, decimal = 0, addZero = true) {
11
8
  let initVal = decimalFunc(num, decimal);
12
9
  if (!Number(initVal) && decimal < 6)
13
10
  initVal = decimalFunc(num, 6);
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /*
3
2
  * @Author: lewis lewis@everylink.ai
4
3
  * @Date: 2025-09-17 10:50:27
@@ -8,77 +7,37 @@
8
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
9
8
  */
10
9
  // @ts-nocheck
11
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
12
- if (k2 === undefined) k2 = k;
13
- var desc = Object.getOwnPropertyDescriptor(m, k);
14
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
15
- desc = { enumerable: true, get: function() { return m[k]; } };
16
- }
17
- Object.defineProperty(o, k2, desc);
18
- }) : (function(o, m, k, k2) {
19
- if (k2 === undefined) k2 = k;
20
- o[k2] = m[k];
21
- }));
22
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
23
- Object.defineProperty(o, "default", { enumerable: true, value: v });
24
- }) : function(o, v) {
25
- o["default"] = v;
26
- });
27
- var __importStar = (this && this.__importStar) || (function () {
28
- var ownKeys = function(o) {
29
- ownKeys = Object.getOwnPropertyNames || function (o) {
30
- var ar = [];
31
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
32
- return ar;
33
- };
34
- return ownKeys(o);
35
- };
36
- return function (mod) {
37
- if (mod && mod.__esModule) return mod;
38
- var result = {};
39
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
40
- __setModuleDefault(result, mod);
41
- return result;
42
- };
43
- })();
44
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
45
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
46
- };
47
- Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.localStorageConstant = exports.api = exports.cmsStore = exports.cmsRouter = exports.cmsUtils = exports.cmsViews = exports.cmsComponents = void 0;
49
- exports.setEventCenter = setEventCenter;
50
- exports.getEventCenter = getEventCenter;
51
- exports.init = init;
52
10
  // 导入必要的模块
53
- const cmsComponents = __importStar(require("./components"));
54
- exports.cmsComponents = cmsComponents;
55
- const cmsRouter = __importStar(require("./router"));
56
- exports.cmsRouter = cmsRouter;
57
- const cmsStore = __importStar(require("./store"));
58
- exports.cmsStore = cmsStore;
59
- const localStorageConstant = __importStar(require("./libs/localStorageConstant"));
60
- exports.localStorageConstant = localStorageConstant;
11
+ import * as cmsComponents from './components';
12
+ import * as cmsRouter from './router';
13
+ import * as cmsStore from './store';
14
+ import * as localStorageConstant from './libs/localStorageConstant';
61
15
  // 定义内部事件事务中心
62
16
  let eventCenter = {};
63
17
  /**
64
18
  * 设置事件事务中心
65
19
  * @param {Object} events - 事件对象
66
20
  */
67
- function setEventCenter(events) {
21
+ export function setEventCenter(events) {
68
22
  eventCenter = events;
69
23
  }
70
24
  /**
71
25
  * 获取事件事务中心
72
26
  * @returns {Object} 事件事务中心对象
73
27
  */
74
- function getEventCenter() {
28
+ export function getEventCenter() {
75
29
  return eventCenter;
76
30
  }
77
- exports.cmsViews = __importStar(require("./views"));
78
- exports.cmsUtils = __importStar(require("./utils"));
79
- exports.api = __importStar(require("./api"));
80
- __exportStar(require("./utils"), exports);
81
- __exportStar(require("./api"), exports);
31
+ // 重新导出模块 - 使用之前导入的模块重新导出
32
+ export { cmsComponents };
33
+ export * as cmsViews from './views';
34
+ export * as cmsUtils from './utils';
35
+ export { cmsRouter };
36
+ export { cmsStore };
37
+ export * as api from './api';
38
+ export * from './utils';
39
+ export * from './api';
40
+ export { localStorageConstant };
82
41
  /**
83
42
  * 初始化 UDX CMS 相关功能
84
43
  * 此方法可用于执行 UDX CMS 的初始化逻辑
@@ -92,13 +51,15 @@ __exportStar(require("./api"), exports);
92
51
  * @param {Function} options.onStoreRegistered - 状态管理注册完成回调
93
52
  * @param {Object} options.events - 事件对象
94
53
  */
95
- function init({ Vue, router, store, Parent, onComponentsRegistered, onRoutesRegistered, onStoreRegistered, events }) {
54
+ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRoutesRegistered, onStoreRegistered, events }) {
96
55
  // 设置事件事务中心
97
56
  if (events) {
98
57
  setEventCenter(events);
99
58
  }
100
59
  // 这里可以添加 UDX CMS 的初始化逻辑
101
60
  console.log('UDX CMS 初始化');
61
+ console.log('传入的 store 实例:', store);
62
+ console.log('cmsStore 内容:', cmsStore);
102
63
  // 注册组件到 Vue 实例
103
64
  // cmsComponents 已经通过上面的 `export * as cmsComponents from './components'` 导入
104
65
  // 所以这里可以直接使用
@@ -125,8 +86,22 @@ function init({ Vue, router, store, Parent, onComponentsRegistered, onRoutesRegi
125
86
  console.log('注册模块:', cmsStore);
126
87
  Object.keys(cmsStore).map(v => {
127
88
  // 使用原始模块名注册,保持命名一致性
128
- console.log('注册模块:', v);
129
- store.registerModule(v, cmsStore[v], { preserveState: true });
89
+ console.log('注册模块:', v, cmsStore[v]);
90
+ // 确保模块有正确的结构
91
+ const moduleConfig = cmsStore[v];
92
+ if (moduleConfig && typeof moduleConfig === 'object') {
93
+ // 检查是否是默认导出
94
+ const actualModule = moduleConfig.default || moduleConfig;
95
+ if (actualModule.state || actualModule.mutations || actualModule.actions) {
96
+ store.registerModule(v, actualModule, { preserveState: true });
97
+ }
98
+ else {
99
+ console.warn(`模块 ${v} 结构不正确:`, actualModule);
100
+ }
101
+ }
102
+ else {
103
+ console.warn(`模块 ${v} 不是有效对象:`, moduleConfig);
104
+ }
130
105
  });
131
106
  // 调用外部注册回调
132
107
  onStoreRegistered && onStoreRegistered();
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TOKEN = exports.WITHDRAWADDRESS = exports.INVITATION = exports.COINS = exports.STAKING = exports.REFERINFO = exports.SUBMITINFO = exports.CURADDRESS = exports.LOGINTIME = exports.IDENTIFIERS = exports.LOCATION = exports.CURRENCY = exports.USERINFO = exports.COUNTRYCODE = exports.AREACODE = exports.RESETINFO = exports.REGISTERINFO = exports.loginType = void 0;
4
1
  /*
5
2
  * @Author: Sneed
6
3
  * @Date: 2020-10-28 16:01:46
@@ -8,21 +5,21 @@ exports.TOKEN = exports.WITHDRAWADDRESS = exports.INVITATION = exports.COINS = e
8
5
  * @LastEditors: Sneed
9
6
  * @Description: localStorage key manage
10
7
  */
11
- exports.loginType = "loginType"; // Sign up for jump login
12
- exports.REGISTERINFO = "registerInfo"; // jump to Verification Code use
13
- exports.RESETINFO = "resetInfo"; // the reset information for submit
14
- exports.AREACODE = 'area'; // the usual areacode
15
- exports.COUNTRYCODE = 'country'; // the usual areacode
16
- exports.USERINFO = 'userInfo'; // this information for userInfo
17
- exports.CURRENCY = 'currency'; // this information for location
18
- exports.LOCATION = 'location'; // this information for userInfo
19
- exports.IDENTIFIERS = 'identifiers'; // this information for userInfo
20
- exports.LOGINTIME = 'loginTime'; // the time of login in
21
- exports.CURADDRESS = 'curAddress';
22
- exports.SUBMITINFO = 'submitInfo';
23
- exports.REFERINFO = 'referinfo';
24
- exports.STAKING = 'staking';
25
- exports.COINS = 'coins';
26
- exports.INVITATION = 'invitation'; // this invitation_code
27
- exports.WITHDRAWADDRESS = 'withdrawAddress'; // withdraw address
28
- exports.TOKEN = "TOKEN"; // save token
8
+ export const loginType = "loginType"; // Sign up for jump login
9
+ export const REGISTERINFO = "registerInfo"; // jump to Verification Code use
10
+ export const RESETINFO = "resetInfo"; // the reset information for submit
11
+ export const AREACODE = 'area'; // the usual areacode
12
+ export const COUNTRYCODE = 'country'; // the usual areacode
13
+ export const USERINFO = 'userInfo'; // this information for userInfo
14
+ export const CURRENCY = 'currency'; // this information for location
15
+ export const LOCATION = 'location'; // this information for userInfo
16
+ export const IDENTIFIERS = 'identifiers'; // this information for userInfo
17
+ export const LOGINTIME = 'loginTime'; // the time of login in
18
+ export const CURADDRESS = 'curAddress';
19
+ export const SUBMITINFO = 'submitInfo';
20
+ export const REFERINFO = 'referinfo';
21
+ export const STAKING = 'staking';
22
+ export const COINS = 'coins';
23
+ export const INVITATION = 'invitation'; // this invitation_code
24
+ export const WITHDRAWADDRESS = 'withdrawAddress'; // withdraw address
25
+ export const TOKEN = "TOKEN"; // save token
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  const themeMixin = {
4
2
  computed: {
5
3
  themeMode() {
@@ -29,4 +27,4 @@ const themeMixin = {
29
27
  }
30
28
  }
31
29
  };
32
- exports.default = themeMixin;
30
+ export default themeMixin;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /*
3
2
  * @Author: lewis lewis@everylink.ai
4
3
  * @Date: 2024-01-19 11:00:05
@@ -7,7 +6,6 @@
7
6
  * @FilePath: /localTools/Users/apple/web-front/web-front/src/common_modules/cms-submodule/mixins/themeMixin.js
8
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
9
8
  */
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
9
  const themeMixin = {
12
10
  data() {
13
11
  return {
@@ -42,4 +40,4 @@ const themeMixin = {
42
40
  }
43
41
  }
44
42
  };
45
- exports.default = themeMixin;
43
+ export default themeMixin;
@@ -1,41 +1,3 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
1
  /*
40
2
  * @Author:
41
3
  * @Date: 2021-01-15 10:24:19
@@ -44,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
44
6
  * @Description:
45
7
  */
46
8
  // @ts-nocheck
47
- const index_1 = __importDefault(require("../config/index"));
48
- exports.default = [
9
+ import conf from '../config/index';
10
+ export default [
49
11
  // {
50
12
  // path: "/component",
51
13
  // name: "baseComponent",
@@ -57,7 +19,7 @@ exports.default = [
57
19
  {
58
20
  path: "/cms/terms",
59
21
  name: "terms",
60
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/term.vue"))),
22
+ component: () => import("../views/customService/term.vue"),
61
23
  meta: {
62
24
  notLogin: true,
63
25
  },
@@ -73,7 +35,7 @@ exports.default = [
73
35
  {
74
36
  path: "/cms/vote",
75
37
  name: "vote",
76
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/vote.vue"))),
38
+ component: () => import("../views/customService/vote.vue"),
77
39
  meta: {
78
40
  notLogin: true,
79
41
  },
@@ -81,7 +43,7 @@ exports.default = [
81
43
  {
82
44
  path: "/cms/whitepaper",
83
45
  name: "whitepaper",
84
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/whitepaper.vue"))),
46
+ component: () => import("../views/customService/whitepaper.vue"),
85
47
  meta: {
86
48
  notLogin: true,
87
49
  },
@@ -89,14 +51,14 @@ exports.default = [
89
51
  {
90
52
  path: "/login_wallet",
91
53
  name: "login_wallet",
92
- component: () => Promise.resolve().then(() => __importStar(require("../views/login/login_wallet.vue"))),
54
+ component: () => import("../views/login/login_wallet.vue"),
93
55
  meta: {
94
56
  notLogin: true,
95
57
  },
96
58
  beforeEnter: (to, from, next) => {
97
59
  // ...
98
60
  let type = to.params && to.params.type;
99
- if (!index_1.default.notNeedLoginRoute.includes(from.name) || type) {
61
+ if (!conf.notNeedLoginRoute.includes(from.name) || type) {
100
62
  // console.log("login_wallet", to, from);
101
63
  next();
102
64
  }
@@ -105,7 +67,7 @@ exports.default = [
105
67
  {
106
68
  path: "/error404",
107
69
  name: "error404",
108
- component: () => Promise.resolve().then(() => __importStar(require("../views/error/error404.vue"))),
70
+ component: () => import("../views/error/error404.vue"),
109
71
  meta: {
110
72
  notLogin: true,
111
73
  },
@@ -113,7 +75,7 @@ exports.default = [
113
75
  {
114
76
  path: "/error500",
115
77
  name: "error500",
116
- component: () => Promise.resolve().then(() => __importStar(require("../views/error/error500.vue"))),
78
+ component: () => import("../views/error/error500.vue"),
117
79
  meta: {
118
80
  notLogin: true,
119
81
  },
@@ -121,7 +83,7 @@ exports.default = [
121
83
  {
122
84
  path: "/academy",
123
85
  name: "academy",
124
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/academy.vue"))),
86
+ component: () => import("../views/customService/academy.vue"),
125
87
  meta: {
126
88
  notLogin: true,
127
89
  },
@@ -129,7 +91,7 @@ exports.default = [
129
91
  {
130
92
  path: "/ecosystem",
131
93
  name: "ecosystem",
132
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/ecosystem/index.vue"))),
94
+ component: () => import("../views/customService/ecosystem/index.vue"),
133
95
  meta: {
134
96
  notLogin: true,
135
97
  },
@@ -141,7 +103,7 @@ exports.default = [
141
103
  {
142
104
  path: "/academy/:categoryCode/articles/:code", // /acadamy/base_operation/articles/310
143
105
  name: "academyDetail",
144
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/detail.vue"))),
106
+ component: () => import("../views/customService/detail.vue"),
145
107
  meta: {
146
108
  notLogin: true,
147
109
  },
@@ -149,7 +111,7 @@ exports.default = [
149
111
  {
150
112
  path: "/cms/detail",
151
113
  name: "cmsDetail",
152
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/detail.vue"))),
114
+ component: () => import("../views/customService/detail.vue"),
153
115
  meta: {
154
116
  notLogin: true,
155
117
  },
@@ -157,7 +119,7 @@ exports.default = [
157
119
  {
158
120
  path: "/dapps",
159
121
  name: "dapps",
160
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/dapp.vue"))),
122
+ component: () => import("../views/customService/dapp.vue"),
161
123
  meta: {
162
124
  notLogin: true,
163
125
  },
@@ -165,7 +127,7 @@ exports.default = [
165
127
  {
166
128
  path: "/cms/dapps/detail",
167
129
  name: "dapp-detail",
168
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/dappDetail.vue"))),
130
+ component: () => import("../views/customService/dappDetail.vue"),
169
131
  meta: {
170
132
  notLogin: true,
171
133
  },
@@ -189,7 +151,7 @@ exports.default = [
189
151
  {
190
152
  path: "/about",
191
153
  name: "team",
192
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/team.vue"))),
154
+ component: () => import("../views/customService/team.vue"),
193
155
  meta: {
194
156
  notLogin: true,
195
157
  },
@@ -197,30 +159,30 @@ exports.default = [
197
159
  {
198
160
  path: "/help",
199
161
  name: "help",
200
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/help/entry.vue"))),
162
+ component: () => import("../views/customService/help/entry.vue"),
201
163
  redirect: "/help/list",
202
164
  children: [
203
165
  {
204
166
  path: 'list',
205
167
  name: 'help-list',
206
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/help/index.vue"))),
168
+ component: () => import("../views/customService/help/index.vue"),
207
169
  },
208
170
  {
209
171
  path: ':categoryCode/articles/:name',
210
172
  name: 'category-articles-detail',
211
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/help/helpDetail.vue"))),
173
+ component: () => import("../views/customService/help/helpDetail.vue"),
212
174
  }
213
175
  ]
214
176
  },
215
177
  {
216
178
  path: "/recruit",
217
179
  name: "recruit",
218
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/help/entry.vue"))),
180
+ component: () => import("../views/customService/help/entry.vue"),
219
181
  children: [
220
182
  {
221
183
  path: ':name',
222
184
  name: 'recruit-detail',
223
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/recruit.vue"))),
185
+ component: () => import("../views/customService/recruit.vue"),
224
186
  }
225
187
  ]
226
188
  },
@@ -232,61 +194,61 @@ exports.default = [
232
194
  {
233
195
  path: "/wiki",
234
196
  name: "wiki",
235
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/wiki.vue"))),
197
+ component: () => import("../views/customService/wiki.vue"),
236
198
  children: [
237
199
  {
238
200
  path: ':code',
239
201
  name: 'wiki-list',
240
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/wiki.vue"))),
202
+ component: () => import("../views/customService/wiki.vue"),
241
203
  },
242
204
  {
243
205
  path: ':categoryCode/:name',
244
206
  name: 'wiki-detail',
245
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/wiki.vue"))),
207
+ component: () => import("../views/customService/wiki.vue"),
246
208
  }
247
209
  ]
248
210
  },
249
211
  {
250
212
  path: "/sdk",
251
213
  name: "sdk",
252
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/sdk.vue"))),
214
+ component: () => import("../views/customService/sdk.vue"),
253
215
  children: [
254
216
  {
255
217
  path: ':code',
256
218
  name: 'sdkList',
257
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/sdk.vue"))),
219
+ component: () => import("../views/customService/sdk.vue"),
258
220
  },
259
221
  {
260
222
  path: ':categoryCode/:name',
261
223
  name: 'sdkDetail',
262
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/sdk.vue"))),
224
+ component: () => import("../views/customService/sdk.vue"),
263
225
  }
264
226
  ]
265
227
  },
266
228
  {
267
229
  path: "/doc",
268
230
  name: "doc",
269
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/doc.vue")))
231
+ component: () => import("../views/customService/doc.vue")
270
232
  },
271
233
  {
272
234
  path: "/doc/:code",
273
235
  name: "doc-prodoc",
274
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/api.vue")))
236
+ component: () => import("../views/customService/api.vue")
275
237
  },
276
238
  {
277
239
  path: "/apidoc",
278
240
  name: "apidoc",
279
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/api.vue"))),
241
+ component: () => import("../views/customService/api.vue"),
280
242
  children: [
281
243
  {
282
244
  path: ':code',
283
245
  name: 'apidoc-list',
284
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/wiki.vue"))),
246
+ component: () => import("../views/customService/wiki.vue"),
285
247
  },
286
248
  {
287
249
  path: ':categoryCode/:name',
288
250
  name: 'apidoc-detail',
289
- component: () => Promise.resolve().then(() => __importStar(require("../views/customService/wiki.vue"))),
251
+ component: () => import("../views/customService/wiki.vue"),
290
252
  }
291
253
  ]
292
254
  },
@@ -1,8 +1 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Home = void 0;
7
- var Home_1 = require("./Home");
8
- Object.defineProperty(exports, "Home", { enumerable: true, get: function () { return __importDefault(Home_1).default; } });
1
+ export { default as Home } from './Home';
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
2
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
3
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -8,7 +7,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
8
  });
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
10
  /*
13
11
  * @Descripttion:
14
12
  * @version:
@@ -17,8 +15,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
15
  * @LastEditors: lewis lewis@everylink.ai
18
16
  * @LastEditTime: 2025-09-22 18:59:24
19
17
  */
20
- const common_1 = require("../api/common");
21
- exports.default = {
18
+ import { getSignleSymbolPrice } from '../api/common';
19
+ export default {
22
20
  state: {
23
21
  countryList: [],
24
22
  currencyList: [],
@@ -109,7 +107,7 @@ exports.default = {
109
107
  resolve({ USD: '1' });
110
108
  }
111
109
  else {
112
- (0, common_1.getSignleSymbolPrice)({
110
+ getSignleSymbolPrice({
113
111
  fsym: 'USD',
114
112
  tsyms: currency
115
113
  }).then(res => {
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  /*
4
2
  * @Descripttion:
5
3
  * @version:
@@ -8,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
6
  * @LastEditors: Lewis
9
7
  * @LastEditTime: 2021-11-19 12:59:09
10
8
  */
11
- const common_1 = require("../api/h5/common");
9
+ import { getUnreadCount, readAll } from "../api/h5/common";
12
10
  let COINSLOADING = false;
13
- exports.default = {
11
+ export default {
14
12
  state: {
15
13
  // coins: [],
16
14
  },
@@ -70,7 +68,7 @@ exports.default = {
70
68
  // },
71
69
  setUnreadCount(context, fn) {
72
70
  return new Promise((resolve, reject) => {
73
- (0, common_1.getUnreadCount)().then((res) => {
71
+ getUnreadCount().then((res) => {
74
72
  if (res) {
75
73
  fn && fn(context.state.count, res.data);
76
74
  context.commit("setCount", res.data);
@@ -83,7 +81,7 @@ exports.default = {
83
81
  });
84
82
  },
85
83
  readAll(context, fn) {
86
- (0, common_1.readAll)().then((res) => {
84
+ readAll().then((res) => {
87
85
  fn && fn();
88
86
  context.commit("clearCount");
89
87
  }, (res) => {
@@ -1,10 +1,2 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CmsStoreH5 = exports.CmsStore = void 0;
7
- var CmsStore_1 = require("./CmsStore");
8
- Object.defineProperty(exports, "CmsStore", { enumerable: true, get: function () { return __importDefault(CmsStore_1).default; } });
9
- var CmsStoreH5_1 = require("./CmsStoreH5");
10
- Object.defineProperty(exports, "CmsStoreH5", { enumerable: true, get: function () { return __importDefault(CmsStoreH5_1).default; } });
1
+ export { default as CmsStore } from './CmsStore';
2
+ export { default as CmsStoreH5 } from './CmsStoreH5';
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  /*
4
2
  * @Author:
5
3
  * @Date: 2020-12-31 10:42:43
@@ -8,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
6
  * @Description:
9
7
  */
10
8
  let Base64 = require('js-base64').Base64;
11
- class EventBus {
9
+ export default class EventBus {
12
10
  constructor() {
13
11
  this.callbacks = {};
14
12
  this.cacheNames = [];
@@ -50,4 +48,3 @@ class EventBus {
50
48
  return res;
51
49
  }
52
50
  }
53
- exports.default = EventBus;