@jx3box/jx3box-ui 2.0.2 → 2.0.3
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/README.md +50 -2
- package/assets/css/bread/admin.less +32 -0
- package/assets/css/bread/breadcrumb.less +38 -0
- package/assets/css/bread/crumb.less +6 -0
- package/assets/css/comment/quick-reply.less +12 -1
- package/assets/css/common/bottom.less +4 -0
- package/assets/css/common/footer.less +23 -0
- package/assets/css/common/left-sidebar.less +28 -0
- package/assets/css/common/main.less +21 -0
- package/assets/css/common/right-sidebar.less +31 -0
- package/assets/css/common/suspend-common.less +51 -0
- package/assets/css/editor/combo.less +51 -0
- package/assets/css/editor/resource.less +64 -0
- package/assets/css/editor/tinymce.less +20 -0
- package/assets/css/editor/upload.less +25 -0
- package/assets/css/filters/client-by.less +6 -0
- package/assets/css/header/box.less +34 -0
- package/assets/css/interact/like2.less +4 -0
- package/assets/css/interact/share2.less +17 -0
- package/assets/css/mixin.less +3 -0
- package/assets/css/module/author.less +41 -0
- package/assets/css/module/buff.less +10 -0
- package/assets/css/module/directory.less +22 -0
- package/assets/css/module/icon.less +4 -0
- package/assets/css/module/item.less +50 -0
- package/assets/css/module/item_simple.less +7 -0
- package/assets/css/module/jx3_element.less +2 -1
- package/assets/css/module/macro.less +17 -0
- package/assets/css/module/npc.less +46 -1
- package/assets/css/module/resource.less +13 -0
- package/assets/css/module/skill.less +9 -0
- package/assets/css/module/talent.less +71 -0
- package/assets/css/single/author.less +24 -10
- package/assets/css/single/cms-single.less +16 -0
- package/assets/css/single/thx.less +51 -0
- package/assets/css/tinymce/_.less +7 -1
- package/assets/css/tinymce/a.less +5 -0
- package/assets/css/tinymce/code.less +22 -0
- package/assets/css/tinymce/combo.less +12 -0
- package/assets/css/tinymce/fold.less +12 -0
- package/assets/css/tinymce/h.less +10 -0
- package/assets/css/tinymce/hr.less +2 -0
- package/assets/css/tinymce/img.less +3 -0
- package/assets/css/tinymce/imgpreview.less +6 -1
- package/assets/css/tinymce/latex.less +7 -1
- package/assets/css/tinymce/list.less +12 -0
- package/assets/css/tinymce/macro.less +7 -1
- package/assets/css/tinymce/nextpage.less +14 -0
- package/assets/css/tinymce/p.less +2 -0
- package/assets/css/tinymce/pz.less +6 -0
- package/assets/css/tinymce/qixue.less +6 -0
- package/assets/css/tinymce/quote.less +2 -0
- package/assets/css/tinymce/table.less +13 -1
- package/assets/css/tinymce/video.less +18 -0
- package/assets/img/author/rss.svg +1 -0
- package/assets/img/common/logo-v2.svg +14 -0
- package/index.js +2 -0
- package/package.json +1 -1
- package/service/comment.js +56 -96
- package/src/App.vue +31 -31
- package/src/Breadcrumb.vue +16 -20
- package/src/Icon.vue +53 -0
- package/src/author/AuthorFans.vue +15 -5
- package/src/author/AuthorFollow.vue +1 -1
- package/src/author/AuthorGift.vue +9 -9
- package/src/author/AuthorHonor.vue +9 -8
- package/src/author/AuthorInfo.vue +10 -1
- package/src/author/AuthorLink.vue +8 -1
- package/src/author/AuthorPosts.vue +14 -8
- package/src/author/AuthorRss.vue +28 -34
- package/src/bread/Admin.vue +19 -6
- package/src/bread/Crumb.vue +7 -2
- package/src/bread/DesignTask.vue +44 -37
- package/src/comment/Avatar.vue +26 -8
- package/src/comment/CommentContent.vue +62 -17
- package/src/comment/CommentContentSimple.vue +54 -15
- package/src/comment/CommentWithReply.vue +22 -1
- package/src/comment/ReplyForReply.vue +14 -1
- package/src/comment/ReplyItem.vue +10 -1
- package/src/comment/ReplyList.vue +19 -1
- package/src/editor/BoxResource.vue +2 -2
- package/src/editor/Resource.vue +6 -6
- package/src/filters/clientBy.vue +14 -1
- package/src/filters/menuBy.vue +14 -1
- package/src/filters/orderBy.vue +1 -1
- package/src/filters/tagBy.vue +10 -1
- package/src/filters/versionBy.vue +6 -1
- package/src/filters/zlpBy.vue +6 -1
- package/src/header/asset.vue +13 -1
- package/src/header/box.vue +6 -1
- package/src/header/box2.vue +232 -233
- package/src/header/client.vue +6 -1
- package/src/header/logo.vue +1 -1
- package/src/header/manage.vue +0 -1
- package/src/header/nav.vue +1 -1
- package/src/header/userInfo.vue +14 -1
- package/src/interact/BoxcoinAdmin.vue +46 -5
- package/src/interact/BoxcoinRecords.vue +22 -1
- package/src/interact/BoxcoinUser.vue +49 -8
- package/src/interact/Contributors.vue +7 -11
- package/src/interact/Fav.vue +22 -1
- package/src/interact/Like.vue +10 -1
- package/src/interact/Share.vue +18 -1
- package/src/interact/WatchLater.vue +3 -3
- package/src/main.js +3 -1
- package/src/single/Author.vue +15 -10
- package/src/single/Collection.vue +10 -1
- package/src/single/Comment.vue +20 -3
- package/src/single/Creators.vue +10 -1
- package/src/single/PostDirectory.vue +1 -1
- package/src/single/PostHeader.vue +18 -1
- package/src/single/SimpleThx.vue +2 -2
- package/src/single/Thx.vue +45 -27
- package/src/single/cms-single.vue +10 -1
- package/assets/img/author/msg.svg +0 -55
- package/src/Bottom.vue +0 -23
- package/src/Box.vue +0 -149
- package/src/author/AuthorMsg.vue +0 -25
- package/src/bread/AdminButton.vue +0 -31
package/src/App.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="container-page">
|
|
3
3
|
<CommonHeader></CommonHeader>
|
|
4
|
-
|
|
4
|
+
<breadcrumb
|
|
5
5
|
name="频道名称"
|
|
6
6
|
slug="slug"
|
|
7
7
|
root="/slug"
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
</template>
|
|
16
16
|
<template #op-prepend> </template>
|
|
17
17
|
</breadcrumb>
|
|
18
|
-
<LeftSidebar :open="true" :uid="
|
|
18
|
+
<LeftSidebar :open="true" :uid="8719">
|
|
19
19
|
<LeftSideToggle :mobileOnly="true" />
|
|
20
|
-
<Author :uid="
|
|
20
|
+
<Author :uid="8719" />
|
|
21
21
|
</LeftSidebar>
|
|
22
22
|
<Main :withoutLeft="false" :withoutRight="false">
|
|
23
23
|
<versionBy value=""></versionBy>
|
|
@@ -72,42 +72,42 @@
|
|
|
72
72
|
</div>
|
|
73
73
|
</template>
|
|
74
74
|
</SuspendCommon>
|
|
75
|
-
</Main>
|
|
75
|
+
</Main>
|
|
76
76
|
<CommonFooter> </CommonFooter>
|
|
77
77
|
</div>
|
|
78
78
|
</template>
|
|
79
79
|
|
|
80
80
|
<script>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
81
|
+
import singlebox from "./single/cms-single.vue";
|
|
82
|
+
import UploadAlum from "./editor/UploadAlum.vue";
|
|
83
|
+
import Author from "./single/Author.vue";
|
|
84
|
+
import SimpleThxVue from "./single/SimpleThx.vue";
|
|
85
|
+
import Comment from "./single/Comment.vue";
|
|
86
|
+
import Thx from "./single/Thx.vue";
|
|
87
|
+
import PostHeader from "./single/PostHeader.vue";
|
|
88
|
+
import PostTopic from "./single/PostTopic.vue";
|
|
89
|
+
import axios from "axios";
|
|
90
|
+
import post_topics from "@jx3box/jx3box-common/data/post_topics.json";
|
|
91
|
+
import { get_item } from "../service/item";
|
|
92
|
+
import AdminDirectMessage from "./bread/AdminDirectMessage.vue";
|
|
93
|
+
import Admin from "@/bread/Admin.vue";
|
|
94
|
+
import versionBy from "./filters/versionBy.vue";
|
|
95
|
+
import SuspendCommon from "./SuspendCommon.vue";
|
|
96
96
|
export default {
|
|
97
97
|
name: "App",
|
|
98
98
|
components: {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
//
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
//
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
//
|
|
99
|
+
SimpleThxVue,
|
|
100
|
+
Author,
|
|
101
|
+
Comment,
|
|
102
|
+
Thx,
|
|
103
|
+
// PostHeader,
|
|
104
|
+
PostTopic,
|
|
105
|
+
UploadAlum,
|
|
106
|
+
// AdminDirectMessage,
|
|
107
|
+
singlebox,
|
|
108
|
+
versionBy,
|
|
109
|
+
SuspendCommon,
|
|
110
|
+
// Admin,
|
|
111
111
|
},
|
|
112
112
|
data() {
|
|
113
113
|
return {
|
package/src/Breadcrumb.vue
CHANGED
|
@@ -34,9 +34,7 @@
|
|
|
34
34
|
<el-icon><InfoFilled /></el-icon>
|
|
35
35
|
<span>反馈</span>
|
|
36
36
|
</a>
|
|
37
|
-
<!-- <AdminButton v-if="adminEnable" class="u-admin" /> -->
|
|
38
37
|
<Admin v-if="adminEnable" :marksOptions="adminMarks" :show-extend="showExtend" :app="slug" :subtypeMap="subtypeMap" />
|
|
39
|
-
<!-- <AdminDrop v-if="adminEnable" /> -->
|
|
40
38
|
<slot name="op-prepend"></slot>
|
|
41
39
|
</div>
|
|
42
40
|
</div>
|
|
@@ -53,22 +51,22 @@ import Bus from "../utils/bus";
|
|
|
53
51
|
|
|
54
52
|
export default {
|
|
55
53
|
name: "CommonBreadcrumb",
|
|
56
|
-
props:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
54
|
+
props: {
|
|
55
|
+
name: { type: String, default: "" },
|
|
56
|
+
slug: { type: String, default: "" },
|
|
57
|
+
root: { type: String, default: "" },
|
|
58
|
+
publishEnable: { type: Boolean, default: false },
|
|
59
|
+
adminEnable: { type: Boolean, default: false },
|
|
60
|
+
topicEnable: { type: Boolean, default: false },
|
|
61
|
+
feedbackEnable: { type: Boolean, default: false },
|
|
62
|
+
overlayEnable: { type: Boolean, default: false },
|
|
63
|
+
crumbEnable: { type: Boolean, default: false },
|
|
64
|
+
withoutLeft: { type: Boolean, default: false },
|
|
65
|
+
adminMarks: { type: Object, default: () => ({}) },
|
|
66
|
+
icon: { type: String, default: "" },
|
|
67
|
+
subtypeMap: { type: Object, default: () => ({}) },
|
|
68
|
+
showExtend: { type: Boolean, default: false },
|
|
69
|
+
},
|
|
72
70
|
data: function () {
|
|
73
71
|
return {
|
|
74
72
|
isOpen: true,
|
|
@@ -130,8 +128,6 @@ export default {
|
|
|
130
128
|
components: {
|
|
131
129
|
Admin,
|
|
132
130
|
Crumb,
|
|
133
|
-
// AdminButton,
|
|
134
|
-
// AdminDrop
|
|
135
131
|
},
|
|
136
132
|
};
|
|
137
133
|
</script>
|
package/src/Icon.vue
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<img v-if="renderMode === 'inline'" svg-inline :src="path" :style="boxStyle" />
|
|
3
|
+
|
|
4
|
+
<i v-else-if="renderMode === 'font-awesome'" :class="name" :style="fontSizeStyle"></i>
|
|
5
|
+
|
|
6
|
+
<i v-else-if="renderMode === 'lucide'" :data-lucide="name" :style="boxStyle"></i>
|
|
7
|
+
|
|
8
|
+
<svg v-else-if="renderMode === 'sprite'" class="rx-icon" :width="size" :height="size" role="img" :style="{ fill: 'currentColor' }">
|
|
9
|
+
<!-- 同时写 href 与 xlink:href,兼容性更好 -->
|
|
10
|
+
<use :href="symbolId" :xlink:href="symbolId" />
|
|
11
|
+
</svg>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
export default {
|
|
16
|
+
name: "Icon",
|
|
17
|
+
props: {
|
|
18
|
+
// type 缺省:使用 path + svg-inline
|
|
19
|
+
// type=font-awesome:name 直接传入 "fa-xxx fa-solid" 等 class
|
|
20
|
+
// type=lucide:name 直接传入 lucide 的 icon name(如 "activity")
|
|
21
|
+
// type=sprite:使用雪碧图(prefix + name)
|
|
22
|
+
type: { type: String, default: "inline" },
|
|
23
|
+
name: { type: String, default: "" },
|
|
24
|
+
path: { type: String, default: "" },
|
|
25
|
+
prefix: { type: String, default: "icon-" }, // 与插件的 symbolId 前缀一致
|
|
26
|
+
size: { type: [Number, String], default: 24 }, // 图标大小,单位 px
|
|
27
|
+
},
|
|
28
|
+
computed: {
|
|
29
|
+
renderMode() {
|
|
30
|
+
const t = (this.type || "").trim();
|
|
31
|
+
if (!t) return this.path ? "inline" : "";
|
|
32
|
+
if (t === "font-awesome") return this.name ? "font-awesome" : "";
|
|
33
|
+
if (t === "lucide") return this.name ? "lucide" : "";
|
|
34
|
+
if (t === "sprite") return this.name ? "sprite" : "";
|
|
35
|
+
return this.name ? "sprite" : "";
|
|
36
|
+
},
|
|
37
|
+
sizePx() {
|
|
38
|
+
if (typeof this.size === "number") return `${this.size}px`;
|
|
39
|
+
if (!this.size) return "24px";
|
|
40
|
+
return String(this.size).match(/^\d+$/) ? `${this.size}px` : String(this.size);
|
|
41
|
+
},
|
|
42
|
+
fontSizeStyle() {
|
|
43
|
+
return { fontSize: this.sizePx };
|
|
44
|
+
},
|
|
45
|
+
boxStyle() {
|
|
46
|
+
return { width: this.sizePx, height: this.sizePx };
|
|
47
|
+
},
|
|
48
|
+
symbolId() {
|
|
49
|
+
return `#${this.prefix}${this.name}`;
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
</script>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<img svg-inline src="../../assets/img/leftsidebar/fans.svg" />
|
|
5
5
|
<span>粉丝榜</span>
|
|
6
6
|
</div>
|
|
7
|
-
<div class="f-avatar">
|
|
7
|
+
<div class="f-avatar" v-if="list && list.length">
|
|
8
8
|
<el-tooltip
|
|
9
9
|
class="item"
|
|
10
10
|
effect="dark"
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
</div>
|
|
22
22
|
<div class="f-bottom">
|
|
23
23
|
粉丝数: <span class="u-count">{{ fans_count }}</span
|
|
24
|
-
><template v-if="boxcoin_count"
|
|
24
|
+
><template v-if="boxcoin_count"
|
|
25
|
+
>,累计收到盒币打赏: <span class="u-count">{{ boxcoin_count }}</span></template
|
|
26
|
+
>
|
|
25
27
|
</div>
|
|
26
28
|
</div>
|
|
27
29
|
</template>
|
|
@@ -33,7 +35,7 @@ export default {
|
|
|
33
35
|
name: "AuthorFans",
|
|
34
36
|
props: {
|
|
35
37
|
uid: {
|
|
36
|
-
type: Number,
|
|
38
|
+
type: [Number, String],
|
|
37
39
|
default: 0,
|
|
38
40
|
},
|
|
39
41
|
},
|
|
@@ -148,15 +150,23 @@ export default {
|
|
|
148
150
|
}
|
|
149
151
|
}
|
|
150
152
|
.f-avatar {
|
|
151
|
-
|
|
153
|
+
display: flex;
|
|
154
|
+
align-items: center;
|
|
155
|
+
flex-wrap: wrap;
|
|
156
|
+
gap: 5px;
|
|
157
|
+
margin-bottom: 6px;
|
|
158
|
+
line-height: 1;
|
|
152
159
|
.f-avatar-num {
|
|
153
160
|
.fz(12px);
|
|
154
161
|
color: #888;
|
|
155
162
|
font-weight: 700;
|
|
156
163
|
}
|
|
157
|
-
.u-fan{
|
|
164
|
+
.u-fan {
|
|
158
165
|
.mr(5px);
|
|
159
166
|
}
|
|
167
|
+
.el-tooltip {
|
|
168
|
+
display: inline-flex;
|
|
169
|
+
}
|
|
160
170
|
}
|
|
161
171
|
.f-bottom {
|
|
162
172
|
.mt(5px);
|
|
@@ -7,16 +7,11 @@
|
|
|
7
7
|
:disabled="isSelf || !status"
|
|
8
8
|
:title="btnTitle"
|
|
9
9
|
plain
|
|
10
|
+
size="small"
|
|
10
11
|
>赠礼</el-button
|
|
11
12
|
>
|
|
12
13
|
|
|
13
|
-
<el-dialog
|
|
14
|
-
title="赠礼"
|
|
15
|
-
v-model="visible"
|
|
16
|
-
:append-to-body="true"
|
|
17
|
-
class="c-author-gift-dialog"
|
|
18
|
-
v-if="status"
|
|
19
|
-
>
|
|
14
|
+
<el-dialog title="赠礼" v-model="visible" :append-to-body="true" class="c-author-gift-dialog" v-if="status">
|
|
20
15
|
<div class="u-content">
|
|
21
16
|
<div class="u-left">
|
|
22
17
|
<em class="u-label">🌟 金箔</em>
|
|
@@ -27,7 +22,7 @@
|
|
|
27
22
|
<em class="u-label">❤️ 赠送</em>
|
|
28
23
|
<div class="u-points">
|
|
29
24
|
<el-radio-group v-model="count">
|
|
30
|
-
<el-radio :
|
|
25
|
+
<el-radio :value="item" v-for="item in fitPoints" :key="item" border>
|
|
31
26
|
<b>{{ item }}</b
|
|
32
27
|
>金箔
|
|
33
28
|
</el-radio>
|
|
@@ -64,7 +59,12 @@ import User from "@jx3box/jx3box-common/js/user";
|
|
|
64
59
|
import { sendCny, checkCnyStatus, checkGiftStatus } from "../../service/thx";
|
|
65
60
|
export default {
|
|
66
61
|
name: "AuthorGift",
|
|
67
|
-
props:
|
|
62
|
+
props: {
|
|
63
|
+
uid: {
|
|
64
|
+
type: [Number, String],
|
|
65
|
+
default: 0,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
68
|
components: {},
|
|
69
69
|
data: function () {
|
|
70
70
|
return {
|
|
@@ -8,10 +8,15 @@ import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
|
|
|
8
8
|
import { getUserHonor } from "../../service/cms";
|
|
9
9
|
import { inRange } from "lodash";
|
|
10
10
|
|
|
11
|
-
const {
|
|
11
|
+
const { __cdn, __Root } = JX3BOX;
|
|
12
12
|
const HONOR_IMG_KEY = "honor_img";
|
|
13
13
|
export default {
|
|
14
|
-
props:
|
|
14
|
+
props: {
|
|
15
|
+
uid: {
|
|
16
|
+
type: [Number, String],
|
|
17
|
+
default: 0,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
15
20
|
data: function () {
|
|
16
21
|
return {
|
|
17
22
|
honor: "",
|
|
@@ -35,12 +40,9 @@ export default {
|
|
|
35
40
|
},
|
|
36
41
|
methods: {
|
|
37
42
|
imgUrl: function () {
|
|
38
|
-
let item = this.honor;
|
|
43
|
+
let item = this.honor?.honor_info;
|
|
39
44
|
if (!item) return;
|
|
40
|
-
|
|
41
|
-
return __imgPath + `decoration/honor/${item.img}/${item.img}_${item.imgIndex}.${item.img_ext}`;
|
|
42
|
-
}
|
|
43
|
-
return __imgPath + `decoration/honor/${item.img}/${item.img}.${item.img_ext}`;
|
|
45
|
+
return __cdn + `design/decoration/honor/${item.img}/${item.img}.${item.img_ext}`;
|
|
44
46
|
},
|
|
45
47
|
getHonor() {
|
|
46
48
|
let user_id = this.uid;
|
|
@@ -72,7 +74,6 @@ export default {
|
|
|
72
74
|
let ranking = honorConfig.ranking;
|
|
73
75
|
let honorStr = honorConfig.year || "";
|
|
74
76
|
|
|
75
|
-
console.log(honorConfig, regPrefix);
|
|
76
77
|
if (!only) {
|
|
77
78
|
if (regPrefix) {
|
|
78
79
|
honorStr = honorStr + (data[regPrefix[0].slice(1, -1)] || "");
|
|
@@ -62,7 +62,16 @@ import Honor from "./AuthorHonor.vue";
|
|
|
62
62
|
const { __imgPath, __userLevelColor } = JX3BOX;
|
|
63
63
|
export default {
|
|
64
64
|
name: "AuthorInfo",
|
|
65
|
-
props:
|
|
65
|
+
props: {
|
|
66
|
+
uid: {
|
|
67
|
+
type: [Number, String],
|
|
68
|
+
default: 0,
|
|
69
|
+
},
|
|
70
|
+
anonymous: {
|
|
71
|
+
type: [Number, String],
|
|
72
|
+
default: 0,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
66
75
|
components: {
|
|
67
76
|
Avatar,
|
|
68
77
|
Honor,
|
|
@@ -11,10 +11,8 @@
|
|
|
11
11
|
<ul class="u-list" v-if="data && data.length">
|
|
12
12
|
<li v-for="(item, i) in data" :key="i">
|
|
13
13
|
<a class="u-item" :href="url(item.ID, item.post_type)" target="_blank">
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
{{ item.post_title || item.post_type + "/无标题" }}
|
|
17
|
-
</span>
|
|
14
|
+
<img svg-inline src="../../assets/img/leftsidebar/arrow.svg" class="u-icon" />
|
|
15
|
+
<span class="u-title">{{ item.post_title || item.post_type + "/无标题" }}</span>
|
|
18
16
|
</a>
|
|
19
17
|
</li>
|
|
20
18
|
</ul>
|
|
@@ -74,7 +72,9 @@ export default {
|
|
|
74
72
|
.db;
|
|
75
73
|
}
|
|
76
74
|
.u-item {
|
|
77
|
-
.
|
|
75
|
+
.flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: 5px;
|
|
78
78
|
padding: 3px 2px;
|
|
79
79
|
.nobreak;
|
|
80
80
|
.fz(12px,2);
|
|
@@ -82,9 +82,7 @@ export default {
|
|
|
82
82
|
border-bottom: 1px solid transparent;
|
|
83
83
|
&:hover {
|
|
84
84
|
color: @pink;
|
|
85
|
-
|
|
86
|
-
// border-bottom: 1px solid @border;
|
|
87
|
-
.u-icon{
|
|
85
|
+
.u-icon {
|
|
88
86
|
transform: translateX(5px);
|
|
89
87
|
}
|
|
90
88
|
}
|
|
@@ -94,9 +92,17 @@ export default {
|
|
|
94
92
|
.size(12px);
|
|
95
93
|
// .y;
|
|
96
94
|
color: #999;
|
|
95
|
+
flex: 0 0 auto;
|
|
97
96
|
// .mr(5px);
|
|
98
97
|
transition: all 0.3s;
|
|
99
98
|
}
|
|
99
|
+
.u-title {
|
|
100
|
+
flex: 1 1 auto;
|
|
101
|
+
min-width: 0;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
text-overflow: ellipsis;
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
}
|
|
100
106
|
|
|
101
107
|
.u-label {
|
|
102
108
|
.pr;
|
package/src/author/AuthorRss.vue
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
>
|
|
15
|
-
</div>
|
|
2
|
+
<el-button
|
|
3
|
+
class="u-btn c-author-rss"
|
|
4
|
+
:class="{ 'u-fans-box': isSelf, 'is-subscribed': subscribed }"
|
|
5
|
+
size="small"
|
|
6
|
+
plain
|
|
7
|
+
@click="subscribe"
|
|
8
|
+
:loading="loading"
|
|
9
|
+
:disabled="isSelf"
|
|
10
|
+
>
|
|
11
|
+
<img class="u-icon" svg-inline src="../../assets/img/author/rss.svg" />
|
|
12
|
+
{{ btnText }}</el-button
|
|
13
|
+
>
|
|
16
14
|
</template>
|
|
17
15
|
|
|
18
16
|
<script>
|
|
@@ -54,9 +52,6 @@ export default {
|
|
|
54
52
|
isLogin: function () {
|
|
55
53
|
return User.isLogin();
|
|
56
54
|
},
|
|
57
|
-
src() {
|
|
58
|
-
return jx3box.__cdn + "design/vector/icon/rss_author.svg";
|
|
59
|
-
}
|
|
60
55
|
},
|
|
61
56
|
watch: {
|
|
62
57
|
uid: {
|
|
@@ -130,28 +125,27 @@ export default {
|
|
|
130
125
|
</script>
|
|
131
126
|
|
|
132
127
|
<style lang="less">
|
|
133
|
-
.c-author-rss {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
.u-icon {
|
|
143
|
-
filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(198deg) brightness(104%) contrast(101%);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
128
|
+
.c-author-rss.el-button {
|
|
129
|
+
cursor: default;
|
|
130
|
+
&:hover,
|
|
131
|
+
&.is-plain:hover,
|
|
132
|
+
&.is-plain:focus {
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
background-color: @light-pink;
|
|
135
|
+
color: #fff;
|
|
136
|
+
border-color: darken(@light-pink, 2%);
|
|
146
137
|
}
|
|
147
138
|
.u-icon {
|
|
148
|
-
.size(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
filter: invert(40%) sepia(5%) saturate(419%) hue-rotate(182deg) brightness(89%) contrast(84%);
|
|
139
|
+
.size(10px);
|
|
140
|
+
fill: currentColor;
|
|
141
|
+
margin-right: 4px;
|
|
152
142
|
}
|
|
153
143
|
}
|
|
154
144
|
|
|
145
|
+
.c-author-rss.el-button.is-subscribed {
|
|
146
|
+
color: #999;
|
|
147
|
+
}
|
|
148
|
+
|
|
155
149
|
@media screen and (max-width: @phone) {
|
|
156
150
|
.el-message-box {
|
|
157
151
|
max-width: 60%;
|
package/src/bread/Admin.vue
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<!-- <template v-if="isAdmin"> -->
|
|
14
14
|
<el-divider content-position="left">状态变更</el-divider>
|
|
15
15
|
<el-radio-group v-model="post_status" class="c-admin-status">
|
|
16
|
-
<el-radio-button v-for="(option, key) in status_options" :
|
|
16
|
+
<el-radio-button v-for="(option, key) in status_options" :value="key" :key="key">{{
|
|
17
17
|
option
|
|
18
18
|
}}</el-radio-button>
|
|
19
19
|
</el-radio-group>
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
|
|
23
23
|
<el-divider content-position="left">可见性变更</el-divider>
|
|
24
24
|
<el-radio-group v-model="visible" class="c-admin-status">
|
|
25
|
-
<el-radio-button v-for="(option, key) in visible_options" :
|
|
25
|
+
<el-radio-button v-for="(option, key) in visible_options" :value="key" :key="key">{{
|
|
26
26
|
option
|
|
27
27
|
}}</el-radio-button>
|
|
28
28
|
</el-radio-group>
|
|
29
29
|
|
|
30
30
|
<el-divider content-position="left">推荐角标</el-divider>
|
|
31
31
|
<el-checkbox-group v-model="mark" class="c-admin-mark">
|
|
32
|
-
<el-checkbox v-for="(option, key) in mark_options" :
|
|
32
|
+
<el-checkbox v-for="(option, key) in mark_options" :value="key" :key="key">{{ option }}</el-checkbox>
|
|
33
33
|
</el-checkbox-group>
|
|
34
34
|
|
|
35
35
|
<el-divider content-position="left">高亮置顶</el-divider>
|
|
@@ -292,7 +292,20 @@ export default {
|
|
|
292
292
|
// 拉
|
|
293
293
|
pull: function () {
|
|
294
294
|
getSetting(this.pid).then((data) => {
|
|
295
|
-
let {
|
|
295
|
+
let {
|
|
296
|
+
ID,
|
|
297
|
+
color,
|
|
298
|
+
mark,
|
|
299
|
+
post_status,
|
|
300
|
+
post_author,
|
|
301
|
+
sticky,
|
|
302
|
+
post_banner,
|
|
303
|
+
post_type,
|
|
304
|
+
visible,
|
|
305
|
+
star,
|
|
306
|
+
post_subtype,
|
|
307
|
+
topics,
|
|
308
|
+
} = data;
|
|
296
309
|
this.pid = ID;
|
|
297
310
|
this.post_status = post_status;
|
|
298
311
|
this.visible = visible;
|
|
@@ -306,7 +319,7 @@ export default {
|
|
|
306
319
|
if (this.sticky) this.isSticky = true;
|
|
307
320
|
|
|
308
321
|
this.isStar = star || 0;
|
|
309
|
-
this.topics = topics?.map(item => item.topic) || [];
|
|
322
|
+
this.topics = topics?.map((item) => item.topic) || [];
|
|
310
323
|
this.post_subtype = post_subtype || "";
|
|
311
324
|
|
|
312
325
|
// 设置加载完成标识
|
|
@@ -348,7 +361,7 @@ export default {
|
|
|
348
361
|
type: this.post_type,
|
|
349
362
|
id: this.pid,
|
|
350
363
|
});
|
|
351
|
-
}
|
|
364
|
+
},
|
|
352
365
|
},
|
|
353
366
|
watch: {
|
|
354
367
|
"$route.params.id": function () {
|
package/src/bread/Crumb.vue
CHANGED
|
@@ -6,8 +6,13 @@
|
|
|
6
6
|
import { getBreadcrumb } from "../../service/breadcrumb";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
name: "
|
|
10
|
-
props:
|
|
9
|
+
name: "BreadCrumb",
|
|
10
|
+
props: {
|
|
11
|
+
name: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
11
16
|
data: function () {
|
|
12
17
|
return {
|
|
13
18
|
html: "",
|