From 9087c4b0d720a51bccaec608d84075071f896105 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 1 Dec 2023 23:47:15 +0200 Subject: [PATCH] add footer links settings, implement nodes registry with database download list --- example/config.json | 55 +++++++++++++++++++++++++++++++++++++++++++++ src/webui/index.php | 28 +++++++++++++++++++++-- 2 files changed, 81 insertions(+), 2 deletions(-) diff --git a/example/config.json b/example/config.json index a5ce8ad..34682e8 100644 --- a/example/config.json +++ b/example/config.json @@ -43,6 +43,61 @@ { "enabled":false } + }, + "footer": + { + "links": + [ + { + "text":"0200::/7", + "attributes": + { + "title":"Serch in 0200::/7 IPv6", + "href":"http://[201:23b4:991a:634d:8359:4521:5576:15b7]/yo/", + "target":"_blank" + }, + "index": + [ + "http://[201:23b4:991a:634d:8359:4521:5576:15b7]/yo/index.sql" + ] + }, + { + "text":"yo.ygg", + "attributes": + { + "title":"Search in .ygg zone", + "href":"http://yo.ygg", + "target":"_blank" + }, + "index": + [ + "http://yo.ygg/index.sql" + ] + }, + { + "text":"ygg.yo.index", + "attributes": + { + "title":"Search in .ygg zone", + "href":"http://ygg.yo.index", + "target":"_blank" + }, + "index": + [ + "http://ygg.yo.index/index.sql" + ] + }, + { + "text":"GitHub", + "attributes": + { + "title":"Source code", + "href":"https://github.com/YGGverse/Yo", + "target":"_blank" + }, + "index":[] + } + ] } }, "cli": diff --git a/src/webui/index.php b/src/webui/index.php index 47317c6..cba66c5 100644 --- a/src/webui/index.php +++ b/src/webui/index.php @@ -131,16 +131,27 @@ $placeholder = sprintf( font-size: 12px; } - footer > a, a:visited, + footer > a, + footer > a:visited, footer > a:active { color: #9ba2ac; font-size: 12px; } + footer > a > svg, + footer > a:visited > svg, + footer > a:active > svg { + fill: #9ba2ac; + } + footer > a:hover { color: #54a3f7; } + footer > a:hover svg { + fill: #54a3f7; + } + footer > a, footer > a:visited, footer > a:active { @@ -303,7 +314,20 @@ $placeholder = sprintf( \ No newline at end of file