Skip to content

Commit f75715f

Browse files
committed
refactor: rename openblocks. to lowcoder.
1 parent b04b0ff commit f75715f

File tree

9 files changed

+26
-26
lines changed

9 files changed

+26
-26
lines changed

client/packages/openblocks-cli-template-typescript/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function CompDevApp() {
1111
compMap={compMap}
1212
packageName={name}
1313
packageVersion={version}
14-
compMeta={openblocks.comps}
14+
compMeta={lowcoder.comps}
1515
/>
1616
);
1717
}

client/packages/openblocks-cli/actions/build.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ function validPackageJSON() {
2121
return "- openblocks field is required in package.json";
2222
}
2323
const openblocks = packageJSON.openblocks;
24-
if (!openblocks.comps || Object.keys(openblocks.comps).length === 0) {
24+
if (!lowcoder.comps || Object.keys(lowcoder.comps).length === 0) {
2525
return "- not found any comps to build";
2626
}
2727

2828
const compErrors = [];
29-
Object.keys(openblocks.comps).forEach((name) => {
30-
const compManifest = packageJSON.openblocks.comps[name];
29+
Object.keys(lowcoder.comps).forEach((name) => {
30+
const compManifest = packageJSON.lowcoder.comps[name];
3131
if (!compManifest.icon) {
3232
// compErrors.push(`- comp ${name} must specify an icon`);
3333
return;
@@ -64,7 +64,7 @@ export default async function buildAction(options) {
6464
return;
6565
}
6666

67-
const compNames = Object.keys(packageJSON.openblocks.comps);
67+
const compNames = Object.keys(packageJSON.lowcoder.comps);
6868
console.cyan(`Name : ${packageJSON.name}`);
6969
console.cyan(`Version : ${packageJSON.version}`);
7070
console.cyan(`Comps : ${compNames.length}\n`);
@@ -78,7 +78,7 @@ export default async function buildAction(options) {
7878
await build(viteConfig);
7979

8080
// write package.json
81-
packageJSON.openblocks.entry = "index.js";
81+
packageJSON.lowcoder.entry = "index.js";
8282
writeFileSync(paths.appOutPackageJson, JSON.stringify(packageJSON, null, 2));
8383

8484
// copy locales
@@ -88,7 +88,7 @@ export default async function buildAction(options) {
8888

8989
// copy icon files
9090
compNames.forEach((name) => {
91-
const compManifest = packageJSON.openblocks.comps[name];
91+
const compManifest = packageJSON.lowcoder.comps[name];
9292
if (compManifest.icon) {
9393
copySync(paths.resolveApp(compManifest.icon), resolve(paths.appOutPath, compManifest.icon));
9494
}

client/packages/openblocks-comps/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function CompDevApp() {
1111
compMap={compMap}
1212
packageName={name}
1313
packageVersion={version}
14-
compMeta={openblocks.comps}
14+
compMeta={lowcoder.comps}
1515
/>
1616
);
1717
}

client/packages/openblocks-design/src/icons/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export { ReactComponent as HeadApiIcon } from "./icon-query-head.svg";
202202
export { ReactComponent as TraceApiIcon } from "./icon-query-trace.svg";
203203
export { ReactComponent as PostgresIcon } from "./icon-query-postgres.svg";
204204
export { ReactComponent as JSIcon } from "./icon-query-JS.svg";
205-
export { ReactComponent as OpenBlocksQueryIcon } from "./icon-query-openblocks.svg";
205+
export { ReactComponent as OpenBlocksQueryIcon } from "./icon-query-lowcoder.svg";
206206
export { ReactComponent as RedisIcon } from "./icon-query-Redis.svg";
207207
export { ReactComponent as EsIcon } from "./icon-query-ElasticSearch.svg";
208208
export { ReactComponent as MSSQLIcon } from "./icon-query-mssql.svg";

client/packages/openblocks-plugin-demo/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function CompDevApp() {
1111
compMap={compMap}
1212
packageName={name}
1313
packageVersion={version}
14-
compMeta={openblocks.comps}
14+
compMeta={lowcoder.comps}
1515
/>
1616
);
1717
}

client/packages/openblocks/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# openblocks
22

3-
The main app of openblocks.
3+
The main app of lowcoder.

client/packages/openblocks/src/appView/AppViewInstance.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export class AppViewInstance<I = any, O = any> {
3535
private events = new Map<keyof EventHandlerMap, EventHandlerMap<O>[keyof EventHandlerMap]>();
3636
private dataPromise: Promise<{ appDsl: any; moduleDslMap: any }>;
3737
private options: AppViewInstanceOptions = {
38-
baseUrl: "https://api.openblocks.dev",
39-
webUrl: "https://cloud.openblocks.dev",
38+
baseUrl: "https://api.lowcoder.dev",
39+
webUrl: "https://cloud.lowcoder.dev",
4040
};
4141

4242
constructor(private appId: string, private node: Element, options: AppViewInstanceOptions = {}) {

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ export const en = {
12481248
},
12491249
audio: {
12501250
src: "Audio URL",
1251-
defaultSrcUrl: "https://cdn-files.openblocks.dev/canon-excerpt.mp3",
1251+
defaultSrcUrl: "https://cdn-files.lowcoder.dev/canon-excerpt.mp3",
12521252
autoPlay: "Autoplay",
12531253
loop: "Loop",
12541254
srcDesc: "Current audio URL",
@@ -1606,7 +1606,7 @@ export const en = {
16061606
phoneColumn: "Phone",
16071607
subTitle: "Title",
16081608
linkLabel: "Link",
1609-
linkUrl: "cloud.openblocks.dev",
1609+
linkUrl: "cloud.lowcoder.dev",
16101610
progressLabel: "Progress",
16111611
sliderLabel: "Slider",
16121612
radioLabel: "Radio",
@@ -1932,7 +1932,7 @@ export const en = {
19321932
jsLibraryInstallSuccess: "JavaScript library installed successfully",
19331933
jsLibraryInstallFailed: "JavaScript library installation failed",
19341934
jsLibraryInstallFailedCloud:
1935-
"Perhaps the library is not available in the sandbox, [Documentation](https://docs.openblocks.dev/build-apps/write-javascript/use-third-party-libraries#manually-import-libraries)\n{message}",
1935+
"Perhaps the library is not available in the sandbox, [Documentation](https://docs.lowcoder.dev/build-apps/write-javascript/use-third-party-libraries#manually-import-libraries)\n{message}",
19361936
jsLibraryInstallFailedHost: "{message}",
19371937
add: "Add New",
19381938
jsHelpText: "Add a global method or variable to the current application.",
@@ -2083,21 +2083,21 @@ export const en = {
20832083
showBorder: "Show border",
20842084
},
20852085
docUrls: {
2086-
docHome: "https://docs.openblocks.dev/",
2087-
components: "https://cloud.openblocks.dev/components?n={compType}",
2086+
docHome: "https://docs.lowcoder.dev/",
2087+
components: "https://cloud.lowcoder.dev/components?n={compType}",
20882088
module: "",
20892089
optionList: "",
20902090
terms: "",
20912091
privacy: "",
20922092
aboutUs: "",
20932093
changeLog: "",
20942094
introVideo: "",
2095-
devNpmPlugin: "https://docs.openblocks.dev/build-plugins/develop-your-first-plugin",
2095+
devNpmPlugin: "https://docs.lowcoder.dev/build-plugins/develop-your-first-plugin",
20962096
devNpmPluginText: "How to develop npm plugin",
2097-
useHost: "https://docs.openblocks.dev/self-hosting/access-local-database-or-api",
2097+
useHost: "https://docs.lowcoder.dev/self-hosting/access-local-database-or-api",
20982098
eventHandlerSlowdown:
2099-
"https://docs.openblocks.dev/build-apps/event-handlers#debounce-and-throttle",
2100-
thirdLib: "https://docs.openblocks.dev/build-apps/write-javascript/use-third-party-libraries",
2099+
"https://docs.lowcoder.dev/build-apps/event-handlers#debounce-and-throttle",
2100+
thirdLib: "https://docs.lowcoder.dev/build-apps/write-javascript/use-third-party-libraries",
21012101
thirdLibUrlText: "Use third-party libraries",
21022102
},
21032103
datasourceTutorial: {
@@ -2111,11 +2111,11 @@ export const en = {
21112111
},
21122112
queryTutorial: {
21132113
js: "",
2114-
transformer: "https://docs.openblocks.dev/build-apps/write-javascript/transformers",
2115-
tempState: "https://docs.openblocks.dev/build-apps/write-javascript/temporary-state",
2114+
transformer: "https://docs.lowcoder.dev/build-apps/write-javascript/transformers",
2115+
tempState: "https://docs.lowcoder.dev/build-apps/write-javascript/temporary-state",
21162116
},
21172117
customComponent: {
2118-
entryUrl: "https://custom-component.openblocks.dev/index.html",
2118+
entryUrl: "https://custom-component.lowcoder.dev/index.html",
21192119
},
21202120
template: {
21212121
cloneUrl: "/apps/template-import/",

client/packages/openblocks/src/util/tutorialUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const DatasourceTutorials: Partial<Record<DatasourceType, string>> = {
99
es: trans("datasourceTutorial.es"),
1010
smtp: trans("datasourceTutorial.smtp"),
1111
clickHouse: trans("datasourceTutorial.clickHouse"),
12-
googleSheets: "https://docs.openblocks.dev/data-sources/connect-to-databases/google-sheets",
12+
googleSheets: "https://docs.lowcoder.dev/data-sources/connect-to-databases/google-sheets",
1313
};
1414

1515
export const getDatasourceTutorial = (datasourceType: DatasourceType) => {

0 commit comments

Comments
 (0)