diff options
-rw-r--r-- | docs/customservices.md | 2 | ||||
-rw-r--r-- | src/assets/app.scss | 6 | ||||
-rw-r--r-- | src/components/services/AdGuardHome.vue | 4 | ||||
-rw-r--r-- | src/components/services/PaperlessNG.vue | 1 | ||||
-rw-r--r-- | src/components/services/PiHole.vue | 4 | ||||
-rw-r--r-- | src/components/services/Ping.vue | 6 |
6 files changed, 17 insertions, 6 deletions
diff --git a/docs/customservices.md b/docs/customservices.md index 43f45f4..5778fad 100644 --- a/docs/customservices.md +++ b/docs/customservices.md | |||
@@ -50,4 +50,4 @@ For Paperless you need an API-Key which you have to store at the item in the fie | |||
50 | 50 | ||
51 | ## Ping | 51 | ## Ping |
52 | 52 | ||
53 | For Paperless you need an API-Key which you have to store at the item in the field `apikey`. | 53 | For Ping you need an API-Key which you have to store at the item in the field `apikey`. |
diff --git a/src/assets/app.scss b/src/assets/app.scss index 963d1b0..f2dfb37 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss | |||
@@ -140,8 +140,7 @@ body { | |||
140 | } | 140 | } |
141 | } | 141 | } |
142 | } | 142 | } |
143 | .navbar, | 143 | .navbar { |
144 | .navbar-menu { | ||
145 | background-color: var(--highlight-secondary); | 144 | background-color: var(--highlight-secondary); |
146 | 145 | ||
147 | a { | 146 | a { |
@@ -153,6 +152,9 @@ body { | |||
153 | background-color: var(--highlight-hover); | 152 | background-color: var(--highlight-hover); |
154 | } | 153 | } |
155 | } | 154 | } |
155 | .navbar-menu { | ||
156 | background-color: inherit; | ||
157 | } | ||
156 | } | 158 | } |
157 | .navbar-end { | 159 | .navbar-end { |
158 | text-align: right; | 160 | text-align: right; |
diff --git a/src/components/services/AdGuardHome.vue b/src/components/services/AdGuardHome.vue index d4a2b89..9238060 100644 --- a/src/components/services/AdGuardHome.vue +++ b/src/components/services/AdGuardHome.vue | |||
@@ -51,7 +51,9 @@ export default { | |||
51 | }, | 51 | }, |
52 | methods: { | 52 | methods: { |
53 | fetchStatus: async function () { | 53 | fetchStatus: async function () { |
54 | this.status = await fetch(`${this.item.url}/control/status`).then( | 54 | this.status = await fetch(`${this.item.url}/control/status`, { |
55 | credentials: "include", | ||
56 | }).then( | ||
55 | (response) => response.json() | 57 | (response) => response.json() |
56 | ); | 58 | ); |
57 | }, | 59 | }, |
diff --git a/src/components/services/PaperlessNG.vue b/src/components/services/PaperlessNG.vue index 4fb31f8..af13317 100644 --- a/src/components/services/PaperlessNG.vue +++ b/src/components/services/PaperlessNG.vue | |||
@@ -59,6 +59,7 @@ export default { | |||
59 | } | 59 | } |
60 | const url = `${this.item.url}/api/documents/`; | 60 | const url = `${this.item.url}/api/documents/`; |
61 | this.api = await fetch(url, { | 61 | this.api = await fetch(url, { |
62 | credentials: "include", | ||
62 | headers: { | 63 | headers: { |
63 | Authorization: "Token " + this.item.apikey, | 64 | Authorization: "Token " + this.item.apikey, |
64 | }, | 65 | }, |
diff --git a/src/components/services/PiHole.vue b/src/components/services/PiHole.vue index 7042a7b..87f7090 100644 --- a/src/components/services/PiHole.vue +++ b/src/components/services/PiHole.vue | |||
@@ -64,7 +64,9 @@ export default { | |||
64 | methods: { | 64 | methods: { |
65 | fetchStatus: async function () { | 65 | fetchStatus: async function () { |
66 | const url = `${this.item.url}/api.php`; | 66 | const url = `${this.item.url}/api.php`; |
67 | this.api = await fetch(url) | 67 | this.api = await fetch(url, { |
68 | credentials: "include", | ||
69 | }) | ||
68 | .then((response) => response.json()) | 70 | .then((response) => response.json()) |
69 | .catch((e) => console.log(e)); | 71 | .catch((e) => console.log(e)); |
70 | }, | 72 | }, |
diff --git a/src/components/services/Ping.vue b/src/components/services/Ping.vue index 8a9b7a4..e693af4 100644 --- a/src/components/services/Ping.vue +++ b/src/components/services/Ping.vue | |||
@@ -50,7 +50,11 @@ export default { | |||
50 | methods: { | 50 | methods: { |
51 | fetchStatus: async function () { | 51 | fetchStatus: async function () { |
52 | const url = `${this.item.url}`; | 52 | const url = `${this.item.url}`; |
53 | fetch(url, { method: "HEAD", cache: "no-cache" }) | 53 | fetch(url, { |
54 | method: "HEAD", | ||
55 | cache: "no-cache", | ||
56 | credentials: "include", | ||
57 | }) | ||
54 | .then((response) => { | 58 | .then((response) => { |
55 | if (!response.ok) { | 59 | if (!response.ok) { |
56 | throw Error(response.statusText); | 60 | throw Error(response.statusText); |