mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 17:54:15 +08:00
feat: v0.2 UI 重构 + 自选分组侧边栏 + 扩展数据时间窗口 + 个股对话框优化
- 侧边栏美化:品牌改名/菜单 active 指示条/收起展开/底部精简 - 数据源+AI 状态卡:名称替换固定文字/档位 tag 条件显示 - 设置页重构:account 合入数据源 tab/数据源置顶/收起展开菜单 - 自选分组侧边栏:二级子菜单/分组跳转同步/清空分组 - 个股对话框:tab 移顶栏/分时关闭/放大全屏/操作按钮归位 - 扩展数据:定时拉取时间窗口(time_window_start/end) - 版本号: 0.1.88 → 0.2.1
This commit is contained in:
@@ -405,6 +405,7 @@ def get_preferences() -> dict:
|
||||
"realtime_quotes_enabled": preferences.get_realtime_quotes_enabled(),
|
||||
"realtime_allowed": _realtime_allowed(),
|
||||
"indices_nav_pinned": preferences.get_indices_nav_pinned(),
|
||||
"watchlist_groups_in_nav": preferences.get_watchlist_groups_in_nav(),
|
||||
"minute_sync_enabled": preferences.get_minute_sync_enabled(),
|
||||
"minute_sync_days": preferences.get_minute_sync_days(),
|
||||
"minute_sync_segment_days": preferences.get_minute_sync_segment_days(),
|
||||
@@ -776,6 +777,18 @@ def update_indices_nav_pinned(req: IndicesNavPinnedPrefs) -> dict:
|
||||
return {"indices_nav_pinned": req.indices_nav_pinned}
|
||||
|
||||
|
||||
class WatchlistGroupsInNavPrefs(BaseModel):
|
||||
watchlist_groups_in_nav: bool
|
||||
|
||||
|
||||
@router.put("/preferences/watchlist-groups-in-nav")
|
||||
def update_watchlist_groups_in_nav(req: WatchlistGroupsInNavPrefs) -> dict:
|
||||
"""保存自选分组是否显示在侧边栏开关。"""
|
||||
from app.services import preferences
|
||||
preferences.save({"watchlist_groups_in_nav": req.watchlist_groups_in_nav})
|
||||
return {"watchlist_groups_in_nav": req.watchlist_groups_in_nav}
|
||||
|
||||
|
||||
class RealtimeMonitorConfigIn(BaseModel):
|
||||
sse_refresh_pages: dict[str, bool] | None = None
|
||||
strategy_monitor_enabled: bool | None = None
|
||||
|
||||
Reference in New Issue
Block a user