Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b04b0ff

Browse files
committed
refactor: rename /openblocks to /lowcoder
1 parent 18aaffc commit b04b0ff

File tree

15 files changed

+34
-34
lines changed

15 files changed

+34
-34
lines changed

‎client/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# production
1616
/build
17-
/packages/openblocks/build
17+
/packages/lowcoder/build
1818

1919
# misc
2020
.DS_Store
@@ -52,4 +52,4 @@ TODO
5252
/ossutil_output
5353
package-lock.json
5454

55-
op.mjs
55+
op.mjs

‎client/config/test/jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ export default {
1818
"\\.md\\?url$": path.resolve(dirname, "./mocks/markdown-url-module.js"),
1919
"^@lowcoder-ee(.*)$": path.resolve(
2020
dirname,
21-
isEE ? "../../packages/openblocks/src/ee/$1" : "../../packages/openblocks/src/$1"
21+
isEE ? "../../packages/lowcoder/src/ee/$1" : "../../packages/lowcoder/src/$1"
2222
),
23-
"lowcoder-sdk": path.resolve(dirname, "../../packages/openblocks/src/index.sdk"),
23+
"lowcoder-sdk": path.resolve(dirname, "../../packages/lowcoder/src/index.sdk"),
2424
},
2525
globals,
2626
// roots: ["<rootDir>/src"],
2727
modulePaths: [
2828
"<rootDir>/src",
29-
path.resolve(dirname, "../../packages/openblocks/src"),
29+
path.resolve(dirname, "../../packages/lowcoder/src"),
3030
path.resolve(dirname, "../../packages/lowcoder-comps/src"),
3131
path.resolve(dirname, "../../packages/lowcoder-design/src"),
3232
],

‎client/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default {
2-
projects: ["<rootDir>/packages/openblocks", "<rootDir>/packages/lowcoder-core"],
2+
projects: ["<rootDir>/packages/lowcoder", "<rootDir>/packages/lowcoder-core"],
33
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import "../../openblocks/src/global";
1+
import "../../lowcoder/src/global";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/// <reference path="../../openblocks/src/app-env.d.ts" />
1+
/// <reference path="../../lowcoder/src/app-env.d.ts" />

‎client/packages/openblocks-plugin-demo/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"baseUrl": "src",
2020
"paths": {
2121
"lowcoder-sdk": [
22-
"../../openblocks/src/index.sdk.ts",
23-
"../node_modules/lowcoder-sdk/src/openblocks/index.sdk.ts"
22+
"../../lowcoder/src/index.sdk.ts",
23+
"../node_modules/lowcoder-sdk/src/lowcoder/index.sdk.ts"
2424
],
2525
"*": [
2626
"*",
27-
"../../openblocks/src/*",
27+
"../../lowcoder/src/*",
2828
"../../lowcoder-sdk/src/*",
29-
"../node_modules/lowcoder-sdk/src/openblocks/*"
29+
"../node_modules/lowcoder-sdk/src/lowcoder/*"
3030
]
3131
}
3232
},

‎client/packages/openblocks-sdk/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-nocheck
2-
import "../../openblocks/src/index.less";
2+
import "../../lowcoder/src/index.less";
33
import "virtual:globals";
44
import * as sdk from "openblocks";
55
export * from "openblocks";

‎client/packages/openblocks-sdk/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@
2323
"paths": {
2424
"*": [
2525
"*",
26-
"../../openblocks/src/*",
26+
"../../lowcoder/src/*",
2727
"../../lowcoder-comps/src/*",
2828
"../../lowcoder-design/src/*"
2929
],
30-
"@lowcoder-ee/*": ["../../openblocks/src/*"]
30+
"@lowcoder-ee/*": ["../../lowcoder/src/*"]
3131
}
3232
},
33-
"exclude": ["../openblocks/src/ee/*"],
33+
"exclude": ["../lowcoder/src/ee/*"],
3434
"include": [
3535
"src",
3636
"index.tsx",
37-
"../openblocks/src",
37+
"../lowcoder/src",
3838
"../lowcoder-comps/src",
3939
"../lowcoder-design/src"
4040
]

‎client/packages/openblocks-sdk/vite.config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export const viteConfig: UserConfig = {
2424
resolve: {
2525
extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json"],
2626
alias: {
27-
"lowcoder-sdk": path.resolve(__dirname, "../openblocks/src/index.sdk"),
28-
"@lowcoder-ee": path.resolve(__dirname, "../openblocks/src"),
27+
"lowcoder-sdk": path.resolve(__dirname, "../lowcoder/src/index.sdk"),
28+
"@lowcoder-ee": path.resolve(__dirname, "../lowcoder/src"),
2929
},
3030
},
3131
base: ensureLastSlash(process.env.PUBLIC_URL),
@@ -83,7 +83,7 @@ export const viteConfig: UserConfig = {
8383
}),
8484
viteTsconfigPaths({
8585
projects: [
86-
"../openblocks/tsconfig.json",
86+
"../lowcoder/tsconfig.json",
8787
"../lowcoder-comps/tsconfig.json",
8888
"../lowcoder-design/tsconfig.json",
8989
],

‎client/packages/openblocks/src/comps/comps/fileComp/fileComp.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ function getFile(path: string) {
100100

101101
test("test resolveParsedValue", async () => {
102102
const files = await Promise.all([
103-
getFile("packages/openblocks/src/comps/comps/fileComp/fileComp.test.csv"),
104-
getFile("packages/openblocks/src/comps/comps/fileComp/fileComp.test.json"),
105-
getFile("packages/openblocks/src/comps/comps/fileComp/fileComp.test.png"),
106-
getFile("packages/openblocks/src/comps/comps/fileComp/fileComp.test.txt"),
107-
getFile("packages/openblocks/src/comps/comps/fileComp/fileComp.test.xlsx"),
103+
getFile("packages/lowcoder/src/comps/comps/fileComp/fileComp.test.csv"),
104+
getFile("packages/lowcoder/src/comps/comps/fileComp/fileComp.test.json"),
105+
getFile("packages/lowcoder/src/comps/comps/fileComp/fileComp.test.png"),
106+
getFile("packages/lowcoder/src/comps/comps/fileComp/fileComp.test.txt"),
107+
getFile("packages/lowcoder/src/comps/comps/fileComp/fileComp.test.xlsx"),
108108
]);
109109
const parsedValue = await resolveParsedValue(files as any);
110110
expect(parsedValue[0]).toMatchObject(expectParseValue);

‎client/packages/openblocks/src/i18n/locales/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2121,7 +2121,7 @@ export const en = {
21212121
cloneUrl: "/apps/template-import/",
21222122
},
21232123
openBlocksUrl: {
2124-
createIssue: "https://github.com/lowcoder-dev/openblocks/issues",
2124+
createIssue: "https://github.com/lowcoder-dev/lowcoder/issues",
21252125
discord: "https://discord.com/invite/z5W2YHXdtt",
21262126
},
21272127
componentDoc: {

‎client/packages/openblocks/src/i18n/locales/enObj.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const enObj: I18nObjects = {
112112
],
113113
},
114114
editorTutorials: {
115-
mockDataUrl: "https://63621db87521369cd06514c2.mockapi.io/api/openblocks/users",
115+
mockDataUrl: "https://63621db87521369cd06514c2.mockapi.io/api/lowcoder/users",
116116
data: (code) => (
117117
<>
118118
The component and query data are listed here, which can be referenced through

‎client/packages/openblocks/vite.config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const viteConfig: UserConfig = {
6060
alias: {
6161
"@lowcoder-ee": path.resolve(
6262
__dirname,
63-
isEE ? `../openblocks/src/${isEEGlobal ? "ee-global" : "ee"}` : "../openblocks/src"
63+
isEE ? `../lowcoder/src/${isEEGlobal ? "ee-global" : "ee"}` : "../lowcoder/src"
6464
),
6565
},
6666
},
@@ -124,7 +124,7 @@ export const viteConfig: UserConfig = {
124124
},
125125
}),
126126
viteTsconfigPaths({
127-
projects: ["../openblocks/tsconfig.json", "../lowcoder-design/tsconfig.json"],
127+
projects: ["../lowcoder/tsconfig.json", "../lowcoder-design/tsconfig.json"],
128128
}),
129129
svgrPlugin({
130130
svgrOptions: {

‎client/scripts/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function downloadBuiltinPlugin(name) {
3636
const packageRes = await axios.get(`https://registry.npmjs.com/${name}/latest`);
3737
const tarball = packageRes.data.dist.tarball;
3838
const tarballFileName = `${name}.tgz`;
39-
const targetDir = `./packages/openblocks/build/${name}/latest`;
39+
const targetDir = `./packages/lowcoder/build/${name}/latest`;
4040

4141
console.log(chalk.blue`tarball: ${tarball}`);
4242

@@ -52,7 +52,7 @@ async function buildBuiltinPlugin(name) {
5252
console.log();
5353
console.log(chalk.cyan`plugin ${name} building...`);
5454

55-
const targetDir = `./packages/openblocks/build/${name}/latest`;
55+
const targetDir = `./packages/lowcoder/build/${name}/latest`;
5656
shell.mkdir("-p", targetDir);
5757

5858
shell.exec(`yarn workspace ${name} build_only`, { fatal: true });
@@ -96,7 +96,7 @@ if (process.argv.includes("--internal-deploy")) {
9696
const deployDir = shell.env["DEPLOY_DIR"];
9797
console.log();
9898
console.log(chalk.cyan`deploying...`);
99-
shell.exec("docker cp ./packages/openblocks/build lowcoder-fe:/var/www/", { fatal: true });
99+
shell.exec("docker cp ./packages/lowcoder/build lowcoder-fe:/var/www/", { fatal: true });
100100
shell.exec(
101101
`docker exec lowcoder-fe /bin/sh -c "cd /var/www/ && rm -rf ${deployDir} && mv build ${deployDir}"`,
102102
{ fatal: true }

‎client/yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14457,9 +14457,9 @@ __metadata:
1445714457
languageName: unknown
1445814458
linkType: soft
1445914459

14460-
"openblocks@workspace:packages/openblocks":
14460+
"openblocks@workspace:packages/lowcoder":
1446114461
version: 0.0.0-use.local
14462-
resolution: "openblocks@workspace:packages/openblocks"
14462+
resolution: "openblocks@workspace:packages/lowcoder"
1446314463
dependencies:
1446414464
"@ant-design/icons": ^4.7.0
1446514465
"@ant-design/pro-form": ^1.52.9

0 commit comments

Comments
 (0)