From 164e98c7d9708da55c0c7641f4d409faaeaef4ec Mon Sep 17 00:00:00 2001 From: Helge Mader Date: Thu, 3 Feb 2022 13:48:10 +0100 Subject: uci-app-vnstat2: refactoring This is a huge change to the already existing vnstat2 LuCI module with some improvements and some new features. "Graphs Page": - Implementation of refreshing the graphs. - Only in the UCI configuration existing interfaces will be shown in any case. Before this change, all interfaces existing in the database were shown. - Introduced a button to clear the statistics for all interfaces (in fact this is removing and adding again the interfaces from/to the database). Before clearing the data a confirmation dialog is shown. - Show user hint if service is not running, so no updating of graphs. - "Error image" for a graph which can not be loaded General: - Updated translations, added missing translations for ./po/de - Renamed the menu entry from "vnStat Traffic Monitor" to "Traffic Monitor" only Signed-off-by: Helge Mader --- .../luci-app-vnstat2/root/usr/share/luci/menu.d/luci-app-vnstat2.json | 2 +- .../luci-app-vnstat2/root/usr/share/rpcd/acl.d/luci-app-vnstat2.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'applications/luci-app-vnstat2/root/usr/share') diff --git a/applications/luci-app-vnstat2/root/usr/share/luci/menu.d/luci-app-vnstat2.json b/applications/luci-app-vnstat2/root/usr/share/luci/menu.d/luci-app-vnstat2.json index 4aa9dd2aa0..eed7b0a2d7 100644 --- a/applications/luci-app-vnstat2/root/usr/share/luci/menu.d/luci-app-vnstat2.json +++ b/applications/luci-app-vnstat2/root/usr/share/luci/menu.d/luci-app-vnstat2.json @@ -1,6 +1,6 @@ { "admin/status/vnstat2": { - "title": "vnStat Traffic Monitor", + "title": "Traffic Monitor", "order": 90, "action": { "type": "firstchild" diff --git a/applications/luci-app-vnstat2/root/usr/share/rpcd/acl.d/luci-app-vnstat2.json b/applications/luci-app-vnstat2/root/usr/share/rpcd/acl.d/luci-app-vnstat2.json index 7acf74bd59..5be965a99c 100644 --- a/applications/luci-app-vnstat2/root/usr/share/rpcd/acl.d/luci-app-vnstat2.json +++ b/applications/luci-app-vnstat2/root/usr/share/rpcd/acl.d/luci-app-vnstat2.json @@ -7,6 +7,9 @@ "/usr/bin/vnstat --json f 1": [ "exec" ], "/usr/bin/vnstati -[5dhmsty] -i * -o -": [ "exec" ] }, + "ubus": { + "service": [ "list" ] + }, "uci": [ "vnstat" ] }, "write": { -- cgit v1.2.3