Skip to content

WIP: Rebrand to Lowcoder #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
8f02a47
rebrand API server
ludomikula May 10, 2023
ea88857
refactor: rename openlocks-core to lowcoder-core
falnyr May 11, 2023
6d89a13
refactor: rename openblocks-dev-utils to lowcoder-dev-utils
falnyr May 11, 2023
e0ecb33
refactor: rename openblocks-design to lowcoder-design
falnyr May 11, 2023
0c119ad
refactor: rename openblocks-comps to lowcoder-comps
falnyr May 11, 2023
cf0a870
refactor: rename openblocks-sdk to lowcoder-sdk
falnyr May 11, 2023
dec2350
refactor: rename openblocks-ee to lowcoder-sdk
falnyr May 11, 2023
18aaffc
refactor: rename openblocks- lowcoder-
falnyr May 11, 2023
b04b0ff
refactor: rename /openblocks to /lowcoder
falnyr May 11, 2023
f75715f
refactor: rename openblocks. to lowcoder.
falnyr May 11, 2023
c1a25c5
refactor: rename openblocks to lowcoder
falnyr May 11, 2023
2f5a085
refactor: rename Openblocks to Lowcoder
falnyr May 11, 2023
7130095
refactor: rename OpenBlocks to Lowcoder
falnyr May 11, 2023
c6f85fc
refactor: rename openBlocks to lowcoder
falnyr May 11, 2023
3a58d5f
refactor: renamed folders
falnyr May 11, 2023
a1c5c16
refactor: renamed folders and files
falnyr May 13, 2023
54dd179
Merge branch 'main' into feat/rebrand
falnyr May 13, 2023
30adab5
refactor: replaced openblocks references with lowcoder
falnyr May 13, 2023
ee73078
refactor: renamed folders for sonarcloud
falnyr May 13, 2023
dc9b82c
chore: bumped versions and pushed to npm registry
falnyr May 13, 2023
784c8e0
refactor: updated dependencies, switched to lowcoder folder
falnyr May 16, 2023
9a62020
Downgraded reactor-core version.
ludomikula May 16, 2023
980b84f
Merge branch 'main' into feat/rebrand
ludomikula May 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: rename openblocks to lowcoder
  • Loading branch information
falnyr committed May 11, 2023
commit c1a25c58c2e56b017abc44bc9ec1009bbe0a9f74
4 changes: 2 additions & 2 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Simply run below command to start a backend server.

```bash
docker run -d --name openblocks -p 3000:3000 -v "$PWD/stacks:/lowcoder-stacks" lowcoderorg/lowcoder-ce
docker run -d --name lowcoder -p 3000:3000 -v "$PWD/stacks:/lowcoder-stacks" lowcoderorg/lowcoder-ce
```

For more information, view our [docs](../docs/self-hosting)
Expand Down Expand Up @@ -43,4 +43,4 @@ In addition, before submitting a pull request, please make sure the following is

1. If you’ve fixed a bug or added code that should be tested and add unit test suite.
2. Run `yarn test` and ensure all test suites pass.
3. If you add new dependency, use yarn workspace openblocks some-package to make sure yarn.lock is also updated.
3. If you add new dependency, use yarn workspace lowcoder some-package to make sure yarn.lock is also updated.
8 changes: 4 additions & 4 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"node": "^14.18.0 || >=16.0.0"
},
"scripts": {
"start": "yarn workspace openblocks start",
"start:ee": "REACT_APP_EDITION=enterprise yarn workspace openblocks start",
"start:ee-global": "REACT_APP_EDITION=enterprise-global yarn workspace openblocks start",
"start": "yarn workspace lowcoder start",
"start:ee": "REACT_APP_EDITION=enterprise yarn workspace lowcoder start",
"start:ee-global": "REACT_APP_EDITION=enterprise-global yarn workspace lowcoder start",
"build": "yarn node ./scripts/build.js",
"test": "jest && yarn workspace lowcoder-comps test",
"prepare": "yarn workspace openblocks prepare",
"prepare": "yarn workspace lowcoder prepare",
"build:core": "yarn workspace lowcoder-core build",
"test:core": "yarn workspace lowcoder-core test"
},
Expand Down
2 changes: 1 addition & 1 deletion client/packages/create-openblocks-plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function executeNodeScript({ cwd, args }, data, source) {
}

/**
* create openblocks comps project
* create lowcoder comps project
* 1. create dir
* 2. create package.json
* 3. install lowcoder-cli
Expand Down
2 changes: 1 addition & 1 deletion client/packages/create-openblocks-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
},
"license": "MIT",
"keywords": [
"openblocks"
"lowcoder"
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# openblocks comp lib
# lowcoder comp lib

## Start

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from "react-dom";
import { CompIDE } from "lowcoder-sdk";
import { name, version, openblocks } from "./package.json";
import { name, version, lowcoder } from "./package.json";
import compMap from "./src/index";

import "lowcoder-sdk/dist/style.css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "vite",
"build": "lowcoder-cli build"
},
"openblocks": {
"lowcoder": {
"description": "",
"comps": {
"hello_world": {
Expand All @@ -22,7 +22,7 @@
"vite": "^3.2.4"
},
"keywords": [
"openblocks"
"lowcoder"
],
"license": "MIT"
}
2 changes: 1 addition & 1 deletion client/packages/openblocks-cli/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# lowcoder-cli

CLI tool used to start build and publish openblocks component library.
CLI tool used to start build and publish lowcoder component library.
6 changes: 3 additions & 3 deletions client/packages/openblocks-cli/actions/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ function validPackageJSON() {
if (!packageJSON.version) {
return "- package version is required";
}
if (!packageJSON.openblocks) {
return "- openblocks field is required in package.json";
if (!packageJSON.lowcoder) {
return "- lowcoder field is required in package.json";
}
const openblocks = packageJSON.openblocks;
const lowcoder = packageJSON.lowcoder;
if (!lowcoder.comps || Object.keys(lowcoder.comps).length === 0) {
return "- not found any comps to build";
}
Expand Down
2 changes: 1 addition & 1 deletion client/packages/openblocks-cli/actions/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default async function initAction(options) {
const templatePackageJson = fs.readJsonSync(templatePackageJsonFile);
const appPackageJson = fs.readJsonSync(paths.appPackageJson);

appPackageJson.openblocks = templatePackageJson.openblocks || {};
appPackageJson.lowcoder = templatePackageJson.lowcoder || {};
appPackageJson.scripts = {
start: "vite",
build: "lowcoder-cli build",
Expand Down
4 changes: 2 additions & 2 deletions client/packages/openblocks-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lowcoder-cli",
"description": "CLI tool used to start build publish openblocks components",
"description": "CLI tool used to start build publish lowcoder components",
"version": "0.0.24",
"license": "MIT",
"bin": "./index.js",
Expand Down Expand Up @@ -46,6 +46,6 @@
"lowcoder-sdk": "*"
},
"keywords": [
"openblocks"
"lowcoder"
]
}
2 changes: 1 addition & 1 deletion client/packages/openblocks-comps/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# openblocks comp lib
# lowcoder comp lib

## Start

Expand Down
2 changes: 1 addition & 1 deletion client/packages/openblocks-comps/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from "react-dom";
import { CompIDE } from "lowcoder-sdk";
import { name, version, openblocks } from "./package.json";
import { name, version, lowcoder } from "./package.json";
import compMap from "./src/index";

import "lowcoder-sdk/dist/style.css";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/openblocks-comps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"react-dom": "17",
"typescript": "4.8.4"
},
"openblocks": {
"lowcoder": {
"description": "",
"comps": {
"chart": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ScatterChartConfig } from "./chartConfigs/scatterChartConfig";
import { SeriesListComp } from "./seriesComp";
import { EChartsOption } from "echarts";
import { i18nObjs, trans } from "i18n/comps";
import { JSONValue } from "openblocks";
import { JSONValue } from "lowcoder";

export const ChartTypeOptions = [
{
Expand Down
4 changes: 2 additions & 2 deletions client/packages/openblocks-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"lodash": "^4.17.21",
"lru-cache": "^7.14.1"
},
"description": "lowcoder-core is a JavaScript library for building new components in openblocks",
"description": "lowcoder-core is a JavaScript library for building new components in lowcoder",
"keywords": [
"openblocks",
"lowcoder",
"components"
],
"types": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions client/packages/openblocks-dev-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.5",
"license": "MIT",
"type": "module",
"description": "Openblocks dev utils for openblocks build process and lowcoder-cli",
"description": "Openblocks dev utils for lowcoder build process and lowcoder-cli",
"keywords": [
"openblocks"
"lowcoder"
]
}
2 changes: 1 addition & 1 deletion client/packages/openblocks-plugin-demo/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# openblocks comp lib
# lowcoder comp lib

## Start

Expand Down
2 changes: 1 addition & 1 deletion client/packages/openblocks-plugin-demo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ReactDOM from "react-dom";
import { CompIDE } from "lowcoder-sdk";
import { name, version, openblocks } from "./package.json";
import { name, version, lowcoder } from "./package.json";
import compMap from "./src/index";

import "lowcoder-sdk/dist/style.css";
Expand Down
2 changes: 1 addition & 1 deletion client/packages/openblocks-plugin-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"publishConfig": {
"registry": "https://registry.npmjs.com"
},
"openblocks": {
"lowcoder": {
"description": "",
"comps": {
"hello_world": {
Expand Down
2 changes: 1 addition & 1 deletion client/packages/openblocks-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"react-dom": ">=17"
},
"keywords": [
"openblocks"
"lowcoder"
],
"license": "MIT"
}
6 changes: 3 additions & 3 deletions client/packages/openblocks-sdk/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-nocheck
import "../../lowcoder/src/index.less";
import "virtual:globals";
import * as sdk from "openblocks";
export * from "openblocks";
import * as sdk from "lowcoder";
export * from "lowcoder";

window.$openblocks_sdk = sdk;
window.$lowcoder_sdk = sdk;
2 changes: 1 addition & 1 deletion client/packages/openblocks/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# openblocks
# lowcoder

The main app of lowcoder.
2 changes: 1 addition & 1 deletion client/packages/openblocks/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "openblocks",
"name": "lowcoder",
"version": "0.1.0",
"private": true,
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions client/packages/openblocks/src/components/ResCreatePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ const ResButton = (props: {
dataSourceId: QUICK_GRAPHQL_ID,
},
},
openblocksApi: {
lowcoderApi: {
icon: OPENBLOCKS_API_INFO.icon,
label: OPENBLOCKS_API_INFO.name,
type: BottomResTypeEnum.Query,
extra: {
compType: "openblocksApi",
compType: "lowcoderApi",
dataSourceId: OPENBLOCKS_API_ID,
},
},
Expand Down Expand Up @@ -320,7 +320,7 @@ export function ResCreatePanel(props: ResCreateModalProps) {
<ResButton size={buttonSize} identifier={"restApi"} onSelect={onSelect} />
<ResButton size={buttonSize} identifier={"graphql"} onSelect={onSelect} />
{placement === "editor" && (
<ResButton size={buttonSize} identifier={"openblocksApi"} onSelect={onSelect} />
<ResButton size={buttonSize} identifier={"lowcoderApi"} onSelect={onSelect} />
)}

{datasource.map((i) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ export const QueryGeneralPropertyView = (props: {
);
if (datasourceId === oldOpenblocksId) {
datasourceId = OPENBLOCKS_API_ID;
datasourceType = "openblocksApi";
datasourceType = "lowcoderApi";
dispatch(
comp.changeValueAction({
...comp.toJsonValue(),
datasourceId: OPENBLOCKS_API_ID,
compType: "openblocksApi",
compType: "lowcoderApi",
} as any)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const QuickGraphqlValue: ResourceOptionValue = {

const OpenblocksAPIValue: ResourceOptionValue = {
id: OPENBLOCKS_API_ID,
type: "openblocksApi",
type: "lowcoderApi",
};

interface ResourceDropdownProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class GridCompOperator {
return;
}

if (!latestVersion.openblocks?.comps?.[compInfo.compName]) {
if (!latestVersion.lowcoder?.comps?.[compInfo.compName]) {
message.error(trans("comp.compNotFoundInLatestVersion"));
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const QUICK_REST_API_ID = "#QUICK_REST_API";
export const QUICK_GRAPHQL_ID = "#QUICK_GRAPHQL";
export const OPENBLOCKS_API_ID = "#OPENBLOCKS_API";
export const OPENBLOCKS_API_INFO = {
icon: getBottomResIcon("openblocksApi"),
name: trans("query.openblocksAPI"),
icon: getBottomResIcon("lowcoderApi"),
name: trans("query.lowcoderAPI"),
};
export const OLD_OPENBLOCKS_DATASOURCE: Partial<DatasourceType>[] = [];
4 changes: 2 additions & 2 deletions client/packages/openblocks/src/constants/queryConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type DatasourceType =
| "mongodb"
| "restApi"
| "postgres"
| "openblocksApi"
| "lowcoderApi"
| "redis"
| "es"
| "mssql"
Expand All @@ -39,7 +39,7 @@ export const QueryMap = {
restApi: HttpQuery,
mongodb: MongoQuery,
postgres: SQLQuery,
openblocksApi: OpenBlocksQuery,
lowcoderApi: OpenBlocksQuery,
redis: RedisQuery,
es: EsQuery,
mssql: SQLQuery,
Expand Down
2 changes: 1 addition & 1 deletion client/packages/openblocks/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export const en = {
transformer: "Transformer",
quickRestAPI: "REST Query",
quickGraphql: "GraphQL Query",
openblocksAPI: "Openblocks API",
lowcoderAPI: "Openblocks API",
executeJSCode: "Run JavaScript Code",
importFromQueryLibrary: "Import from Query Library",
importFromFile: "Import from File",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function PluginItem(props: PluginViewProps) {
);
const currentVersion = useSelector((state: AppState) => state.npmPlugin.packageVersion[name]);
const versions = useMemo(() => packageMeta?.versions || {}, [packageMeta?.versions]);
const comps = versions[currentVersion]?.openblocks?.comps || {};
const comps = versions[currentVersion]?.lowcoder?.comps || {};
const compNames = Object.keys(comps);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion client/packages/openblocks/src/types/remoteComp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface OpenblocksMeta {
export interface NpmVersionMeta {
name: string;
version: string;
openblocks: OpenblocksMeta;
lowcoder: OpenblocksMeta;
}

export interface NpmPackageMeta {
Expand Down
2 changes: 1 addition & 1 deletion client/packages/openblocks/src/util/bottomResUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const getBottomResIcon = (
return <GoogleSheetsIcon />;
case "graphql":
return <GraphqlIcon />;
case "openblocksApi":
case "lowcoderApi":
return <OpenBlocksQueryIcon />;
case "snowflake":
return <SnowflakeIcon />;
Expand Down
4 changes: 2 additions & 2 deletions client/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ buildVars.forEach(({ name, defaultValue }) => {
shell.env[name] = shell.env[name] ?? defaultValue;
});

shell.exec(`BUILD_TARGET=browserCheck yarn workspace openblocks build`, { fatal: true });
shell.exec(`yarn workspace openblocks build`, { fatal: true });
shell.exec(`BUILD_TARGET=browserCheck yarn workspace lowcoder build`, { fatal: true });
shell.exec(`yarn workspace lowcoder build`, { fatal: true });

if (process.env.REACT_APP_BUNDLE_BUILTIN_PLUGIN) {
for (const pluginName of builtinPlugins) {
Expand Down
4 changes: 2 additions & 2 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14457,9 +14457,9 @@ __metadata:
languageName: unknown
linkType: soft

"openblocks@workspace:packages/lowcoder":
"lowcoder@workspace:packages/lowcoder":
version: 0.0.0-use.local
resolution: "openblocks@workspace:packages/lowcoder"
resolution: "lowcoder@workspace:packages/lowcoder"
dependencies:
"@ant-design/icons": ^4.7.0
"@ant-design/pro-form": ^1.52.9
Expand Down