mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-21 04:35:15 +02:00
Rename DroneIo to DroneCi
Drone CI is the current term used for the Build System (or just Drone, which is a bit to unspecific for identification)
This commit is contained in:
parent
f14eaf5f0b
commit
f43966fdb0
@ -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)
|
- [Nextcloud PHP OPcache](#nextcloud-php-opcache-stats)
|
||||||
- [Sabnzbd](#sabnzbd)
|
- [Sabnzbd](#sabnzbd)
|
||||||
- [Gluetun VPN Info](#gluetun-vpn-info)
|
- [Gluetun VPN Info](#gluetun-vpn-info)
|
||||||
- [Drone.io](#droneio-builds)
|
- [Drone CI Build](#drone-ci-builds)
|
||||||
- **[System Resource Monitoring](#system-resource-monitoring)**
|
- **[System Resource Monitoring](#system-resource-monitoring)**
|
||||||
- [CPU Usage Current](#current-cpu-usage)
|
- [CPU Usage Current](#current-cpu-usage)
|
||||||
- [CPU Usage Per Core](#cpu-usage-per-core)
|
- [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>
|
<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**
|
**Field** | **Type** | **Required** | **Description**
|
||||||
--- | --- | --- | ---
|
--- | --- | --- | ---
|
||||||
**`host`** | `string` | Required | The histname of the drone.io instance
|
**`host`** | `string` | Required | The histname of the Drone CI instance.
|
||||||
**`apiKey`** | `string` | Required | The API key (https://<drone-instance>/account)
|
**`apiKey`** | `string` | Required | The API key (https://<your-drone-instance>/account).
|
||||||
**`limit`** | `integer` | Optional | Limit the amounts of listed builds.
|
**`limit`** | `integer` | Optional | Limit the amounts of listed builds.
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- type: drone-io
|
- type: drone-io
|
||||||
|
updateInterval: 30
|
||||||
options:
|
options:
|
||||||
host: https://drone.somedomain.com
|
host: https://drone.somedomain.com
|
||||||
apiKey: my-very-secret-api-key
|
apiKey: my-very-secret-api-key
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="droneio-builds-wrapper" v-if="builds">
|
<div class="droneci-builds-wrapper" v-if="builds">
|
||||||
<div
|
<div
|
||||||
class="build-row"
|
class="build-row"
|
||||||
v-for="build in builds" :key="build.id"
|
v-for="build in builds" :key="build.id"
|
||||||
@ -13,13 +13,13 @@
|
|||||||
<p class="build-desc">
|
<p class="build-desc">
|
||||||
<a :href="build.baseurl + '/' + build.slug + '/' +build.build.number" target="_blank">{{ build.build.number }}</a>
|
<a :href="build.baseurl + '/' + build.slug + '/' +build.build.number" target="_blank">{{ build.build.number }}</a>
|
||||||
<template v-if="build.event == 'pull_request'">
|
<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>
|
||||||
<template v-if="build.event == 'push'">
|
<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>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<span class="droneio-extra-info">{{ build.build.target }}</span>
|
<span class="droneci-extra-info">{{ build.build.target }}</span>
|
||||||
</template>
|
</template>
|
||||||
<span v-if="build.status == 'running'">{{ build.build.started*1000 | formatTimeAgo }}</span>
|
<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>
|
<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 */
|
/* API endpoint, either for self-hosted or managed instance */
|
||||||
endpoint() {
|
endpoint() {
|
||||||
if (this.options.host) return `${this.options.host}/api/user/builds`;
|
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() {
|
apiKey() {
|
||||||
if (!this.options.apiKey) {
|
if (!this.options.apiKey) {
|
||||||
@ -72,7 +72,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/* Make GET request to CoinGecko API endpoint */
|
/* Make GET request to Drone CI API endpoint */
|
||||||
fetchData() {
|
fetchData() {
|
||||||
this.overrideProxyChoice = true;
|
this.overrideProxyChoice = true;
|
||||||
const authHeaders = { 'Authorization': `Bearer ${this.apiKey}` };
|
const authHeaders = { 'Authorization': `Bearer ${this.apiKey}` };
|
||||||
@ -106,7 +106,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.droneio-builds-wrapper {
|
.droneci-builds-wrapper {
|
||||||
color: var(--widget-text-color);
|
color: var(--widget-text-color);
|
||||||
.build-row {
|
.build-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -144,7 +144,7 @@ export default {
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.droneio-extra-info {
|
.droneci-extra-info {
|
||||||
margin: 0.25em;
|
margin: 0.25em;
|
||||||
padding: 0.25em;
|
padding: 0.25em;
|
||||||
background: var(--item-background);
|
background: var(--item-background);
|
@ -56,7 +56,7 @@ const COMPAT = {
|
|||||||
'domain-monitor': 'DomainMonitor',
|
'domain-monitor': 'DomainMonitor',
|
||||||
'code-stats': 'CodeStats',
|
'code-stats': 'CodeStats',
|
||||||
'covid-stats': 'CovidStats',
|
'covid-stats': 'CovidStats',
|
||||||
'drone-io': 'DroneIo',
|
'drone-ci': 'DroneCi',
|
||||||
embed: 'EmbedWidget',
|
embed: 'EmbedWidget',
|
||||||
'eth-gas-prices': 'EthGasPrices',
|
'eth-gas-prices': 'EthGasPrices',
|
||||||
'exchange-rates': 'ExchangeRates',
|
'exchange-rates': 'ExchangeRates',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user