ready for build

This commit is contained in:
kangwei 2020-04-27 11:45:42 +08:00
parent c57d19ba56
commit 33b21f0af4
54 changed files with 161 additions and 2447 deletions

View File

@ -1,29 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1" />
<meta name="viewport" content="width=device-width" />
<title>LowCodeEngine Editor DEMO</title>
<link rel="shortcut icon" href="./favicon.png" />
<script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
<script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
<script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
<script> React.PropTypes = PropTypes; </script>
<script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alifd/next/1.11.6/next.min.css" />
<script src="https://unpkg.alibaba-inc.com/@alifd/next@1.18.17/dist/next.min.js"></script>
<!-- lowcode engine globals -->
<link rel="stylesheet" href="./globals.css" />
<!-- lowcode engine app -->
<link rel="stylesheet" href="./lowcode-editor.css" />
</head>
<body>
<div id="lce-container"></div>
<!-- lowcode engine globals -->
<script src="./globals.js"></script>
<!-- lowcode engine app -->
<script src="./lowcode-editor.js"></script>
</body>
</html>

View File

@ -9,15 +9,17 @@
<script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
<script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
<script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
<script>
React.PropTypes = PropTypes;
</script>
<script> React.PropTypes = PropTypes; </script>
<script src="https://g.alicdn.com/platform/c/??react15-polyfill/0.0.1/dist/index.js,lodash/4.6.1/lodash.min.js,immutable/3.7.6/dist/immutable.min.js,natty-storage/2.0.2/dist/natty-storage.min.js,natty-fetch/2.6.0/dist/natty-fetch.pc.min.js,tinymce/4.2.5/tinymce-full.js"></script>
<script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alifd/next/1.11.6/next.min.css" />
<script src="https://unpkg.alibaba-inc.com/@alifd/next@1.18.17/dist/next.min.js"></script>
<!-- lowcode engine globals -->
<link href="/css/vision.css" rel="stylesheet" />
<link rel="stylesheet" href="./core.css" />
<!-- lowcode engine globals -->
<link rel="stylesheet" href="./vision-preset.css" />
<!-- lowcode engine app -->
<link rel="stylesheet" href="./lowcode-editor.css" />
<script>
window.pageConfig = {
env: 'release',
@ -68,9 +70,13 @@
</head>
<body>
<div id="lce-container"></div>
<!-- lowcode engine globals -->
<script src="/js/vision.js"></script>
<!-- <script src="https://g.alicdn.com/vision/visualengine-utils/4.3.1/engine-utils.js"></script> -->
<script src="./core.js"></script>
<!-- lowcode engine globals -->
<script src="./vision-preset.js"></script>
<script src="https://dev.g.alicdn.com/vision/visualengine-utils/5.0.0/engine-utils.js"></script>
<!-- lowcode engine app -->
<script src="./lowcode-editor.js"></script>
</body>
</html>

View File

@ -1,14 +1,15 @@
{
"entry": {
"lowcode-editor": "src/index.ts",
"lowcode-preview": "src/preview.ts"
"lowcode-editor": "src/vision/index.ts"
},
"vendor": false,
"externals": {
"react": "window.React",
"react-dom": "window.ReactDOM",
"prop-types": "window.PropTypes",
"@ali/lowcode-globals": "window.LCEGlobals"
"@ali/lowcode-editor-core": "window.LCECore",
"@ali/visualengine": "window.VisualEngine",
"@ali/visualengine-utils": "window.VisualEngineUtils"
},
"minify": false,
"sourcemap": true,

View File

@ -13,6 +13,7 @@
"dependencies": {
"@ali/lowcode-editor-core": "^0.8.4",
"@ali/lowcode-editor-skeleton": "^0.8.0",
"@ali/lowcode-utils": "^0.8.0",
"@ali/lowcode-plugin-components-pane": "^0.8.0",
"@ali/lowcode-plugin-designer": "^0.9.1",
"@ali/lowcode-plugin-event-bind-dialog": "^0.8.0",

View File

@ -4,18 +4,73 @@
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge,chrome=1" />
<meta name="viewport" content="width=device-width" />
<title>LowCodeEngine DEMO</title>
<title>LowCodeEngine Editor DEMO</title>
<link rel="shortcut icon" href="./favicon.png" />
<script src="https://g.alicdn.com/code/lib/react/16.9.0/umd/react.development.js"></script>
<script src="https://g.alicdn.com/code/lib/react-dom/16.9.0/umd/react-dom.development.js"></script>
<script src="https://g.alicdn.com/code/lib/prop-types/15.7.2/prop-types.js"></script>
<script> React.PropTypes = PropTypes; </script>
<script>
React.PropTypes = PropTypes;
</script>
<script src="https://g.alicdn.com/platform/c/??react15-polyfill/0.0.1/dist/index.js,lodash/4.6.1/lodash.min.js,immutable/3.7.6/dist/immutable.min.js,natty-storage/2.0.2/dist/natty-storage.min.js,natty-fetch/2.6.0/dist/natty-fetch.pc.min.js,tinymce/4.2.5/tinymce-full.js"></script>
<script src="https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js"></script>
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alifd/next/1.11.6/next.min.css">
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alifd/next/1.11.6/next.min.css" />
<script src="https://unpkg.alibaba-inc.com/@alifd/next@1.18.17/dist/next.min.js"></script>
<!-- lowcode engine globals -->
<link href="/css/vision.css" rel="stylesheet" />
<script>
window.pageConfig = {
env: 'release',
locale: 'zh_CN',
pageType: 'single',
deviceType: 'web',
appName: '基础包管理后台',
appType: 'legao_base_packages',
templateType: '',
pageId: 'FORM-3KYJN7RV-DIOD8LLK1WGQ89S7NHA92-QJVH497K-V',
slug: 'test',
appMode: 'back',
isAppAdmin: 'y',
isSuperAdmin: 'n',
isBetaDeveloper: 'n',
formType: 'display',
title: { en_US: '测试', type: 'i18n', zh_CN: '测试' },
urlPrefix: 'https://go.alibaba-inc.com',
APIUrlPrefix: 'https://go.alibaba-inc.com',
devVersion: '0.1.0', // 这个是子应用的变更 id
subAppType: '0.1.0',
appKey: 'legao_base_packages',
RE_VERSION: '7.1.1',
appSource: '',
isDomainDefault: 'n',
useReleaseBundle: 'n',
isDomainPkg: 'n',
medusaAppName: '',
domainCode: 'kS6SyH',
aecp: {
mdcDomain: '',
projectId: '',
appCode: '',
},
designerConfigs: {},
navConfig:
'{"appName":{"en_US":"基础包管理后台","key":"","type":"i18n","zh_CN":"基础包管理后台"},"bgColor":"white","data":[{"children":[],"hidden":false,"icon":"","inner":true,"navUuid":"FORM-3KYJN7RV-DIOD8LLK1WGQ89S7NHA92-QJVH497K-V","relateUuid":"FORM-3KYJN7RV-DIOD8LLK1WGQ89S7NHA92-QJVH497K-V","slug":"test","targetNew":false,"title":{"en_US":"测试","type":"i18n","zh_CN":"测试"}}],"isFixed":"y","isFold":"y","isFoldHorizontal":"n","languageChangeUrl":{"en_US":"/common/account/changeAccountLanguage.json","type":"i18n","zh_CN":"/common/account/changeAccountLanguage.json"},"layout":"auto","navStyle":"orange","navTheme":"light","openSubMode":false,"showAppTitle":true,"showCrumb":true,"showIcon":false,"showLanguageChange":true,"showNav":true,"showSearch":"n","singletons":{"FORM-3KYJN7RV-DIOD8LLK1WGQ89S7NHA92-QJVH497K-V":{"isFixed":"n","isFold":"n","isFoldHorizontal":"n","showAppTitle":false,"showCrumb":false,"showLanguageChange":false,"showNav":false,"showSearch":"n","singleton":false},"test":{"$ref":"$.singletons.FORM\\-3KYJN7RV\\-DIOD8LLK1WGQ89S7NHA92\\-QJVH497K\\-V"}},"type":"top_fold"}',
historyType: 'HASH',
isSinglePage: 'n',
rhino: 'n',
isMiniApp: '',
taskId: '',
appSchema: 'V5',
openSubMode: 'n',
};
window.g_config = {};
</script>
</head>
<body>
<div id="lce-container"></div>
<!-- lowcode engine globals -->
<script src="/js/vision.js"></script>
<!-- <script src="https://g.alicdn.com/vision/visualengine-utils/4.3.1/engine-utils.js"></script> -->
<script src="https://dev.g.alicdn.com/vision/visualengine-utils/5.0.0/engine-utils.js"></script>
</body>
</html>

View File

@ -14,97 +14,5 @@
"padding": 20
}
},
"children": [{
"componentName": "Form",
"props": {
"labelCol": 3,
"style": {},
"ref": "testForm"
},
"children": [{
"componentName": "Form.Item",
"props": {
"label": "姓名:",
"name": "name",
"initValue": "李雷"
},
"children": [{
"componentName": "Input",
"props": {
"placeholder": "请输入",
"size": "medium",
"style": {
"width": 320
}
}
}]
}, {
"componentName": "Form.Item",
"props": {
"label": "年龄:",
"name": "age",
"initValue": "22"
},
"children": [{
"componentName": "NumberPicker",
"props": {
"size": "medium",
"type": "normal"
}
}]
}, {
"componentName": "Form.Item",
"props": {
"label": "职业:",
"name": "profession"
},
"children": [{
"componentName": "Select",
"props": {
"dataSource": [{
"label": "教师",
"value": "t"
}, {
"label": "医生",
"value": "d"
}, {
"label": "歌手",
"value": "s"
}]
}
}]
}, {
"componentName": "Div",
"props": {
"style": {
"textAlign": "center"
}
},
"children": [{
"componentName": "Button.Group",
"props": {},
"children": [{
"componentName": "Button",
"props": {
"type": "primary",
"style": {
"margin": "0 5px 0 5px"
},
"htmlType": "submit"
},
"children": "提交"
}, {
"componentName": "Button",
"props": {
"type": "normal",
"style": {
"margin": "0 5px 0 5px"
},
"htmlType": "reset"
},
"children": "重置"
}]
}]
}]
}]
}
"children": []
}

View File

@ -1,4 +1,3 @@
// @ts-ignore
import { createElement } from 'react';
import { Button } from '@alifd/next';
import Engine, { Panes } from '@ali/visualengine';

View File

@ -1,9 +1,14 @@
{
"plugins": [
"build-plugin-component",
[
"build-plugin-component",
{
"filename": "core",
"library": "LCECore",
"libraryTarget": "umd"
}
],
"build-plugin-fusion",
["build-plugin-moment-locales", {
"locales": ["zh-cn"]
}]
"./build.plugin.js"
]
}

View File

@ -1,7 +1,7 @@
{
"name": "@ali/lowcode-globals",
"name": "@ali/lowcode-editor-core",
"version": "0.8.6",
"description": "Globals api for Ali lowCode engine",
"description": "Core Api for Ali lowCode engine",
"license": "MIT",
"main": "lib/index.js",
"module": "es/index.js",
@ -11,19 +11,7 @@
],
"scripts": {
"build": "build-scripts build --skip-demo",
"cloud-build": "build-scripts build --skip-demo --config cloud-build.json",
"test": "ava",
"test:snapshot": "ava --update-snapshots"
},
"ava": {
"compileEnhancements": false,
"extensions": [
"ts"
],
"require": [
"ts-node/register"
],
"snapshotDir": "test/fixtures/__snapshots__"
"cloud-build": "build-scripts build --skip-demo --config cloud-build.json"
},
"dependencies": {
"@alifd/next": "^1.19.16",

View File

@ -1,30 +0,0 @@
import { globalContext, Editor } from '@ali/lowcode-editor-core';
import { Designer } from '@ali/lowcode-designer';
import DesignerPlugin from '@ali/lowcode-plugin-designer';
import { Skeleton, SettingsPrimaryPane } from '@ali/lowcode-editor-skeleton';
export const editor = new Editor();
globalContext.register(editor, Editor);
export const skeleton = new Skeleton(editor);
editor.set(Skeleton, skeleton);
export const designer = new Designer({ editor: editor });
editor.set(Designer, designer);
skeleton.add({
area: 'mainArea',
name: 'designer',
type: 'Widget',
content: DesignerPlugin,
});
skeleton.add({
area: 'rightArea',
name: 'settingsPane',
type: 'Panel',
content: SettingsPrimaryPane,
});
export * from '@ali/lowcode-types';
export * from '@ali/lowcode-designer';
export * from '@ali/lowcode-editor-skeleton'

View File

@ -1,40 +0,0 @@
{
"entry": {
"index": "src/demo/index.ts",
"react-simulator-renderer": "../react-simulator-renderer/src/index.ts",
"vision": "src/vision.ts"
},
"vendor": false,
"devServer": {
"hot": false
},
"publicPath": "/",
"externals": {
"react": "window.React",
"react-dom": "window.ReactDOM",
"prop-types": "window.PropTypes",
"@alifd/next": "window.Next",
"@ali/visualengine": "window.VisualEngine",
"@ali/visualengine-utils": "window.VisualEngineUtils"
},
"plugins": [
[
"build-plugin-react-app"
],
[
"build-plugin-fusion",
{
"themePackage": "@alife/theme-lowcode-light"
}
],
[
"build-plugin-moment-locales",
{
"locales": [
"zh-cn"
]
}
],
"./build.plugin.js"
]
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -1,584 +0,0 @@
{
"version": "1.0.0",
"packages": [
{
"urls": ["//g.alicdn.com/platform/c/react/16.5.2/react.min.js"],
"library": "React",
"package": "react",
"version": "16.5.2"
},
{
"urls": ["//g.alicdn.com/platform/c/react-dom/16.5.2/react-dom.min.js"],
"library": "ReactDOM",
"package": "react-dom",
"version": "16.12.0"
},
{
"urls": ["//g.alicdn.com/platform/c/prop-types/15.6.2/prop-types.js"],
"library": "PropTypes",
"package": "prop-types",
"version": "15.6.2"
},
{
"library": "ReactRouter",
"package": "react-router"
},
{
"library": "ReactRouterDOM",
"package": "react-router-dom"
},
{
"library": "Babel",
"package": "babel-standalone"
},
{
"library": "Recore",
"package": "@ali/recore"
},
{
"urls": ["https://g.alicdn.com/code/lib/moment.js/2.24.0/moment-with-locales.min.js"],
"library": "moment",
"package": "moment",
"version": "2.24.0"
},
{
"library": "VisualEngine",
"package": "engine"
},
{
"library": "VisualEngine",
"package": "visualengine"
},
{
"library": "VisualEngine",
"package": "@ali/visualengine"
},
{
"library": "VisualEngineUtils",
"package": "engine-utils"
},
{
"library": "VisualEngineUtils",
"package": "@ali/visualengine-utils"
},
{
"library": "VisualEngine.ui.Popup",
"package": "@ali/ve-popups"
},
{
"library": "VisualEngineUtils.FieldControl",
"package": "@ali/ve-field"
},
{
"library": "VisualEngineUtils.BoolControl",
"package": "@ali/ve-bool-control"
},
{
"library": "VisualEngineUtils.ChoiceControl",
"package": "@ali/ve-choice-control"
},
{
"library": "VisualEngineUtils.ColorControl",
"package": "@ali/ve-color-control"
},
{
"library": "VisualEngineUtils.DateControl",
"package": "@ali/ve-date-control"
},
{
"library": "VisualEngineUtils.I18nControl",
"package": "@ali/ve-i18n-control"
},
{
"library": "VisualEngineUtils.NumberControl",
"package": "@ali/ve-number-control"
},
{
"library": "VisualEngineUtils.SelectControl",
"package": "@ali/ve-select-control"
},
{
"library": "VisualEngineUtils.SortableControl",
"package": "@ali/ve-sortable"
},
{
"library": "VisualEngineUtils.TextControl",
"package": "@ali/ve-text-control"
},
{
"library": "VisualEngineUtils.ImageControl",
"package": "@ali/ve-image-control"
},
{
"library": "VisualEngineUtils.SearchControl",
"package": "@ali/ve-search-control"
},
{
"library": "VisualEngineUtils.BoolSetter",
"package": "@ali/vs-bool"
},
{
"library": "VisualEngineUtils.ChoiceSetter",
"package": "@ali/vs-choice"
},
{
"library": "VisualEngineUtils.CodeSetter",
"package": "@ali/vs-code"
},
{
"library": "VisualEngineUtils.ColorSetter",
"package": "@ali/vs-color"
},
{
"library": "VisualEngineUtils.DateSetter",
"package": "@ali/vs-date"
},
{
"library": "VisualEngineUtils.I18nSetter",
"package": "@ali/vs-i18n"
},
{
"library": "VisualEngineUtils.JsonSetter",
"package": "@ali/vs-json"
},
{
"library": "VisualEngineUtils.ListSetter",
"package": "@ali/vs-list"
},
{
"library": "VisualEngineUtils.NumberSetter",
"package": "@ali/vs-number"
},
{
"library": "VisualEngineUtils.OptionsSetter",
"package": "@ali/vs-options"
},
{
"library": "VisualEngineUtils.SelectSetter",
"package": "@ali/vs-select"
},
{
"library": "VisualEngineUtils.TextSetter",
"package": "@ali/vs-text"
},
{
"library": "VisualEngineUtils.ValidationSetter",
"package": "@ali/vs-validation"
},
{
"library": "VisualEngineUtils.ImageSetter",
"package": "@ali/vs-image"
},
{
"library": "VisualEngineUtils.StyleSetter",
"package": "@ali/vs-style"
},
{
"library": "VisualEngineUtils.EventSetter",
"package": "@ali/vs-event"
},
{
"library": "RenderEngine",
"package": "@ali/render-engine"
},
{
"library": "Highcharts",
"package": "highcharts"
},
{
"library": "Object",
"package": "highcharts-more"
},
{
"library": "Highcharts && window.Highcharts.map",
"package": "highcharts/highmaps"
},
{
"library": "jQuery",
"package": "$"
},
{
"library": "jQuery",
"package": "jquery"
},
{
"library": "_",
"package": "lodash"
},
{
"library": "nattyFetch",
"package": "natty-fetch"
},
{
"library": "nattyFetch",
"package": "natty-fetch/dist/natty-fetch.pc"
},
{
"library": "nattyFetch",
"package": "natty-fetch/dist/natty-fetch"
},
{
"library": "nattyStorage",
"package": "natty-storage"
},
{
"library": "Rax",
"package": "rax"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-div/1.0.1/view.f31fe6d.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-div/1.0.1/view.d3df802.js"
],
"library": "AliVcDiv",
"package": "@ali/vc-div",
"version": "1.0.1"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-page/1.0.5/view.3fdc557.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-page/1.0.5/view.ae881b7.js"
],
"library": "AliVcPage",
"package": "@ali/vc-page",
"version": "1.0.5"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep/2.0.11/view.1bae686.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep/2.0.11/view.68be89a.js",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep/2.0.11/view.mobile.1bae686.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep/2.0.11/view.mobile.68a5782.js"
],
"library": "AliVcDeep",
"package": "@ali/vc-deep",
"version": "2.0.11"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-shell/1.5.6/view.70bac75.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-shell/1.5.6/view.6174a1b.js"
],
"library": "AliVcShell",
"package": "@ali/vc-shell",
"version": "1.5.6"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-slot/2.0.1/view.0e43387.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-slot/2.0.1/view.890474e.js"
],
"library": "AliVcSlot",
"package": "@ali/vc-slot",
"version": "2.0.1"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-text/4.0.1/view.764bd38.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-text/4.0.1/view.0dcac71.js",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-text/4.0.1/view.mobile.8a20311.js"
],
"library": "AliVcText",
"package": "@ali/vc-text",
"version": "4.0.1"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link/5.1.1/view.387943c.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link/5.1.1/view.ec70dd9.js",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link/5.1.1/view.mobile.387943c.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link/5.1.1/view.mobile.bc72f32.js"
],
"library": "AliVcLink",
"package": "@ali/vc-link",
"version": "5.1.1"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link-block/5.1.0/view.82ef4b0.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link-block/5.1.0/view.51d10d6.js",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link-block/5.1.0/view.mobile.82ef4b0.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link-block/5.1.0/view.mobile.d608862.js"
],
"library": "AliVcLinkBlock",
"package": "@ali/vc-link-block",
"version": "5.1.0"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-column/3.0.5/view.0e5dd32.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-column/3.0.5/view.e8a81f8.js"
],
"library": "AliVcChartColumn",
"package": "@ali/vc-chart-column",
"version": "3.0.5"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-line/3.0.4/view.b437757.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-line/3.0.4/view.4c5d11a.js"
],
"library": "AliVcChartLine",
"package": "@ali/vc-chart-line",
"version": "3.0.4"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-pie/3.0.2/view.0e43387.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-pie/3.0.2/view.4498f86.js"
],
"library": "AliVcChartPie",
"package": "@ali/vc-chart-pie",
"version": "3.0.2"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-radar/3.0.2/view.0e43387.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-radar/3.0.2/view.ff9e48b.js"
],
"library": "AliVcChartRadar",
"package": "@ali/vc-chart-radar",
"version": "3.0.2"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-markdown/2.0.0/view.3f91095.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-markdown/2.0.0/view.288bb26.js"
],
"library": "AliVcMarkdown",
"package": "@ali/vc-markdown",
"version": "2.0.0"
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/ac-amdp-home-consumer/1.0.11/view.f3f24d5.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/ac-amdp-home-consumer/1.0.11/view.f31409e.js"
],
"library": "AliAcAmdpHomeConsumer",
"package": "@ali/ac-amdp-home-consumer",
"version": "1.0.11"
},
{
"urls": ["https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/react-json-view/1.22.0/main.8c072ba.js"],
"library": "AliReactJsonView",
"package": "@ali/react-json-view",
"version": "1.22.0"
}
],
"x-prototypes": [
{
"urls": ["https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-div/1.0.1/proto.a264564.js"]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-page/1.0.5/proto.899e4b1.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-page/1.0.5/proto.bfe05a5.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep/2.0.11/proto.15be45f.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-deep/2.0.11/proto.039dc00.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-shell/1.5.6/proto.70bac75.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-shell/1.5.6/proto.8d105cf.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-slot/2.0.1/proto.0e43387.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-slot/2.0.1/proto.9e01f34.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-text/4.0.1/proto.595bd91.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-text/4.0.1/proto.90c4998.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link/5.1.1/proto.4828821.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link/5.1.1/proto.91e063a.js"
]
},
{
"urls": ["https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-link-block/5.1.0/proto.4e9a9d2.js"]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-column/3.0.5/proto.5973a33.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-column/3.0.5/proto.df847e6.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-line/3.0.4/proto.11e8b2c.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-line/3.0.4/proto.bbc1a73.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-pie/3.0.2/proto.81a7751.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-pie/3.0.2/proto.ce342e4.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-radar/3.0.2/proto.81a7751.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-chart-radar/3.0.2/proto.638100d.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-markdown/2.0.0/proto.3f91095.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/vc-markdown/2.0.0/proto.1bed9e5.js"
]
},
{
"urls": [
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/ac-amdp-home-consumer/1.0.11/proto.f3f24d5.css",
"https://g.alicdn.com/legao-comp/web_bundle_0724/@ali/ac-amdp-home-consumer/1.0.11/proto.f12090f.js"
]
}
],
"components": [
{
"componentName": "AliReactJsonView",
"npm": {
"package": "@ali/react-json-view",
"library": "AliReactJsonView",
"version": "1.22.0",
"destructuring": false
},
"props": [],
"configure": {
"component": {},
"props": [
{
"name": "src",
"title": "src",
"setter": "Object"
},
{
"name": "name",
"title": "name",
"setter": "Input"
},
{
"name": "theme",
"title": "theme",
"setter": "Input"
},
{
"name": "collapsed",
"title": "collapsed",
"setter": "Switch"
},
{
"name": "collapseStringsAfterLength",
"title": "collapseStringsAfterLength",
"setter": "Switch"
},
{
"name": "shouldCollapse",
"title": "shouldCollapse",
"setter": "Switch"
},
{
"name": "sortKeys",
"title": "sortKeys",
"setter": "Switch"
},
{
"name": "groupArraysAfterLength",
"title": "groupArraysAfterLength",
"setter": "Number"
},
{
"name": "indentWidth",
"title": "indentWidth",
"setter": "Number"
},
{
"name": "enableClipboard",
"title": "enableClipboard",
"setter": "Switch"
},
{
"name": "displayObjectSize",
"title": "displayObjectSize",
"setter": "Switch"
},
{
"name": "displayDataTypes",
"title": "displayDataTypes",
"setter": "Switch"
},
{
"name": "onEdit",
"title": "onEdit",
"setter": "Switch"
},
{
"name": "onDelete",
"title": "onDelete",
"setter": "Switch"
},
{
"name": "onAdd",
"title": "onAdd",
"setter": "Switch"
},
{
"name": "onSelect",
"title": "onSelect",
"setter": "Switch"
},
{
"name": "iconStyle",
"title": "iconStyle",
"setter": "Input"
},
{
"name": "style",
"title": "style",
"setter": "Object"
},
{
"name": "validationMessage",
"title": "validationMessage",
"setter": "Input"
},
{
"name": "defaultValue",
"title": "defaultValue",
"setter": "Input"
}
]
},
"title": "json格式化展示"
}
],
"componentList": [
{
"title": "自定义",
"icon": "",
"children": [{
"title": "json格式化展示",
"icon": "",
"snippets": [{
"schema": {
"componentName": "AliReactJsonView",
"props": {}
},
"title": "json格式化展示",
"screenshot": ""
}]
}]
}
]
}

View File

@ -1,18 +0,0 @@
{
"componentName": "Page",
"fileName": "test",
"dataSource": {
"list": []
},
"state": {
"text": "outter"
},
"props": {
"ref": "outterView",
"autoLoading": true,
"style": {
"padding": 20
}
},
"children": []
}

View File

@ -0,0 +1,23 @@
{
"plugins": [
[
"build-plugin-component",
{
"filename": "vision",
"library": "VisualEngine",
"libraryTarget": "umd",
"externals": {
"react": "window.React",
"react-dom": "window.ReactDOM",
"prop-types": "window.PropTypes",
"@ali/lowcode-editor-core": "window.LCECore"
}
}
],
"build-plugin-fusion",
["build-plugin-moment-locales", {
"locales": ["zh-cn"]
}],
"./build.plugin.js"
]
}

View File

@ -0,0 +1,22 @@
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
module.exports = ({ onGetWebpackConfig }) => {
onGetWebpackConfig((config) => {
config.resolve
.plugin('tsconfigpaths')
.use(TsconfigPathsPlugin, [{
configFile: "./tsconfig.json"
}]);
config
// 定义插件名称
.plugin('MonacoWebpackPlugin')
// 第一项为具体插件,第二项为插件参数
.use(new MonacoWebpackPlugin({
languages:["javascript","css","json"]
}), []);
config.plugins.delete('hot');
config.devServer.hot(false);
});
};

View File

@ -1,23 +1,21 @@
{
"name": "@ali/lowcode-vision-polyfill",
"private": true,
"version": "0.8.2",
"name": "@ali/lowcode-vision-preset",
"version": "0.8.0",
"description": "Vision Polyfill for Ali lowCode engine",
"main": "lib/index.js",
"files": [
"dist"
],
"scripts": {
"start": "build-scripts start"
"build": "build-scripts build --skip-demo",
"cloud-build": "build-scripts build --skip-demo"
},
"license": "MIT",
"dependencies": {
"@ali/lowcode-editor-core": "^0.8.6",
"@ali/lowcode-editor-skeleton": "^0.8.7",
"@ali/lowcode-plugin-components-pane": "^0.8.5",
"@ali/lowcode-plugin-designer": "^0.9.3",
"@ali/lowcode-plugin-outline-pane": "^0.8.9",
"@ali/lowcode-plugin-settings-pane": "^0.8.10",
"@ali/lowcode-plugin-undo-redo": "^0.8.6",
"@ali/lowcode-plugin-zh-en": "^0.8.8",
"@ali/lowcode-setters": "^0.8.8",
@ -33,18 +31,20 @@
"@alifd/next": "^1.19.12",
"@alife/theme-lowcode-dark": "^0.1.0",
"@alife/theme-lowcode-light": "^0.1.0",
"domready": "^1.0.8",
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
"devDependencies": {
"@alib/build-scripts": "^0.1.18",
"@types/domready": "^1.0.0",
"@types/events": "^3.0.0",
"@types/react": "^16.8.3",
"@types/react-dom": "^16.8.2",
"build-plugin-fusion": "^0.1.0",
"build-plugin-moment-locales": "^0.1.0",
"build-plugin-react-app": "^1.1.2",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"monaco-editor-webpack-plugin":"^1.9.0"
"monaco-editor-webpack-plugin": "^1.9.0",
"tsconfig-paths-webpack-plugin": "^3.2.0"
}
}

View File

@ -7,11 +7,13 @@ import Outline from '@ali/lowcode-plugin-outline-pane';
import DesignerPlugin from '@ali/lowcode-plugin-designer';
import { Skeleton, SettingsPrimaryPane } from '@ali/lowcode-editor-skeleton';
import Preview from '@ali/lowcode-plugin-sample-preview';
import SourceEditor from '@ali/lowcode-plugin-source-editor';
import { i18nReducer } from './i18n-reducer';
export * from '@ali/lowcode-editor-core';
export * from '@ali/lowcode-designer';
registerSetters();
export const editor = new Editor();

View File

@ -1,5 +1,6 @@
import domReady = require('domready');
import * as EventEmitter from 'events';
import domReady from 'domready';
import { EventEmitter } from 'events';
const Shells = ['iphone6'];

View File

@ -7,7 +7,7 @@ import { hotkey as Hotkey } from '@ali/lowcode-editor-core';
import { createElement } from 'react';
import { VE_EVENTS as EVENTS, VE_HOOKS as HOOKS } from './const';
import Bus from './bus';
import { skeleton, editor } from './editor';
import { skeleton } from './editor';
import { Workbench } from '@ali/lowcode-editor-skeleton';
import Panes from './panes';
import Exchange from './exchange';
@ -20,10 +20,10 @@ import Pages from './pages';
import Field from './field';
import Prop from './prop';
import Env from './env';
import './vision.less';
import DragEngine from './drag-engine';
import * as EditorCore from '@ali/lowcode-editor-core';
import * as Designer from '@ali/lowcode-designer';
export * from './editor';
import './vision.less';
function init(container?: Element) {
if (!container) {
@ -61,10 +61,6 @@ const modules = {
const context = new VisualEngineContext();
const VisualEngine = {
EditorCore,
Designer,
editor,
skeleton,
/**
* VE.Popup
*/

View File

@ -21,17 +21,19 @@ echo ""
# work
mkdir packages
# cp -r $WORK_DIR/packages/demo packages/demo
cp -r $WORK_DIR/packages/demo packages/demo
cp -r $WORK_DIR/packages/react-simulator-renderer packages/react-simulator-renderer
cp -r $WORK_DIR/packages/globals packages/globals
cp -r $WORK_DIR/packages/editor-core packages/editor-core
cp -r $WORK_DIR/packages/vision-preset packages/vision-preset
lerna bootstrap
lerna run cloud-build --stream
cd $WORK_DIR
# mv deploy-space/packages/demo/build $BUILD_DEST
mv deploy-space/packages/demo/build $BUILD_DEST
# mv deploy-space/packages/react-simulator-renderer/dist/* $BUILD_DEST
mv deploy-space/packages/react-simulator-renderer/dist $BUILD_DEST
mv deploy-space/packages/globals/dist/* $BUILD_DEST
cp deploy-space/html/* $BUILD_DEST
mv deploy-space/packages/editor-core/dist/* $BUILD_DEST
mv deploy-space/packages/vision-preset/dist/* $BUILD_DEST
cp deploy-space/static/* $BUILD_DEST
echo "complete"