@jx3box/jx3box-common-ui 7.4.4 → 7.4.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "7.4.4",
3
+ "version": "7.4.6",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,10 +30,10 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-comment-ui": "^1.7.12",
34
- "@jx3box/jx3box-common": "^7.8.9",
35
- "@jx3box/jx3box-data": "^3.1.0",
36
- "@jx3box/jx3box-editor": "^1.8.6",
33
+ "@jx3box/jx3box-comment-ui": "^1.7.13",
34
+ "@jx3box/jx3box-common": "^7.9.5",
35
+ "@jx3box/jx3box-data": "^3.3.0",
36
+ "@jx3box/jx3box-editor": "^1.9.9",
37
37
  "axios": "^0.26.1",
38
38
  "dayjs": "^1.11.0",
39
39
  "element-ui": "^2.13.2",
@@ -1,11 +1,11 @@
1
- import { $helper } from "@jx3box/jx3box-common/js/https.js";
1
+ import { $cms } from "@jx3box/jx3box-common/js/https.js";
2
2
 
3
3
  function getBreadcrumb(name) {
4
- return $helper().get(`/api/breadcrumb/${name}`);
4
+ return $cms().get(`/api/cms/breadcrumb/${name}`);
5
5
  }
6
6
 
7
7
  function getBreadcrumbs(params) {
8
- return $helper().get(`/api/breadcrumbs`, {
8
+ return $cms().get(`/api/cms/breadcrumb`, {
9
9
  params: params,
10
10
  });
11
11
  }
package/service/cms.js CHANGED
@@ -48,4 +48,8 @@ function getSliders(source_type, source_ids) {
48
48
  });
49
49
  }
50
50
 
51
- export { getPostAuthors, uploadImage, upload, getDecoration, getDecorationJson, checkTeamMember, getHonorJson, getSliders };
51
+ function getCollection(id) {
52
+ return $cms({ mute: true }).get(`/api/cms/post/collection/${id}`);
53
+ }
54
+
55
+ export { getPostAuthors, uploadImage, upload, getDecoration, getDecorationJson, checkTeamMember, getHonorJson, getSliders, getCollection };
package/src/App.vue CHANGED
@@ -8,6 +8,7 @@
8
8
  :publishEnable="true"
9
9
  :feedbackEnable="true"
10
10
  :adminEnable="true"
11
+ :crumb-enable="true"
11
12
  >
12
13
  <img slot="logo" svg-inline src="../assets/img/jx3.svg" />
13
14
  bread info
@@ -16,10 +16,7 @@ export default {
16
16
  mounted() {
17
17
  getBreadcrumb(this.name).then((res) => {
18
18
  res = res.data;
19
- this.html =
20
- res.code === 200 && res.data.breadcrumb
21
- ? res.data.breadcrumb.html
22
- : "";
19
+ this.html = res.data?.html || "";
23
20
  });
24
21
  },
25
22
  };
@@ -21,7 +21,7 @@
21
21
 
22
22
  <script>
23
23
  import { getLink } from "@jx3box/jx3box-common/js/utils";
24
- import { getCollection } from "../../service/helper";
24
+ import { getCollection } from "../../service/cms";
25
25
  export default {
26
26
  name: "Collection",
27
27
  props: ["id", "defaultVisible"],
@@ -68,7 +68,7 @@ export default {
68
68
  },
69
69
  loadData: function() {
70
70
  getCollection(this.id).then((res) => {
71
- this.data = res.data?.data?.collection;
71
+ this.data = res.data?.data;
72
72
  this.$emit('collectionUpdate',this.data)
73
73
  });
74
74
  },
@@ -16,7 +16,7 @@
16
16
 
17
17
  <script>
18
18
  import { getLink } from "@jx3box/jx3box-common/js/utils";
19
- import { getCollection } from "../../service/helper";
19
+ import { getCollection } from "../../service/cms";
20
20
  export default {
21
21
  name: "PostCollection",
22
22
  props: ["id", "store"],
@@ -45,7 +45,7 @@ export default {
45
45
  methods: {
46
46
  loadData: function() {
47
47
  getCollection(this.id).then((res) => {
48
- this.data = res.data?.data?.collection;
48
+ this.data = res.data?.data;
49
49
  });
50
50
  },
51
51
  showLink: function(item) {
package/service/helper.js DELETED
@@ -1,7 +0,0 @@
1
- import { $helper } from "@jx3box/jx3box-common/js/https";
2
-
3
- function getCollection(id) {
4
- return $helper().get(`/api/post/collection/${id}`);
5
- }
6
-
7
- export { getCollection };