Skip to content

Commit

Permalink
fix: make side collapsed default
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso committed Dec 7, 2024
1 parent 6bebec6 commit 16d1c51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@
## Tips
1. Both PC and mobile devices can toggle the sidebar/menu to a collapsed state. After collapsing, the control widgets will be displayed within the main page.
2. The connection page has two layout styles: cards and customizable tables. It is recommended to use tables on PC and cards on mobile devices.
3. Quick filtering allows one-click exclusion of connections matching proxy chains, host, or destination IPs using regular expressions.
4. Using Docker
3. Using Docker
```
docker run -d -p 80:80 ghcr.io/zephyruso/zashboard:latest
```
5. GitHub Pages no longer allows disabling HTTPS. If you are using the https://zephyruso.github.io/ and the backend IP you are accessing is not local, please set your browser to allow insecure content for the https://zephyruso.github.io/.
4. GitHub Pages no longer allows disabling HTTPS. If you are using the https://zephyruso.github.io/ and the backend IP you are accessing is not local, please set your browser to allow insecure content for the https://zephyruso.github.io/.


## 提示
1. PC 和移动设备均可切换侧边栏/菜单至折叠状态。折叠后,控制小组件将显示在主页面内。
2. 连接页面有两种布局样式:卡片和可自定义表格。建议在 PC 上使用表格,在移动设备上使用卡片。
3. 快速筛选使用正则表达式进行匹配,支持一键排除符合代理链、主机或目标 IP 的连接。
4. 使用Docker
3. 使用Docker
```
docker run -d -p 80:80 ghcr.io/zephyruso/zashboard:latest
```
5. GitHub Pages现在不允许关闭https,如果你使用在线面板并且访问的后端IP不是本机,请将浏览器中在线面板的不安全的内容设置为允许。
4. GitHub Pages现在不允许关闭https,如果你使用在线面板并且访问的后端IP不是本机,请将浏览器中在线面板的不安全的内容设置为允许。

![alt text](image.png)
5 changes: 1 addition & 4 deletions src/store/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ import { useStorage } from '@vueuse/core'
// global
export const theme = useStorage<string>('config/theme', 'default')
export const language = useStorage<LANG>('config/language', LANG.EN_US)
export const isSiderbarCollapsed = useStorage(
'config/is-sidebar-collapsed',
window.screen.width > 720,
)
export const isSiderbarCollapsed = useStorage('config/is-sidebar-collapsed', true)

// proxies
export const showGlobalProxy = useStorage('config/show-global-proxy', true)
Expand Down

0 comments on commit 16d1c51

Please sign in to comment.