mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 20:08:05 +08:00
51 lines
1.3 KiB
Diff
51 lines
1.3 KiB
Diff
--- a/luci-mod-dashboard/root/etc/config/dashboard
|
|
+++ b/luci-mod-dashboard/root/etc/config/dashboard
|
|
@@ -1 +1,18 @@
|
|
config dashboard 'layout'
|
|
+ list cards 'internet'
|
|
+ list cards 'uptime'
|
|
+ list cards 'cpu'
|
|
+ list cards 'memory'
|
|
+ list cards 'dhcp'
|
|
+ list cards 'wifi'
|
|
+ list cards 'load'
|
|
+ list charts 'wan'
|
|
+ list charts 'system'
|
|
+ list charts 'distribution'
|
|
+ list charts 'signal'
|
|
+ list charts 'traffic'
|
|
+ list tabs 'internet'
|
|
+ list tabs 'system'
|
|
+ list tabs 'resources'
|
|
+ list tabs 'dhcp'
|
|
+ list tabs 'wifi'
|
|
|
|
--- a/luci-mod-dashboard/root/usr/share/luci/menu.d/luci-mod-dashboard.json
|
|
+++ b/luci-mod-dashboard/root/usr/share/luci/menu.d/luci-mod-dashboard.json
|
|
@@ -1,7 +1,7 @@
|
|
{
|
|
- "admin/dashboard": {
|
|
+ "admin/status/dashboard": {
|
|
"title": "Dashboard",
|
|
- "order": 1,
|
|
+ "order": 2,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "dashboard/index"
|
|
|
|
--- a/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/css/custom.css
|
|
+++ b/luci-mod-dashboard/htdocs/luci-static/resources/view/dashboard/css/custom.css
|
|
@@ -153,7 +153,7 @@
|
|
gap: 20px;
|
|
margin-block: auto;
|
|
/* Override Footstrap's negative SVG container margins to preserve card padding. */
|
|
- margin-inline: 0;
|
|
+ margin-inline: 0 !important;
|
|
}
|
|
|
|
.dashboard-donut svg {
|
|
|
|
|
|
while (length(ring) > SLOTS)
|
|
shift(ring);
|