Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Added info for Drone Widget

Matthias Bilger71510eeb9330
diff --git a/docs/widgets.md b/docs/widgets.md
index 783fd26c..485b9635 100644
--- a/docs/widgets.md
+++ b/docs/widgets.md
@@ -57,6 +57,7 @@ Dashy has support for displaying dynamic content in the form of widgets. There a
- [Nextcloud PHP OPcache](#nextcloud-php-opcache-stats)
- [Sabnzbd](#sabnzbd)
- [Gluetun VPN Info](#gluetun-vpn-info)
+ - [Drone.io](#drone-io-builds)
- **[System Resource Monitoring](#system-resource-monitoring)**
- [CPU Usage Current](#current-cpu-usage)
- [CPU Usage Per Core](#cpu-usage-per-core)
@@ -1910,6 +1911,40 @@ Display info from the Gluetun VPN container public IP API. This can show the IP
---
+### Drone.io Builds
+
+Display the last builds from a (drone.io)(https://www.drone.io] instance.
+
+<p align="center"><img width="380" src="https://i.ibb.co/nQM3BXj/Bildschirm-foto-2023-01-07-um-01-31-45.png" /></p>
+
+#### Options
+
+**Field** | **Type** | **Required** | **Description**
+--- | --- | --- | ---
+**`host`** | `string` | Required | The histname of the drone.io instance
+**`apiKey`** | `string` | Required | The API key (https://<drone-instance>/account)
+**`limit`** | `integer` | Optional | Limit the amounts of listed builds.
+
+#### Example
+
+```yaml
+- type: DroneIo
+ options:
+ host: https://drone.somedomain.com
+ apiKey: my-very-secret-api-key
+ limit: 10
+```
+
+#### Info
+
+- **CORS**: 🟒 Enabled
+- **Auth**: 🟒 Required
+- **Price**: 🟒 Free
+- **Host**: Self-Hosted (see [Drone](https://www.drone.io))
+- **Privacy**: _See [Drone](https://www.drone.io)_
+
+---
+
## System Resource Monitoring
### Glances
diff --git a/src/components/Widgets/DroneIo.vue b/src/components/Widgets/DroneIo.vue
index 63adcab1..0924d75b 100644
--- a/src/components/Widgets/DroneIo.vue
+++ b/src/components/Widgets/DroneIo.vue
@@ -18,8 +18,7 @@
<script>
import WidgetMixin from '@/mixins/WidgetMixin';
-import { widgetApiEndpoints } from '@/utils/defaults';
-import { capitalize, timestampToDateTime } from '@/utils/MiscHelpers';
+import { timestampToDateTime } from '@/utils/MiscHelpers';
export default {
mixins: [WidgetMixin],