From 767c0bef6737e2236201a84dfd027d852d55bc77 Mon Sep 17 00:00:00 2001 From: DiTus Date: Mon, 2 Mar 2026 08:55:16 +0100 Subject: [PATCH] added centralized timezone config with UI selector in hamburger menu --- src/api/dashboard/static/index.html | 90 ++++++++++++++++++- src/api/dashboard/static/js/app.js | 35 ++++++++ .../dashboard/static/js/config/timezone.js | 68 ++++++++++++++ src/api/dashboard/static/js/ui/chart.js | 16 ++-- .../static/js/ui/indicators-panel-new.js | 49 ++++------ .../static/js/ui/signals-calculator.js | 8 +- 6 files changed, 217 insertions(+), 49 deletions(-) create mode 100644 src/api/dashboard/static/js/config/timezone.js diff --git a/src/api/dashboard/static/index.html b/src/api/dashboard/static/index.html index 445cde9..4e7d19a 100644 --- a/src/api/dashboard/static/index.html +++ b/src/api/dashboard/static/index.html @@ -523,7 +523,77 @@ z-index: 9999; } - /* Price Scale Controls */ + /* Chart Settings Menu */ + .chart-settings-btn { + width: 20px; + height: 20px; + background: rgba(42, 46, 57, 0.9); + border: 1px solid #363c4e; + color: #d1d4dc; + font-size: 12px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + border-radius: 2px; + transition: all 0.2s; + padding: 0; + } + + .chart-settings-btn:hover { + background: #363c4e; + border-color: #4a4f5e; + } + + /* Settings Popup */ + .chart-settings-popup { + position: absolute; + right: 0; + top: 26px; + background: #1e222d; + border: 1px solid #363c4e; + border-radius: 6px; + padding: 12px; + z-index: 100; + min-width: 200px; + box-shadow: 0 4px 12px rgba(0,0,0,0.4); + display: none; + } + + .chart-settings-popup.show { + display: block; + } + + .settings-group { + margin-bottom: 12px; + } + + .settings-group:last-child { + margin-bottom: 0; + } + + .settings-label { + display: block; + font-size: 11px; + color: #787b86; + margin-bottom: 4px; + text-transform: uppercase; + } + + .settings-select { + width: 100%; + background: #131722; + border: 1px solid #363c4e; + color: #d1d4dc; + padding: 6px 8px; + border-radius: 4px; + font-size: 12px; + } + + .settings-select:focus { + outline: none; + border-color: #2962ff; + } .price-scale-controls { position: absolute; right: 10px; @@ -1355,8 +1425,26 @@
+ +
+
+ + +
+