Skip to content

Commit cef3147

Browse files
authored
Merge branch 'main' into feat/conventional-commit
2 parents 3fa8a7b + a448575 commit cef3147

File tree

2,188 files changed

+7274
-6717
lines changed

Some content is hidden

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

2,188 files changed

+7274
-6717
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ updates:
55
- package-ecosystem: "maven"
66
directory: "/server/api-service"
77
schedule:
8-
interval: "weekly"
8+
interval: "monthly"
99
- package-ecosystem: "npm"
1010
directory: "/server/node-service"
1111
schedule:
12-
interval: "weekly"
12+
interval: "monthly"
1313
- package-ecosystem: "npm"
1414
directory: "/client"
1515
schedule:
16-
interval: "weekly"
16+
interval: "monthly"
1717
- package-ecosystem: "docker"
1818
directory: "/deploy/docker"
1919
schedule:
20-
interval: "weekly"
20+
interval: "monthly"

.github/workflows/client.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Client
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
paths:
6+
- 'client/**'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
test:
13+
name: Tests
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [ 20.x ]
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'yarn'
27+
cache-dependency-path: 'client/yarn.lock'
28+
- name: Install dependencies
29+
uses: borales/actions-yarn@v4
30+
with:
31+
cmd: install
32+
dir: client
33+
- name: Run tests
34+
uses: borales/actions-yarn@v4
35+
with:
36+
cmd: test
37+
dir: client

.github/workflows/codeql.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ name: "CodeQL"
1414
on:
1515
push:
1616
branches: [ "main" ]
17-
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ "main" ]
2017
schedule:
2118
- cron: '20 15 * * 5'
2219

@@ -57,7 +54,7 @@ jobs:
5754

5855
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
5956
# queries: security-extended,security-and-quality
60-
57+
6158
- if: matrix.language == 'java'
6259
name: Build Java
6360
run: |

.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- main
6-
pull_request:
6+
pull_request_target:
77
types: [opened, synchronize, reopened]
88

99
permissions:

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Lowcoder",
2+
"name": "lowcoder",
33
"description": "Lowcoder is a developer-friendly open-source low code platform to build internal apps within minutes.",
44
"repository": "https://github.com/lowcoder-org/lowcoder",
55
"logo": "https://cdn-files.openblocks.dev/logo.png",

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/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Simply run below command to start a backend server.
1010

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

1515
For more information, view our [docs](../docs/self-hosting)
@@ -20,13 +20,13 @@ For more information, view our [docs](../docs/self-hosting)
2020
2. Use the command below to build Docker image :
2121

2222
```bash
23-
docker build -f ./deploy/docker/Dockerfile -t openblocks-dev .
23+
docker build -f ./deploy/docker/Dockerfile -t lowcoder-dev .
2424
```
2525

2626
3. Start
2727

2828
```bash
29-
docker run -d --name openblocks-dev -p 3000:3000 -v "$PWD/stacks:/openblocks-stacks" openblocks-dev
29+
docker run -d --name lowcoder-dev -p 3000:3000 -v "$PWD/stacks:/lowcoder-stacks" lowcoder-dev
3030
```
3131

3232
### Start develop
@@ -43,4 +43,4 @@ In addition, before submitting a pull request, please make sure the following is
4343

4444
1. If you’ve fixed a bug or added code that should be tested and add unit test suite.
4545
2. Run `yarn test` and ensure all test suites pass.
46-
3. If you add new dependency, use yarn workspace openblocks some-package to make sure yarn.lock is also updated.
46+
3. If you add new dependency, use yarn workspace lowcoder some-package to make sure yarn.lock is also updated.

client/config/test/jest.config.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from "node:path";
2-
import { buildVars } from "openblocks-dev-utils/buildVars.js";
3-
import { currentDirName } from "openblocks-dev-utils/util.js";
2+
import { buildVars } from "lowcoder-dev-utils/buildVars.js";
3+
import { currentDirName } from "lowcoder-dev-utils/util.js";
44

55
const globals = {};
66
buildVars.forEach(({ name, defaultValue }) => {
@@ -13,22 +13,25 @@ const dirname = currentDirName(import.meta.url);
1313

1414
export default {
1515
testEnvironment: "jsdom",
16+
testEnvironmentOptions: {
17+
url: 'http://localhost'
18+
},
1619
moduleNameMapper: {
1720
"react-markdown": path.resolve(dirname, "./mocks/react-markdown.js"),
1821
"\\.md\\?url$": path.resolve(dirname, "./mocks/markdown-url-module.js"),
19-
"^@openblocks-ee(.*)$": path.resolve(
22+
"^@lowcoder-ee(.*)$": path.resolve(
2023
dirname,
21-
isEE ? "../../packages/openblocks/src/ee/$1" : "../../packages/openblocks/src/$1"
24+
isEE ? "../../packages/lowcoder/src/ee/$1" : "../../packages/lowcoder/src/$1"
2225
),
23-
"openblocks-sdk": path.resolve(dirname, "../../packages/openblocks/src/index.sdk"),
26+
"lowcoder-sdk": path.resolve(dirname, "../../packages/lowcoder/src/index.sdk"),
2427
},
2528
globals,
2629
// roots: ["<rootDir>/src"],
2730
modulePaths: [
2831
"<rootDir>/src",
29-
path.resolve(dirname, "../../packages/openblocks/src"),
30-
path.resolve(dirname, "../../packages/openblocks-comps/src"),
31-
path.resolve(dirname, "../../packages/openblocks-design/src"),
32+
path.resolve(dirname, "../../packages/lowcoder/src"),
33+
path.resolve(dirname, "../../packages/lowcoder-comps/src"),
34+
path.resolve(dirname, "../../packages/lowcoder-design/src"),
3235
],
3336
setupFiles: [path.resolve(dirname, "./jest.setup.js")],
3437
setupFilesAfterEnv: [path.resolve(dirname, "./jest.setup-after-env.js")],

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/openblocks-core"],
2+
projects: ["<rootDir>/packages/lowcoder", "<rootDir>/packages/lowcoder-core"],
33
};

client/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"node": "^14.18.0 || >=16.0.0"
1111
},
1212
"scripts": {
13-
"start": "yarn workspace openblocks start",
14-
"start:ee": "REACT_APP_EDITION=enterprise yarn workspace openblocks start",
15-
"start:ee-global": "REACT_APP_EDITION=enterprise-global yarn workspace openblocks start",
13+
"start": "yarn workspace lowcoder start",
14+
"start:ee": "REACT_APP_EDITION=enterprise yarn workspace lowcoder start",
15+
"start:ee-global": "REACT_APP_EDITION=enterprise-global yarn workspace lowcoder start",
1616
"build": "yarn node ./scripts/build.js",
17-
"test": "jest && yarn workspace openblocks-comps test",
18-
"prepare": "yarn workspace openblocks prepare",
19-
"build:core": "yarn workspace openblocks-core build",
20-
"test:core": "yarn workspace openblocks-core test"
17+
"test": "jest && yarn workspace lowcoder-comps test",
18+
"prepare": "yarn workspace lowcoder prepare",
19+
"build:core": "yarn workspace lowcoder-core build",
20+
"test:core": "yarn workspace lowcoder-core test"
2121
},
2222
"devDependencies": {
2323
"@babel/preset-env": "^7.20.2",
@@ -46,11 +46,11 @@
4646
"babel-jest": "^29.3.0",
4747
"babel-preset-react-app": "^10.0.1",
4848
"husky": "^8.0.1",
49-
"jest": "^29.3.0",
50-
"jest-environment-jsdom": "^29.0.3",
49+
"jest": "^29.5.0",
50+
"jest-environment-jsdom": "^29.5.0",
5151
"lint-staged": "^13.0.1",
52+
"lowcoder-dev-utils": "workspace:^",
5253
"mq-polyfill": "^1.1.8",
53-
"openblocks-dev-utils": "workspace:^",
5454
"prettier": "^2.7.0",
5555
"rimraf": "^3.0.2",
5656
"rollup": "^2.79.0",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# create-lowcoder-plugin
2+
3+
## Usage
4+
5+
```bash
6+
yarn create lowcoder-plugin my-lowcoder-plugin
7+
8+
# or
9+
10+
npm create lowcoder-plugin my-lowcoder-plugin
11+
```

client/packages/create-openblocks-plugin/index.js renamed to client/packages/create-lowcoder-plugin/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { spawn } from "cross-spawn";
55
import { writeFileSync, existsSync } from "node:fs";
66
import chalk from "chalk";
77
import { createCommand } from "commander";
8-
import { readJson, currentDirName } from "openblocks-dev-utils/util.js";
8+
import { readJson, currentDirName } from "lowcoder-dev-utils/util.js";
99

1010
const currentDir = currentDirName(import.meta.url);
1111
const pkg = readJson(path.resolve(currentDir, "./package.json"));
1212

1313
const isUsingYarn = (process.env.npm_config_user_agent || "").indexOf("yarn") === 0;
14-
const cliPackageName = "openblocks-cli";
15-
const sdkPackageName = "openblocks-sdk";
14+
const cliPackageName = "lowcoder-cli";
15+
const sdkPackageName = "lowcoder-sdk";
1616

1717
let verbose = false;
1818
let registry;
@@ -89,11 +89,11 @@ function executeNodeScript({ cwd, args }, data, source) {
8989
}
9090

9191
/**
92-
* create openblocks comps project
92+
* create lowcoder comps project
9393
* 1. create dir
9494
* 2. create package.json
95-
* 3. install openblocks-cli
96-
* 4. run `openblocks-cli init`
95+
* 3. install lowcoder-cli
96+
* 4. run `lowcoder-cli init`
9797
*/
9898
async function createProject(projectName, options) {
9999
const { template, force } = options;
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "create-openblocks-plugin",
3-
"version": "0.0.3",
2+
"name": "create-lowcoder-plugin",
3+
"version": "0.0.4",
44
"bin": "./index.js",
55
"type": "module",
66
"dependencies": {
77
"chalk": "4",
88
"commander": "^9.4.1",
99
"cross-spawn": "^7.0.3",
1010
"fs-extra": "^10.1.0",
11-
"openblocks-dev-utils": "workspace:^"
11+
"lowcoder-dev-utils": "workspace:^"
1212
},
1313
"license": "MIT",
1414
"keywords": [
15-
"openblocks"
15+
"lowcoder"
1616
]
1717
}

client/packages/create-openblocks-plugin/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

client/packages/openblocks-cli-template-typescript/README-template.md renamed to client/packages/lowcoder-cli-template-typescript/README-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# openblocks comp lib
1+
# lowcoder comp lib
22

33
## Start
44

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# lowcoder-cli-template-typescript
2+
3+
This is the official typescript template of lowcoder-cli.
4+
5+
This template will be used by default.

client/packages/openblocks-cli-template-typescript/index.html renamed to client/packages/lowcoder-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-template-typescript/index.tsx renamed to client/packages/lowcoder-cli-template-typescript/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import ReactDOM from "react-dom";
2-
import { CompIDE } from "openblocks-sdk";
3-
import { name, version, openblocks } from "./package.json";
2+
import { CompIDE } from "lowcoder-sdk";
3+
import { name, version, lowcoder } from "./package.json";
44
import compMap from "./src/index";
55

6-
import "openblocks-sdk/dist/style.css";
6+
import "lowcoder-sdk/dist/style.css";
77

88
function CompDevApp() {
99
return (
1010
<CompIDE
1111
compMap={compMap}
1212
packageName={name}
1313
packageVersion={version}
14-
compMeta={openblocks.comps}
14+
compMeta={lowcoder.comps}
1515
/>
1616
);
1717
}
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"name": "openblocks-cli-template-typescript",
3-
"version": "0.0.11",
2+
"name": "lowcoder-cli-template-typescript",
3+
"version": "0.0.12",
44
"type": "module",
55
"scripts": {
66
"start": "vite",
7-
"build": "openblocks-cli build"
7+
"build": "lowcoder-cli build"
88
},
9-
"openblocks": {
9+
"lowcoder": {
1010
"description": "",
1111
"comps": {
1212
"hello_world": {
1313
"name": "__i18n_helloWorldCompName__",
14-
"icon": "./icons/demo-icon.png"
14+
"icon": "./icons/demo-icon.svg"
1515
}
1616
}
1717
},
1818
"devDependencies": {
19-
"openblocks-cli": "workspace:^",
20-
"openblocks-sdk": "workspace:^",
19+
"lowcoder-cli": "workspace:^",
20+
"lowcoder-sdk": "workspace:^",
2121
"typescript": "^4.8.4",
2222
"vite": "^3.2.4"
2323
},
2424
"keywords": [
25-
"openblocks"
25+
"lowcoder"
2626
],
2727
"license": "MIT"
2828
}

client/packages/openblocks-cli-template-typescript/src/HelloWorldComp.tsx renamed to client/packages/lowcoder-cli-template-typescript/src/HelloWorldComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
NameConfig,
1010
eventHandlerControl,
1111
withMethodExposing,
12-
} from "openblocks-sdk";
12+
} from "lowcoder-sdk";
1313

1414
import styles from "./styles.module.css";
1515

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/// <reference types="lowcoder-cli/client" />
2+
3+
declare module "lowcoder-sdk";

0 commit comments

Comments
 (0)