修复TUI侧边栏和登录功能

- 修复登录逻辑判断错误,确保正确显示登录页面

- 修复登录成功后不关闭登录界面的问题

- 修复配置区域只显示标题栏的问题

- 添加TUI服务开关,对齐Web设置页面功能

- 完善后端配置处理,支持enable_web/enable_tui/web_port

- 添加登录界面和管理员区域的CSS样式

- 修复Checkbox导入问题

- 优化管理员权限显示逻辑
This commit is contained in:
JianFeeeee
2026-04-29 08:33:41 +08:00
parent 00fd75a0a6
commit bc999b18f1
4 changed files with 126 additions and 19 deletions

View File

@ -61,6 +61,45 @@ ConfigSection Input {
color: $text;
}
ConfigSection Checkbox {
margin: 1 0;
}
/* Admin sections */
#admin-web-login-section,
#admin-web-service-section,
#admin-tui-service-section {
display: block;
}
/* Login Screen */
#login_container,
#migration_container {
width: 60;
height: auto;
padding: 2;
background: $surface;
border: solid $primary;
}
#login_title,
#migration_title {
color: $primary;
text-style: bold;
margin: 0 0 1 0;
}
#migration_subtitle {
color: $text-muted;
margin: 0 0 1 0;
}
#login_message,
#migration_message {
color: $warning;
margin: 1 0 0 0;
}
/* Other Components */
OperationLog {
background: $surface-darken-1;