@jx3box/jx3box-common-ui 5.3.1 → 5.3.5

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.
@@ -39,6 +39,14 @@
39
39
  .ml(10px);
40
40
  }
41
41
 
42
+ .c-admin-banner{
43
+ .u-banner{
44
+ .mt(5px);
45
+ }
46
+ .u-btn{
47
+ .pointer;
48
+ }
49
+ }
42
50
  .c-admin-upload{
43
51
  .w(100%) !important;
44
52
  .x;
@@ -49,9 +57,6 @@
49
57
  }
50
58
  overflow: hidden;
51
59
  }
52
- .c-admin-banner-btn{
53
- .mt(10px);
54
- }
55
60
 
56
61
  .c-admin-info{
57
62
  display: flex;
@@ -108,13 +108,15 @@
108
108
  .u-team {
109
109
  .db;
110
110
  background-color: #f2f6fc;
111
- .mb(5px);
112
- &:hover span {
113
- color: @pink;
111
+ .mb(6px);
112
+ &:hover{
113
+ background-color: #e6f0fb;
114
+ // color:@color-link;
114
115
  }
116
+ padding:2px 0;
115
117
  }
116
118
  .u-teamlogo {
117
- .size(32px);
119
+ .size(26px);
118
120
  .y;
119
121
  .mr(10px);
120
122
  }
@@ -96,9 +96,9 @@
96
96
  "parentKey": "fb"
97
97
  },
98
98
  {
99
- "key": "battle_raid",
100
- "link": "/battle",
101
- "label": "战斗分析",
99
+ "key": "rank",
100
+ "link": "/rank",
101
+ "label": "秘境百强",
102
102
  "client": "all",
103
103
  "status": true,
104
104
  "parentKey": "fb"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "std":["北天药宗","奉天证道"],
3
- "origin":["物华天宝"],
4
- "all":["北天药宗","物华天宝","奉天证道"]
3
+ "origin":["藏剑山庄","物华天宝"],
4
+ "all":["北天药宗","奉天证道","藏剑山庄","物华天宝"]
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.3.1",
3
+ "version": "5.3.5",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,8 +30,8 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-common": "^6.7.0",
34
- "@jx3box/jx3box-data": "^1.7.1",
33
+ "@jx3box/jx3box-common": "^6.7.2",
34
+ "@jx3box/jx3box-data": "^1.8.3",
35
35
  "axios": "^0.19.2",
36
36
  "element-ui": "^2.13.2",
37
37
  "jquery": "^3.5.1",
package/src/Author.vue CHANGED
@@ -87,7 +87,7 @@
87
87
  <i class="el-icon-school"></i>
88
88
  <span>所属团队</span>
89
89
  </div>
90
- <a class="u-team" v-for="(item,i) in teams" :key="i" :href="item.team_id | teamLink">
90
+ <a class="u-team" v-for="(item,i) in teams" :key="i" :href="item.team_id | teamLink" target="_blank">
91
91
  <img class="u-teamlogo" :src="item.team_logo | showTeamLogo" />
92
92
  <span class="u-teamname">{{item.team_name}}@{{item.team_server}}</span>
93
93
  </a>
@@ -180,7 +180,7 @@ export default {
180
180
  },
181
181
  filters: {
182
182
  showTeamMedal: function (val) {
183
- return __imgPath + "image/medals/team/" + val + "-20.gif";
183
+ return __imgPath + "image/medals/team/" + val + ".gif";
184
184
  },
185
185
  authorLink,
186
186
  weiboLink: function (val) {
package/src/Footer.vue CHANGED
@@ -6,7 +6,7 @@
6
6
  svg-inline
7
7
  src="../assets/img/footer/china.svg"
8
8
  />
9
- <a href="http://beian.miit.gov.cn/" class="u-beian" target="_blank"
9
+ <a href="https://beian.miit.gov.cn/" class="u-beian" target="_blank"
10
10
  >湘ICP备2021002288号</a
11
11
  >
12
12
  </div>
@@ -15,7 +15,7 @@
15
15
  <em>|</em>
16
16
  <a
17
17
  class="u-doc"
18
- href="https://www.jx3box.com/tool/#/?subtype=4"
18
+ href="/tool/#/?subtype=4"
19
19
  target="_blank"
20
20
  >帮助文档</a
21
21
  >
@@ -57,24 +57,27 @@
57
57
  ></el-switch>
58
58
 
59
59
  <el-divider content-position="left">封面海报</el-divider>
60
- <el-upload
61
- class="c-admin-upload el-upload--picture-card"
62
- :action="uploadurl"
63
- :with-credentials="true"
64
- :show-file-list="false"
65
- :on-success="uploadSuccess"
66
- :on-error="uploadFail"
67
- >
68
- <img v-if="post_banner" :src="post_banner" />
69
- <i class="el-icon-plus"></i>
70
- </el-upload>
71
- <el-button
72
- class="c-admin-banner-btn"
73
- icon="el-icon-circle-close"
74
- size="mini"
75
- plain
76
- @click="removeBanner"
77
- >移除海报</el-button>
60
+ <div class="c-admin-banner">
61
+ <el-upload
62
+ class="c-admin-upload el-upload--picture-card"
63
+ :action="uploadurl"
64
+ :with-credentials="true"
65
+ :show-file-list="false"
66
+ :on-success="uploadSuccess"
67
+ :on-error="uploadFail"
68
+ >
69
+ <img v-if="post_banner" :src="post_banner" />
70
+ <i class="el-icon-plus"></i>
71
+ </el-upload>
72
+ <el-input class="u-banner" v-model="post_banner" size="small">
73
+ <span slot="prepend">海报地址</span>
74
+ <span slot="append">
75
+ <span class="u-btn" @click="removeBanner">
76
+ <i class="el-icon-circle-close"></i> 移除海报
77
+ </span>
78
+ </span>
79
+ </el-input>
80
+ </div>
78
81
 
79
82
  <el-divider content-position="left">元信息</el-divider>
80
83
  <div class="c-admin-info">
@@ -108,7 +111,11 @@
108
111
  <script>
109
112
  import Bus from "../../service/bus";
110
113
  import { getRewrite } from "@jx3box/jx3box-common/js/utils";
111
- import { __cms, __postType,__visibleMap } from "@jx3box/jx3box-common/data/jx3box.json";
114
+ import {
115
+ __cms,
116
+ __postType,
117
+ __visibleMap,
118
+ } from "@jx3box/jx3box-common/data/jx3box.json";
112
119
  import { getSetting, postSetting } from "../../service/admin";
113
120
  import User from "@jx3box/jx3box-common/js/user";
114
121
  import { cms as marks } from "@jx3box/jx3box-common/data/mark.json";
@@ -135,8 +142,8 @@ export default {
135
142
  draft: "草稿",
136
143
  dustbin: "删除",
137
144
  },
138
- visible : '0',
139
- visible_options:__visibleMap,
145
+ visible: "0",
146
+ visible_options: __visibleMap,
140
147
 
141
148
  // 角标
142
149
  mark: [],
@@ -193,7 +200,10 @@ export default {
193
200
  },
194
201
  // 获取pid
195
202
  checkPostID: function () {
196
- this.pid = getRewrite("pid") || (this.$route && this.$route.params && this.$route.params.id) || 0;
203
+ this.pid =
204
+ getRewrite("pid") ||
205
+ (this.$route && this.$route.params && this.$route.params.id) ||
206
+ 0;
197
207
  },
198
208
  // 获取type
199
209
  checkChannel: function () {
@@ -238,7 +248,7 @@ export default {
238
248
  sticky,
239
249
  post_banner,
240
250
  post_type,
241
- visible
251
+ visible,
242
252
  } = data;
243
253
  this.pid = ID;
244
254
  this.post_status = post_status;
@@ -263,21 +273,23 @@ export default {
263
273
  },
264
274
  // 推
265
275
  push: function () {
266
- postSetting(this.data).then((res) => {
267
- this.$message({
268
- message: "设置成功",
269
- type: "success",
276
+ postSetting(this.data)
277
+ .then((res) => {
278
+ this.$message({
279
+ message: "设置成功",
280
+ type: "success",
281
+ });
282
+ })
283
+ .finally(() => {
284
+ this.pushing = false;
285
+ this.close();
270
286
  });
271
- }).finally(() => {
272
- this.pushing = false;
273
- this.close();
274
- })
275
287
  },
276
288
  },
277
- watch : {
278
- '$route.params.id' : function (id){
279
- this.checkPostID()
280
- }
289
+ watch: {
290
+ "$route.params.id": function (id) {
291
+ this.checkPostID();
292
+ },
281
293
  },
282
294
  created: function () {
283
295
  // 是否mount
@@ -293,7 +305,7 @@ export default {
293
305
  // 绑定监听
294
306
  Bus.$on("toggleAdminPanel", (data) => {
295
307
  this.dialog_visible = !this.dialog_visible;
296
- this.checkPostID()
308
+ this.checkPostID();
297
309
  // 文章类型的加载
298
310
  if (this.pid && this.hasRight) {
299
311
  this.pull();