From ab772081ec57f209bffa0b6661597fbf4aa5a9da Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sat, 3 Dec 2022 15:27:44 +0800 Subject: [PATCH] release: update `3.9.2` --- build/info.ts | 5 +++- package.json | 8 +++--- pnpm-lock.yaml | 24 ++++++++--------- public/serverConfig.json | 2 +- src/layout/components/panel/index.vue | 37 +++++++++++++++----------- src/layout/components/sidebar/leftCollapse.vue | 24 ++++++++++++++--- src/style/dark.scss | 13 +++++++++ src/style/element-plus.scss | 27 +++++++++++++++++++ 8 files changed, 103 insertions(+), 37 deletions(-) diff --git a/build/info.ts b/build/info.ts index 42d9bf6..be47977 100644 --- a/build/info.ts +++ b/build/info.ts @@ -9,10 +9,12 @@ export function viteBuildInfo(): Plugin { let config: { command: string }; let startTime: Dayjs; let endTime: Dayjs; + let outDir: string; return { name: "vite:buildInfo", - configResolved(resolvedConfig: { command: string }) { + configResolved(resolvedConfig) { config = resolvedConfig; + outDir = resolvedConfig.build?.outDir ?? "dist"; }, buildStart() { console.log( @@ -32,6 +34,7 @@ export function viteBuildInfo(): Plugin { if (config.command === "build") { endTime = dayjs(new Date()); getPackageSize({ + folder: outDir, callback: (size: string) => { console.log( bold( diff --git a/package.json b/package.json index 955eb69..3dac2e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pure-admin-thin", - "version": "3.9.1", + "version": "3.9.2", "private": true, "scripts": { "dev": "NODE_OPTIONS=--max-old-space-size=4096 vite", @@ -31,8 +31,8 @@ "dependencies": { "@ctrl/tinycolor": "^3.4.1", "@pureadmin/descriptions": "^1.1.0", - "@pureadmin/table": "^1.8.1", - "@pureadmin/utils": "^1.7.1", + "@pureadmin/table": "^1.8.2", + "@pureadmin/utils": "^1.7.2", "@vueuse/core": "^9.6.0", "@vueuse/motion": "2.0.0-beta.12", "animate.css": "^4.1.1", @@ -49,7 +49,7 @@ "mockjs": "^1.1.0", "nprogress": "^0.2.0", "path": "^0.12.7", - "pinia": "^2.0.26", + "pinia": "^2.0.27", "qs": "^6.11.0", "responsive-storage": "^2.1.0", "vue": "^3.2.45", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 49a9dcf..cda1fbd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,9 +9,9 @@ specifiers: '@iconify/vue': ^4.0.0 '@intlify/vite-plugin-vue-i18n': ^6.0.3 '@pureadmin/descriptions': ^1.1.0 - '@pureadmin/table': ^1.8.1 + '@pureadmin/table': ^1.8.2 '@pureadmin/theme': ^2.4.0 - '@pureadmin/utils': ^1.7.1 + '@pureadmin/utils': ^1.7.2 '@types/element-resize-detector': 1.1.3 '@types/js-cookie': ^3.0.1 '@types/lodash': ^4.14.180 @@ -53,7 +53,7 @@ specifiers: nprogress: ^0.2.0 path: ^0.12.7 picocolors: ^1.0.0 - pinia: ^2.0.26 + pinia: ^2.0.27 postcss: ^8.4.18 postcss-html: ^1.5.0 postcss-import: ^15.0.0 @@ -95,8 +95,8 @@ specifiers: dependencies: '@ctrl/tinycolor': 3.4.1 '@pureadmin/descriptions': 1.1.1_element-plus@2.2.26 - '@pureadmin/table': 1.8.1_element-plus@2.2.26 - '@pureadmin/utils': 1.7.1_aotapuqn7htzdjltsyimavekky + '@pureadmin/table': 1.8.2_element-plus@2.2.26 + '@pureadmin/utils': 1.7.2_aotapuqn7htzdjltsyimavekky '@vueuse/core': 9.6.0_vue@3.2.45 '@vueuse/motion': 2.0.0-beta.12_vue@3.2.45 animate.css: 4.1.1 @@ -113,7 +113,7 @@ dependencies: mockjs: 1.1.0 nprogress: 0.2.0 path: 0.12.7 - pinia: 2.0.26_mgnvym7yiazkylwwogi5r767ue + pinia: 2.0.27_mgnvym7yiazkylwwogi5r767ue qs: 6.11.0 responsive-storage: 2.1.0 vue: 3.2.45 @@ -920,8 +920,8 @@ packages: vue: 3.2.45 dev: false - /@pureadmin/table/1.8.1_element-plus@2.2.26: - resolution: {integrity: sha512-oZ5GYmLTDgQ64U6+yKFjvpZG2Seuudk3hOWnUogMvKxhIvaRQsGBHbvyg47asMmXxUyeilq+nRumyuiuV7WJTg==} + /@pureadmin/table/1.8.2_element-plus@2.2.26: + resolution: {integrity: sha512-FGh1aOfgQtX16pCnP+bxg49TetcZDhdykIue0m5d8NIj6zkvJP53JU+DkUpvqvKmUiMsvIwme6e17BLZMmMiOw==} peerDependencies: element-plus: ^2.0.0 dependencies: @@ -937,8 +937,8 @@ packages: string-hash: 1.1.3 dev: true - /@pureadmin/utils/1.7.1_aotapuqn7htzdjltsyimavekky: - resolution: {integrity: sha512-LqYdMR1xvRDtPp66osOY6usmta6LNGMuON14iONv4ZUC/esQ3RflHlT5glGjOfGUSGCk8O94F5LVS/PVC9Q3Ng==} + /@pureadmin/utils/1.7.2_aotapuqn7htzdjltsyimavekky: + resolution: {integrity: sha512-L8tmogs9HCX6nuga1g79DcZr3KXNoWnIFcyP2z4zpmUmdBBAmMpXXz3Z+emI6HELmZu8DFx+v1MfKxccgsODRQ==} peerDependencies: dayjs: '*' echarts: '*' @@ -4117,8 +4117,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /pinia/2.0.26_mgnvym7yiazkylwwogi5r767ue: - resolution: {integrity: sha512-tSxZNUcMGxQOvKZRjPKXxd2+/2NZhRF/CoYVE/+K6uE/Z3v1Oi4fcQFpxu5nMB1dCchjXUZ+lz0tBxV5ntwmQQ==} + /pinia/2.0.27_mgnvym7yiazkylwwogi5r767ue: + resolution: {integrity: sha512-nOnXP0OFeL8R4WjAHsterU+11vptda643gH02xKNtSCDPiRzVfRYodOLihLDoa0gL1KKuQKV+KOzEgdt3YvqEw==} peerDependencies: '@vue/composition-api': ^1.4.0 typescript: '>=4.4.4' diff --git a/public/serverConfig.json b/public/serverConfig.json index 80df74b..8954b56 100644 --- a/public/serverConfig.json +++ b/public/serverConfig.json @@ -1,5 +1,5 @@ { - "Version": "3.9.1", + "Version": "3.9.2", "Title": "PureAdmin", "FixedHeader": true, "HiddenSideBar": false, diff --git a/src/layout/components/panel/index.vue b/src/layout/components/panel/index.vue index 4a8b566..85241af 100644 --- a/src/layout/components/panel/index.vue +++ b/src/layout/components/panel/index.vue @@ -1,11 +1,27 @@