@jx3box/jx3box-editor 3.2.12 → 3.2.13

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/config/global.js CHANGED
@@ -74,6 +74,25 @@ module.exports = {
74
74
 
75
75
  // 上传组件
76
76
  /*------------------*/
77
- imgTypes: ["jpg", "png", "gif", "bmp", "webp", "jpeg", "heic", "heif", "avif", "tif", "tiff","svg"],
78
- videoTypes: ["mp4", "mov", "avi", "flv", "3gp", "wmv", "mkv", "webm", "m4v"]
79
- }
77
+ imgTypes: ["jpg", "png", "gif", "bmp", "webp", "jpeg", "heic", "heif", "avif", "tif", "tiff", "svg"],
78
+ uploadAccept: [
79
+ "image/*",
80
+ ".svg",
81
+ ".txt",
82
+ ".csv",
83
+ ".jx3dat",
84
+ ".dat",
85
+ ".pdf",
86
+ ".zip",
87
+ ".rar",
88
+ ".7z",
89
+ ".doc",
90
+ ".docx",
91
+ ".xls",
92
+ ".xlsx",
93
+ ".ttf",
94
+ ".blueprint",
95
+ ".blueprintx",
96
+ ].join(","),
97
+ videoTypes: ["mp4", "mov", "avi", "flv", "3gp", "wmv", "mkv", "webm", "m4v"],
98
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "3.2.12",
3
+ "version": "3.2.13",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Upload.vue CHANGED
@@ -87,12 +87,12 @@
87
87
  import axios from "axios";
88
88
  import { Delete, Plus, UploadFilled, ZoomIn } from "@element-plus/icons-vue";
89
89
  import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
90
- import allow_types from "@jx3box/jx3box-common/data/conf";
90
+ import GlobalConf from "../config/global.js";
91
91
  import { showImgPreview } from "./assets/js/renderImgPreview.js";
92
92
  const { __cms } = JX3BOX;
93
93
  const API = __cms + "api/cms/upload";
94
- const imgtypes = ["jpg", "png", "gif", "bmp", "webp", "jpeg", "svg"];
95
- const DEFAULT_ACCEPT = `${allow_types.accept},image/svg+xml,.svg`;
94
+ const imgtypes = GlobalConf.imgTypes;
95
+ const DEFAULT_ACCEPT = GlobalConf.uploadAccept;
96
96
 
97
97
  export default {
98
98
  name: "Upload",