@jx3box/jx3box-common-ui 7.8.7 → 7.8.9
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/assets/css/header.less +5 -0
- package/package.json +3 -3
- package/service/admin.js +1 -1
- package/src/header/userInfo.vue +5 -0
- package/vue.config.js +1 -1
package/assets/css/header.less
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "7.8.
|
|
3
|
+
"version": "7.8.9",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@jx3box/jx3box-comment-ui": "^1.7.16",
|
|
34
|
-
"@jx3box/jx3box-common": "^8.0.
|
|
35
|
-
"@jx3box/jx3box-data": "^3.5.
|
|
34
|
+
"@jx3box/jx3box-common": "^8.0.3",
|
|
35
|
+
"@jx3box/jx3box-data": "^3.5.3",
|
|
36
36
|
"@jx3box/jx3box-editor": "^1.9.9",
|
|
37
37
|
"@jx3box/reporter": "^0.0.4",
|
|
38
38
|
"axios": "^0.26.1",
|
package/service/admin.js
CHANGED
package/src/header/userInfo.vue
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
<img :src="super_author_icon" class="u-superauthor-profile" alt="superauthor" title="签约作者" :class="{ off: !isSuperAuthor }" /></a>
|
|
45
45
|
<a class="u-vip" href="/vip/premium?from=header_usermenu" target="_blank" title="专业版账号">
|
|
46
46
|
<i class="i-icon-vip" :class="{ on: isPRO }">{{ vipType }}</i>
|
|
47
|
+
<span class="u-expire" v-if="isPRO">(有效期至:{{ pro_expire_date }})</span>
|
|
47
48
|
</a>
|
|
48
49
|
</div>
|
|
49
50
|
<div class="u-id">
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
import User from "@jx3box/jx3box-common/js/user";
|
|
82
83
|
import { showAvatar } from "@jx3box/jx3box-common/js/utils";
|
|
83
84
|
import { getMyInfo } from "../../service/author";
|
|
85
|
+
import { showDate } from "@jx3box/jx3box-common/js/moment";
|
|
84
86
|
import { __Links, __Root, __imgPath, __OriginRoot } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
85
87
|
import { copyText } from "../../assets/js/utils";
|
|
86
88
|
import { getMenu } from "../../service/header";
|
|
@@ -135,6 +137,9 @@ export default {
|
|
|
135
137
|
isEditor() {
|
|
136
138
|
return User.isEditor();
|
|
137
139
|
},
|
|
140
|
+
pro_expire_date: function() {
|
|
141
|
+
return this.asset.pro_expire_date ? showDate(this.asset.pro_expire_date) : '-';
|
|
142
|
+
},
|
|
138
143
|
},
|
|
139
144
|
mounted() {
|
|
140
145
|
this.loadMyInfo();
|
package/vue.config.js
CHANGED
|
@@ -45,7 +45,7 @@ module.exports = {
|
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
"/api/cms": {
|
|
48
|
-
target: process.env["DEV_SERVER"] == "true" ? "http://localhost:
|
|
48
|
+
target: process.env["DEV_SERVER"] == "true" ? "http://localhost:7100" : "https://cms.jx3box.com",
|
|
49
49
|
},
|
|
50
50
|
"/api/article": {
|
|
51
51
|
target: "https://next2.jx3box.com",
|