From a009dd04a8f699e4d0e4b6ed61e1fb05645d7a97 Mon Sep 17 00:00:00 2001 From: wood chen Date: Tue, 3 Dec 2024 18:27:04 +0800 Subject: [PATCH] refactor(metrics): remove historical data section from metrics dashboard template - Eliminated the historical data section from the metrics dashboard, including time range buttons and associated chart containers. - Streamlined the metrics template for improved clarity and focus on current metrics display. - This change enhances the user experience by simplifying the dashboard layout. --- internal/handler/metrics.go | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/internal/handler/metrics.go b/internal/handler/metrics.go index fbd7482..04d97c4 100644 --- a/internal/handler/metrics.go +++ b/internal/handler/metrics.go @@ -751,42 +751,6 @@ func (h *ProxyHandler) MetricsPageHandler(w http.ResponseWriter, r *http.Request func (h *ProxyHandler) MetricsDashboardHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") - metricsTemplate = strings.Replace(metricsTemplate, - ` - - `, - ` - -
-

历史数据

-
- - - - - - - - - -
-
-
-
- -
-
- -
-
- -
-
-
-
- - `, 1) - w.Write([]byte(metricsTemplate)) }