2018-08-25 12:28:05 +09:00
|
|
|
<template>
|
|
|
|
<div class="tcrwdhwpuxrwmcttxjcsehgpagpstqey">
|
2018-08-25 12:43:18 +09:00
|
|
|
<div v-if="stats" class="stats">
|
|
|
|
<div><b>%fa:user% {{ stats.originalUsersCount | number }}</b><span>%i18n:@original-users%</span></div>
|
|
|
|
<div><span>%fa:user% {{ stats.usersCount | number }}</span><span>%i18n:@all-users%</span></div>
|
2018-08-25 22:07:10 +09:00
|
|
|
<div><b>%fa:pencil-alt% {{ stats.originalNotesCount | number }}</b><span>%i18n:@original-notes%</span></div>
|
|
|
|
<div><span>%fa:pencil-alt% {{ stats.notesCount | number }}</span><span>%i18n:@all-notes%</span></div>
|
2018-08-25 12:43:18 +09:00
|
|
|
</div>
|
2018-08-25 12:28:05 +09:00
|
|
|
<div>
|
|
|
|
<x-charts/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from "vue";
|
|
|
|
import XCharts from "../../components/charts.vue";
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
|
|
|
XCharts
|
2018-08-25 12:43:18 +09:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
stats: null
|
|
|
|
};
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
(this as any).api('stats').then(stats => {
|
|
|
|
this.stats = stats;
|
|
|
|
});
|
|
|
|
},
|
2018-08-25 12:28:05 +09:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus">
|
|
|
|
@import '~const.styl'
|
|
|
|
|
|
|
|
.tcrwdhwpuxrwmcttxjcsehgpagpstqey
|
|
|
|
width 100%
|
2018-08-25 15:25:16 +09:00
|
|
|
padding 16px
|
2018-08-25 12:28:05 +09:00
|
|
|
|
2018-08-25 12:43:18 +09:00
|
|
|
> .stats
|
|
|
|
display flex
|
|
|
|
justify-content center
|
|
|
|
margin-bottom 16px
|
|
|
|
padding 32px
|
|
|
|
background #fff
|
|
|
|
box-shadow 0 2px 8px rgba(#000, 0.1)
|
|
|
|
|
|
|
|
> div
|
|
|
|
flex 1
|
|
|
|
text-align center
|
|
|
|
|
|
|
|
> *:first-child
|
|
|
|
display block
|
|
|
|
color $theme-color
|
|
|
|
|
|
|
|
> *:last-child
|
|
|
|
font-size 70%
|
|
|
|
|
2018-08-25 12:28:05 +09:00
|
|
|
> div
|
2018-08-30 03:56:04 +09:00
|
|
|
max-width 850px
|
2018-08-25 12:28:05 +09:00
|
|
|
</style>
|