Welcome to mirror list, hosted at ThFree Co, Russian Federation.

runner_stats.vue « stat « components « runner « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d3693ee593e989ab78fac1f972ad767663f0922b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<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>