mirror of
https://github.com/Flowseal/tg-ws-proxy.git
synced 2026-10-21 11:08:44 +00:00
UI refactoring
This commit is contained in:
1 parent
caa949bee0
commit
ad7f3cae9e
12 files changed
+1116
-1107
No files matched your search
@@ -7,6 +7,7 @@ from __future__ import annotations
|
||||
import sys
|
||||
import os
|
||||
from typing import Any, Dict
|
||||
from copy import deepcopy
|
||||
|
||||
from ui.i18n import detect_system_language
|
||||
|
||||
@@ -26,11 +27,12 @@ _TRAY_DEFAULTS_COMMON: Dict[str, Any] = {
|
||||
"cfproxy_worker_domain": [],
|
||||
"force_test_dc": False,
|
||||
"no_secure": False,
|
||||
"appearance": "auto",
|
||||
}
|
||||
|
||||
|
||||
def default_tray_config() -> Dict[str, Any]:
|
||||
cfg = dict(_TRAY_DEFAULTS_COMMON)
|
||||
cfg = deepcopy(_TRAY_DEFAULTS_COMMON)
|
||||
cfg["secret"] = os.urandom(16).hex()
|
||||
cfg["language"] = detect_system_language().value
|
||||
|
||||
|
||||
Reference in new issue
Block a user