From 9166a8761ea9f7bc7ab53cdcd19a907302f47f8f Mon Sep 17 00:00:00 2001 From: Andrew Collington Date: Mon, 6 Apr 2020 22:52:04 +0100 Subject: [PATCH 1/4] CSS is now all namespaced. Added classes throughout and changed all CSS selectors to be namespaced under the body's classname, and then additionally use all class names where appropriate. This should mean less interference with embedding the script in other pages/sites, and hopefully resolve #47. --- index.php | 215 ++++++++++++++++++++++++------------------------- src/status.jsx | 60 +++++++------- 2 files changed, 133 insertions(+), 142 deletions(-) diff --git a/index.php b/index.php index c1fe480..04b2078 100644 --- a/index.php +++ b/index.php @@ -8,7 +8,7 @@ namespace OpcacheGui; * A simple but effective single-file GUI for the OPcache PHP extension. * * @author Andrew Collington, andy@amnuts.com - * @version 2.5.2 + * @version 2.6.0 * @link https://github.com/amnuts/opcache-gui * @license MIT, http://acollington.mit-license.org/ */ @@ -23,7 +23,7 @@ $options = [ 'allow_reset' => true, // give option to reset the whole cache 'allow_realtime' => true, // give option to enable/disable real-time updates 'refresh_time' => 5, // how often the data will refresh, in seconds - 'size_precision' => 2, // Digits after decimal point + 'size_precision' => 0, // Digits after decimal point 'size_space' => false, // have '1MB' or '1 MB' when showing sizes 'charts' => true, // show gauge chart or just big numbers 'debounce_rate' => 250, // milliseconds after key press to send keyup event when filtering @@ -54,7 +54,7 @@ header('Pragma: no-cache'); class OpCacheService { - const VERSION = '2.5.2'; + const VERSION = '2.6.0'; protected $data; protected $options; @@ -311,68 +311,66 @@ $opcache = OpCacheService::init($options); - +
-
-
-
-
-
-
+
+
+
+
+
- +
@@ -434,19 +432,19 @@ $opcache = OpCacheService::init($options); -
+
getOption('allow_filelist')): ?>

- + -
+
-
- https://github.com/amnuts/opcache-gui - version +
Available functions