GeezerVison is showing github.com — Merge branch 'release/1.7.0' · mflmn/lowcode-engine@0e90ea8
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +33Lines changed: 33 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +name: Check Base Branch | | 2 | + | | 3 | +on: | | 4 | + pull_request: | | 5 | + types: [opened] | | 6 | + | | 7 | +jobs: | | 8 | + code-review: | | 9 | + name: Check | | 10 | + runs-on: ubuntu-latest | | 11 | + | | 12 | + steps: | | 13 | + # 判断用户是否有写仓库权限 | | 14 | + - name: 'Check User Permission' | | 15 | + | | 16 | + with: | | 17 | + permission: 'write' | | 18 | + env: | | 19 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | | 20 | + | | 21 | + - name: 'Check base branch name is develop or not' | | 22 | + if: github.event.pull_request.base.ref != 'develop' # check the target branch if it's master | | 23 | + uses: actions-cool/issues-helper@v2 | | 24 | + with: | | 25 | + actions: 'create-comment' | | 26 | + token: ${{ secrets.GITHUB_TOKEN }} | | 27 | + issue-number: ${{ github.event.pull_request.number }} | | 28 | + body: | | | 29 | + 感谢你的 PR,根据引擎的 [研发协作流程](https://lowcode-engine.cn/site/docs/participate/flow),请将目标合入分支设置为 **develop**。 | | 30 | +
| | 31 | + Thanks in advance, according to the [Contribution Guideline](https://lowcode-engine.cn/site/docs/participate/flow), please set the base branch to **develop**. | | 32 | +
| | 33 | + @${{ github.event.pull_request.user.login }} |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/cov packages.yml +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 73 | 73 | package-manager: yarn | 74 | 74 | annotations: none | 75 | 75 |
| 76 | | -cov-utils: | | 76 | + cov-utils: | 77 | 77 | runs-on: ubuntu-latest | 78 | 78 | # skip fork's PR, otherwise it fails while making a comment | 79 | 79 | if: ${{ github.event.pull_request.head.repo.full_name == 'alibaba/lowcode-engine' }} | @@ -91,6 +91,6 @@ cov-utils: | 91 | 91 | - uses: ArtiomTr/jest-coverage-report-action@v2 | 92 | 92 | with: | 93 | 93 | working-directory: packages/utils | 94 | | - test-script: npm test | | 94 | + test-script: npm test -- --jest-ci --jest-json --jest-coverage --jest-testLocationInResults --jest-outputFile=report.json | 95 | 95 | package-manager: yarn | 96 | 96 | annotations: none |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/help wanted.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -name: Issue Reply | | 1 | +name: Help Wanted | 2 | 2 |
| 3 | 3 | on: | 4 | 4 | issues: | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/insufficient information.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -name: Issue Reply | | 1 | +name: Insufficient Info | 2 | 2 |
| 3 | 3 | on: | 4 | 4 | issues: | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/test modules.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -name: lint & test | | 1 | +name: Lint & Test (Mods) | 2 | 2 |
| 3 | 3 | on: | 4 | 4 | push: | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/test packages.yml +51-3Lines changed: 51 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -name: lint & test | | 1 | +name: Lint & Test (Pkgs) | 2 | 2 |
| 3 | 3 | on: | 4 | 4 | push: | | 43 | 43 | - name: test | 44 | 44 | run: cd packages/designer && npm test | 45 | 45 |
| 46 | | - editor-skeleton: | | 46 | + test-editor-skeleton: | 47 | 47 | runs-on: ubuntu-latest | 48 | 48 | steps: | 49 | 49 | - name: checkout | | 57 | 57 | run: npm i && npm run setup:skip-build | 58 | 58 |
| 59 | 59 | - name: test | 60 | | - run: cd packages/editor-skeleton && npm test | | 60 | + run: cd packages/editor-skeleton && npm test | | 61 | + | | 62 | + test-renderer-core: | | 63 | + runs-on: ubuntu-latest | | 64 | + steps: | | 65 | + - name: checkout | | 66 | + uses: actions/checkout@v2 | | 67 | + | | 68 | + - uses: actions/setup-node@v2 | | 69 | + with: | | 70 | + node-version: '14' | | 71 | + | | 72 | + - name: install | | 73 | + run: npm i && npm run setup:skip-build | | 74 | + | | 75 | + - name: test | | 76 | + run: cd packages/renderer-core && npm test | | 77 | + | | 78 | + test-react-simulator-renderer: | | 79 | + runs-on: ubuntu-latest | | 80 | + steps: | | 81 | + - name: checkout | | 82 | + uses: actions/checkout@v2 | | 83 | + | | 84 | + - uses: actions/setup-node@v2 | | 85 | + with: | | 86 | + node-version: '14' | | 87 | + | | 88 | + - name: install | | 89 | + run: npm i && npm run setup:skip-build | | 90 | + | | 91 | + - name: test | | 92 | + run: cd packages/react-simulator-renderer && npm test | | 93 | + | | 94 | + test-utils: | | 95 | + runs-on: ubuntu-latest | | 96 | + steps: | | 97 | + - name: checkout | | 98 | + uses: actions/checkout@v2 | | 99 | + | | 100 | + - uses: actions/setup-node@v2 | | 101 | + with: | | 102 | + node-version: '14' | | 103 | + | | 104 | + - name: install | | 105 | + run: npm i && npm run setup:skip-build | | 106 | + | | 107 | + - name: test | | 108 | + run: cd packages/utils && npm test |
Collapse file Copy file name to clipboardExpand all lines: docs/docs/api/common.md +12-1Lines changed: 12 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -95,6 +95,17 @@ common.utils.startTransaction(() => { | 95 | 95 | }, IPublicEnumTransitionType.repaint); | 96 | 96 | ``` | 97 | 97 |
| | 98 | +#### getConvertedExtraKey | | 99 | + | | 100 | +props key 转化工具 | | 101 | + | | 102 | +```typescript | | 103 | +getConvertedExtraKey(key: string): string | | 104 | + | | 105 | +``` | | 106 | + | | 107 | +**@since v1.0.17** | | 108 | + | 98 | 109 | #### createIntl | 99 | 110 | i18n 相关工具 | 100 | 111 | ```typescript | @@ -144,4 +155,4 @@ const { intl, getLocale, setLocale } = common.utils.createIntl({ | 144 | 155 | * get Workbench Component | 145 | 156 | */ | 146 | 157 | get Workbench(): Component; | 147 | | -``` | | 158 | +``` |
Collapse file Copy file name to clipboardExpand all lines: docs/docs/api/config.md +11Lines changed: 11 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -105,6 +105,17 @@ getPreference(): IPublicModelPreference; | 105 | 105 |
| 106 | 106 | **@since v1.1.0** | 107 | 107 |
| | 108 | +示例 | | 109 | + | | 110 | +```javascript | | 111 | +import { config } from '@alilc/lowcode-engine'; | | 112 | + | | 113 | +const panelName = 'outline-master-pane'; | | 114 | + | | 115 | +// 设置大纲树面板钉住,在大纲树下次重新打开时生效 | | 116 | +config.getPreference().set(`${panelName}-pinned-status-isFloat`, false, 'skeleton') | | 117 | +``` | | 118 | + | 108 | 119 | ## 事件 | 109 | 120 |
| 110 | 121 | ### onceGot | |
Collapse file Copy file name to clipboardExpand all lines: docs/docs/api/material.md +10Lines changed: 10 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -245,6 +245,7 @@ material.getComponentMeta('Input'); | 245 | 245 | ``` | 246 | 246 |
| 247 | 247 | #### getComponentMetasMap | | 248 | + | 248 | 249 | 获取所有已注册的物料元数据 | 249 | 250 |
| 250 | 251 | ```typescript | @@ -264,6 +265,15 @@ import { material } from '@alilc/lowcode-engine'; | 264 | 265 | material.getComponentMetasMap(); | 265 | 266 | ``` | 266 | 267 |
| | 268 | +#### refreshComponentMetasMap | | 269 | + | | 270 | +刷新 componentMetasMap,可触发模拟器里的 components 重新构建 | | 271 | + | | 272 | +**@since v1.1.7** | | 273 | + | | 274 | +```typescript | | 275 | + refreshComponentMetasMap(): void; | | 276 | +``` | 267 | 277 |
| 268 | 278 | ### 物料元数据管道函数 | 269 | 279 | #### registerMetadataTransducer | |
Collapse file Copy file name to clipboard +21Lines changed: 21 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +--- | | 2 | +title: EditorView | | 3 | +sidebar_position: 12 | | 4 | +--- | | 5 | + | | 6 | +> **[@experimental](./#experimental)**<br/> | | 7 | +> **@types** [IPublicModelEditorView](https://github.com/alibaba/lowcode-engine/blob/main/packages/types/src/shell/model/editor-view.ts)<br/> | | 8 | +> **@since** v1.1.7 | | 9 | +
| | 10 | +窗口编辑视图 | | 11 | + | | 12 | +## 类型定义 | | 13 | + | | 14 | +``` | | 15 | +import { IPublicModelPluginContext } from "./plugin-context"; | | 16 | +
| | 17 | +export interface IPublicModelEditorView extends IPublicModelPluginContext {}; | | 18 | +
| | 19 | +``` | | 20 | + | | 21 | +相关类型定义: [IPublicModelPluginContext](https://github.com/alibaba/lowcode-engine/blob/main/packages/types/src/shell/model/plugin-context.ts) |
|