@jx3box/jx3box-editor 1.8.5 → 1.8.7

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.
@@ -10,7 +10,7 @@ function talent2(selector = ".e-jx3talent2-area") {
10
10
  // 内容解析
11
11
  let talent = $(this).text();
12
12
  let code = Base64.encode(talent);
13
- let url = "https://oss.jx3box.com/static/jx3box-talent2/index.html" + "?code=" + code;
13
+ let url = "https://cdn.jx3box.com/static/jx3box-talent2/index.html" + "?code=" + code;
14
14
 
15
15
  container.html(`<iframe src="${url}" width="100%" height="100%" style="overflow:hidden;border:none;"></iframe>`);
16
16
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "1.8.5",
3
+ "version": "1.8.7",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -7,7 +7,7 @@
7
7
  <meta name="renderer" content="webkit" />
8
8
  <title><%= htmlWebpackPlugin.options.title %></title>
9
9
  <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
10
- <script src="https://oss.jx3box.com/static/tinymce/tinymce.min.js?v=0.1.0"></script>
10
+ <script src="https://cdn.jx3box.com/static/tinymce/tinymce.min.js?v=0.1.0"></script>
11
11
  <!-- TODO: -->
12
12
  <!-- <script src="http://localhost:3000/tinymce.min.js"></script> -->
13
13
  </head>
package/src/Article.vue CHANGED
@@ -196,6 +196,13 @@ export default {
196
196
  let dir = renderDirectory(target, this.directorybox);
197
197
  this.$emit("directoryRendered", dir);
198
198
 
199
+ if(window.location.hash?.includes('directory')){
200
+ let id = window.location.hash
201
+ let target = $(`${id}`).offset().top;
202
+ console.log(target)
203
+ $(document).scrollTop(target - HEADER_HEIGHT);
204
+ }
205
+
199
206
  $(".w-directory-anchor").on("click", function () {
200
207
  e.preventDefault();
201
208
  let id = $(this).attr("id");
package/src/Resource.vue CHANGED
@@ -201,7 +201,7 @@
201
201
  <script>
202
202
  import { loadResource, loadStat, getIcons } from "../service/database";
203
203
  import { loadEmotions } from "../service/cms";
204
- import { __ossRoot, __iconPath, __Root, __OriginRoot } from "@jx3box/jx3box-common/data/jx3box.json";
204
+ import { __iconPath, __Root, __OriginRoot } from "@jx3box/jx3box-common/data/jx3box.json";
205
205
  import detach_types from "../assets/data/detach_type.json";
206
206
  import { iconLink, getLink, showAvatar } from "@jx3box/jx3box-common/js/utils";
207
207
  import GameText from "./GameText.vue";
package/src/Tinymce.vue CHANGED
@@ -39,7 +39,7 @@ import Upload from "./Upload";
39
39
  import Resource from "./Resource";
40
40
  import BoxResource from "./BoxResource";
41
41
  import { __cms } from "@jx3box/jx3box-common/data/jx3box.json";
42
- import { __ossRoot, __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
42
+ import { __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
43
43
  import Emotion from "@jx3box/jx3box-emotion/src/Emotion.vue"
44
44
  import hljs_languages from "../assets/js/item/hljs_languages.js"
45
45
  const API_Root = process.env.NODE_ENV === "production" ? __cms : "/";
@@ -63,7 +63,7 @@ export default {
63
63
 
64
64
  // 样式
65
65
  // TODO:
66
- content_css: `https://oss.jx3box.com/static/tinymce/skins/content/default/content.min.css`,
66
+ content_css: `https://cdn.jx3box.com/static/tinymce/skins/content/default/content.min.css`,
67
67
  // content_css: `http://localhost:5000/skins/content/default/content.min.css`,
68
68
  body_class: "c-article c-article-editor c-article-tinymce",
69
69
  height: this.height || 800,