From b8fdda2cf023416fddbae96e7160f2e8c94bc1aa Mon Sep 17 00:00:00 2001 From: chenx221 Date: Sun, 21 Apr 2024 17:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E5=B0=8F=E8=A1=A5=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dload=E5=9B=BE=E8=A1=A8=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E8=B0=83=E6=95=B4=E5=A4=9C=E9=97=B4=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E9=97=AE=E9=A2=98=20update=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- docker-compose.yml | 9 --------- views/admin/sysinfo.php | 7 ++++++- 3 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 16aa3ea..9753670 100644 --- a/README.md +++ b/README.md @@ -103,11 +103,11 @@ Windows 11 Pro (22631.3374) / Debian 12 PhpStorm 2024.1 -PHP 8.3.4 / 8.2.7 (这个项目需要PHP>=8.2) +PHP 8.3.4 / 8.2.18 (这个项目需要PHP>=8.2) MariaDB 11.3.2 / 10.11.6 -Apache 2.4.59 / 2.4.57 +Apache 2.4.59 ~~Memurai 4.1.1/~~ Garnet 1.0.5 / Redis 7.0.15 diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 86be3bd..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: '2' -services: - php: - image: yiisoftware/yii2-php:7.4-apache - volumes: - - ~/.composer-docker/cache:/root/.composer/cache:delegated - - ./:/app:delegated - ports: - - '8000:80' diff --git a/views/admin/sysinfo.php b/views/admin/sysinfo.php index bf5ef6d..e7398ba 100644 --- a/views/admin/sysinfo.php +++ b/views/admin/sysinfo.php @@ -311,7 +311,12 @@ var option = { ] }; if(needLoadGraph !== null){ - var myChart1 = echarts.init(needLoadGraph); + var myChart1; + if ((window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches)|| document.documentElement.getAttribute('data-bs-theme')==='dark') { + myChart1 = echarts.init(needLoadGraph,'dark'); + }else{ + myChart1 = echarts.init(needLoadGraph); + } var option1 = { legend: { data: ['Load']