GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge branch 'release/1.1.1' · li55/lowcode-engine@12dee7f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • docs/docs/api
    • plugins.md
  • lerna.json
  • modules/code-generator
    • package.json
  • packages
    • designer
      • package.json
      • src/plugin
        • plugin-types.ts
    • editor-core
      • package.json
    • editor-skeleton
      • package.json
    • engine
      • package.json
      • src
        • engine-core.ts
    • ignitor
      • package.json
    • plugin-designer
      • package.json
    • plugin-outline-pane
      • package.json
      • src
        • controllers
          • tree-master.ts
        • index.tsx
    • rax-renderer
      • package.json
    • rax-simulator-renderer
      • package.json
    • react-renderer
      • package.json
    • react-simulator-renderer
      • package.json
    • renderer-core
      • package.json
    • shell
      • package.json
      • src/model
        • plugin-instance.ts
        • resource.ts
    • types
      • package.json
      • src/shell
        • api
          • canvas.ts
          • plugins.ts
          • workspace.ts
        • model
          • plugin-context.ts
          • plugin-instance.ts
        • type
          • editor-view-config.ts
          • resource-list.ts
          • resource-type-config.ts
          • resource-type.ts
          • widget-base-config.ts
    • utils
      • package.json
    • workspace
      • package.json
      • src
        • context
          • base-context.ts
          • view-context.ts
        • inner-plugins
          • webview.tsx
        • resource.ts
        • view
          • window-view.tsx
        • window.ts
        • workspace.ts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎docs/docs/api/plugins.md‎

Copy file name to clipboardExpand all lines: docs/docs/api/plugins.md
+39-12Lines changed: 39 additions & 12 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,13 @@ import { IPublicModelPluginContext } from '@alilc/lowcode-types';
118118
const BuiltinPluginRegistry = (ctx: IPublicModelPluginContext, options: any) => {
119119
return {
120120
async init() {
121-
// 1.0.4 之后的传值方式,通过 register(xxx, options)
122-
// 取值通过 options
121+
// 直接传值方式:
122+
// 通过 register(xxx, options) 传入
123+
// 通过 options 取出
123124
124-
// 1.0.4 之前的传值方式,通过 init(..., preference)
125-
// 取值通过 ctx.preference.getValue()
125+
// 引擎初始化时也可以设置某插件的全局配置项:
126+
// 通过 engine.init(..., preference) 传入
127+
// 通过 ctx.preference.getValue() 取出
126128
},
127129
};
128130
}
@@ -155,7 +157,6 @@ BuiltinPluginRegistry.meta = {
155157
},
156158
}
157159
158-
// 从 1.0.4 开始,支持直接在 pluginCreator 的第二个参数 options 获取入参
159160
await plugins.register(BuiltinPluginRegistry, { key1: 'abc', key5: 'willNotPassToPlugin' });
160161
```
161162

@@ -164,8 +165,11 @@ await plugins.register(BuiltinPluginRegistry, { key1: 'abc', key5: 'willNotPassT
164165
获取指定插件
165166

166167
```typescript
167-
function get(pluginName: string): IPublicModelPluginInstance;
168-
168+
/**
169+
* 获取指定插件
170+
* get plugin instance by name
171+
*/
172+
get(pluginName: string): IPublicModelPluginInstance | null;
169173
```
170174

171175
关联模型 [IPublicModelPluginInstance](./model/plugin-instance)
@@ -175,8 +179,11 @@ function get(pluginName: string): IPublicModelPluginInstance;
175179
获取所有的插件实例
176180

177181
```typescript
178-
function getAll(): IPublicModelPluginInstance[];
179-
182+
/**
183+
* 获取所有的插件实例
184+
* get all plugin instances
185+
*/
186+
getAll(): IPublicModelPluginInstance[];
180187
```
181188

182189
关联模型 [IPublicModelPluginInstance](./model/plugin-instance)
@@ -186,17 +193,37 @@ function getAll(): IPublicModelPluginInstance[];
186193
判断是否有指定插件
187194

188195
```typescript
189-
function has(pluginName: string): boolean;
190-
196+
/**
197+
* 判断是否有指定插件
198+
* check if plugin with certain name exists
199+
*/
200+
has(pluginName: string): boolean;
191201
```
192202

193203
### delete
194204

195205
删除指定插件
196206

197207
```typescript
198-
function delete(pluginName: string): void;
208+
/**
209+
* 删除指定插件
210+
* delete plugin instance by name
211+
*/
212+
delete(pluginName: string): void;
213+
```
199214

215+
### getPluginPreference
216+
217+
引擎初始化时可以提供全局配置给到各插件,通过这个方法可以获得本插件对应的配置
218+
219+
```typescript
220+
/**
221+
* 引擎初始化时可以提供全局配置给到各插件,通过这个方法可以获得本插件对应的配置
222+
* use this to get preference config for this plugin when engine.init() called
223+
*/
224+
getPluginPreference(
225+
pluginName: string,
226+
): Record<string, IPublicTypePreferenceValueType> | null | undefined;
200227
```
201228

202229
## 相关类型定义
Collapse file

‎lerna.json‎

Copy file name to clipboardExpand all lines: lerna.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"lerna": "4.0.0",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"npmClient": "yarn",
55
"useWorkspaces": true,
66
"packages": [
Collapse file

‎modules/code-generator/package.json‎

Copy file name to clipboardExpand all lines: modules/code-generator/package.json
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,6 @@
143143
"publishConfig": {
144144
"access": "public",
145145
"registry": "https://registry.npmjs.org/"
146-
}
147-
}
146+
},
147+
"repository": "[email protected]:alibaba/lowcode-engine.git"
148+
}
Collapse file

‎packages/designer/package.json‎

Copy file name to clipboardExpand all lines: packages/designer/package.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alilc/lowcode-designer",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Designer for Ali LowCode Engine",
55
"main": "lib/index.js",
66
"module": "es/index.js",
@@ -15,9 +15,9 @@
1515
},
1616
"license": "MIT",
1717
"dependencies": {
18-
"@alilc/lowcode-editor-core": "1.1.0",
19-
"@alilc/lowcode-types": "1.1.0",
20-
"@alilc/lowcode-utils": "1.1.0",
18+
"@alilc/lowcode-editor-core": "1.1.1",
19+
"@alilc/lowcode-types": "1.1.1",
20+
"@alilc/lowcode-utils": "1.1.1",
2121
"classnames": "^2.2.6",
2222
"react": "^16",
2323
"react-dom": "^16.7.0",
Collapse file

‎packages/designer/src/plugin/plugin-types.ts‎

Copy file name to clipboardExpand all lines: packages/designer/src/plugin/plugin-types.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ export interface ILowCodePluginRuntimeCore {
2626
disabled: boolean;
2727
config: IPublicTypePluginConfig;
2828
logger: IPublicApiLogger;
29+
meta: IPublicTypePluginMeta;
2930
init(forceInit?: boolean): void;
3031
isInited(): boolean;
3132
destroy(): void;
3233
toProxy(): any;
3334
setDisabled(flag: boolean): void;
34-
meta: IPublicTypePluginMeta;
3535
}
3636

3737
interface ILowCodePluginRuntimeExportsAccessor {
Collapse file

‎packages/editor-core/package.json‎

Copy file name to clipboardExpand all lines: packages/editor-core/package.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alilc/lowcode-editor-core",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Core Api for Ali lowCode engine",
55
"license": "MIT",
66
"main": "lib/index.js",
@@ -14,8 +14,8 @@
1414
},
1515
"dependencies": {
1616
"@alifd/next": "^1.19.16",
17-
"@alilc/lowcode-types": "1.1.0",
18-
"@alilc/lowcode-utils": "1.1.0",
17+
"@alilc/lowcode-types": "1.1.1",
18+
"@alilc/lowcode-utils": "1.1.1",
1919
"classnames": "^2.2.6",
2020
"debug": "^4.1.1",
2121
"intl-messageformat": "^9.3.1",
Collapse file

‎packages/editor-skeleton/package.json‎

Copy file name to clipboardExpand all lines: packages/editor-skeleton/package.json
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alilc/lowcode-editor-skeleton",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "alibaba lowcode editor skeleton",
55
"main": "lib/index.js",
66
"module": "es/index.js",
@@ -18,10 +18,10 @@
1818
],
1919
"dependencies": {
2020
"@alifd/next": "^1.20.12",
21-
"@alilc/lowcode-designer": "1.1.0",
22-
"@alilc/lowcode-editor-core": "1.1.0",
23-
"@alilc/lowcode-types": "1.1.0",
24-
"@alilc/lowcode-utils": "1.1.0",
21+
"@alilc/lowcode-designer": "1.1.1",
22+
"@alilc/lowcode-editor-core": "1.1.1",
23+
"@alilc/lowcode-types": "1.1.1",
24+
"@alilc/lowcode-utils": "1.1.1",
2525
"classnames": "^2.2.6",
2626
"react": "^16.8.1",
2727
"react-dom": "^16.8.1"
Collapse file

‎packages/engine/package.json‎

Copy file name to clipboardExpand all lines: packages/engine/package.json
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alilc/lowcode-engine",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系",
55
"main": "lib/engine-core.js",
66
"module": "es/engine-core.js",
@@ -19,15 +19,15 @@
1919
"license": "MIT",
2020
"dependencies": {
2121
"@alifd/next": "^1.19.12",
22-
"@alilc/lowcode-designer": "1.1.0",
23-
"@alilc/lowcode-editor-core": "1.1.0",
24-
"@alilc/lowcode-editor-skeleton": "1.1.0",
22+
"@alilc/lowcode-designer": "1.1.1",
23+
"@alilc/lowcode-editor-core": "1.1.1",
24+
"@alilc/lowcode-editor-skeleton": "1.1.1",
2525
"@alilc/lowcode-engine-ext": "^1.0.0",
26-
"@alilc/lowcode-plugin-designer": "1.1.0",
27-
"@alilc/lowcode-plugin-outline-pane": "1.1.0",
28-
"@alilc/lowcode-shell": "1.1.0",
29-
"@alilc/lowcode-utils": "1.1.0",
30-
"@alilc/lowcode-workspace": "1.1.0",
26+
"@alilc/lowcode-plugin-designer": "1.1.1",
27+
"@alilc/lowcode-plugin-outline-pane": "1.1.1",
28+
"@alilc/lowcode-shell": "1.1.1",
29+
"@alilc/lowcode-utils": "1.1.1",
30+
"@alilc/lowcode-workspace": "1.1.1",
3131
"react": "^16.8.1",
3232
"react-dom": "^16.8.1"
3333
},
Collapse file

‎packages/engine/src/engine-core.ts‎

Copy file name to clipboardExpand all lines: packages/engine/src/engine-core.ts
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function registryInnerPlugin(designer: Designer, editor: Editor, plugins:
6363
// 注册一批内置插件
6464
await plugins.register(OutlinePlugin, {}, { autoInit: true });
6565
await plugins.register(componentMetaParser(designer));
66-
await plugins.register(setterRegistry, {}, { autoInit: true });
66+
await plugins.register(setterRegistry, {});
6767
await plugins.register(defaultPanelRegistry(editor));
6868
await plugins.register(builtinHotkey);
6969
await plugins.register(registerDefaults, {}, { autoInit: true });
@@ -195,6 +195,7 @@ export async function init(
195195
engineContainer,
196196
);
197197
innerWorkspace.setActive(true);
198+
innerHotkey.activate(false);
198199
await innerWorkspace.plugins.init(pluginPreference);
199200
return;
200201
}
Collapse file

‎packages/ignitor/package.json‎

Copy file name to clipboardExpand all lines: packages/ignitor/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alilc/lowcode-ignitor",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "点火器,bootstrap lce project",
55
"main": "lib/index.js",
66
"private": true,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.