@jx3box/jx3box-editor 2.2.17 → 2.2.19
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 +1 -1
- package/service/cms.js +2 -2
- package/src/components/Author.vue +2 -3
package/package.json
CHANGED
package/service/cms.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $cms } from "@jx3box/jx3box-common/js/https";
|
|
2
2
|
import axios from "axios";
|
|
3
|
-
import {
|
|
3
|
+
import { __cdn } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
4
4
|
|
|
5
5
|
function uploadFile(data) {
|
|
6
6
|
return $cms().post(`/api/cms/upload`, data);
|
|
@@ -27,7 +27,7 @@ function getDecoration(params) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function getDecorationJson() {
|
|
30
|
-
let url =
|
|
30
|
+
let url = __cdn + "design/decoration/index.json";
|
|
31
31
|
return axios.get(url);
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
import { authorLink, getLink, getThumbnail } from "@jx3box/jx3box-common/js/utils";
|
|
61
61
|
import { getUserInfo, getUserMedals, getUserPublicTeams } from "../../service/author";
|
|
62
62
|
import { getDecoration, getDecorationJson } from "../../service/cms";
|
|
63
|
-
import { __server, __imgPath, __userLevelColor } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
63
|
+
import { __server, __imgPath, __userLevelColor, __cdn } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
64
64
|
import User from "@jx3box/jx3box-common/js/user";
|
|
65
65
|
import { __userLevel } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
66
66
|
import Avatar from "./Avatar.vue";
|
|
@@ -264,7 +264,7 @@ export default {
|
|
|
264
264
|
return __userLevelColor[level];
|
|
265
265
|
},
|
|
266
266
|
showDecoration: function (val, type) {
|
|
267
|
-
return
|
|
267
|
+
return __cdn + `design/decoration/images/${val}/${type}.png`;
|
|
268
268
|
},
|
|
269
269
|
authorLink,
|
|
270
270
|
},
|
|
@@ -275,7 +275,6 @@ export default {
|
|
|
275
275
|
@import "../../assets/css/module/author.less";
|
|
276
276
|
.w-author {
|
|
277
277
|
.w-author-wrapper {
|
|
278
|
-
// background-image: url(https://img.jx3box.com/decoration/images/1_CAT/atcard.png);
|
|
279
278
|
background-repeat: no-repeat;
|
|
280
279
|
background-position: top right;
|
|
281
280
|
background-size: 100% auto;
|