Commit 484a0903 by vben

chore: update deps

1 parent 8252d116
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"rxjs": "^7.8.1" "rxjs": "^7.8.1"
}, },
"devDependencies": { "devDependencies": {
"@nestjs/cli": "^10.4.0", "@nestjs/cli": "^10.4.1",
"@nestjs/schematics": "^10.1.2", "@nestjs/schematics": "^10.1.2",
"@types/express": "^4.17.21", "@types/express": "^4.17.21",
"@types/node": "^20.14.9", "@types/node": "^20.14.9",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"license": "MIT", "license": "MIT",
"author": { "author": {
"name": "vben", "name": "vben",
"email": "anncwb@126.com", "email": "ann.vben@gmail.com",
"url": "https://github.com/anncwb" "url": "https://github.com/anncwb"
}, },
"type": "module", "type": "module",
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
"@vben-core/preferences": "workspace:*", "@vben-core/preferences": "workspace:*",
"@vben-core/request": "workspace:*", "@vben-core/request": "workspace:*",
"@vben-core/stores": "workspace:*", "@vben-core/stores": "workspace:*",
"@vben/access": "workspace:*",
"@vben/chart-ui": "workspace:*", "@vben/chart-ui": "workspace:*",
"@vben/constants": "workspace:*", "@vben/constants": "workspace:*",
"@vben/icons": "workspace:*", "@vben/icons": "workspace:*",
"@vben/layouts": "workspace:*", "@vben/layouts": "workspace:*",
"@vben/locales": "workspace:*", "@vben/locales": "workspace:*",
"@vben/access": "workspace:*",
"@vben/styles": "workspace:*", "@vben/styles": "workspace:*",
"@vben/types": "workspace:*", "@vben/types": "workspace:*",
"@vben/universal-ui": "workspace:*", "@vben/universal-ui": "workspace:*",
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"dayjs": "^1.11.11", "dayjs": "^1.11.11",
"find-up": "^7.0.0", "find-up": "^7.0.0",
"nanoid": "^5.0.7", "nanoid": "^5.0.7",
"pkg-types": "^1.1.2", "pkg-types": "^1.1.3",
"prettier": "^3.3.2", "prettier": "^3.3.2",
"rimraf": "^5.0.7", "rimraf": "^5.0.7",
"zx": "^7.2.3" "zx": "^7.2.3"
......
...@@ -20,6 +20,6 @@ ...@@ -20,6 +20,6 @@
], ],
"dependencies": { "dependencies": {
"@vben/types": "workspace:*", "@vben/types": "workspace:*",
"vite": "^5.3.2" "vite": "^5.3.3"
} }
} }
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
"rollup-plugin-visualizer": "^5.12.0", "rollup-plugin-visualizer": "^5.12.0",
"sass": "^1.77.6", "sass": "^1.77.6",
"unplugin-turbo-console": "^1.8.9", "unplugin-turbo-console": "^1.8.9",
"vite": "^5.3.2", "vite": "^5.3.3",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-dts": "^3.9.1", "vite-plugin-dts": "^3.9.1",
"vite-plugin-html": "^3.2.2" "vite-plugin-html": "^3.2.2"
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"license": "MIT", "license": "MIT",
"author": { "author": {
"name": "vben", "name": "vben",
"email": "anncwb@126.com", "email": "ann.vben@gmail.com",
"url": "https://github.com/anncwb" "url": "https://github.com/anncwb"
}, },
"type": "module", "type": "module",
...@@ -68,11 +68,11 @@ ...@@ -68,11 +68,11 @@
"is-ci": "^3.0.1", "is-ci": "^3.0.1",
"jsdom": "^24.1.0", "jsdom": "^24.1.0",
"rimraf": "^5.0.7", "rimraf": "^5.0.7",
"taze": "^0.14.1", "taze": "^0.14.2",
"turbo": "^2.0.6", "turbo": "^2.0.6",
"typescript": "^5.5.3", "typescript": "^5.5.3",
"unbuild": "^2.0.0", "unbuild": "^2.0.0",
"vite": "^5.3.2", "vite": "^5.3.3",
"vitest": "^2.0.0-beta.12", "vitest": "^2.0.0-beta.12",
"vue-tsc": "^2.0.24" "vue-tsc": "^2.0.24"
}, },
......
...@@ -161,14 +161,15 @@ class PreferenceManager { ...@@ -161,14 +161,15 @@ class PreferenceManager {
private updateColorMode(preference: Preferences) { private updateColorMode(preference: Preferences) {
if (preference.app) { if (preference.app) {
const { colorGrayMode, colorWeakMode } = preference.app; const { colorGrayMode, colorWeakMode } = preference.app;
const dom = document.documentElement;
const COLOR_WEAK = 'invert-mode'; const COLOR_WEAK = 'invert-mode';
const COLOR_GRAY = 'grayscale-mode'; const COLOR_GRAY = 'grayscale-mode';
colorWeakMode colorWeakMode
? document.documentElement.classList.add(COLOR_WEAK) ? dom.classList.add(COLOR_WEAK)
: document.documentElement.classList.remove(COLOR_WEAK); : dom.classList.remove(COLOR_WEAK);
colorGrayMode colorGrayMode
? document.documentElement.classList.add(COLOR_GRAY) ? dom.classList.add(COLOR_GRAY)
: document.documentElement.classList.remove(COLOR_GRAY); : dom.classList.remove(COLOR_GRAY);
} }
} }
...@@ -346,7 +347,7 @@ class PreferenceManager { ...@@ -346,7 +347,7 @@ class PreferenceManager {
* 更新偏好设置 * 更新偏好设置
* @param updates - 要更新的偏好设置 * @param updates - 要更新的偏好设置
*/ */
public async updatePreferences(updates: DeepPartial<Preferences>) { public updatePreferences(updates: DeepPartial<Preferences>) {
const mergedState = merge({}, updates, markRaw(this.state)); const mergedState = merge({}, updates, markRaw(this.state));
Object.assign(this.state, mergedState); Object.assign(this.state, mergedState);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!