From e6069776cea9dd6ac86d5dbbb7ade3057271f3c2 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Tue, 11 Oct 2022 13:57:42 +0200 Subject: Improve demo content --- dummy-data/_headers | 3 +++ dummy-data/pihole/api.php | 38 ++++++++++++++++++++++++++++++++++++++ public/assets/config-demo.yml.dist | 4 ++++ 3 files changed, 45 insertions(+) create mode 100644 dummy-data/_headers create mode 100644 dummy-data/pihole/api.php diff --git a/dummy-data/_headers b/dummy-data/_headers new file mode 100644 index 0000000..175405b --- /dev/null +++ b/dummy-data/_headers @@ -0,0 +1,3 @@ +/* + Content-Type: application/json + Access-Control-Allow-Origin: * \ No newline at end of file diff --git a/dummy-data/pihole/api.php b/dummy-data/pihole/api.php new file mode 100644 index 0000000..62c453d --- /dev/null +++ b/dummy-data/pihole/api.php @@ -0,0 +1,38 @@ +{ + "domains_being_blocked": 152588, + "dns_queries_today": 0, + "ads_blocked_today": 0, + "ads_percentage_today": 42, + "unique_domains": 0, + "queries_forwarded": 0, + "queries_cached": 0, + "clients_ever_seen": 0, + "unique_clients": 0, + "dns_queries_all_types": 0, + "reply_UNKNOWN": 0, + "reply_NODATA": 0, + "reply_NXDOMAIN": 0, + "reply_CNAME": 0, + "reply_IP": 0, + "reply_DOMAIN": 0, + "reply_RRNAME": 0, + "reply_SERVFAIL": 0, + "reply_REFUSED": 0, + "reply_NOTIMP": 0, + "reply_OTHER": 0, + "reply_DNSSEC": 0, + "reply_NONE": 0, + "reply_BLOB": 0, + "dns_queries_all_replies": 0, + "privacy_level": 0, + "status": "enabled", + "gravity_last_updated": { + "file_exists": true, + "absolute": 1665486627, + "relative": { + "days": 0, + "hours": 0, + "minutes": 22 + } + } +} \ No newline at end of file diff --git a/public/assets/config-demo.yml.dist b/public/assets/config-demo.yml.dist index bbfd0af..f1b7e35 100644 --- a/public/assets/config-demo.yml.dist +++ b/public/assets/config-demo.yml.dist @@ -83,3 +83,7 @@ services: subtitle: "Another application" tag: "app" url: "#" + - name: "Pi-hole" + logo: "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/pihole.png" + url: "https://homer-demo-content.netlify.app/" + type: "PiHole" -- cgit v1.2.3