From 30da787f915d8cd80f2cafa921505a1896ee3583 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Tue, 3 Apr 2018 17:47:56 +0200 Subject: [PATCH] ncp-web: added nc-config and helper buttons --- bin/ncp-diag | 2 +- changelog.md | 8 +++-- ncp-web/img/info-white.svg | 59 +++++++++++++++++++++++++++++++++ ncp-web/img/nc-button.svg | 60 ++++++++++++++++++++++++++++++++++ ncp-web/img/settings-white.svg | 1 + ncp-web/index.php | 53 +++++++++++++++++++++++------- ncp-web/ncp-launcher.php | 3 +- ncp-web/ncp.css | 14 +++++++- ncp-web/ncp.js | 30 +++++++++++------ 9 files changed, 202 insertions(+), 28 deletions(-) create mode 100644 ncp-web/img/info-white.svg create mode 100644 ncp-web/img/nc-button.svg create mode 100644 ncp-web/img/settings-white.svg diff --git a/bin/ncp-diag b/bin/ncp-diag index e3f3b99b4..3c65fd944 100644 --- a/bin/ncp-diag +++ b/bin/ncp-diag @@ -50,7 +50,7 @@ echo "HTTPD service|$( pgrep -c apache2 &>/dev/null && echo up || echo down )" echo "PHP service|$( pgrep -c php-fpm &>/dev/null && echo up || echo down )" echo "MariaDB service|$( pgrep -c mysqld &>/dev/null && echo up || echo down )" echo "Redis service|$( pgrep -c redis-server &>/dev/null && echo up || echo down )" -echo "Postfix service|$( postfix status &>/dev/null && echo up || echo down )" +echo "Postfix service|$( pgrep -fc postfix &>/dev/null && echo up || echo down )" # WAN echo "internet check|$( ping -W 2 -w 1 -q github.com &>/dev/null && echo ok || echo no } )" diff --git a/changelog.md b/changelog.md index e8a0b4f76..732d2e3f3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,11 @@ -[v0.53.10](https://github.com/nextcloud/nextcloudpi/commit/dce58cc) (2018-04-03) ncp-web: implement dashboard +[v0.53.12](https://github.com/nextcloud/nextcloudpi/commit/4e597b9) (2018-04-03) ncp-web: added nc-config and helper buttons -[v0.53.9](https://github.com/nextcloud/nextcloudpi/commit/486d6ef) (2018-04-02) SSH: stop service upon activation +[v0.53.11](https://github.com/nextcloud/nextcloudpi/commit/42adfb3) (2018-04-03) ncp-web: fix glitch showing power dialog + +[v0.53.10](https://github.com/nextcloud/nextcloudpi/commit/96a8c73) (2018-04-03) ncp-web: implement dashboard + +[v0.53.9 ](https://github.com/nextcloud/nextcloudpi/commit/486d6ef) (2018-04-02) SSH: stop service upon activation [v0.53.8 ](https://github.com/nextcloud/nextcloudpi/commit/afd2c8e) (2018-04-02) ncp-web: fix update notification diff --git a/ncp-web/img/info-white.svg b/ncp-web/img/info-white.svg new file mode 100644 index 000000000..58c3fc806 --- /dev/null +++ b/ncp-web/img/info-white.svg @@ -0,0 +1,59 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/ncp-web/img/nc-button.svg b/ncp-web/img/nc-button.svg new file mode 100644 index 000000000..715c96524 --- /dev/null +++ b/ncp-web/img/nc-button.svg @@ -0,0 +1,60 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/ncp-web/img/settings-white.svg b/ncp-web/img/settings-white.svg new file mode 100644 index 000000000..2371d2049 --- /dev/null +++ b/ncp-web/img/settings-white.svg @@ -0,0 +1 @@ + diff --git a/ncp-web/index.php b/ncp-web/index.php index 2f1696ff0..fb95e7787 100644 --- a/ncp-web/index.php +++ b/ncp-web/index.php @@ -100,8 +100,7 @@
@@ -199,8 +217,19 @@

__("System Info"); ?>

+
+
+ + -