summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/analytics/instance_statistics/components/app.vue
blob: 7aa5c98aa0b2fb318076ffe6c32a29b656901702 (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
<script>
import InstanceCounts from './instance_counts.vue';
import PipelinesChart from './pipelines_chart.vue';
import UsersChart from './users_chart.vue';
import { TODAY, TOTAL_DAYS_TO_SHOW, START_DATE } from '../constants';

export default {
  name: 'InstanceStatisticsApp',
  components: {
    InstanceCounts,
    PipelinesChart,
    UsersChart,
  },
  TOTAL_DAYS_TO_SHOW,
  START_DATE,
  TODAY,
};
</script>

<template>
  <div>
    <instance-counts />
    <users-chart
      :start-date="$options.START_DATE"
      :end-date="$options.TODAY"
      :total-data-points="$options.TOTAL_DAYS_TO_SHOW"
    />
    <pipelines-chart />
  </div>
</template>