@jx3box/jx3box-common-ui 9.5.0 → 9.5.2
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/admin.less
CHANGED
|
@@ -53,6 +53,32 @@
|
|
|
53
53
|
overflow: hidden;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
.u-mark {
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
padding: 2px 5px;
|
|
60
|
+
border-radius: 2px;
|
|
61
|
+
color: #fff;
|
|
62
|
+
margin-left: 5px;
|
|
63
|
+
cursor: default;
|
|
64
|
+
display: inline-flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
height: 21px;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
}
|
|
69
|
+
.u-top {
|
|
70
|
+
background-color: #6f42c1;
|
|
71
|
+
i {
|
|
72
|
+
transform: rotate(180deg);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.u-star {
|
|
76
|
+
background-color: #fba524;
|
|
77
|
+
i {
|
|
78
|
+
margin-right: 2px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
56
82
|
.u-content {
|
|
57
83
|
margin: 10px 0;
|
|
58
84
|
opacity: 0.8;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.2",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"axios": "^0.26.1",
|
|
40
40
|
"dayjs": "^1.11.0",
|
|
41
41
|
"element-ui": "^2.13.2",
|
|
42
|
+
"emitt": "^1.3.4",
|
|
42
43
|
"jquery": "^3.5.1",
|
|
43
44
|
"lodash": "^4.17.15",
|
|
44
45
|
"qrcode.vue": "^1.7.0",
|
package/src/bread/Admin.vue
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
option
|
|
18
18
|
}}</el-radio-button>
|
|
19
19
|
</el-radio-group>
|
|
20
|
+
<el-button type="primary" size="small" class="u-refresh-btn" @click="onRefreshCache">刷新缓存</el-button>
|
|
20
21
|
<!-- </template> -->
|
|
21
22
|
|
|
22
23
|
<el-divider content-position="left">可见性变更</el-divider>
|
|
@@ -130,6 +131,7 @@ import { getSetting, postSetting } from "../../service/admin";
|
|
|
130
131
|
import User from "@jx3box/jx3box-common/js/user";
|
|
131
132
|
import { cms as marks } from "@jx3box/jx3box-common/data/mark.json";
|
|
132
133
|
import { getTopicBucket } from "../../service/cms";
|
|
134
|
+
import emitter from "../../assets/js/emitt";
|
|
133
135
|
export default {
|
|
134
136
|
name: "Admin",
|
|
135
137
|
props: {
|
|
@@ -352,6 +354,12 @@ export default {
|
|
|
352
354
|
this.tags = data;
|
|
353
355
|
});
|
|
354
356
|
},
|
|
357
|
+
onRefreshCache() {
|
|
358
|
+
emitter.emit("refreshCache", {
|
|
359
|
+
type: this.post_type,
|
|
360
|
+
id: this.pid,
|
|
361
|
+
});
|
|
362
|
+
}
|
|
355
363
|
},
|
|
356
364
|
watch: {
|
|
357
365
|
"$route.params.id": function (id) {
|
package/src/wiki/WikiComment.vue
CHANGED
|
@@ -29,6 +29,14 @@
|
|
|
29
29
|
v-text="comment.parent.user_nickname"
|
|
30
30
|
></a>
|
|
31
31
|
</template>
|
|
32
|
+
<span class="u-mark u-top" v-if="comment.is_top">
|
|
33
|
+
<i class="el-icon-download"></i>
|
|
34
|
+
置顶
|
|
35
|
+
</span>
|
|
36
|
+
<span class="u-mark u-star" v-if="comment.is_star">
|
|
37
|
+
<i class="el-icon-star-on"></i>
|
|
38
|
+
精华
|
|
39
|
+
</span>
|
|
32
40
|
</div>
|
|
33
41
|
<p class="u-content" v-html="comment.content"></p>
|
|
34
42
|
<!-- 其他 -->
|