debian-mirror-gitlab/app/assets/javascripts/runner/components/stat/runner_stats.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1 KiB
Vue
Raw Normal View History

2022-03-02 08:16:31 +05:30
<script>
import { STATUS_ONLINE, STATUS_OFFLINE, STATUS_STALE } from '../../constants';
import RunnerStatusStat from './runner_status_stat.vue';
export default {
components: {
RunnerStatusStat,
},
props: {
onlineRunnersCount: {
type: Number,
required: false,
default: null,
},
offlineRunnersCount: {
type: Number,
required: false,
default: null,
},
staleRunnersCount: {
type: Number,
required: false,
default: null,
},
},
STATUS_ONLINE,
STATUS_OFFLINE,
STATUS_STALE,
};
</script>
<template>
<div class="gl-display-flex gl-py-6">
<runner-status-stat
class="gl-px-5"
:status="$options.STATUS_ONLINE"
:value="onlineRunnersCount"
/>
<runner-status-stat
class="gl-px-5"
:status="$options.STATUS_OFFLINE"
:value="offlineRunnersCount"
/>
<runner-status-stat
class="gl-px-5"
:status="$options.STATUS_STALE"
:value="staleRunnersCount"
/>
</div>
</template>