cloud-web-corejs 1.1.0-dev.34 → 1.1.0-dev.36
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/bin/core-resources.js +16 -0
- package/docs/child-app/README.md +6 -3
- package/docs/child-app/activiti-resources.md +63 -0
- package/docs/child-app/generate-prompt.md +7 -1
- package/docs/child-app/luckysheet-resources.md +80 -0
- package/docs/child-app/public-resources-plan.md +288 -0
- package/docs/child-app/resources-implementation.md +101 -0
- package/docs/child-app/tinymce-resources.md +88 -0
- package/docs/child-app/validation.md +4 -3
- package/package.json +10 -2
- package/resource-tools/index.js +126 -0
- package/src/app-bootstrap.js +7 -2
- package/src/components/Tinymce/dynamicLoadScript.js +51 -59
- package/src/components/Tinymce/index.vue +382 -339
- package/src/components/code-editor/index.vue +361 -343
- package/src/components/luckysheet/loadResources.js +64 -0
- package/src/components/luckysheet/view.vue +239 -210
- package/src/components/onlineTalk/index.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +34 -3
- package/src/layout/components/Sidebar/default.vue +17 -16
- package/src/utils/chunkLoadError.js +24 -0
- package/src/utils/featureResources.js +57 -0
- package/src/views/bd/setting/form_template/mixins/list.js +7 -6
- package/src/views/bd/setting/form_template/mixins/list2.js +412 -411
- package/src/views/bd/setting/form_template/mixins/wf_list.js +431 -430
- package/src/views/user/form/form_template/list.vue +527 -506
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +65 -40
- package/src/views/user/wf/wf_obj_config/activiti_wf.vue +134 -133
- package/src/views/user/wf/wf_obj_config/list.vue +747 -746
- package/src/views/user/wf/wf_obj_config/list_form.vue +374 -373
- package/templates/child-app/README.md +2 -0
- package/templates/child-app/core-resources.config.js +15 -0
- package/templates/child-app/gitignore +1 -0
- package/templates/child-app/package.json +5 -0
- package/templates/child-app/vue.config.js +2 -1
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
|
|
29
29
|
## 文件与资源
|
|
30
30
|
|
|
31
|
+
可选资源由 `core-resources.config.js` 声明,默认全部关闭。支持 Ace basic/full、TinyMCE full、Luckysheet full、Activiti full;安装独立资源制品并填写精确版本后启用。dev/build 自动准备、生产构建后自动校验。Activiti 仅支持主应用或非 qiankun 的同源页面,不支持 qiankun 菜单。详情见包内 `docs/child-app/` 的对应实施说明。
|
|
32
|
+
|
|
31
33
|
- `src/settings.js`、`prefixConfig.js`、`corejsConfig.js`、`router/modules/customer.js` 是包需要的应用扩展点。
|
|
32
34
|
- `src/layout/index.vue` 和 `src/views/user/login/index.vue` 转接包的默认布局、登录页。
|
|
33
35
|
- `src/assets` 与 `src/resources` 内少量图片是从 kCode 复用的默认品牌/错误页资源;包的动态视图上下文编译仍会引用它们。即使自定义首页,也不能随意删掉这些文件。上线前替换为本应用品牌。
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
schemaVersion: 1,
|
|
3
|
+
features: {
|
|
4
|
+
// Install the independent resource artifact before enabling:
|
|
5
|
+
// codeEditor: { package: "cloud-web-corejs-resources-ace", version: "1.11.0-core.0", profile: "basic" },
|
|
6
|
+
codeEditor: false,
|
|
7
|
+
// richText: { package: "cloud-web-corejs-resources-tinymce", version: "4.9.2-core.0", profile: "full" },
|
|
8
|
+
richText: false,
|
|
9
|
+
// spreadsheet: { package: "cloud-web-corejs-resources-luckysheet", version: "2.1.13-core.1", profile: "full" },
|
|
10
|
+
spreadsheet: false,
|
|
11
|
+
// Main application or non-qiankun same-origin page only; qiankun is rejected.
|
|
12
|
+
// workflowDesigner: { package: "cloud-web-corejs-resources-activiti", version: "5.17.0-core.1", profile: "full" },
|
|
13
|
+
workflowDesigner: false
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
"version": "0.1.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
|
+
"resources:prepare": "node node_modules/cloud-web-corejs/bin/core-resources.js prepare",
|
|
7
|
+
"resources:check": "node node_modules/cloud-web-corejs/bin/core-resources.js check",
|
|
8
|
+
"predev": "npm run resources:prepare",
|
|
9
|
+
"prebuild:prod": "npm run resources:prepare",
|
|
10
|
+
"postbuild:prod": "node node_modules/cloud-web-corejs/bin/core-resources.js check-dist",
|
|
6
11
|
"dev": "node --max-old-space-size=8192 node_modules/@vue/cli-service/bin/vue-cli-service.js serve",
|
|
7
12
|
"dev:micro": "npm run dev -- --port 17527",
|
|
8
13
|
"build:prod": "node --max-old-space-size=8192 node_modules/@vue/cli-service/bin/vue-cli-service.js build"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const path = require("path");
|
|
2
2
|
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
|
|
3
|
+
const { ResourcesPlugin } = require("cloud-web-corejs/resource-tools");
|
|
3
4
|
const identity = require("./app.config");
|
|
4
5
|
const packageName = require("./package.json").name;
|
|
5
6
|
const coreSrc = path.dirname(require.resolve("cloud-web-corejs/src/index.next.js"));
|
|
@@ -52,7 +53,7 @@ module.exports = {
|
|
|
52
53
|
libraryTarget: "umd",
|
|
53
54
|
chunkLoadingGlobal: `webpackJsonp_${packageName}`
|
|
54
55
|
},
|
|
55
|
-
plugins: [new NodePolyfillPlugin()]
|
|
56
|
+
plugins: [new NodePolyfillPlugin(), new ResourcesPlugin(__dirname)]
|
|
56
57
|
},
|
|
57
58
|
chainWebpack(config) {
|
|
58
59
|
config.plugin("html").tap(args => {
|