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!

Rename DroneIo to DroneCi

Matthias Bilgerf43966fdb019
diff --git a/docs/widgets.md b/docs/widgets.md
index 89eab92a..a1cd1543 100644
--- a/docs/widgets.md
+++ b/docs/widgets.md
@@ -57,7 +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](#droneio-builds)
+ - [Drone CI Build](#drone-ci-builds)
- **[System Resource Monitoring](#system-resource-monitoring)**
- [CPU Usage Current](#current-cpu-usage)
- [CPU Usage Per Core](#cpu-usage-per-core)
@@ -1911,9 +1911,9 @@ Display info from the Gluetun VPN container public IP API. This can show the IP
---
-### Drone.io Builds
+### Drone CI Builds
-Display the last builds from a [drone.io](https://www.drone.io) instance.
+Display the last builds from a [Drone CI](https://www.drone.ci) instance. A self-hosted CI system that uses docker.
<p align="center"><img width="380" src="https://i.ibb.co/nQM3BXj/Bildschirm-foto-2023-01-07-um-01-31-45.png" /></p>
@@ -1921,14 +1921,15 @@ Display the last builds from a [drone.io](https://www.drone.io) instance.
**Field** | **Type** | **Required** | **Description**
--- | --- | --- | ---
-**`host`** | `string` | Required | The histname of the drone.io instance
-**`apiKey`** | `string` | Required | The API key (https://<drone-instance>/account)
+**`host`** | `string` | Required | The histname of the Drone CI instance.
+**`apiKey`** | `string` | Required | The API key (https://<your-drone-instance>/account).
**`limit`** | `integer` | Optional | Limit the amounts of listed builds.
#### Example
```yaml
- type: drone-io
+ updateInterval: 30
options:
host: https://drone.somedomain.com
apiKey: my-very-secret-api-key
diff --git a/src/components/Widgets/DroneIo.vue b/src/components/Widgets/DroneCi.vue
similarity index 91%
rename from src/components/Widgets/DroneIo.vue
rename to src/components/Widgets/DroneCi.vue
index 9687a399..c8b0ff04 100644
--- a/src/components/Widgets/DroneIo.vue
+++ b/src/components/Widgets/DroneCi.vue
@@ -1,5 +1,5 @@
<template>
-<div class="droneio-builds-wrapper" v-if="builds">
+<div class="droneci-builds-wrapper" v-if="builds">
<div
class="build-row"
v-for="build in builds" :key="build.id"
@@ -13,13 +13,13 @@
<p class="build-desc">
<a :href="build.baseurl + '/' + build.slug + '/' +build.build.number" target="_blank">{{ build.build.number }}</a>
<template v-if="build.event == 'pull_request'">
- <a :href="build.build.link" target="_blank" class="droneio-extra-info">#{{ formatPrId(build.build.link) }}</a> to <span class="droneio-info-link">{{ build.build.target }}</span>
+ <a :href="build.build.link" target="_blank" class="droneci-extra-info">#{{ formatPrId(build.build.link) }}</a> to <span class="droneci-info-link">{{ build.build.target }}</span>
</template>
<template v-if="build.event == 'push'">
- <a :href="build.build.link" target="_blank" class="droneio-extra-info">push</a> to <span class="droneio-extra-info">{{ build.build.target }}</span>
+ <a :href="build.build.link" target="_blank" class="droneci-extra-info">push</a> to <span class="droneci-extra-info">{{ build.build.target }}</span>
</template>
<template v-else>
- <span class="droneio-extra-info">{{ build.build.target }}</span>
+ <span class="droneci-extra-info">{{ build.build.target }}</span>
</template>
<span v-if="build.status == 'running'">{{ build.build.started*1000 | formatTimeAgo }}</span>
<span v-else-if="build.status != 'running' || build.status != 'pending' ">{{ formatBuildDuration(build) }}</span>
@@ -62,7 +62,7 @@ export default {
/* API endpoint, either for self-hosted or managed instance */
endpoint() {
if (this.options.host) return `${this.options.host}/api/user/builds`;
- this.error('Drone.io Host is required');
+ this.error('Drone CI Host is required');
},
apiKey() {
if (!this.options.apiKey) {
@@ -72,7 +72,7 @@ export default {
},
},
methods: {
- /* Make GET request to CoinGecko API endpoint */
+ /* Make GET request to Drone CI API endpoint */
fetchData() {
this.overrideProxyChoice = true;
const authHeaders = { 'Authorization': `Bearer ${this.apiKey}` };
@@ -106,7 +106,7 @@ export default {
</script>
<style scoped lang="scss">
-.droneio-builds-wrapper {
+.droneci-builds-wrapper {
color: var(--widget-text-color);
.build-row {
display: flex;
@@ -144,7 +144,7 @@ export default {
color: inherit;
text-decoration: none;
}
- .droneio-extra-info {
+ .droneci-extra-info {
margin: 0.25em;
padding: 0.25em;
background: var(--item-background);
diff --git a/src/components/Widgets/WidgetBase.vue b/src/components/Widgets/WidgetBase.vue
index 480df189..a5cbf1c2 100644
--- a/src/components/Widgets/WidgetBase.vue
+++ b/src/components/Widgets/WidgetBase.vue
@@ -56,7 +56,7 @@ const COMPAT = {
'domain-monitor': 'DomainMonitor',
'code-stats': 'CodeStats',
'covid-stats': 'CovidStats',
- 'drone-io': 'DroneIo',
+ 'drone-ci': 'DroneCi',
embed: 'EmbedWidget',
'eth-gas-prices': 'EthGasPrices',
'exchange-rates': 'ExchangeRates',