From ddafdc4c88eb16412b2e1fab3d35496a8879f8c4 Mon Sep 17 00:00:00 2001 From: yuyang Date: Wed, 27 Jul 2022 15:35:57 +0800 Subject: [PATCH] chore: rename component file name (#243) * chore: rename component file name * chore: upgrade dep * chore: fix setup no unuse vars * chore: typo * fix: extra margin for a tag --- .eslintrc | 1 + .vscode/settings.json | 3 ++- README.md | 2 +- package.json | 7 ++++--- src/layouts/components/Header.vue | 4 ++-- src/layouts/components/SideNav.tsx | 15 ++++++++------- src/layouts/setting.vue | 4 ++-- .../{middle-chart.vue => MiddleChart.vue} | 0 .../{overview.vue => OutputOverview.vue} | 0 .../components/{rank-list.vue => RankList.vue} | 0 .../components/{top-panel.vue => TopPanel.vue} | 0 src/pages/dashboard/base/index.vue | 10 +++++----- src/style/reset.less | 7 +++++-- 13 files changed, 30 insertions(+), 23 deletions(-) rename src/pages/dashboard/base/components/{middle-chart.vue => MiddleChart.vue} (100%) rename src/pages/dashboard/base/components/{overview.vue => OutputOverview.vue} (100%) rename src/pages/dashboard/base/components/{rank-list.vue => RankList.vue} (100%) rename src/pages/dashboard/base/components/{top-panel.vue => TopPanel.vue} (100%) diff --git a/.eslintrc b/.eslintrc index 0fe7251..9f3e6cf 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,6 +2,7 @@ "extends": [ "plugin:@typescript-eslint/recommended", "eslint-config-airbnb-base", + "@vue/typescript/recommended", "plugin:vue/vue3-recommended", "plugin:vue-scoped-css/base", "plugin:prettier/recommended" diff --git a/.vscode/settings.json b/.vscode/settings.json index a6a2fd5..6d8a55b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -20,5 +20,6 @@ "[javascript]": { "editor.formatOnSave": true, "editor.defaultFormatter": "dbaeumer.vscode-eslint" - } + }, + "cSpell.words": ["tdesign", "tvision", "echarts", "nprogress", "commitlint", "stylelint", "pinia", "qrcode"] } diff --git a/README.md b/README.md index d2a34e9..1f15c15 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ ### 项目简介 -TDesign Vue Next Starter 是一个基于 TDesign。使用 `Vue3`、`Vite2`、`Pinia`、`TypeScript` 开发,可进行个性化主题配置,旨在提供项目开箱即用的、配置式的中后台项目。 +TDesign Vue Next Starter 是一个基于 TDesign,使用 `Vue3`、`Vite2`、`Pinia`、`TypeScript` 开发,可进行个性化主题配置,旨在提供项目开箱即用的、配置式的中后台项目。

在线预览 diff --git a/package.json b/package.json index f53ba07..87605f2 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "vue-router": "~4.0.11" }, "devDependencies": { - "@commitlint/cli": "^16.2.1", - "@commitlint/config-conventional": "^16.2.1", + "@commitlint/cli": "^17.0.3", + "@commitlint/config-conventional": "^17.0.3", "@types/echarts": "^4.9.10", "@types/lodash": "^4.14.182", "@types/qs": "^6.9.7", @@ -45,6 +45,7 @@ "@vitejs/plugin-vue": "^2.3.1", "@vitejs/plugin-vue-jsx": "^1.1.7", "@vue/compiler-sfc": "^3.0.5", + "@vue/eslint-config-typescript": "^11.0.0", "commitizen": "^4.2.4", "cz-conventional-changelog": "^3.3.0", "eslint": "^7.32.0", @@ -52,7 +53,7 @@ "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.24.2", "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-vue": "^7.16.0", + "eslint-plugin-vue": "^9.2.0", "eslint-plugin-vue-scoped-css": "^2.2.0", "husky": "^7.0.4", "less": "^4.1.1", diff --git a/src/layouts/components/Header.vue b/src/layouts/components/Header.vue index 1e3986b..dd2afd9 100644 --- a/src/layouts/components/Header.vue +++ b/src/layouts/components/Header.vue @@ -3,7 +3,7 @@ - + @@ -18,10 +18,10 @@ export default {