hippofish/src/client/app/desktop/views/pages/admin/admin.dashboard.vue
Aya Morisawa fb1e2efbdd wip
2018-08-14 01:37:23 +09:00

27 lines
628 B
Vue

<template>
<div>
<header>%i18n:@dashboard%</header>
<p><b>%i18n:@all-users%</b><span>{{ stats.usersCount | number }}</span></p>
<p><b>%i18n:@original-users%</b><span>{{ stats.originalUsersCount | number }}</span></p>
<p><b>%i18n:@all-notes%</b><span>{{ stats.notesCount | number }}</span></p>
<p><b>%i18n:@original-notes%</b><span>{{ stats.originalNotesCount | number }}</span></p>
</div>
</template>
<script lang="ts">
import Vue from "vue";
export default Vue.extend({
data() {
return {
stats: null
};
},
created() {
(this as any).api('stats').then(stats => {
this.stats = stats;
});
}
});
</script>