This commit is contained in:
xiaoma
2022-05-11 11:43:01 +08:00
parent 5b852506a6
commit 9e3ebd62b2
6 changed files with 771 additions and 727 deletions

View File

@@ -1,5 +1,14 @@
# CHANGELOG
## 1.8.1
- ### ✨ Features
- 新增 `clean:cache` 删除缓存命令
- 新增 `clean:lib` 删除 `node_modules` 命令
- 依赖升级
### 🐛 Bug Fixes
- 修复 `开发环境` 运行控制台错误提示
## 1.8.0 (2022-04-01)
- ### ✨ Features

View File

@@ -14,7 +14,10 @@
"build": "vite build && esno ./build/script/postBuild.ts",
"build:no-cache": "yarn clean:cache && npm run build",
"report": "cross-env REPORT=true npm run build",
"preview": "vite preview",
"preview": "npm run build && vite preview",
"preview:dist": "vite preview",
"clean:cache": "rimraf node_modules/.cache/ && rimraf node_modules/.vite",
"clean:lib": "rimraf node_modules",
"build typecheck": "vuedx-typecheck . && vite build",
"deploy": "gh-pages -d dist",
"lint:eslint": "eslint \"{src,mock}/**/*.{vue,ts,tsx}\" --fix",
@@ -32,35 +35,35 @@
"axios": "^0.21.4",
"blueimp-md5": "^2.19.0",
"date-fns": "^2.28.0",
"echarts": "^5.3.1",
"echarts": "^5.3.2",
"element-resize-detector": "^1.2.4",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"mitt": "^2.1.0",
"mockjs": "^1.1.0",
"naive-ui": "^2.27.0",
"pinia": "^2.0.13",
"naive-ui": "^2.28.4",
"pinia": "^2.0.14",
"qs": "^6.10.3",
"vfonts": "^0.1.0",
"vue": "^3.2.31",
"vue-router": "^4.0.14",
"vue": "^3.2.33",
"vue-router": "^4.0.15",
"vue-types": "^4.1.1",
"vuedraggable": "^4.1.0"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@types/lodash": "^4.14.181",
"@types/lodash": "^4.14.182",
"@types/node": "^15.14.9",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"@vitejs/plugin-vue": "^1.10.2",
"@vitejs/plugin-vue-jsx": "^1.3.9",
"@vue/compiler-sfc": "^3.2.31",
"@vitejs/plugin-vue-jsx": "^1.3.10",
"@vue/compiler-sfc": "^3.2.33",
"@vue/eslint-config-typescript": "^7.0.0",
"autoprefixer": "^10.4.4",
"autoprefixer": "^10.4.7",
"commitizen": "^4.2.4",
"core-js": "^3.21.1",
"core-js": "^3.22.5",
"dotenv": "^10.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.5.0",
@@ -75,8 +78,8 @@
"less": "^4.1.2",
"less-loader": "^9.1.0",
"lint-staged": "^11.2.6",
"postcss": "^8.4.12",
"prettier": "^2.6.1",
"postcss": "^8.4.13",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2",
"stylelint": "^13.13.1",
@@ -85,9 +88,9 @@
"stylelint-order": "^4.1.0",
"stylelint-scss": "^3.21.0",
"tailwindcss": "^2.2.19",
"typescript": "^4.6.3",
"typescript": "^4.6.4",
"unplugin-vue-components": "^0.17.21",
"vite": "^2.9.1",
"vite": "^2.9.8",
"vite-plugin-compression": "^0.3.6",
"vite-plugin-html": "^2.1.2",
"vite-plugin-mock": "^2.9.6",

1402
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,37 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit"/>
<meta name="force-rendering" content="webkit"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="referrer" content="no-referrer" />
<link rel="icon" href="/favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<script src="<%= BASE_URL %>iconfont.js"></script>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<!-- IE 浏览器跳转提示升级页面 start -->
<script>
if (/*@cc_on!@*/false || (!!window.MSInputMethodContext && !!document.documentMode)) {
window.open("https://support.dmeng.net/upgrade-your-browser.html?referrer="+encodeURIComponent(window.location.href));
};
</script>
<!-- IE 浏览器跳转提示升级页面 end -->
<script>
function isIE() {
if (!!window.ActiveXObject || "ActiveXObject" in window){
return true;
}else{
return false;
}
}
</script>
</body>
</html>

View File

@@ -0,0 +1,4 @@
export interface PermissionsEnum {
value: string;
label: string;
}

View File

@@ -73,13 +73,14 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
},
build: {
target: 'es2015',
cssTarget: 'chrome80',
outDir: OUTPUT_DIR,
terserOptions: {
compress: {
keep_infinity: true,
drop_console: VITE_DROP_CONSOLE,
},
},
// terserOptions: {
// compress: {
// keep_infinity: true,
// drop_console: VITE_DROP_CONSOLE,
// },
// },
brotliSize: false,
chunkSizeWarningLimit: 2000,
},