summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/pages/admin/admin.users-chart.vue
blob: 15c01fc59e6dd0f9d6bdc01bdeeed840f9d5def0 (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
<template>
<div>
	<header>%i18n:@title%</header>
	<x-chart v-if="data" :data="data" type="local"/>
	<x-chart v-if="data" :data="data" type="remote"/>
</div>
</template>

<script lang="ts">
import Vue from "vue";
import XChart from "./admin.users-chart.chart.vue";

export default Vue.extend({
	components: {
		XChart
	},
	data() {
		return {
			data: null
		};
	},
	created() {
		(this as any).api('aggregation/users').then(res => {
			this.data = res;
		});
	}
});
</script>

<style lang="stylus" scoped>
@import '~const.styl'

</style>