From 246693b8484b72048cb515b76aa5f094f5fdeb56 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 22 Apr 2021 22:29:33 +0900 Subject: インスタンス管理画面作り直し (#7473) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * wip * wip * wip * wip --- src/client/components/instance-stats.vue | 252 +++++-------------------------- 1 file changed, 35 insertions(+), 217 deletions(-) (limited to 'src/client/components/instance-stats.vue') diff --git a/src/client/components/instance-stats.vue b/src/client/components/instance-stats.vue index aa01f1c806..432c9a1bb9 100644 --- a/src/client/components/instance-stats.vue +++ b/src/client/components/instance-stats.vue @@ -1,123 +1,35 @@ @@ -158,7 +70,6 @@ export default defineComponent({ data() { return { - info: null, notesLocalWoW: 0, notesLocalDoD: 0, notesRemoteWoW: 0, @@ -216,8 +127,6 @@ export default defineComponent({ }, async created() { - this.info = await os.api('stats'); - this.now = new Date(); this.fetchChart(); @@ -256,15 +165,6 @@ export default defineComponent({ } }; - this.notesLocalWoW = this.info.originalNotesCount - chart.perDay.notes.local.total[7]; - this.notesLocalDoD = this.info.originalNotesCount - chart.perDay.notes.local.total[1]; - this.notesRemoteWoW = (this.info.notesCount - this.info.originalNotesCount) - chart.perDay.notes.remote.total[7]; - this.notesRemoteDoD = (this.info.notesCount - this.info.originalNotesCount) - chart.perDay.notes.remote.total[1]; - this.usersLocalWoW = this.info.originalUsersCount - chart.perDay.users.local.total[7]; - this.usersLocalDoD = this.info.originalUsersCount - chart.perDay.users.local.total[1]; - this.usersRemoteWoW = (this.info.usersCount - this.info.originalUsersCount) - chart.perDay.users.remote.total[7]; - this.usersRemoteDoD = (this.info.usersCount - this.info.originalUsersCount) - chart.perDay.users.remote.total[1]; - this.chart = chart; this.renderChart(); @@ -300,10 +200,10 @@ export default defineComponent({ aspectRatio: 2.5, layout: { padding: { - left: 0, - right: 0, + left: 16, + right: 16, top: 16, - bottom: 0 + bottom: 8 } }, legend: { @@ -630,90 +530,8 @@ export default defineComponent({ -- cgit v1.2.3-freya