Skip to content

Commit 8d21283

Browse files
committed
fix: 🐛 修正一些示例地址
1 parent 926136d commit 8d21283

51 files changed

Lines changed: 755 additions & 1727 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/code-generator/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,7 @@ codealike.json
111111

112112
# types
113113
/types
114+
115+
# backup files
116+
*.bak
117+

modules/code-generator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ console.log(result); // 出码结果(默认是递归结构描述的,可以传
110110

111111
## 参与共建
112112

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)

modules/code-generator/example-schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"type": "fetch",
8888
"options": {
8989
"method": "GET",
90-
"uri": "https://shs.alibaba-inc.com/mock/1458/demo/user",
90+
"uri": "https://shs.xxx.com/mock/1458/demo/user",
9191
"isSync": true
9292
},
9393
"dataHandler": {
@@ -101,7 +101,7 @@
101101
"type": "fetch",
102102
"options": {
103103
"method": "GET",
104-
"uri": "https://shs.alibaba-inc.com/mock/1458/demo/orders",
104+
"uri": "https://shs.xxx.com/mock/1458/demo/orders",
105105
"isSync": true
106106
},
107107
"dataHandler": {
@@ -245,7 +245,7 @@
245245
],
246246
"constants": {
247247
"ENV": "prod",
248-
"DOMAIN": "xxx.alibaba-inc.com"
248+
"DOMAIN": "xxx.xxx.com"
249249
},
250250
"css": "body {font-size: 12px;} .table { width: 100px;}",
251251
"config": {

modules/code-generator/example-schema.json5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
type: 'fetch',
8888
options: {
8989
method: 'GET',
90-
uri: 'https://shs.alibaba-inc.com/mock/1458/demo/user',
90+
uri: 'https://shs.xxx.com/mock/1458/demo/user',
9191
isSync: true,
9292
},
9393
dataHandler: {
@@ -101,7 +101,7 @@
101101
type: 'fetch',
102102
options: {
103103
method: 'GET',
104-
uri: 'https://shs.alibaba-inc.com/mock/1458/demo/orders',
104+
uri: 'https://shs.xxx.com/mock/1458/demo/orders',
105105
isSync: true,
106106
},
107107
dataHandler: {
@@ -245,7 +245,7 @@
245245
],
246246
constants: {
247247
ENV: 'prod',
248-
DOMAIN: 'xxx.alibaba-inc.com',
248+
DOMAIN: 'xxx.xxx.com',
249249
},
250250
css: 'body {font-size: 12px;} .table { width: 100px;}',
251251
config: {

modules/code-generator/src/cli/solutions/example-solution.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ codealike.json
309309
"type": "fetch",
310310
"options": {
311311
"method": "GET",
312-
"uri": "https://shs.alibaba-inc.com/mock/1458/demo/user",
312+
"uri": "https://shs.xxx.com/mock/1458/demo/user",
313313
"isSync": true
314314
},
315315
"dataHandler": {
@@ -323,7 +323,7 @@ codealike.json
323323
"type": "fetch",
324324
"options": {
325325
"method": "GET",
326-
"uri": "https://shs.alibaba-inc.com/mock/1458/demo/orders",
326+
"uri": "https://shs.xxx.com/mock/1458/demo/orders",
327327
"isSync": true
328328
},
329329
"dataHandler": {
@@ -467,7 +467,7 @@ codealike.json
467467
],
468468
"constants": {
469469
"ENV": "prod",
470-
"DOMAIN": "xxx.alibaba-inc.com"
470+
"DOMAIN": "xxx.xxx.com"
471471
},
472472
"css": "body {font-size: 12px;} .table { width: 100px;}",
473473
"config": {
@@ -556,7 +556,7 @@ codealike.json
556556
"author": "",
557557
"license": "ISC",
558558
"publishConfig": {
559-
"registry": "https://registry.npm.alibaba-inc.com"
559+
"registry": "https://registry.npm.xxx.com"
560560
},
561561
"dependencies": {
562562
"@alilc/lowcode-code-generator": "^1.0.0-beta.16",

modules/code-generator/src/plugins/project/framework/icejs/plugins/packageJSON.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const pluginFactory: BuilderComponentPluginFactory<unknown> = () => {
7575
},
7676
repository: {
7777
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',
7979
},
8080
private: true,
8181
originTemplate: '@alifd/scaffold-lite-js',

modules/code-generator/src/plugins/project/framework/rax/types/RaxFrameworkOptions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export type RaxFrameworkOptions = {
1616

1717
/**
1818
* 构建配置
19-
* @see https://rax.alibaba-inc.com/docs/guide/build-config
2019
*/
2120
buildConfig?: {
2221
inlineStyle?: boolean | { forceEnableCSS: boolean };

modules/code-generator/src/utils/jsExpression.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { JSExpression, JSFunction, isJSExpression, isJSFunction } from '@alilc/l
66
import { CodeGeneratorError, IScope } from '../types';
77
import { transformExpressionLocalRef, ParseError } from './expressionParser';
88

9-
// demo: https://riddle.alibaba-inc.com/riddles/3d4c977f
10-
119
function parseFunction(content: string): t.FunctionExpression | null {
1210
try {
1311
const ast = parser.parse(`(${content});`);

modules/code-generator/test-cases/rax-app/demo02/expected/demo-project/src/pages/Home/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class Home$$Page extends Component {
248248
options: function () {
249249
return {
250250
method: 'GET',
251-
uri: 'https://shs.alibaba-inc.com/mock/1458/demo/user',
251+
uri: 'https://shs.xxx.com/mock/1458/demo/user',
252252
isSync: true,
253253
};
254254
},

modules/code-generator/test-cases/rax-app/demo02/schema.json5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,21 @@
7878
id: 'urlParams',
7979
type: 'urlParams',
8080
},
81-
// 示例数据源:https://shs.alibaba-inc.com/mock/1458/demo/user
81+
// 示例数据源:https://shs.xxx.com/mock/1458/demo/user
8282
{
8383
id: 'user',
8484
type: 'fetch',
8585
options: {
8686
method: 'GET',
87-
uri: 'https://shs.alibaba-inc.com/mock/1458/demo/user',
87+
uri: 'https://shs.xxx.com/mock/1458/demo/user',
8888
isSync: true,
8989
},
9090
dataHandler: {
9191
type: 'JSExpression',
9292
value: 'function (response) {\nif (!response.success){\n throw new Error(response.message);\n }\n return response.data;\n}',
9393
},
9494
},
95-
// 示例数据源:https://shs.alibaba-inc.com/mock/1458/demo/orders
95+
// 示例数据源:https://shs.xxx.com/mock/1458/demo/orders
9696
{
9797
id: 'orders',
9898
type: 'fetch',

0 commit comments

Comments
 (0)