GeezerVison is showing github.com — fix: 解决出码的一些问题 (#87) · chvin/lowcode-engine@4a01c97
File treeExpand file treeCollapse file tree Open diff view settings plugins/project/framework
expected/demo-project/src/pages/Home
demo8-datasource-prop/expected/demo-project demo9-datasource-engine/expected/demo-project
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 clipboardExpand all lines: modules/code-generator/.gitignore +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -111,3 +111,7 @@ codealike.json | 111 | 111 |
| 112 | 112 | # types | 113 | 113 | /types | | 114 | + | | 115 | +# backup files | | 116 | +*.bak | | 117 | + |
Collapse file Copy file name to clipboardExpand all lines: modules/code-generator/CHANGELOG.md +26Lines changed: 26 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | 4 | 4 |
| | 5 | + | | 6 | + | | 7 | + | | 8 | +### Features | | 9 | + | | 10 | +* 在 skeleton 增加几个方法和事件 ([a7d436a](https://github.com/alibaba/lowcode-engine/commit/a7d436a0525a0ce0c7229710077111f283b452f4)) | | 11 | +* modify npm private control & version ([ee55d02](https://github.com/alibaba/lowcode-engine/commit/ee55d024a7f964ccf35a0efabec817364cea8041)) | | 12 | +* modify yuque link in README ([d522034](https://github.com/alibaba/lowcode-engine/commit/d522034879d20a7b5ed12f8fe02a30662a2ea7c6)) | | 13 | +* remove CHANGELOG.md ([b996414](https://github.com/alibaba/lowcode-engine/commit/b996414c436b5d2439c8368eb4e001cdbcd02892)) | | 14 | +* remove module field in material-parser package.json ([6141c27](https://github.com/alibaba/lowcode-engine/commit/6141c273c9c32eea22b5374679fe625e6ea15394)) | | 15 | +* rename build:umd ([23c7959](https://github.com/alibaba/lowcode-engine/commit/23c795931e1d5cf43e9c21cd902441c69c1ecc63)) | | 16 | +* replace tnpm with npm ([36caf0f](https://github.com/alibaba/lowcode-engine/commit/36caf0f18980c16f7ebb82ac845ad6b33e033567)) | | 17 | +* support UMD packageing for react-renderer ([982d0d6](https://github.com/alibaba/lowcode-engine/commit/982d0d676b3dfbfc10a2190c0040126d6925ed37)) | | 18 | + | | 19 | + | | 20 | +### Bug Fixes | | 21 | + | | 22 | +* 🐛 修正一些示例地址 ([8d21283](https://github.com/alibaba/lowcode-engine/commit/8d212832e77a1ec763db668683917705774acd0d)) | | 23 | +* 兼容 setters 为空的情况 ([56b459a](https://github.com/alibaba/lowcode-engine/commit/56b459a017a8350a911ef20f0166d1e62b6390e4)) | | 24 | +* 修复 setup 的逻辑 ([1cfb15a](https://github.com/alibaba/lowcode-engine/commit/1cfb15aebea9796af23b2135f2aa4409d81283d7)) | | 25 | +* 修正一些对内的地址 ([07cc1f2](https://github.com/alibaba/lowcode-engine/commit/07cc1f2954530c64a1a3d260e8d532c9e19892e8)) | | 26 | +* 增加必要的方法 ([1b38a81](https://github.com/alibaba/lowcode-engine/commit/1b38a812653656aa02100a3b1b2a581188d1b3ef)) | | 27 | +* fix tsconfig of material-parser ([46725cb](https://github.com/alibaba/lowcode-engine/commit/46725cb9f3166912c8f5b42f1e0b1177158c1ee3)) | | 28 | +* lint&fix auto generated types.ts ([7dde970](https://github.com/alibaba/lowcode-engine/commit/7dde9701c7960b29523abddf32421cdbac47016d)) | | 29 | +* The outline tree does not display the loop flag when the loop is an empty array ([191e284](https://github.com/alibaba/lowcode-engine/commit/191e284f2fa190c2b3aecb4df31849b2bdc99d38)) | | 30 | + | 5 | 31 | ## 1.0.0 (2022-02-17) | 6 | 32 |
| 7 | 33 |
| |
Collapse file Copy file name to clipboardExpand all lines: modules/code-generator/README.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -110,4 +110,4 @@ console.log(result); // 出码结果(默认是递归结构描述的,可以传 | 110 | 110 |
| 111 | 111 | ## 参与共建 | 112 | 112 |
| 113 | | -欢迎参与共建,如何共建请参阅:[./CONTRIBUTING.md](https://code.aone.alibaba-inc.com/ali-lowcode/code-generator/blob/develop/CONTRIBUTING.md) | | 113 | +欢迎参与共建,如何共建请参阅:[./CONTRIBUTING.md](https://github.com/alibaba/lowcode-engine/blob/main/modules/code-generator/CONTRIBUTING.md) |
Collapse file Copy file name to clipboardExpand all lines: modules/code-generator/example-schema.json +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 87 | 87 | "type": "fetch", | 88 | 88 | "options": { | 89 | 89 | "method": "GET", | 90 | | - "uri": "https://shs.alibaba-inc.com/mock/1458/demo/user", | | 90 | + "uri": "https://shs.xxx.com/mock/1458/demo/user", | 91 | 91 | "isSync": true | 92 | 92 | }, | 93 | 93 | "dataHandler": { | | 101 | 101 | "type": "fetch", | 102 | 102 | "options": { | 103 | 103 | "method": "GET", | 104 | | - "uri": "https://shs.alibaba-inc.com/mock/1458/demo/orders", | | 104 | + "uri": "https://shs.xxx.com/mock/1458/demo/orders", | 105 | 105 | "isSync": true | 106 | 106 | }, | 107 | 107 | "dataHandler": { | | 245 | 245 | ], | 246 | 246 | "constants": { | 247 | 247 | "ENV": "prod", | 248 | | - "DOMAIN": "xxx.alibaba-inc.com" | | 248 | + "DOMAIN": "xxx.xxx.com" | 249 | 249 | }, | 250 | 250 | "css": "body {font-size: 12px;} .table { width: 100px;}", | 251 | 251 | "config": { | |
Collapse file Copy file name to clipboardExpand all lines: modules/code-generator/example-schema.json5 +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 87 | 87 | type: 'fetch', | 88 | 88 | options: { | 89 | 89 | method: 'GET', | 90 | | - uri: 'https://shs.alibaba-inc.com/mock/1458/demo/user', | | 90 | + uri: 'https://shs.xxx.com/mock/1458/demo/user', | 91 | 91 | isSync: true, | 92 | 92 | }, | 93 | 93 | dataHandler: { | | 101 | 101 | type: 'fetch', | 102 | 102 | options: { | 103 | 103 | method: 'GET', | 104 | | - uri: 'https://shs.alibaba-inc.com/mock/1458/demo/orders', | | 104 | + uri: 'https://shs.xxx.com/mock/1458/demo/orders', | 105 | 105 | isSync: true, | 106 | 106 | }, | 107 | 107 | dataHandler: { | | 245 | 245 | ], | 246 | 246 | constants: { | 247 | 247 | ENV: 'prod', | 248 | | - DOMAIN: 'xxx.alibaba-inc.com', | | 248 | + DOMAIN: 'xxx.xxx.com', | 249 | 249 | }, | 250 | 250 | css: 'body {font-size: 12px;} .table { width: 100px;}', | 251 | 251 | config: { | |
Collapse file Copy file name to clipboardExpand all lines: modules/code-generator/package.json +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | 2 | "name": "@alilc/lowcode-code-generator", | 3 | | - "version": "1.0.0", | | 3 | + "version": "1.0.1", | 4 | 4 | "description": "出码引擎 for LowCode Engine", | 5 | 5 | "license": "MIT", | 6 | 6 | "main": "lib/index.js", | | 42 | 42 | "test:update-snapshots": "cross-env UPDATE_EXPECTED=true jest -u", | 43 | 43 | "analyze:standalone": "ANALYZE=true node scripts/build-standalone", | 44 | 44 | "release:beta": "standard-version -t @alilc/lowcode-code-generator\\@ --prerelease beta && git push --follow-tags && npm publish --tag beta", | 45 | | - "release": "standard-version -t @alilc/lowcode-code-generator\\@ && git push --follow-tags && npm publish", | | 45 | + "release:patch": "standard-version -t @alilc/lowcode-code-generator\\@ -r patch && git push --follow-tags && npm publish", | | 46 | + "release:minor": "standard-version -t @alilc/lowcode-code-generator\\@ -r minor && git push --follow-tags && npm publish", | 46 | 47 | "prepublishOnly": "npm run build", | 47 | 48 | "demo": "node bin/lowcode-code-generator.js -i example-schema.json -o demo -s icejs" | 48 | 49 | }, | |
Collapse file Copy file name to clipboardExpand all lines: modules/code-generator/src/cli/solutions/example-solution.ts +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -309,7 +309,7 @@ codealike.json | 309 | 309 | "type": "fetch", | 310 | 310 | "options": { | 311 | 311 | "method": "GET", | 312 | | - "uri": "https://shs.alibaba-inc.com/mock/1458/demo/user", | | 312 | + "uri": "https://shs.xxx.com/mock/1458/demo/user", | 313 | 313 | "isSync": true | 314 | 314 | }, | 315 | 315 | "dataHandler": { | @@ -323,7 +323,7 @@ codealike.json | 323 | 323 | "type": "fetch", | 324 | 324 | "options": { | 325 | 325 | "method": "GET", | 326 | | - "uri": "https://shs.alibaba-inc.com/mock/1458/demo/orders", | | 326 | + "uri": "https://shs.xxx.com/mock/1458/demo/orders", | 327 | 327 | "isSync": true | 328 | 328 | }, | 329 | 329 | "dataHandler": { | @@ -467,7 +467,7 @@ codealike.json | 467 | 467 | ], | 468 | 468 | "constants": { | 469 | 469 | "ENV": "prod", | 470 | | - "DOMAIN": "xxx.alibaba-inc.com" | | 470 | + "DOMAIN": "xxx.xxx.com" | 471 | 471 | }, | 472 | 472 | "css": "body {font-size: 12px;} .table { width: 100px;}", | 473 | 473 | "config": { | @@ -556,7 +556,7 @@ codealike.json | 556 | 556 | "author": "", | 557 | 557 | "license": "ISC", | 558 | 558 | "publishConfig": { | 559 | | - "registry": "https://registry.npm.alibaba-inc.com" | | 559 | + "registry": "https://registry.npm.xxx.com" | 560 | 560 | }, | 561 | 561 | "dependencies": { | 562 | 562 | "@alilc/lowcode-code-generator": "^1.0.0-beta.16", | |
Collapse file Copy file name to clipboardExpand all lines: modules/code-generator/src/plugins/project/framework/icejs/plugins/packageJSON.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -75,7 +75,7 @@ const pluginFactory: BuilderComponentPluginFactory<unknown> = () => { | 75 | 75 | }, | 76 | 76 | repository: { | 77 | 77 | type: 'git', | 78 | | - url: 'http://gitlab.alibaba-inc.com/msd/leak-scan/tree/master', | | 78 | + url: 'http://gitlab.xxx.com/msd/leak-scan/tree/master', | 79 | 79 | }, | 80 | 80 | private: true, | 81 | 81 | originTemplate: '@alifd/scaffold-lite-js', | |
Collapse file Copy file name to clipboardExpand all lines: modules/code-generator/src/plugins/project/framework/rax/types/RaxFrameworkOptions.ts -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -16,7 +16,6 @@ export type RaxFrameworkOptions = { | 16 | 16 |
| 17 | 17 | /** | 18 | 18 | * 构建配置 | 19 | | - * @see https://rax.alibaba-inc.com/docs/guide/build-config | 20 | 19 | */ | 21 | 20 | buildConfig?: { | 22 | 21 | inlineStyle?: boolean | { forceEnableCSS: boolean }; | |
Collapse file Copy file name to clipboardExpand all lines: modules/code-generator/src/utils/jsExpression.ts -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,8 +6,6 @@ import { JSExpression, JSFunction, isJSExpression, isJSFunction } from '@alilc/l | 6 | 6 | import { CodeGeneratorError, IScope } from '../types'; | 7 | 7 | import { transformExpressionLocalRef, ParseError } from './expressionParser'; | 8 | 8 |
| 9 | | -// demo: https://riddle.alibaba-inc.com/riddles/3d4c977f | 10 | | - | 11 | 9 | function parseFunction(content: string): t.FunctionExpression | null { | 12 | 10 | try { | 13 | 11 | const ast = parser.parse(`(${content});`); | |
|