From fa956e3fbab68937848e7555e25afca35d949ea6 Mon Sep 17 00:00:00 2001 From: frytimo Date: Wed, 1 Apr 2026 14:44:24 -0300 Subject: [PATCH] Add outgoing and incoming Calls tab (#7828) * Fix outgoing and incoming calls section. * Use browser caching for css file with cache busting By allowing the browser to download the css file directly, the browser will automatically cache the file. The `?v=` parameter uses an md5 hash to differentiate changes in the file. --- app/operator_panel/index.php | 689 +--------------- .../resources/css/operator_panel.css | 776 ++++++++++++++++++ .../resources/javascript/operator_panel.js | 397 +++++++-- 3 files changed, 1125 insertions(+), 737 deletions(-) create mode 100644 app/operator_panel/resources/css/operator_panel.css diff --git a/app/operator_panel/index.php b/app/operator_panel/index.php index ed26085388..de22e0d10f 100644 --- a/app/operator_panel/index.php +++ b/app/operator_panel/index.php @@ -145,6 +145,13 @@ $ws_client_hash = md5_file(__DIR__ . '/resources/javascript/websocket_client.js'); $lop_js_hash = md5_file(__DIR__ . '/resources/javascript/operator_panel.js'); +// Cache-busting hash for CSS + $operator_panel_css_file = $settings->get('theme', 'operator_panel_css_file', 'operator_panel.css'); + $operator_panel_css_file = preg_replace('/[^a-z0-9_\-\.]/i', '', $operator_panel_css_file); + $operator_panel_css_file = realpath(__DIR__ . "/resources/css/$operator_panel_css_file"); + $operator_panel_css_hash = md5_file($operator_panel_css_file); + echo "\n"; + ?>