π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π Fixed Pi Hole key not read from env var (#1934)
Alicia Sykesb1eb3f258a73
diff --git a/src/components/Widgets/PiHoleTopQueries.vue b/src/components/Widgets/PiHoleTopQueries.vueindex 39a780a1..850cafab 100644--- a/src/components/Widgets/PiHoleTopQueries.vue+++ b/src/components/Widgets/PiHoleTopQueries.vue@@ -25,13 +25,14 @@ export default {computed: {/* Let user select which comic to display: random, latest or a specific number */hostname() {- const usersChoice = this.options.hostname;+ const usersChoice = this.parseAsEnvVar(this.options.hostname);if (!usersChoice) this.error('You must specify the hostname for your Pi-Hole server');- return usersChoice || 'http://pi.hole';+ return usersChoice;},apiKey() {- if (!this.options.apiKey) this.error('API Key is required, please see the docs');- return this.options.apiKey;+ const usersChoice = this.parseAsEnvVar(this.options.apiKey);+ if (!usersChoice) this.error('API Key is required, please see the docs');+ return usersChoice;},count() {const usersChoice = this.options.count;diff --git a/src/components/Widgets/PiHoleTraffic.vue b/src/components/Widgets/PiHoleTraffic.vueindex e51b011d..d50cd7cc 100644--- a/src/components/Widgets/PiHoleTraffic.vue+++ b/src/components/Widgets/PiHoleTraffic.vue@@ -19,13 +19,14 @@ export default {computed: {/* Let user select which comic to display: random, latest or a specific number */hostname() {- const usersChoice = this.options.hostname;+ const usersChoice = this.parseAsEnvVar(this.options.hostname);if (!usersChoice) this.error('You must specify the hostname for your Pi-Hole server');- return usersChoice || 'http://pi.hole';+ return usersChoice;},apiKey() {- if (!this.options.apiKey) this.error('API Key is required, please see the docs');- return this.options.apiKey;+ const usersChoice = this.parseAsEnvVar(this.options.apiKey);+ if (!usersChoice) this.error('API Key is required, please see the docs');+ return usersChoice;},endpoint() {return `${this.hostname}/admin/api.php?overTimeData10mins&auth=${this.apiKey}`;