feat: update dashboard

This commit is contained in:
vben
2024-06-29 14:45:02 +08:00
parent c58c0797ba
commit 36a4fcfad2
25 changed files with 967 additions and 647 deletions

View File

@@ -30,7 +30,7 @@
"eslint-plugin-command": "^0.2.3"
},
"devDependencies": {
"@eslint/js": "^9.5.0",
"@eslint/js": "^9.6.0",
"@types/eslint": "^8.56.10",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
@@ -49,7 +49,7 @@
"eslint-plugin-unused-imports": "^4.0.0",
"eslint-plugin-vitest": "^0.5.4",
"eslint-plugin-vue": "^9.26.0",
"globals": "^15.6.0",
"globals": "^15.7.0",
"jsonc-eslint-parser": "^2.4.0",
"vue-eslint-parser": "^9.4.3"
}

View File

@@ -33,7 +33,7 @@
"stylelint-scss": "^6.3.2"
},
"devDependencies": {
"postcss": "^8.4.38",
"postcss": "^8.4.39",
"postcss-html": "^1.7.0",
"postcss-scss": "^4.0.9",
"prettier": "^3.3.2",

View File

@@ -52,10 +52,10 @@
"@tailwindcss/typography": "^0.5.13",
"autoprefixer": "^10.4.19",
"cssnano": "^7.0.3",
"postcss": "^8.4.38",
"postcss": "^8.4.39",
"postcss-antd-fixes": "^0.2.0",
"postcss-import": "^16.1.0",
"postcss-preset-env": "^9.5.14",
"postcss-preset-env": "^9.5.15",
"tailwindcss": "^3.4.4",
"tailwindcss-animate": "^1.0.7"
},

View File

@@ -34,7 +34,7 @@
"resolve.exports": "^2.0.2",
"vite-plugin-lib-inject-css": "^2.1.1",
"vite-plugin-pwa": "^0.20.0",
"vite-plugin-vue-devtools": "^7.3.4"
"vite-plugin-vue-devtools": "^7.3.5"
},
"devDependencies": {
"@types/html-minifier-terser": "^7.0.2",

View File

@@ -28,10 +28,11 @@ function defineLibraryConfig(options: DefineLibraryOptions = {}) {
const { dependencies = {}, peerDependencies = {} } =
await readPackageJSON(root);
const external = [
const externalPackages = [
...Object.keys(dependencies),
...Object.keys(peerDependencies),
];
const packageConfig: UserConfig = {
build: {
lib: {
@@ -40,7 +41,11 @@ function defineLibraryConfig(options: DefineLibraryOptions = {}) {
formats: ['es'],
},
rollupOptions: {
external,
external: (id) => {
return externalPackages.some(
(pkg) => id === pkg || id.startsWith(`${pkg}/`),
);
},
},
},
plugins,