Skip to content

Commit 2f5a085

Browse files
committed
refactor: rename Openblocks to Lowcoder
1 parent c1a25c5 commit 2f5a085

File tree

26 files changed

+72
-72
lines changed

26 files changed

+72
-72
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Openblocks Comp Playground</title>
7+
<title>Lowcoder Comp Playground</title>
88
<style>
99
#root {
1010
height: 100vh;

client/packages/openblocks-cli/config/vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default defineConfig({
2020
define: {
2121
...define,
2222
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV || "development"),
23-
__OPENBLOCKS_DEV__: JSON.stringify({}),
23+
__LOWCODER_ORG__: JSON.stringify({}),
2424
},
2525
assetsInclude: ["**/*.md"],
2626
resolve: {

client/packages/openblocks-cli/global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
declare global {
22
interface Window {
33
printPerf: () => void;
4-
__OPENBLOCKS_DEV__?: {};
4+
__LOWCODER_ORG__?: {};
55
}
66
}
77

client/packages/openblocks-comps/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Openblocks Comp Playground</title>
7+
<title>Lowcoder Comp Playground</title>
88
<style>
99
#root {
1010
height: 100vh;

client/packages/openblocks-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@
3434
"import": "./lib/index.js",
3535
"require": "./lib/index.cjs"
3636
},
37-
"author": "Openblocks"
37+
"author": "Lowcoder"
3838
}

client/packages/openblocks-dev-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.5",
44
"license": "MIT",
55
"type": "module",
6-
"description": "Openblocks dev utils for lowcoder build process and lowcoder-cli",
6+
"description": "Lowcoder dev utils for lowcoder build process and lowcoder-cli",
77
"keywords": [
88
"lowcoder"
99
]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Openblocks Comp Playground</title>
7+
<title>Lowcoder Comp Playground</title>
88
<style>
99
#root {
1010
height: 100vh;

client/packages/openblocks-sdk/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ import "lowcoder-sdk/dist/style.css";
2929
### For react app:
3030

3131
```ts
32-
import { OpenblocksAppView } from "lowcoder-sdk";
32+
import { LowcoderAppView } from "lowcoder-sdk";
3333

34-
<OpenblocksAppView appId="{YOUR_APPLICATION_ID}" />;
34+
<LowcoderAppView appId="{YOUR_APPLICATION_ID}" />;
3535
```
3636

37-
#### OpenblocksViewProps
37+
#### LowcoderViewProps
3838

3939
| Name | Type | Description | Default value |
4040
|------------------------|-----------------------------|-----------------------------------------------------------------------------------------|---------------|
@@ -47,13 +47,13 @@ import { OpenblocksAppView } from "lowcoder-sdk";
4747

4848
```tsx
4949
import { useRef } from "ref";
50-
import { OpenblocksAppView } from "lowcoder-sdk";
50+
import { LowcoderAppView } from "lowcoder-sdk";
5151

5252
function MyExistingAppPage() {
5353
const appRef = useRef();
5454
return (
5555
<div>
56-
<OpenblocksAppView appId={YOUR_APPLICATION_ID} ref={appRef} />;
56+
<LowcoderAppView appId={YOUR_APPLICATION_ID} ref={appRef} />;
5757
<button onClick={() => appRef.current?.invokeMethod("some-method-name")}>
5858
Invoke method
5959
</button>

client/packages/openblocks-sdk/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface AppViewInstanceOptions<I = any> {
1818
baseUrl?: string;
1919
}
2020

21-
export interface OpenblocksAppViewProps<I, O> extends AppViewInstanceOptions<I> {
21+
export interface LowcoderAppViewProps<I, O> extends AppViewInstanceOptions<I> {
2222
appId: string;
2323
className?: string;
2424
onModuleOutputChange?: OutputChangeHandler<O>;
@@ -31,8 +31,8 @@ export interface AppViewInstance<I, O> {
3131
invokeMethod(methodName: string, params?: any[]): void;
3232
}
3333

34-
export declare const OpenblocksAppView: React.ForwardRefExoticComponent<
35-
OpenblocksAppViewProps<unknown, unknown> &
34+
export declare const LowcoderAppView: React.ForwardRefExoticComponent<
35+
LowcoderAppViewProps<unknown, unknown> &
3636
React.RefAttributes<AppViewInstance<unknown, unknown> | undefined>
3737
>;
3838

client/packages/openblocks-sdk/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Openblocks SDK</title>
7+
<title>Lowcoder SDK</title>
88
<style>
99
.demo-title {
1010
text-align: center;

0 commit comments

Comments
 (0)