Skip to content

Commit

Permalink
Merge branch 'dev-4.2.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Apr 7, 2024
2 parents a169f16 + ff703cc commit e13b27e
Show file tree
Hide file tree
Showing 441 changed files with 39,396 additions and 33,460 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/bundleSize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- uses: preactjs/compressed-size-action@v2
with:
build-script: "build:odc"
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run precommit
1 change: 1 addition & 0 deletions .secignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
http://editorconfig.org*
http://www.apache.org*
https://dev.mysql.com*
https://open.feishu.cn*

--------------------------------------------------------
# Should use GLOB wildcard to config and analysis the ignored folder
Expand Down
5 changes: 5 additions & 0 deletions build/electron-build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ const config = {
from: `${distDir}/renderer`,
to: 'renderer',
},
{
from: `build/setting.json`,
to: 'setting.json',
},

],
};

Expand Down
4 changes: 4 additions & 0 deletions build/setting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"client.jvm.params": "-Xms512m\n-Xmx2048m",
"client.start.params": ""
}
3 changes: 3 additions & 0 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ console.log('git last commit: ', version);
*/
const disableBrowserUpdate = process.env.DISABLE_BROWSER_UPDATE;

let enableSourceMap = process.env.ENABLE_SOURCEMAP === "true";

console.log(disableBrowserUpdate);

let publicPath = '/';
Expand All @@ -36,6 +38,7 @@ const config = {
content: version,
},
],
devtool: enableSourceMap ? "cheap-module-source-map" : (process.env.NODE_ENV === 'development' ? 'cheap-module-source-map' : false),

antd: {
import: true,
Expand Down
5 changes: 5 additions & 0 deletions config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ module.exports = [
component: '@/page/Login',
spmBPos: 'b41895',
},
{
path: '/testLDAP',
name: 'testLDAP',
component: '@/page/Login/components/LDAPModal',
},
{
path: '/',
component: '../layout/DefaultContainer',
Expand Down
39 changes: 19 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "odc",
"version": "4.2.3",
"version": "4.2.4",
"private": true,
"description": "企业级数据开发平台",
"homepage": "https://www.oceanbase.com/",
Expand All @@ -13,20 +13,21 @@
},
"scripts": {
"start": "max dev",
"oic:extract": "oic --configPath ./scripts/must.js --extract all",
"oic:clear": "oic --configPath ./scripts/must.js --clear",
"dev:client": "concurrently \"UMI_ENV=client npm run dev\" \"npm run build-main-dev\"",
"start-electron": "electron --inspect=5858 -w ./dist/main/main.js",
"analyze": "ANALYZE=1 cross-env NODE_OPTIONS=--max_old_space_size=6096 max build",
"dev": "node scripts/plugin/initPlugins.js && cross-env NODE_OPTIONS=--max_old_space_size=6096 max dev",
"analyze": "ANALYZE=1 cross-env NODE_OPTIONS=--max_old_space_size=8192 max build",
"dev": "node scripts/plugin/initPlugins.js && cross-env NODE_OPTIONS=--max_old_space_size=8192 max dev",
"test": "max test",
"cov": "max test --coverage",
"build:odc": "node scripts/plugin/initPlugins.js && npm run updateDoc && cross-env NODE_OPTIONS=--max_old_space_size=6096 max build",
"build:client": "node scripts/plugin/initPlugins.js && cross-env NODE_OPTIONS=--max_old_space_size=6096 UMI_ENV=client npm run build:odc && npm run build-main-prod",
"buildNoDoc": "node scripts/plugin/initPlugins.js && cross-env NODE_OPTIONS=--max_old_space_size=6096 max build",
"build:odc": "node scripts/plugin/initPlugins.js && npm run updateDoc && cross-env NODE_OPTIONS=--max_old_space_size=8192 max build",
"build:client": "node scripts/plugin/initPlugins.js && cross-env NODE_OPTIONS=--max_old_space_size=8192 UMI_ENV=client npm run build:odc && npm run build-main-prod",
"buildNoDoc": "node scripts/plugin/initPlugins.js && cross-env NODE_OPTIONS=--max_old_space_size=8192 max build",
"prettier": "prettier --write 'src/**/*.{js,jsx,tsx,ts,less,md,json}'",
"type-check": "tsc --noEmit",
"must": "node --max-old-space-size=8192 ./scripts/must.js",
"build-main-prod": "cross-env NODE_OPTIONS=--max_old_space_size=6096 NODE_ENV=production webpack --config ./build/webpack.main.prod.config.js",
"build-main-dev": "cross-env NODE_OPTIONS=--max_old_space_size=6096 NODE_ENV=development webpack -w --config ./build/webpack.main.config.js",
"build-main-prod": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production webpack --config ./build/webpack.main.prod.config.js",
"build-main-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack -w --config ./build/webpack.main.config.js",
"prepack": "node ./scripts/clientDependencies/index.js",
"precommit": "npm run type-check && lint-staged",
"pack-client:all": "node ./scripts/client/build.js all",
Expand All @@ -35,7 +36,8 @@
"pack-client:linux_aarch64": "node ./scripts/client/build.js linux_aarch64",
"pack-client:windows": "node ./scripts/client/build.js win",
"updateDoc": "node ./scripts/pulldoc.js",
"postinstall": "node scripts/plugin/initPlugins.js && max setup"
"postinstall": "node scripts/plugin/initPlugins.js && max setup",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
Expand Down Expand Up @@ -69,10 +71,10 @@
},
"devDependencies": {
"@ant-design/icons": "^4.0.0",
"@oceanbase-odc/monaco-plugin-ob": "^0.1.2",
"@oceanbase-odc/ob-intl-cli": "^1.1.5",
"@oceanbase-odc/ob-parser-js": "^3.0.1",
"@oceanbase-odc/ob-react-data-grid": "^3.0.9",
"@oceanbase-odc/monaco-plugin-ob": "^0.2.2",
"@oceanbase-odc/ob-intl-cli": "^2.0.6",
"@oceanbase-odc/ob-parser-js": "^3.0.2",
"@oceanbase-odc/ob-react-data-grid": "^3.0.10",
"@sentry/react": "^7.88.0",
"@svgr/webpack": "^6.5.1",
"@testing-library/react": "^11.2.2",
Expand Down Expand Up @@ -114,6 +116,7 @@
"electron-builder-notarize": "^1.5.1",
"eventbusjs": "^0.2.0",
"highlight.js": "^11.6.0",
"husky": "^8.0.3",
"immutability-helper": "^3.0.1",
"jest-canvas-mock": "^2.3.0",
"js-base64": "^3.7.2",
Expand Down Expand Up @@ -164,8 +167,7 @@
"webpack-merge": "^4.2.1",
"webpack-node-externals": "^2.5.0",
"xterm": "^4.9.0",
"xterm-addon-fit": "^0.4.0",
"yorkie": "^2.0.0"
"xterm-addon-fit": "^0.4.0"
},
"appName": "OceanBase Developer Center",
"build": {
Expand All @@ -174,8 +176,5 @@
"customDir": "v22.3.27"
}
},
"copyright": "© 2021 ANT GROUP",
"gitHooks": {
"pre-commit": "npm run precommit"
}
"copyright": "© 2021 ANT GROUP"
}
Loading

0 comments on commit e13b27e

Please sign in to comment.