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 ccaa3212
authored
Aug 04, 2024
by
Vben
Committed by
GitHub
Aug 04, 2024
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: enablePreferences does not meet expectations (#4031)
1 parent
0619faf6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
2 deletions
build-local-docker-image.sh
deploy/nginx.conf
internal/lint-configs/commitlint-config/index.mjs
packages/effects/layouts/src/widgets/user-dropdown/user-dropdown.vue
build-local-docker-image.sh
View file @
ccaa321
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
SCRIPT_DIR
=
$(
cd
--
"
$(
dirname --
"
${
BASH_SOURCE
[0]
}
"
)
"
&> /dev/null
&&
pwd
)
SCRIPT_DIR
=
$(
cd
--
"
$(
dirname --
"
${
BASH_SOURCE
[0]
}
"
)
"
&> /dev/null
&&
pwd
)
LOG_FILE
=
${
SCRIPT_DIR
}
/build-local-docker-image.log
LOG_FILE
=
${
SCRIPT_DIR
}
/build-local-docker-image.log
ERROR
=
""
ERROR
=
""
IMAGE_NAME
=
"vben-admin-
pro-
local"
IMAGE_NAME
=
"vben-admin-local"
function
stop_and_remove_container
()
{
function
stop_and_remove_container
()
{
# Stop and remove the existing container
# Stop and remove the existing container
...
...
deploy/nginx.conf
0 → 100644
View file @
ccaa321
#user nobody;
worker_processes
1
;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events
{
worker_connections
1024
;
}
http
{
include
mime.types
;
default_type
application/octet-stream
;
types
{
application/javascript
js
mjs
;
text/css
css
;
text/html
html
;
}
sendfile
on
;
# tcp_nopush on;
#keepalive_timeout 0;
# keepalive_timeout 65;
# gzip on;
# gzip_buffers 32 16k;
# gzip_comp_level 6;
# gzip_min_length 1k;
# gzip_static on;
# gzip_types text/plain
# text/css
# application/javascript
# application/json
# application/x-javascript
# text/xml
# application/xml
# application/xml+rss
# text/javascript; #设置压缩的文件类型
# gzip_vary on;
server
{
listen
8080
;
server_name
localhost
;
location
/
{
root
/usr/share/nginx/html
;
try_files
$uri
$uri
/
/index.html
;
index
index.html
;
# Enable CORS
add_header
'Access-Control-Allow-Origin'
'*'
;
add_header
'Access-Control-Allow-Methods'
'GET,
POST,
OPTIONS'
;
add_header
'Access-Control-Allow-Headers'
'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'
;
if
(
$request_method
=
'OPTIONS')
{
add_header
'Access-Control-Max-Age'
1728000
;
add_header
'Content-Type'
'text/plain
charset=UTF-8'
;
add_header
'Content-Length'
0
;
return
204
;
}
}
error_page
500
502
503
504
/50x.html
;
location
=
/50x.html
{
root
/usr/share/nginx/html
;
}
}
}
# stream { # stream 模块配置和 http 模块在相同级别
# upstream redis {
# server 127.0.0.1:6379 max_fails=3 fail_timeout=30s;
# }
# server {
# listen 16379;
# proxy_connect_timeout 1s;
# proxy_timeout 3s;
# proxy_pass redis;
# }
# }
internal/lint-configs/commitlint-config/index.mjs
View file @
ccaa321
...
@@ -121,7 +121,7 @@ const userConfig = {
...
@@ -121,7 +121,7 @@ const userConfig = {
'header-max-length': [2, 'always', 108],
'header-max-length': [2, 'always', 108],
'scope-enum': [0],
'scope-enum': [0],
'subject-case': [
2, 'always', 'lower-case'
],
'subject-case': [
0
],
'subject-empty': [2, 'never'],
'subject-empty': [2, 'never'],
'type-empty': [2, 'never'],
'type-empty': [2, 'never'],
/**
/**
...
...
packages/effects/layouts/src/widgets/user-dropdown/user-dropdown.vue
View file @
ccaa321
...
@@ -206,6 +206,7 @@ if (enableShortcutKey.value) {
...
@@ -206,6 +206,7 @@ if (enableShortcutKey.value) {
</DropdownMenuItem>
</DropdownMenuItem>
<DropdownMenuSeparator
/>
<DropdownMenuSeparator
/>
<DropdownMenuItem
<DropdownMenuItem
v-if=
"preferences.app.enablePreferences"
class=
"mx-1 flex cursor-pointer items-center rounded-sm py-1 leading-8"
class=
"mx-1 flex cursor-pointer items-center rounded-sm py-1 leading-8"
@
click=
"handleOpenPreference"
@
click=
"handleOpenPreference"
>
>
...
...
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