From e00a374f03274352ffe1ed43e3038885543ce2a3 Mon Sep 17 00:00:00 2001 From: windows11 Date: Fri, 12 Nov 2021 15:07:11 +0800 Subject: [PATCH] update readme --- README.md | 10 +++------- web/css/dark.css | 2 +- web/css/light.css | 2 +- web/js/serverstatus.js | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4fe1bee..c5de983 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Python Support](https://img.shields.io/badge/python-2.7%2B%20-blue.svg)](https://github.com/cppla/ServerStatus) [![C++ Compiler](http://img.shields.io/badge/C++-GNU-blue.svg?style=flat&logo=cplusplus)](https://github.com/cppla/ServerStatus) [![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/cppla/ServerStatus) -[![Version](https://img.shields.io/badge/Version-Beta%201.0.5-red)](https://github.com/cppla/ServerStatus) +[![Version](https://img.shields.io/badge/Version-Beta%201.0.6-red)](https://github.com/cppla/ServerStatus) ![Latest Version](http://dl.cpp.la/Archive/serverstatus-1.0.2.png) @@ -26,13 +26,9 @@ `x86_64`: docker pull cppla/serverstatus:latest `arm64`: docker pull cppla/serverstatus:arm +mkdir /serverstatus && cd /serverstatus && wget https://raw.githubusercontent.com/cppla/ServerStatus/master/autodeploy/config.json +docker run -d --restart=always --name=serverstatus -v /serverstatus/config.json:/ServerStatus/server/config.json -v /serverstatus/json:/usr/share/nginx/html/json -p 80:80 -p 35601:35601 cppla/serverstatus:latest -wget https://raw.githubusercontent.com/cppla/ServerStatus/master/autodeploy/config.json -docker run -d --restart=always --name=serverstatus -v {$path}/config.json:/ServerStatus/server/config.json -p {$port}:80 -p {$port}:35601 cppla/serverstatus:latest - -eg: -docker run -d --restart=always --name=serverstatus -v ~/config.json:/ServerStatus/server/config.json -p 80:80 -p 35601:35601 cppla/serverstatus:latest - ``` 【客户端】: diff --git a/web/css/dark.css b/web/css/dark.css index 7a26521..48bd057 100644 --- a/web/css/dark.css +++ b/web/css/dark.css @@ -20,7 +20,7 @@ tr.odd.expandRow > :hover { background: #000 !important; } #month_traffic { min-width: 85px; max-width: 95px;} #network { min-width: 115px; } #cpu, #ram, #hdd { min-width: 45px; max-width: 90px; } -#ping { max-width: 90px; } +#ping { max-width: 100px; } @media only screen and (max-width: 1080px) { #type, tr td:nth-child(4) { display:none; visibility:hidden; } diff --git a/web/css/light.css b/web/css/light.css index 6c11d0d..7b1ae4a 100644 --- a/web/css/light.css +++ b/web/css/light.css @@ -17,7 +17,7 @@ tr.odd.expandRow > :hover { background: #FFF !important; } #month_traffic { min-width: 85px; max-width: 95px;} #network { min-width: 115px; } #cpu, #ram, #hdd { min-width: 45px; max-width: 90px; } -#ping { max-width: 90px; } +#ping { max-width: 100px; } @media only screen and (max-width: 1080px) { #type, tr td:nth-child(4) { display:none; visibility:hidden; } diff --git a/web/js/serverstatus.js b/web/js/serverstatus.js index 98dacbc..5ac17a3 100644 --- a/web/js/serverstatus.js +++ b/web/js/serverstatus.js @@ -252,7 +252,7 @@ function uptime() { TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-warning"; else TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-success"; - TableRow.children["ping"].children[0].children[0].innerHTML = PING_10010 + "%💻" + PING_189 + "%💻" + PING_10086 + "%"; + TableRow.children["ping"].children[0].children[0].innerHTML = PING_10010 + "%🌍" + PING_189 + "%🌍" + PING_10086 + "%"; // Custom if (result.servers[i].custom) {