Skip to content
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

feat: profiling数据源插件 #29

Merged
merged 23 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
3ce3f3e
feat: profiling数据源插件
liangling0628 Aug 26, 2024
2f82c2e
feat: profiling数据源插件
liangling0628 Oct 11, 2024
0dc904b
feat: 监控trace datasource插件开发
liangling0628 Nov 15, 2024
eff262d
feat: 监控trace datasource插件开发
liangling0628 Nov 20, 2024
e5de6ee
Merge branch 'master' of https://github.com/TencentBlueKing/bk-monito…
liangling0628 Nov 20, 2024
3b81402
Merge branch 'master' of https://github.com/TencentBlueKing/bk-monito…
liangling0628 Nov 20, 2024
1989f0d
minor: merge master
liangling0628 Nov 20, 2024
908bfe2
feat: 监控profiling datasource插件开发
liangling0628 Nov 21, 2024
19573f8
feat: 监控profiling datasource插件开发
liangling0628 Nov 22, 2024
c5e4d78
feat: 监控profiling datasource插件开发
liangling0628 Nov 22, 2024
6647530
feat: 监控profiling datasource插件开发
liangling0628 Nov 22, 2024
b5685b3
feat: 监控alert datasource插件样式优化
liangling0628 Nov 22, 2024
605f7aa
feat: 监控alert datasource插件样式优化
liangling0628 Nov 22, 2024
8d9bde0
feat: 监控event datasource插件样式优化
liangling0628 Nov 22, 2024
1be9243
feat: 监控timeseries datasource插件样式优化
liangling0628 Nov 22, 2024
f2a727b
feat: 监控timeseries datasource插件样式优化
liangling0628 Nov 22, 2024
25b36e1
feat: 优化webpack live reload
liangling0628 Nov 25, 2024
0e5d0e1
feat: 优化eslint 配置
liangling0628 Nov 25, 2024
7b34111
feat: add biomejs feature
liangling0628 Nov 25, 2024
70d9379
feat: remove build
liangling0628 Nov 25, 2024
4fea3a4
feat: update dependecies
liangling0628 Nov 25, 2024
404cecd
feat: utils commons
liangling0628 Nov 25, 2024
07f1b3e
feat: biome check
liangling0628 Nov 25, 2024
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
3 changes: 3 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@blueking/bkui-lint/stylelint.js'],
};
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG NODE_IMAGE=node:20.11.1-slim
ARG PNPM_VERSION=8
ARG PNPM_VERSION=9
ARG NODE_PLATFORM=linux/amd64

FROM --platform=${NODE_PLATFORM} ${NODE_IMAGE} as nodejs
Expand All @@ -10,15 +10,15 @@ RUN npm i -g pnpm@${PNPM_VERSION}

COPY . .

RUN pnpm i \
RUN pnpm i \
&& pnpm run build \
&& rm -rf build \
&& mkdir -p build/alert \
&& mkdir -p build/event \
&& mkdir -p build/timeseries \
&& mv src/alert/dist/* build/alert \
&& mv src/event/dist/* build/event \
&& mv src/timeseries/dist/* build/timeseries
&& mv src/timeseries/dist/* build/timeseries

RUN tar -czvf frontend.tar.gz build

Expand Down
74 changes: 74 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": false
},
"vcs": {
"enabled": true,
"clientKind": "git"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": {
"level": "off"
},
"noAssignInExpressions": "warn",
"noArrayIndexKey": "warn"
},
"style": {
"useSelfClosingElements": {
"fix": "safe",
"level": "warn"
},
"noUnusedTemplateLiteral": {
"fix": "safe",
"level": "error"
},
"noNonNullAssertion": "warn"
},
"complexity": {
"noBannedTypes": {
"fix": "safe",
"level": "error"
},
"noForEach": {
"level": "warn"
},
"useArrowFunction": {
"fix": "none",
"level": "warn"
}
},
"a11y": {
"useKeyWithMouseEvents": "off",
"useKeyWithClickEvents": "off",
"noSvgWithoutTitle": "off",
"useValidAnchor": "off"
}
}
},
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120,
"attributePosition": "multiline"
},
"javascript": {
"jsxRuntime": "reactClassic",
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "always",
"arrowParentheses": "asNeeded",
"bracketSpacing": true,
"bracketSameLine": false,
"attributePosition": "multiline"
}
}
}
26 changes: 26 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
const ERROR = 2;
module.exports = [
...require('@blueking/bkui-lint/eslint'),
{
Expand All @@ -46,4 +47,29 @@ module.exports = [
'src/**/.config',
],
},
{
files: ['src/trace/**/*.ts', 'src/trace/**/*.tsx', 'src/trace/**/*.js'],
ignores: [],
rules: {
'codecc/license': 'off',
},
},
{
files: ['src/**/*.ts', 'src/**/*.tsx'],
rules: {
'@typescript-eslint/consistent-type-imports': [
ERROR,
{
prefer: 'type-imports',
disallowTypeAnnotations: true,
fixStyle: 'inline-type-imports',
},
],
},
},
{
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
},
},
];
49 changes: 26 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"dev:alert": "pnpm --filter alert run dev",
"dev:event": "pnpm --filter event run dev",
"dev:timeseries": "pnpm --filter timeseries run dev",
"dev:profiling": "pnpm --filter profiling run dev",
"dev:trace": "pnpm --filter trace run dev",
"dev": "run-p dev:*",
"build": "run-p build:*"
},
Expand All @@ -20,36 +22,37 @@
"license": "ISC",
"packageManager": "[email protected]",
"devDependencies": {
"@babel/core": "^7.24.5",
"@blueking/bkui-lint": "^0.0.3",
"@grafana/tsconfig": "1.3.0-rc1",
"@swc/core": "^1.4.17",
"@swc/helpers": "^0.5.11",
"@swc/jest": "^0.2.36",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.0.0",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.17.0",
"@types/node": "^20.12.7",
"@types/react": "17.0.80",
"@types/react-dom": "17.0.25",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@babel/core": "^7.26.0",
"@biomejs/biome": "^1.9.4",
"@blueking/bkui-lint": "^0.0.5",
"@grafana/tsconfig": "2.0.0",
"@swc/core": "^1.9.3",
"@swc/helpers": "^0.5.15",
"@swc/jest": "^0.2.37",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.0.1",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.17.13",
"@types/node": "^22.9.3",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@typescript-eslint/eslint-plugin": "^8.15.0",
"@typescript-eslint/parser": "^8.15.0",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^7.1.1",
"eslint-plugin-react": "^7.34.1",
"glob": "^10.3.12",
"css-loader": "^7.1.2",
"eslint-plugin-react": "^7.37.2",
"glob": "^11.0.0",
"identity-obj-proxy": "3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"less": "^4.2.0",
"less-loader": "^12.2.0",
"lint-staged": "^15.2.2",
"mini-css-extract-plugin": "^2.9.0",
"lint-staged": "^15.2.10",
"mini-css-extract-plugin": "^2.9.2",
"npm-run-all": "^4.1.5",
"postcss-less": "^6.0.0",
"postcss-scss": "^4.0.9",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"replace-in-file-webpack-plugin": "^1.0.6",
"sass": "1.75.0",
"sass-loader": "14.2.1",
Expand All @@ -58,8 +61,8 @@
"swc-loader": "^0.2.6",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "5.4.5",
"webpack": "^5.91.0",
"typescript": "5.7.2",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4",
"webpack-livereload-plugin": "^3.0.2"
}
Expand Down
Loading
Loading