From 80ba98cf661801956f773bdfd0b0ded1b2f80487 Mon Sep 17 00:00:00 2001 From: Artur Bauer Date: Mon, 11 Oct 2021 18:38:13 +0200 Subject: [PATCH] Code review fixes --- docs/customservices.md | 11 +-- src/components/services/Prometheus.vue | 96 ++++++++++---------------- 2 files changed, 42 insertions(+), 65 deletions(-) diff --git a/docs/customservices.md b/docs/customservices.md index 548af96..7a151d1 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -6,15 +6,16 @@ within Homer. If you experiencing any issue, please have a look to the [troubleshooting](troubleshooting.md) page. + ## Common options ```yaml -- name: 'My Service' - logo: 'assets/tools/sample.png' - url: 'http://my-service-link' - endpoint: 'http://my-service-endpoint' # Optional: alternative base URL used to fetch service data is necessary. +- name: "My Service" + logo: "assets/tools/sample.png" + url: "http://my-service-link" + endpoint: "http://my-service-endpoint" # Optional: alternative base URL used to fetch service data is necessary. useCredentials: false # Optional: Override global proxy.useCredentials configuration. - type: '' + type: "" ``` ⚠️🚧 `endpoint` & `useCredentials` new options are not yet supported by all custom services (but will be very soon). diff --git a/src/components/services/Prometheus.vue b/src/components/services/Prometheus.vue index 25e9ddd..6efcb34 100644 --- a/src/components/services/Prometheus.vue +++ b/src/components/services/Prometheus.vue @@ -1,57 +1,41 @@