udxcms 1.0.35 → 1.0.36

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,7 +1,7 @@
1
1
  <!--
2
2
  * @Author:
3
3
  * @Date: 2020-11-19 12:38:02
4
- * @LastEditTime: 2025-10-10 11:44:39
4
+ * @LastEditTime: 2025-10-30 21:49:14
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description:
7
7
  -->
@@ -28,7 +28,6 @@
28
28
  </template>
29
29
 
30
30
  <script>
31
- import { mapState } from 'vuex'
32
31
  import { getCurrency, setCurrency, setLanguage, getLanguages } from '../../api/common'
33
32
  import { refreshEvents } from '../../utils/index'
34
33
  // import { getLanguagesPk, updateSiteIcon } from '@/lang'
@@ -77,7 +76,12 @@
77
76
  }
78
77
  },
79
78
  computed: {
80
- ...mapState('user', ['currency', 'userInfo']),
79
+ currency() {
80
+ return this.$store.state.user.currency || {}
81
+ },
82
+ userInfo() {
83
+ return this.$store.state.user.userInfo || {}
84
+ },
81
85
  currencyList() {
82
86
  return this.$store.state.cmsstore.currencyList || []
83
87
  }
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author:
3
3
  * @Date: 2020-11-19 12:38:02
4
- * @LastEditTime: 2025-09-29 11:08:15
4
+ * @LastEditTime: 2025-10-30 21:49:33
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description:
7
7
  -->
@@ -19,7 +19,6 @@
19
19
  </template>
20
20
 
21
21
  <script>
22
- import { mapState } from 'vuex'
23
22
  import { getCurrency, setCurrency, setLanguage, getLanguages } from '../../api/common'
24
23
  import { refreshEvents } from '../../utils/index'
25
24
  import { getEventCenter } from '../../index'
@@ -58,7 +57,12 @@
58
57
  }
59
58
  },
60
59
  computed: {
61
- ...mapState('user', ['currency', 'userInfo']),
60
+ currency() {
61
+ return this.$store.state.user.currency || {}
62
+ },
63
+ userInfo() {
64
+ return this.$store.state.user.userInfo || {}
65
+ },
62
66
  currencyList() {
63
67
  return this.$store.state.cmsstore.currencyList || []
64
68
  }
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author:
3
3
  * @Date: 2020-11-17 10:20:07
4
- * @LastEditTime: 2025-10-24 11:40:28
4
+ * @LastEditTime: 2025-10-30 21:49:47
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description:
7
7
  -->
@@ -103,7 +103,6 @@
103
103
 
104
104
  <script>
105
105
  import { logOut } from '../../api/common'
106
- import { mapState } from 'vuex'
107
106
  import { isUserCenter, emitEvents, onEvents} from '../../utils/index'
108
107
  import conf from '../../config/index'
109
108
  let closeFn
@@ -140,7 +139,9 @@
140
139
  }
141
140
  },
142
141
  computed: {
143
- ...mapState('user', ['userInfo']),
142
+ userInfo() {
143
+ return this.$store.state.user?.userInfo || {}
144
+ },
144
145
  accountIsCustody() {
145
146
  return this.$store.getters["wallet/accountIsCustody"];
146
147
  },
@@ -1,8 +1,8 @@
1
1
  <!--
2
2
  * @Author:
3
3
  * @Date: 2020-11-17 10:20:07
4
- * @LastEditTime: 2021-12-27 22:50:14
5
- * @LastEditors: Lewis
4
+ * @LastEditTime: 2025-10-30 21:50:09
5
+ * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description:
7
7
  -->
8
8
  <template>
@@ -46,7 +46,6 @@
46
46
 
47
47
  <script>
48
48
  import { logOut } from '../../api/common'
49
- import { mapState } from 'vuex'
50
49
  import { isUserCenter, emitEvents, onEvents} from '../../utils/index'
51
50
  import conf from '../../config/index'
52
51
  let closeFn
@@ -83,7 +82,9 @@
83
82
  }
84
83
  },
85
84
  computed: {
86
- ...mapState('user', ['userInfo']),
85
+ userInfo() {
86
+ return this.$store.state.user?.userInfo || {}
87
+ },
87
88
  userCenter() {
88
89
  return isUserCenter()
89
90
  },
@@ -57,7 +57,6 @@
57
57
  </template>
58
58
 
59
59
  <script>
60
- import { mapState } from "vuex";
61
60
  import _ from 'lodash';
62
61
 
63
62
  function getScrollTop() {
@@ -92,9 +91,11 @@ export default {
92
91
 
93
92
  components: {},
94
93
 
95
- computed: mapState({
96
- lang: (state) => state.language,
97
- }),
94
+ computed: {
95
+ lang() {
96
+ return this.$store.state.language
97
+ }
98
+ },
98
99
 
99
100
  mounted() {
100
101
  window.addEventListener('scroll', this.scrollFn)
@@ -171,7 +171,6 @@ import NavBread from "./NavBread";
171
171
 
172
172
  import Vue from "vue";
173
173
  import { Icon, Drawer, Menu } from "ant-design-vue";
174
- import { mapState } from "vuex";
175
174
 
176
175
 
177
176
  import hljs from "./lib/highlight/lib/index.js"; // 引入 highlight.js
@@ -266,9 +265,9 @@ export default {
266
265
  };
267
266
  },
268
267
  computed: {
269
- ...mapState({
270
- lang: (state) => state.language,
271
- }),
268
+ lang() {
269
+ return this.$store.state.language
270
+ }
272
271
  },
273
272
  watch: {
274
273
  list: {
@@ -129,7 +129,6 @@
129
129
  <script>
130
130
  import { copyText } from '../../utils/index'
131
131
  import { logOut, breakdown } from '../../api/common'
132
- import { mapState } from 'vuex';
133
132
  import { toDataUrl } from '../../utils/blockies'
134
133
  export default {
135
134
  data() {
@@ -147,7 +146,12 @@ export default {
147
146
  }
148
147
  },
149
148
  computed:{
150
- ...mapState('user', ['userInfo', 'currency']),
149
+ userInfo() {
150
+ return this.$store.state.user.userInfo || {}
151
+ },
152
+ currency() {
153
+ return this.$store.state.user.currency || {}
154
+ },
151
155
  wallet() {
152
156
  return this.$store.state.wallet.wallet
153
157
  },
@@ -3,8 +3,8 @@
3
3
  * @version:
4
4
  * @Author:
5
5
  * @Date: 2021-08-12 23:35:01
6
- * @LastEditors: Lewis
7
- * @LastEditTime: 2021-12-22 22:22:33
6
+ * @LastEditors: lewis lewis@everylink.ai
7
+ * @LastEditTime: 2025-10-30 21:53:33
8
8
  -->
9
9
  <template>
10
10
  <div class="cms-home flex-v">
@@ -42,7 +42,6 @@
42
42
  <script>
43
43
  import conf from "../../../config/index";
44
44
  import { loadImportScript } from "../../../utils/index";
45
- import { mapState } from "vuex";
46
45
 
47
46
  // TODO:等MOBI整体抽离后,移除组件引入
48
47
  import CmsAcademySectionOne from "./../../cmsComponents/academy/CmsAcademySectionOne.vue";
@@ -3,8 +3,8 @@
3
3
  * @version:
4
4
  * @Author:
5
5
  * @Date: 2021-04-15 17:10:04
6
- * @LastEditors: Lewis
7
- * @LastEditTime: 2022-03-26 22:31:54
6
+ * @LastEditors: lewis lewis@everylink.ai
7
+ * @LastEditTime: 2025-10-30 21:53:46
8
8
  -->
9
9
  <template>
10
10
  <div class="header-wrapper">
@@ -197,7 +197,6 @@
197
197
 
198
198
  <script>
199
199
  import _ from 'lodash';
200
- import { mapState } from 'vuex'
201
200
  import { getUnreadCount, getMessage, setRead, setReadById, breakdown} from '../../../api/common'
202
201
  import conf from '../../../config/index'
203
202
  export default {
@@ -263,7 +262,12 @@ export default {
263
262
  }
264
263
  },
265
264
  computed: {
266
- ...mapState('user', ['userInfo', 'currency']),
265
+ userInfo() {
266
+ return this.$store.state.user.userInfo || {}
267
+ },
268
+ currency() {
269
+ return this.$store.state.user.currency || {}
270
+ },
267
271
  logoSrc() {
268
272
  let path = this.$t('site_common_logo_base_url') + (window.location.host.indexOf(conf.localHostIp) == -1 ? window.location.hostname: conf.testSite)
269
273
  return path
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: Sneed
3
3
  * @Date: 2020-11-16 14:38:46
4
- * @LastEditTime: 2025-10-24 10:54:00
4
+ * @LastEditTime: 2025-10-30 21:54:31
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description: update logoIcon
7
7
  -->
@@ -492,7 +492,6 @@
492
492
  <script>
493
493
  import _ from "lodash";
494
494
  import logo from '../../../assets/img/creator_logo_black.png'
495
- import { mapState } from "vuex";
496
495
  import {
497
496
  getUnreadCount,
498
497
  getMessage,
@@ -572,7 +571,12 @@ export default {
572
571
  },
573
572
  },
574
573
  computed: {
575
- ...mapState("user", ["userInfo", "currency"]),
574
+ userInfo() {
575
+ return this.$store.state.user.userInfo || {}
576
+ },
577
+ currency() {
578
+ return this.$store.state.user.currency || {}
579
+ },
576
580
  logoSrc() {
577
581
  let path =
578
582
  this.$t("site_common_logo_base_url") +
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: Sneed
3
3
  * @Date: 2020-11-16 14:38:46
4
- * @LastEditTime: 2025-10-24 10:54:06
4
+ * @LastEditTime: 2025-10-30 21:54:44
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description: update logoIcon
7
7
  -->
@@ -511,7 +511,6 @@
511
511
  </template>
512
512
  <script>
513
513
  import _ from "lodash";
514
- import { mapState } from "vuex";
515
514
  import {
516
515
  getUnreadCount,
517
516
  getMessage,
@@ -585,7 +584,12 @@ export default {
585
584
  },
586
585
  },
587
586
  computed: {
588
- ...mapState("user", ["userInfo", "currency"]),
587
+ userInfo() {
588
+ return this.$store.state.user.userInfo || {}
589
+ },
590
+ currency() {
591
+ return this.$store.state.user.currency || {}
592
+ },
589
593
  isCentral() {
590
594
  return this.$store.state.siteConfig.isCentral;
591
595
  },
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: Sneed
3
3
  * @Date: 2020-11-16 14:38:46
4
- * @LastEditTime: 2025-10-24 10:54:19
4
+ * @LastEditTime: 2025-10-30 21:54:55
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description: update logoIcon
7
7
  -->
@@ -300,7 +300,6 @@
300
300
  </template>
301
301
  <script>
302
302
  import _ from "lodash";
303
- import { mapState } from "vuex";
304
303
  import {
305
304
  getUnreadCount,
306
305
  getMessage,
@@ -382,7 +381,12 @@ export default {
382
381
  },
383
382
  },
384
383
  computed: {
385
- ...mapState("user", ["userInfo", "currency"]),
384
+ userInfo() {
385
+ return this.$store.state.user.userInfo || {}
386
+ },
387
+ currency() {
388
+ return this.$store.state.user.currency || {}
389
+ },
386
390
  logoSrc() {
387
391
  let path =
388
392
  this.$t("site_common_logo_base_url") +
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: Sneed
3
3
  * @Date: 2020-11-16 14:38:46
4
- * @LastEditTime: 2025-10-24 10:54:24
4
+ * @LastEditTime: 2025-10-30 21:55:06
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description: update logoIcon
7
7
  -->
@@ -357,7 +357,6 @@
357
357
  </template>
358
358
  <script>
359
359
  import _ from "lodash";
360
- import {mapState} from "vuex";
361
360
  import {
362
361
  getUnreadCount,
363
362
  getMessage,
@@ -434,7 +433,12 @@ export default {
434
433
  },
435
434
  },
436
435
  computed: {
437
- ...mapState("user", ["userInfo", "currency"]),
436
+ userInfo() {
437
+ return this.$store.state.user.userInfo || {}
438
+ },
439
+ currency() {
440
+ return this.$store.state.user.currency || {}
441
+ },
438
442
  logoUrl() {
439
443
  return window.site_config["site_common_logo_image_" + location.hostname];
440
444
  // return this.$t("site_common_logo_image_"+ location.hostname);
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: Sneed
3
3
  * @Date: 2020-11-16 14:38:46
4
- * @LastEditTime: 2025-10-24 10:54:36
4
+ * @LastEditTime: 2025-10-30 21:55:27
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description: update logoIcon
7
7
  -->
@@ -393,7 +393,6 @@
393
393
  </template>
394
394
  <script>
395
395
  import _ from "lodash";
396
- import { mapState } from "vuex";
397
396
  import {
398
397
  getUnreadCount,
399
398
  getMessage,
@@ -477,7 +476,12 @@ export default {
477
476
  },
478
477
  },
479
478
  computed: {
480
- ...mapState("user", ["userInfo", "currency"]),
479
+ userInfo() {
480
+ return this.$store.state.user.userInfo || {}
481
+ },
482
+ currency() {
483
+ return this.$store.state.user.currency || {}
484
+ },
481
485
  logoSrc() {
482
486
  let path =
483
487
  this.$t("site_common_logo_base_url") +
@@ -4,7 +4,7 @@
4
4
  * @Author:
5
5
  * @Date: 2021-12-17 01:00:24
6
6
  * @LastEditors: lewis lewis@everylink.ai
7
- * @LastEditTime: 2025-09-23 18:52:21
7
+ * @LastEditTime: 2025-10-30 21:55:39
8
8
  -->
9
9
  <template>
10
10
  <div :class="['header flex-space', false && active && 'headerActive']">
@@ -97,7 +97,6 @@
97
97
  import SubMenu from "../../cmsComponents/paragen/SubMenu.vue";
98
98
  import _ from "lodash";
99
99
  import conf from "../../../config/index";
100
- import { mapState } from "vuex";
101
100
  import config from "../../../config/index";
102
101
  import {unwrapJSONStr} from "../../../utils/parse";
103
102
  export default {
@@ -151,7 +150,12 @@ export default {
151
150
  };
152
151
  },
153
152
  computed: {
154
- ...mapState("user", ["userInfo", "currency"]),
153
+ userInfo() {
154
+ return this.$store.state.user.userInfo || {}
155
+ },
156
+ currency() {
157
+ return this.$store.state.user.currency || {}
158
+ },
155
159
  logoSrc() {
156
160
  let path =
157
161
  this.$t("site_common_logo_base_url") +
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: Sneed
3
3
  * @Date: 2020-11-16 14:38:46
4
- * @LastEditTime: 2025-10-24 10:54:40
4
+ * @LastEditTime: 2025-10-30 21:55:49
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description: update logoIcon
7
7
  -->
@@ -191,7 +191,6 @@
191
191
  </template>
192
192
  <script>
193
193
  import _ from 'lodash';
194
- import { mapState } from 'vuex'
195
194
  import { getUnreadCount, getMessage, setRead, setReadById, breakdown} from '../../../api/common'
196
195
  import conf from '../../../config/index'
197
196
  import { isUserCenter } from '../../../utils/index'
@@ -258,7 +257,12 @@ export default {
258
257
  }
259
258
  },
260
259
  computed: {
261
- ...mapState('user', ['userInfo', 'currency']),
260
+ userInfo() {
261
+ return this.$store.state.user.userInfo || {}
262
+ },
263
+ currency() {
264
+ return this.$store.state.user.currency || {}
265
+ },
262
266
  logoSrc() {
263
267
  let path = this.$t('site_common_logo_base_url') + (window.location.host.indexOf(conf.localHostIp) == -1 ? window.location.hostname: conf.testSite)
264
268
  return path
@@ -4,7 +4,7 @@
4
4
  * @Author:
5
5
  * @Date: 2022-04-25 15:11:26
6
6
  * @LastEditors: lewis lewis@everylink.ai
7
- * @LastEditTime: 2025-10-24 11:16:38
7
+ * @LastEditTime: 2025-10-30 21:55:59
8
8
  -->
9
9
  <template>
10
10
  <div class='flex-space lending-header'>
@@ -58,14 +58,18 @@
58
58
  </template>
59
59
 
60
60
  <script>
61
- import { mapState } from "vuex";
62
61
  import { formatDateDecimal, formDataEthers, getStyleObj } from '../../../utils/index'
63
62
  import conf from "../../../config/index"
64
63
  // const Compound = require('@compound-finance/compound-js')
65
64
  export default {
66
65
  name: 'index-header',
67
66
  computed: {
68
- ...mapState("user", ["userInfo", "currency"]),
67
+ userInfo() {
68
+ return this.$store.state.user.userInfo || {}
69
+ },
70
+ currency() {
71
+ return this.$store.state.user.currency || {}
72
+ },
69
73
  logoSrc() {
70
74
  let path =
71
75
  this.$t("site_common_logo_base_url") +
@@ -3,8 +3,8 @@
3
3
  * @version:
4
4
  * @Author:
5
5
  * @Date: 2021-12-17 01:00:24
6
- * @LastEditors: Lewis
7
- * @LastEditTime: 2022-01-12 15:30:04
6
+ * @LastEditors: lewis lewis@everylink.ai
7
+ * @LastEditTime: 2025-10-30 21:56:10
8
8
  -->
9
9
  <template>
10
10
  <div :class="['header flex-space', false && active && 'headerActive']">
@@ -66,7 +66,6 @@
66
66
  import SubMenu from '../../cmsComponents/paragen/SubMenu.vue'
67
67
  import _ from 'lodash';
68
68
  import conf from '../../../config/index'
69
- import { mapState } from "vuex";
70
69
  import config from '../../../config/index'
71
70
  import {unwrapJSONStr} from "../../../utils/parse";
72
71
  export default {
@@ -106,7 +105,12 @@ export default {
106
105
  }
107
106
  },
108
107
  computed: {
109
- ...mapState("user", ["userInfo", "currency"]),
108
+ userInfo() {
109
+ return this.$store.state.user.userInfo || {}
110
+ },
111
+ currency() {
112
+ return this.$store.state.user.currency || {}
113
+ },
110
114
  logoSrc() {
111
115
  let path =
112
116
  this.$t("site_common_logo_base_url") +
@@ -24,7 +24,6 @@
24
24
  import HelpDetail from '../../../components/cmsComponents/help/detail.vue'
25
25
  import conf from "../../../config/index";
26
26
  import { loadImportScript, isPhone} from "../../../utils/index";
27
- import { mapState } from "vuex";
28
27
  import HelpNav from './nav.vue';
29
28
 
30
29
  export default {
@@ -23,8 +23,7 @@
23
23
  <script>
24
24
  import HelpSupport from '../../../components/cmsComponents/help/Index.vue'
25
25
  import conf from "../../../config/index";
26
- import { loadImportScript, isPhone} from "../../../utils/index";
27
- import { mapState } from "vuex";
26
+ import { loadImportScript, isPhone} from "../../../utils/index"
28
27
  import HelpNav from './nav.vue';
29
28
  import _ from 'lodash';
30
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "udxcms",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "cms submodule",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",