@jx3box/jx3box-editor 0.7.6 → 0.7.10
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/data/detach_type.json +29 -0
- package/package.json +4 -4
- package/service/database.js +5 -2
- package/src/Resource.vue +36 -38
- package/src/SkillSimple.vue +0 -10
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"0":"",
|
|
3
|
+
"1":"外功气劲",
|
|
4
|
+
"2":"外功不利效果",
|
|
5
|
+
"3":"阳性气劲",
|
|
6
|
+
"4":"阳性不利效果",
|
|
7
|
+
"5":"混元气劲",
|
|
8
|
+
"6":"混元不利效果",
|
|
9
|
+
"7":"阴性气劲",
|
|
10
|
+
"8":"阴性不利效果",
|
|
11
|
+
"9":"点穴",
|
|
12
|
+
"10":"点穴不利效果",
|
|
13
|
+
"11":"毒性气劲",
|
|
14
|
+
"12":"毒性不利效果",
|
|
15
|
+
"13":"蛊",
|
|
16
|
+
"14":"蛊不利效果",
|
|
17
|
+
"15":"药石",
|
|
18
|
+
"16":"药石不利效果",
|
|
19
|
+
"17":"辅助类食品",
|
|
20
|
+
"18":"增强类食品",
|
|
21
|
+
"19":"辅助类药品",
|
|
22
|
+
"20":"增强类药品",
|
|
23
|
+
"21":"",
|
|
24
|
+
"22":"",
|
|
25
|
+
"23":"",
|
|
26
|
+
"24":"宴席",
|
|
27
|
+
"52":"",
|
|
28
|
+
"101":""
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-editor",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.10",
|
|
4
4
|
"description": "JX3BOX Article & Editor",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"last 2 versions"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@jx3box/jx3box-common": "^6.6.
|
|
34
|
-
"@jx3box/jx3box-data": "^1.
|
|
35
|
-
"@jx3box/jx3box-emotion": "^1.0.
|
|
33
|
+
"@jx3box/jx3box-common": "^6.6.5",
|
|
34
|
+
"@jx3box/jx3box-data": "^1.6.2",
|
|
35
|
+
"@jx3box/jx3box-emotion": "^1.0.8",
|
|
36
36
|
"@jx3box/jx3box-macro": "^1.0.1",
|
|
37
37
|
"@jx3box/jx3box-talent": "^1.1.0",
|
|
38
38
|
"@tinymce/tinymce-vue": "^3.2.2",
|
package/service/database.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
2
|
import { __node, __helperUrl, __iconPath } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
3
|
-
const API = __node;
|
|
3
|
+
const API = __node;
|
|
4
4
|
|
|
5
5
|
function loadResource(type, query, params) {
|
|
6
6
|
switch (type) {
|
|
@@ -9,7 +9,10 @@ function loadResource(type, query, params) {
|
|
|
9
9
|
.get(`${__helperUrl}api/item/search`, {
|
|
10
10
|
params: {keyword: query, page: params.page, limit: params.per},
|
|
11
11
|
}, {
|
|
12
|
-
headers: {
|
|
12
|
+
headers: {
|
|
13
|
+
Accept: "application/prs.helper.v2+json",
|
|
14
|
+
'JX3-Client-Type': params.client == 'origin' ? 2 : 1,
|
|
15
|
+
},
|
|
13
16
|
withCredentials: true,
|
|
14
17
|
})
|
|
15
18
|
.then((res) => {
|
package/src/Resource.vue
CHANGED
|
@@ -21,32 +21,35 @@
|
|
|
21
21
|
>
|
|
22
22
|
<template slot="prepend">ID /名称</template>
|
|
23
23
|
<template slot="append" v-if="isPC">
|
|
24
|
-
<el-switch v-model="strict" active-text="精确匹配" @change="search"></el-switch>
|
|
24
|
+
<el-switch v-model="strict" active-text="精确匹配" @change="search" title="仅对Buff/Skill有效"></el-switch>
|
|
25
25
|
</template>
|
|
26
26
|
</el-input>
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
29
|
<el-tabs class="m-database-tabs" v-model="type" type="card" @tab-click="changeType">
|
|
30
|
-
<el-tab-pane label="
|
|
30
|
+
<el-tab-pane label="Buff" name="buff">
|
|
31
31
|
<span slot="label">
|
|
32
|
-
<img class="u-icon" svg-inline src="../assets/img/
|
|
33
|
-
<b
|
|
34
|
-
<em class="u-count">{{ stat.
|
|
32
|
+
<img class="u-icon" svg-inline src="../assets/img/buff.svg" />
|
|
33
|
+
<b>Buff</b>
|
|
34
|
+
<em class="u-count">{{ stat.buff }}</em>
|
|
35
35
|
</span>
|
|
36
|
-
<p v-if="
|
|
36
|
+
<p v-if="buff.length && done" class="m-resource-count">
|
|
37
37
|
<i class="el-icon-s-data"></i> 共找到
|
|
38
|
-
<b>{{
|
|
38
|
+
<b>{{ buff.length }}</b> 条记录
|
|
39
39
|
</p>
|
|
40
40
|
<ul class="m-resource-list">
|
|
41
41
|
<li
|
|
42
|
-
v-for="(o, i) in
|
|
42
|
+
v-for="(o, i) in buff"
|
|
43
43
|
class="u-item"
|
|
44
44
|
:key="i"
|
|
45
45
|
:class="{ on: !!o.isSelected }"
|
|
46
|
-
@click="selectCommon('
|
|
47
|
-
ref="
|
|
46
|
+
@click="selectCommon('buff', o, i)"
|
|
47
|
+
ref="buff"
|
|
48
48
|
>
|
|
49
|
-
<span class="u-id">
|
|
49
|
+
<span class="u-id">
|
|
50
|
+
ID:{{ o.BuffID }}
|
|
51
|
+
<span class="u-detach">{{o.DetachType | showDetachType}}</span>
|
|
52
|
+
</span>
|
|
50
53
|
<img
|
|
51
54
|
class="u-pic"
|
|
52
55
|
:title="'IconID:' + o.IconID"
|
|
@@ -55,46 +58,39 @@
|
|
|
55
58
|
<span class="u-primary">
|
|
56
59
|
<span class="u-name">
|
|
57
60
|
{{ o.Name }}
|
|
58
|
-
<em v-if="o.
|
|
59
|
-
</span>
|
|
60
|
-
<span class="u-content">
|
|
61
|
-
{{
|
|
62
|
-
o.Desc | filterRaw
|
|
63
|
-
}}
|
|
61
|
+
<em v-if="o.BuffName">({{ o.BuffName }})</em>
|
|
64
62
|
</span>
|
|
63
|
+
<span class="u-content">{{ o.Desc }}</span>
|
|
65
64
|
</span>
|
|
66
65
|
</li>
|
|
67
66
|
</ul>
|
|
68
67
|
<el-alert
|
|
69
|
-
v-if="!
|
|
68
|
+
v-if="!buff.length && done"
|
|
70
69
|
title="没有找到相关条目"
|
|
71
70
|
type="info"
|
|
72
71
|
show-icon
|
|
73
72
|
></el-alert>
|
|
74
73
|
</el-tab-pane>
|
|
75
|
-
<el-tab-pane label="
|
|
74
|
+
<el-tab-pane label="技能" name="skill">
|
|
76
75
|
<span slot="label">
|
|
77
|
-
<img class="u-icon" svg-inline src="../assets/img/
|
|
78
|
-
<b
|
|
79
|
-
<em class="u-count">{{ stat.
|
|
76
|
+
<img class="u-icon" svg-inline src="../assets/img/skill.svg" />
|
|
77
|
+
<b>技能</b>
|
|
78
|
+
<em class="u-count">{{ stat.skill }}</em>
|
|
80
79
|
</span>
|
|
81
|
-
<p v-if="
|
|
80
|
+
<p v-if="skill.length && done" class="m-resource-count">
|
|
82
81
|
<i class="el-icon-s-data"></i> 共找到
|
|
83
|
-
<b>{{
|
|
82
|
+
<b>{{ skill.length }}</b> 条记录
|
|
84
83
|
</p>
|
|
85
84
|
<ul class="m-resource-list">
|
|
86
85
|
<li
|
|
87
|
-
v-for="(o, i) in
|
|
86
|
+
v-for="(o, i) in skill"
|
|
88
87
|
class="u-item"
|
|
89
88
|
:key="i"
|
|
90
89
|
:class="{ on: !!o.isSelected }"
|
|
91
|
-
@click="selectCommon('
|
|
92
|
-
ref="
|
|
90
|
+
@click="selectCommon('skill', o, i)"
|
|
91
|
+
ref="skill"
|
|
93
92
|
>
|
|
94
|
-
<span class="u-id">
|
|
95
|
-
ID:{{ o.BuffID }}
|
|
96
|
-
<span class="u-detach">{{o.DetachType | showDetachType}}</span>
|
|
97
|
-
</span>
|
|
93
|
+
<span class="u-id">ID:{{ o.SkillID }}</span>
|
|
98
94
|
<img
|
|
99
95
|
class="u-pic"
|
|
100
96
|
:title="'IconID:' + o.IconID"
|
|
@@ -103,14 +99,18 @@
|
|
|
103
99
|
<span class="u-primary">
|
|
104
100
|
<span class="u-name">
|
|
105
101
|
{{ o.Name }}
|
|
106
|
-
<em v-if="o.
|
|
102
|
+
<em v-if="o.SkillName">({{ o.SkillName }})</em>
|
|
103
|
+
</span>
|
|
104
|
+
<span class="u-content">
|
|
105
|
+
{{
|
|
106
|
+
o.Desc | filterRaw
|
|
107
|
+
}}
|
|
107
108
|
</span>
|
|
108
|
-
<span class="u-content">{{ o.Desc }}</span>
|
|
109
109
|
</span>
|
|
110
110
|
</li>
|
|
111
111
|
</ul>
|
|
112
112
|
<el-alert
|
|
113
|
-
v-if="!
|
|
113
|
+
v-if="!skill.length && done"
|
|
114
114
|
title="没有找到相关条目"
|
|
115
115
|
type="info"
|
|
116
116
|
show-icon
|
|
@@ -236,9 +236,8 @@
|
|
|
236
236
|
import axios from "axios";
|
|
237
237
|
import { loadResource, loadStat, getIcons } from "../service/database";
|
|
238
238
|
import { __ossRoot, __iconPath } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
239
|
-
import detach_types from "
|
|
239
|
+
import detach_types from "../assets/data/detach_type.json";
|
|
240
240
|
import User from "@jx3box/jx3box-common/js/user";
|
|
241
|
-
import { school } from "@jx3box/jx3box-data/data/xf/school.json";
|
|
242
241
|
export default {
|
|
243
242
|
name: "Resource",
|
|
244
243
|
props: [],
|
|
@@ -246,7 +245,7 @@ export default {
|
|
|
246
245
|
return {
|
|
247
246
|
dialogVisible: false,
|
|
248
247
|
|
|
249
|
-
type: "
|
|
248
|
+
type: "buff",
|
|
250
249
|
query: "",
|
|
251
250
|
strict: false,
|
|
252
251
|
client : location.hostname.includes('origin') ? 'origin' : 'std',
|
|
@@ -268,7 +267,6 @@ export default {
|
|
|
268
267
|
loading: false,
|
|
269
268
|
|
|
270
269
|
isSuper: false,
|
|
271
|
-
schools: school,
|
|
272
270
|
|
|
273
271
|
html: "",
|
|
274
272
|
isPC: true,
|