Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 484a0903
authored
Jun 30, 2024
by
vben
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: update deps
1 parent
8252d116
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
14 deletions
apps/backend-mock/package.json
apps/web-antd/package.json
internal/node-utils/package.json
internal/tsconfig/package.json
internal/vite-config/package.json
package.json
packages/@core/forward/preferences/src/preferences.ts
pnpm-lock.yaml
apps/backend-mock/package.json
View file @
484a090
...
@@ -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"
,
...
...
apps/web-antd/package.json
View file @
484a090
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"author"
:
{
"author"
:
{
"name"
:
"vben"
,
"name"
:
"vben"
,
"email"
:
"ann
cwb@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:*"
,
...
...
internal/node-utils/package.json
View file @
484a090
...
@@ -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"
...
...
internal/tsconfig/package.json
View file @
484a090
...
@@ -20,6 +20,6 @@
...
@@ -20,6 +20,6 @@
],
],
"dependencies"
:
{
"dependencies"
:
{
"@vben/types"
:
"workspace:*"
,
"@vben/types"
:
"workspace:*"
,
"vite"
:
"^5.3.
2
"
"vite"
:
"^5.3.
3
"
}
}
}
}
internal/vite-config/package.json
View file @
484a090
...
@@ -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"
...
...
package.json
View file @
484a090
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
"license"
:
"MIT"
,
"license"
:
"MIT"
,
"author"
:
{
"author"
:
{
"name"
:
"vben"
,
"name"
:
"vben"
,
"email"
:
"ann
cwb@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"
},
},
...
...
packages/@core/forward/preferences/src/preferences.ts
View file @
484a090
...
@@ -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
?
do
cument
.
documentElement
.
classList
.
add
(
COLOR_WEAK
)
?
do
m
.
classList
.
add
(
COLOR_WEAK
)
:
do
cument
.
documentElement
.
classList
.
remove
(
COLOR_WEAK
);
:
do
m
.
classList
.
remove
(
COLOR_WEAK
);
colorGrayMode
colorGrayMode
?
do
cument
.
documentElement
.
classList
.
add
(
COLOR_GRAY
)
?
do
m
.
classList
.
add
(
COLOR_GRAY
)
:
do
cument
.
documentElement
.
classList
.
remove
(
COLOR_GRAY
);
:
do
m
.
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
);
...
...
pnpm-lock.yaml
View file @
484a090
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment