@jx3box/jx3box-editor 1.1.7 → 1.2.1
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/module/buff.less +3 -1
- package/assets/css/module/item.less +7 -4
- package/assets/css/module/npc.less +3 -7
- package/assets/css/module/skill.less +3 -1
- package/assets/js/item/hljs_languages.js +177 -0
- package/package.json +1 -1
- package/src/Article.vue +9 -0
- package/src/Buff.vue +1 -1
- package/src/Item.vue +2 -2
- package/src/Npc.vue +1 -1
- package/src/Resource.vue +10 -6
- package/src/Skill.vue +1 -1
- package/src/Tinymce.vue +3 -0
|
@@ -85,10 +85,13 @@
|
|
|
85
85
|
background-color: rgba(15, 34, 34, 0.88);
|
|
86
86
|
// background-color: #0f2222;
|
|
87
87
|
color: #ffffff;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
|
|
89
|
+
*{
|
|
90
|
+
font-weight: normal;
|
|
91
|
+
font-size: 13.6px;
|
|
92
|
+
line-height: 1.5em;
|
|
93
|
+
text-shadow: 1px 1px 1px #0f2222;
|
|
94
|
+
}
|
|
92
95
|
|
|
93
96
|
&:before {
|
|
94
97
|
content: "";
|
|
@@ -4,23 +4,19 @@
|
|
|
4
4
|
.w-npc-wrapper {
|
|
5
5
|
@min-width: 200px;
|
|
6
6
|
min-width: @min-width;
|
|
7
|
-
padding: 9px 10px 10px;
|
|
8
7
|
background-color: rgba(15, 34, 34, 0.88);
|
|
9
8
|
box-sizing: border-box;
|
|
10
9
|
display: flex;
|
|
11
10
|
|
|
12
|
-
div {
|
|
13
|
-
margin: 2px 0;
|
|
14
|
-
}
|
|
15
11
|
|
|
16
12
|
.w-npc-content {
|
|
17
13
|
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
|
|
18
|
-
margin-bottom: 10px;
|
|
19
|
-
padding: 10px;
|
|
20
14
|
.r(4px);
|
|
21
15
|
.clearfix;
|
|
22
16
|
.fz(13px);
|
|
23
17
|
color: #e7e7e7;
|
|
18
|
+
margin:0;
|
|
19
|
+
padding:5px 15px 10px 15px;
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
.u-icon {
|
|
@@ -45,7 +41,7 @@
|
|
|
45
41
|
|
|
46
42
|
.u-id {
|
|
47
43
|
.pa;
|
|
48
|
-
.rt(
|
|
44
|
+
.rt(15px,10px);
|
|
49
45
|
.pointer;
|
|
50
46
|
color: #5df9eb;
|
|
51
47
|
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* highlight.js 默认支持(不需要额外装库)的语法
|
|
3
|
+
* https://github.com/highlightjs/highlight.js/blob/main/SUPPORTED_LANGUAGES.md
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
// 不加参数时默认的
|
|
8
|
+
{ text: "JSON", value: "json" },
|
|
9
|
+
{ text: "Lua", value: "lua" },
|
|
10
|
+
{ text: "HTML, XML", value: "xml" },
|
|
11
|
+
{ text: "Bash", value: "bash" },
|
|
12
|
+
{ text: "JavaScript", value: "javascript" },
|
|
13
|
+
{ text: "Python", value: "python" },
|
|
14
|
+
{ text: "Java", value: "java" },
|
|
15
|
+
{ text: "C", value: "c" },
|
|
16
|
+
{ text: "C#", value: "csharp" },
|
|
17
|
+
{ text: "C++", value: "cpp" },
|
|
18
|
+
|
|
19
|
+
// 其他支持的
|
|
20
|
+
{ text: "1C", value: "1c" },
|
|
21
|
+
{ text: "ABNF", value: "abnf" },
|
|
22
|
+
{ text: "Access logs", value: "accesslog" },
|
|
23
|
+
{ text: "Ada", value: "ada" },
|
|
24
|
+
{ text: "Arduino (C++ w/Arduino libs)", value: "arduino" },
|
|
25
|
+
{ text: "ARM assembler", value: "armasm" },
|
|
26
|
+
{ text: "AVR assembler", value: "avrasm" },
|
|
27
|
+
{ text: "ActionScript", value: "actionscript" },
|
|
28
|
+
{ text: "AngelScript", value: "angelscript" },
|
|
29
|
+
{ text: "Apache", value: "apache" },
|
|
30
|
+
{ text: "AppleScript", value: "applescript" },
|
|
31
|
+
{ text: "Arcade", value: "arcade" },
|
|
32
|
+
{ text: "AsciiDoc", value: "asciidoc" },
|
|
33
|
+
{ text: "AspectJ", value: "aspectj" },
|
|
34
|
+
{ text: "AutoHotkey", value: "autohotkey" },
|
|
35
|
+
{ text: "AutoIt", value: "autoit" },
|
|
36
|
+
{ text: "Awk", value: "awk" },
|
|
37
|
+
{ text: "Basic", value: "basic" },
|
|
38
|
+
{ text: "BNF", value: "bnf" },
|
|
39
|
+
{ text: "Brainfuck", value: "brainfuck" },
|
|
40
|
+
{ text: "C/AL", value: "cal" },
|
|
41
|
+
{ text: "Cache Object Script", value: "cos" },
|
|
42
|
+
{ text: "CMake", value: "cmake" },
|
|
43
|
+
{ text: "Coq", value: "coq" },
|
|
44
|
+
{ text: "CSP", value: "csp" },
|
|
45
|
+
{ text: "CSS", value: "css" },
|
|
46
|
+
{ text: "Cap’n Proto", value: "capnproto" },
|
|
47
|
+
{ text: "Clojure", value: "clojure" },
|
|
48
|
+
{ text: "CoffeeScript", value: "coffeescript" },
|
|
49
|
+
{ text: "Crmsh", value: "crmsh" },
|
|
50
|
+
{ text: "Crystal", value: "crystal" },
|
|
51
|
+
{ text: "D", value: "d" },
|
|
52
|
+
{ text: "Dart", value: "dart" },
|
|
53
|
+
{ text: "Delphi", value: "dpr" },
|
|
54
|
+
{ text: "Diff", value: "diff" },
|
|
55
|
+
{ text: "Django", value: "django" },
|
|
56
|
+
{ text: "DNS Zone file", value: "dns" },
|
|
57
|
+
{ text: "Dockerfile", value: "dockerfile" },
|
|
58
|
+
{ text: "DOS", value: "dos" },
|
|
59
|
+
{ text: "dsconfig", value: "dsconfig" },
|
|
60
|
+
{ text: "DTS (Device Tree)", value: "dts" },
|
|
61
|
+
{ text: "Dust", value: "dust" },
|
|
62
|
+
{ text: "EBNF", value: "ebnf" },
|
|
63
|
+
{ text: "Elixir", value: "elixir" },
|
|
64
|
+
{ text: "Elm", value: "elm" },
|
|
65
|
+
{ text: "Erlang", value: "erlang" },
|
|
66
|
+
{ text: "Excel", value: "excel" },
|
|
67
|
+
{ text: "F#", value: "fsharp" },
|
|
68
|
+
{ text: "FIX", value: "fix" },
|
|
69
|
+
{ text: "Fortran", value: "fortran" },
|
|
70
|
+
{ text: "G-Code", value: "gcode" },
|
|
71
|
+
{ text: "Gams", value: "gams" },
|
|
72
|
+
{ text: "GAUSS", value: "gauss" },
|
|
73
|
+
{ text: "Gherkin", value: "gherkin" },
|
|
74
|
+
{ text: "Go", value: "go" },
|
|
75
|
+
{ text: "Golo", value: "golo" },
|
|
76
|
+
{ text: "Gradle", value: "gradle" },
|
|
77
|
+
{ text: "Groovy", value: "groovy" },
|
|
78
|
+
{ text: "HTTP", value: "http" },
|
|
79
|
+
{ text: "Haml", value: "haml" },
|
|
80
|
+
{ text: "Handlebars", value: "handlebars" },
|
|
81
|
+
{ text: "Haskell", value: "haskell" },
|
|
82
|
+
{ text: "Haxe", value: "haxe" },
|
|
83
|
+
{ text: "Hy", value: "hy" },
|
|
84
|
+
{ text: "Ini, TOML", value: "ini" },
|
|
85
|
+
{ text: "Inform7", value: "inform7" },
|
|
86
|
+
{ text: "IRPF90", value: "irpf90" },
|
|
87
|
+
{ text: "Julia", value: "julia" },
|
|
88
|
+
{ text: "Kotlin", value: "kotlin" },
|
|
89
|
+
{ text: "LaTeX", value: "tex" },
|
|
90
|
+
{ text: "Leaf", value: "leaf" },
|
|
91
|
+
{ text: "Lasso", value: "lasso" },
|
|
92
|
+
{ text: "Less", value: "less" },
|
|
93
|
+
{ text: "LDIF", value: "ldif" },
|
|
94
|
+
{ text: "Lisp", value: "lisp" },
|
|
95
|
+
{ text: "LiveCode Server", value: "livecodeserver" },
|
|
96
|
+
{ text: "LiveScript", value: "livescript" },
|
|
97
|
+
{ text: "Makefile", value: "makefile" },
|
|
98
|
+
{ text: "Markdown", value: "markdown" },
|
|
99
|
+
{ text: "Mathematica", value: "mathematica" },
|
|
100
|
+
{ text: "Matlab", value: "matlab" },
|
|
101
|
+
{ text: "Maxima", value: "maxima" },
|
|
102
|
+
{ text: "Maya Embedded Language", value: "mel" },
|
|
103
|
+
{ text: "Mercury", value: "mercury" },
|
|
104
|
+
{ text: "Mizar", value: "mizar" },
|
|
105
|
+
{ text: "Mojolicious", value: "mojolicious" },
|
|
106
|
+
{ text: "Monkey", value: "monkey" },
|
|
107
|
+
{ text: "Moonscript", value: "moonscript" },
|
|
108
|
+
{ text: "N1QL", value: "n1ql" },
|
|
109
|
+
{ text: "NSIS", value: "nsis" },
|
|
110
|
+
{ text: "Nginx", value: "nginx" },
|
|
111
|
+
{ text: "Nim", value: "nim" },
|
|
112
|
+
{ text: "Nix", value: "nix" },
|
|
113
|
+
{ text: "OCaml", value: "ocaml" },
|
|
114
|
+
{ text: "Objective C", value: "objectivec" },
|
|
115
|
+
{ text: "OpenGL Shading Language", value: "glsl" },
|
|
116
|
+
{ text: "OpenSCAD", value: "openscad" },
|
|
117
|
+
{ text: "Oracle Rules Language", value: "ruleslanguage" },
|
|
118
|
+
{ text: "Oxygene", value: "oxygene" },
|
|
119
|
+
{ text: "PF", value: "pf" },
|
|
120
|
+
{ text: "PHP", value: "php" },
|
|
121
|
+
{ text: "Parser3", value: "parser3" },
|
|
122
|
+
{ text: "Perl", value: "perl" },
|
|
123
|
+
{ text: "Plaintext", value: "plaintext" },
|
|
124
|
+
{ text: "Pony", value: "pony" },
|
|
125
|
+
{ text: "PostgreSQL & PL/pgSQL", value: "pgsql" },
|
|
126
|
+
{ text: "PowerShell", value: "powershell" },
|
|
127
|
+
{ text: "Processing", value: "processing" },
|
|
128
|
+
{ text: "Prolog", value: "prolog" },
|
|
129
|
+
{ text: "Properties", value: "properties" },
|
|
130
|
+
{ text: "Protocol Buffers", value: "protobuf" },
|
|
131
|
+
{ text: "Puppet", value: "puppet" },
|
|
132
|
+
{ text: "Python profiler results", value: "profile" },
|
|
133
|
+
{ text: "Python REPL", value: "python-repl" },
|
|
134
|
+
{ text: "Q", value: "k" },
|
|
135
|
+
{ text: "QML", value: "qml" },
|
|
136
|
+
{ text: "R", value: "r" },
|
|
137
|
+
{ text: "ReasonML", value: "reasonml" },
|
|
138
|
+
{ text: "RenderMan RIB", value: "rib" },
|
|
139
|
+
{ text: "RenderMan RSL", value: "rsl" },
|
|
140
|
+
{ text: "Roboconf", value: "graph" },
|
|
141
|
+
{ text: "Ruby", value: "ruby" },
|
|
142
|
+
{ text: "Rust", value: "rust" },
|
|
143
|
+
{ text: "SAS", value: "SAS" },
|
|
144
|
+
{ text: "SCSS", value: "scss" },
|
|
145
|
+
{ text: "SQL", value: "sql" },
|
|
146
|
+
{ text: "STEP Part 21", value: "p21" },
|
|
147
|
+
{ text: "Scala", value: "scala" },
|
|
148
|
+
{ text: "Scheme", value: "scheme" },
|
|
149
|
+
{ text: "Scilab", value: "scilab" },
|
|
150
|
+
{ text: "Shell", value: "shell" },
|
|
151
|
+
{ text: "Smali", value: "smali" },
|
|
152
|
+
{ text: "Smalltalk", value: "smalltalk" },
|
|
153
|
+
{ text: "SML", value: "sml" },
|
|
154
|
+
{ text: "Stan", value: "stan" },
|
|
155
|
+
{ text: "Stata", value: "stata" },
|
|
156
|
+
{ text: "Stylus", value: "stylus" },
|
|
157
|
+
{ text: "SubUnit", value: "subunit" },
|
|
158
|
+
{ text: "Swift", value: "swift" },
|
|
159
|
+
{ text: "Tcl", value: "tcl" },
|
|
160
|
+
{ text: "Test Anything Protocol", value: "tap" },
|
|
161
|
+
{ text: "Thrift", value: "thrift" },
|
|
162
|
+
{ text: "TP", value: "tp" },
|
|
163
|
+
{ text: "Twig", value: "twig" },
|
|
164
|
+
{ text: "TypeScript", value: "typescript" },
|
|
165
|
+
{ text: "VB.Net", value: "vbnet" },
|
|
166
|
+
{ text: "VBScript", value: "vbscript" },
|
|
167
|
+
{ text: "VHDL", value: "vhdl" },
|
|
168
|
+
{ text: "Vala", value: "vala" },
|
|
169
|
+
{ text: "Verilog", value: "verilog" },
|
|
170
|
+
{ text: "Vim Script", value: "vim" },
|
|
171
|
+
{ text: "X++", value: "axapta" },
|
|
172
|
+
{ text: "x86 Assembly", value: "x86asm" },
|
|
173
|
+
{ text: "XL", value: "xl" },
|
|
174
|
+
{ text: "XQuery", value: "xquery" },
|
|
175
|
+
{ text: "YAML", value: "yml" },
|
|
176
|
+
{ text: "Zephir", value: "zephir" },
|
|
177
|
+
];
|
package/package.json
CHANGED
package/src/Article.vue
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
:level="skill.level"
|
|
54
54
|
v-show="jx3_element.type == 'skill'"
|
|
55
55
|
/>
|
|
56
|
+
<jx3-npc :client="npc.client" :id="npc.id" v-show="jx3_element.type === 'npc'" />
|
|
56
57
|
</div>
|
|
57
58
|
<!-- <gallery :images="images" :index="gallery_index" @close="index = null"></gallery> -->
|
|
58
59
|
</div>
|
|
@@ -96,6 +97,7 @@ import renderPzIframe from '../assets/js/pz_iframe'
|
|
|
96
97
|
import Item from "./Item";
|
|
97
98
|
import Buff from "./Buff";
|
|
98
99
|
import Skill from "./Skill";
|
|
100
|
+
import Npc from "./Npc";
|
|
99
101
|
import renderJx3Element from "../assets/js/jx3_element";
|
|
100
102
|
|
|
101
103
|
export default {
|
|
@@ -137,6 +139,12 @@ export default {
|
|
|
137
139
|
id: "",
|
|
138
140
|
level: "",
|
|
139
141
|
},
|
|
142
|
+
// NPC
|
|
143
|
+
npc : {
|
|
144
|
+
client : 'std',
|
|
145
|
+
id : '',
|
|
146
|
+
},
|
|
147
|
+
// COMMON
|
|
140
148
|
jx3_element: {
|
|
141
149
|
style: {
|
|
142
150
|
top: 0,
|
|
@@ -265,6 +273,7 @@ export default {
|
|
|
265
273
|
"jx3-item": Item,
|
|
266
274
|
"jx3-buff": Buff,
|
|
267
275
|
"jx3-skill": Skill,
|
|
276
|
+
"jx3-npc": Npc,
|
|
268
277
|
// "gallery":gallery,
|
|
269
278
|
// VueViewer
|
|
270
279
|
},
|
package/src/Buff.vue
CHANGED
package/src/Item.vue
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<span v-text="`精炼等级:0 / ${source.MaxStrengthLevel}`"></span>
|
|
14
14
|
</div>
|
|
15
15
|
<!-- 物品名称 -->
|
|
16
|
-
<
|
|
16
|
+
<div class="u-title" :style="{ color: color(source.Quality) }" v-text="source.Name"></div>
|
|
17
17
|
<!-- 绑定状态 -->
|
|
18
18
|
<div v-if="source.BindType > 1" class="u-bind" v-text="bind(source.BindType)"></div>
|
|
19
19
|
<!-- 唯一 -->
|
|
@@ -324,6 +324,6 @@ export default {
|
|
|
324
324
|
};
|
|
325
325
|
</script>
|
|
326
326
|
|
|
327
|
-
<style lang="less"
|
|
327
|
+
<style lang="less">
|
|
328
328
|
@import "../assets/css/module/item.less";
|
|
329
329
|
</style>
|
package/src/Npc.vue
CHANGED
package/src/Resource.vue
CHANGED
|
@@ -198,7 +198,7 @@ import { loadResource, loadStat, getIcons } from "../service/database";
|
|
|
198
198
|
import { __ossRoot, __iconPath, __Root, __OriginRoot } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
199
199
|
import detach_types from "../assets/data/detach_type.json";
|
|
200
200
|
import User from "@jx3box/jx3box-common/js/user";
|
|
201
|
-
import { iconLink } from "@jx3box/jx3box-common/js/utils";
|
|
201
|
+
import { iconLink,getLink } from "@jx3box/jx3box-common/js/utils";
|
|
202
202
|
export default {
|
|
203
203
|
name: "Resource",
|
|
204
204
|
props: {
|
|
@@ -369,7 +369,7 @@ export default {
|
|
|
369
369
|
// <img src="${this.iconURL(
|
|
370
370
|
// o.IconID
|
|
371
371
|
// )}">
|
|
372
|
-
this.html = `<a data-type="buff" class="e-jx3-buff w-jx3-element ${o.CanCancel == 1 ? "isBuff" : "isDebuff"}" href="${this.
|
|
372
|
+
this.html = `<a data-type="buff" class="e-jx3-buff w-jx3-element ${o.CanCancel == 1 ? "isBuff" : "isDebuff"}" href="${this.getDbLink(
|
|
373
373
|
"buff",
|
|
374
374
|
this.client,
|
|
375
375
|
o.BuffID,
|
|
@@ -383,7 +383,7 @@ export default {
|
|
|
383
383
|
this.resetItems();
|
|
384
384
|
o.isSelected = true;
|
|
385
385
|
if (this.skill_mode == "simple") {
|
|
386
|
-
this.html = `<a data-type="skill" class="e-jx3-skill w-jx3-element" href="${this.
|
|
386
|
+
this.html = `<a data-type="skill" class="e-jx3-skill w-jx3-element" href="${this.getDbLink("skill", this.client, o.SkillID, o.Level)}" data-client="${this.client}" data-id="${
|
|
387
387
|
o.SkillID
|
|
388
388
|
}" data-level="${o.Level}">[${o.Name}]</a>`;
|
|
389
389
|
} else {
|
|
@@ -393,7 +393,7 @@ export default {
|
|
|
393
393
|
selectItem: function(o, i) {
|
|
394
394
|
this.resetItems();
|
|
395
395
|
o.isSelected = true;
|
|
396
|
-
this.html = `<a data-type="item" class="e-jx3-item e-jx3-item-q${o.Quality} w-jx3-element" data-mode="" data-id="${o.id}" data-quality="${o.Quality}" data-client="${this.client}" target="_blank" href="${o.
|
|
396
|
+
this.html = `<a data-type="item" class="e-jx3-item e-jx3-item-q${o.Quality} w-jx3-element" data-mode="" data-id="${o.id}" data-quality="${o.Quality}" data-client="${this.client}" target="_blank" href="${this.getLink('item', o.id)}">[${o.Name}]</a>`;
|
|
397
397
|
},
|
|
398
398
|
selectIcon: function(o) {
|
|
399
399
|
this.resetItems();
|
|
@@ -403,7 +403,7 @@ export default {
|
|
|
403
403
|
selectNpc: function (o, i){
|
|
404
404
|
this.resetItems()
|
|
405
405
|
o.isSelected = true
|
|
406
|
-
this.html = `<a data-type="npc" class="e-jx3-npc w-jx3-element" data-mode="" data-id="${o.ID}" data-client="${this.client}" target="_blank" href="${this.
|
|
406
|
+
this.html = `<a data-type="npc" class="e-jx3-npc w-jx3-element" data-mode="" data-id="${o.ID}" data-client="${this.client}" target="_blank" href="${this.getDbLink("npc", this.client, o.ID, '')}">[${o.Name}]</a>`
|
|
407
407
|
},
|
|
408
408
|
resetItems: function() {
|
|
409
409
|
let data = this[this.type];
|
|
@@ -418,10 +418,14 @@ export default {
|
|
|
418
418
|
iconURL: function(id) {
|
|
419
419
|
return iconLink(id, this.client);
|
|
420
420
|
},
|
|
421
|
-
|
|
421
|
+
getDbLink: function(type, client, id, level) {
|
|
422
422
|
let domain = client == "origin" ? __OriginRoot : __Root;
|
|
423
423
|
return domain + "app/database/?type=" + type + `&query=${id}&level=${level}`;
|
|
424
424
|
},
|
|
425
|
+
getLink : function (type,id){
|
|
426
|
+
let domain = this.client == "origin" ? __OriginRoot : __Root;
|
|
427
|
+
return domain + getLink(type,id).slice(1)
|
|
428
|
+
},
|
|
425
429
|
|
|
426
430
|
// 杂项
|
|
427
431
|
// ==============================
|
package/src/Skill.vue
CHANGED
package/src/Tinymce.vue
CHANGED
|
@@ -39,6 +39,7 @@ import Resource from "./Resource";
|
|
|
39
39
|
import { __cms } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
40
40
|
import { __ossRoot } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
41
41
|
import Emotion from "@jx3box/jx3box-emotion/src/Emotion.vue"
|
|
42
|
+
import hljs_languages from "../assets/js/item/hljs_languages.js"
|
|
42
43
|
const API_Root = process.env.NODE_ENV === "production" ? __cms : "/";
|
|
43
44
|
const API = API_Root + "api/cms/upload/tinymce";
|
|
44
45
|
|
|
@@ -143,6 +144,8 @@ export default {
|
|
|
143
144
|
"黑色",
|
|
144
145
|
],
|
|
145
146
|
|
|
147
|
+
codesample_languages: hljs_languages,
|
|
148
|
+
|
|
146
149
|
// Image
|
|
147
150
|
image_advtab: true,
|
|
148
151
|
// paste_data_images: true,
|