Add settings page tabs and show env API keys with last four digits.

System settings now use the same CSS tab layout as env config; sensitive env fields display masked values from .env while keeping save-on-empty behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 21:31:14 +08:00
parent 12e44ab26d
commit 1ee9eb02c3
14 changed files with 169 additions and 85 deletions
+3 -1
View File
@@ -6647,6 +6647,7 @@ def render_main_page(page="trade", embed_mode=None):
from lib.instance.instance_settings_lib import settings_page_context
from lib.instance.instance_display_prefs_lib import display_prefs_template_context
_display_ctx = display_prefs_template_context(get_db)
template_ctx = dict(
page=page,
key=key_list,
@@ -6744,9 +6745,10 @@ def render_main_page(page="trade", embed_mode=None):
exchange_pnl_sync=exchange_pnl_sync,
**strategy_extra,
**embed_context_extras("okx"),
**display_prefs_template_context(get_db),
**_display_ctx,
**settings_page_context(
page,
display=_display_ctx["display"],
instance_base_dir=BASE_DIR,
exchange_key="okx",
exchange_display=EXCHANGE_DISPLAY_NAME,