From 9a119e0526342bc7df1dba1bf242ce8dcaec837b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Apr 2022 10:59:44 +0800 Subject: [PATCH 1/4] chore(deps): bump axios from 0.21.4 to 0.26.1 (#54) Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 0.26.1. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v0.21.4...v0.26.1) --- updated-dependencies: - dependency-name: axios dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d411db4..7d79608 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ }, "dependencies": { "@reduxjs/toolkit": "^1.6.0", - "axios": "^0.21.4", + "axios": "^0.26.1", "axios-jsonp": "^1.0.4", "classnames": "^2.3.1", "dayjs": "^1.10.7", From a6c26136be1631e1310390927d8453e5cf64380a Mon Sep 17 00:00:00 2001 From: xucz Date: Mon, 4 Apr 2022 16:53:30 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E6=96=87=E5=AD=97=E9=87=8D=E5=8F=A0,=20fixes=20#50?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Dashboard/Base/chart.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/pages/Dashboard/Base/chart.ts b/src/pages/Dashboard/Base/chart.ts index 0ad76ed..f8caa22 100644 --- a/src/pages/Dashboard/Base/chart.ts +++ b/src/pages/Dashboard/Base/chart.ts @@ -93,6 +93,7 @@ export const getPieChartOptions = (radius = 42): EChartOption => ({ type: 'pie', radius: ['48%', '60%'], avoidLabelOverlap: false, + silent: true, itemStyle: { borderWidth: 1, }, @@ -113,24 +114,6 @@ export const getPieChartOptions = (radius = 42): EChartOption => ({ }, }, }, - emphasis: { - label: { - show: true, - formatter: ['{value|{d}%}', '{name|{b}渠道占比}'].join('\n'), - rich: { - value: { - fontSize: 28, - fontWeight: 'normal', - lineHeight: 46, - }, - name: { - color: '#909399', - fontSize: 12, - lineHeight: 14, - }, - }, - }, - }, labelLine: { show: false, }, From 16ff5c7bbc552e50f65a08827047a0e2879126d9 Mon Sep 17 00:00:00 2001 From: yuyang Date: Wed, 6 Apr 2022 11:22:47 +0800 Subject: [PATCH 3/4] fix: loss css token (#58) --- package.json | 2 +- src/main.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7d79608..34fcf5f 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "react-redux": "^7.2.4", "react-router-dom": "^5.2.0", "tdesign-icons-react": "0.0.8", - "tdesign-react": "^0.27.0", + "tdesign-react": "^0.30.1", "tvision-color": "^1.3.1" }, "browserslist": { diff --git a/src/main.tsx b/src/main.tsx index ed3a5bb..8af6e68 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -5,6 +5,8 @@ import { HashRouter } from 'react-router-dom'; import store from 'modules/store'; import App from 'layouts/index'; +import 'tdesign-react/es/style/index.css'; + import './styles/index.less'; const renderApp = () => { From 9187652c57b7a16b11855b5a2719152f179e8327 Mon Sep 17 00:00:00 2001 From: xucz Date: Sat, 9 Apr 2022 20:56:12 +0800 Subject: [PATCH 4/4] feat: add test:coverage --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 34fcf5f..923f037 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "site:preview": "npm run build && cp -r dist _site", "preview": "vite preview --mode test", "test": "echo \"no test specified,work in process\"", + "test:coverage": "echo \"no test specified,work in process\"", "lint": "eslint ./src --ext ts,tsx", "lint:fix": "eslint ./src --ext ts,tsx --fix", "prepare": "husky install"