summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vnstat2/root
diff options
context:
space:
mode:
authorHelge Mader <ma@dev.tdt.de>2022-02-03 13:48:10 +0100
committerHelge Mader <ma@dev.tdt.de>2022-02-03 13:48:10 +0100
commit164e98c7d9708da55c0c7641f4d409faaeaef4ec (patch)
tree862a77352f0325d6b36de8806252a7fb5a58defa /applications/luci-app-vnstat2/root
parent4b5da809e03b2321d8362a289aa1b4979f8e8a71 (diff)
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 <ma@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-vnstat2/root')
-rw-r--r--applications/luci-app-vnstat2/root/usr/share/luci/menu.d/luci-app-vnstat2.json2
-rw-r--r--applications/luci-app-vnstat2/root/usr/share/rpcd/acl.d/luci-app-vnstat2.json3
2 files changed, 4 insertions, 1 deletions
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": {