From 586d3c4db719e0c36d4d22a1718715c20d439fe7 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 17 Feb 2020 02:27:14 +0900 Subject: [PATCH] Better instance page --- src/client/pages/instance/index.vue | 23 +++++++++++++ src/client/pages/instance/settings.vue | 47 ++------------------------ 2 files changed, 25 insertions(+), 45 deletions(-) diff --git a/src/client/pages/instance/index.vue b/src/client/pages/instance/index.vue index db8898233..afe9c6d15 100644 --- a/src/client/pages/instance/index.vue +++ b/src/client/pages/instance/index.vue @@ -51,6 +51,17 @@ + +
+
+
Misskeyv{{ version }}
+
+
+
Node.js{{ serverInfo.node }}
+
PostgreSQLv{{ serverInfo.psql }}
+
Redisv{{ serverInfo.redis }}
+
+
@@ -409,5 +420,17 @@ export default Vue.extend({ } } } + + > .info { + > .table { + > div { + display: flex; + + > * { + flex: 1; + } + } + } + } } diff --git a/src/client/pages/instance/settings.vue b/src/client/pages/instance/settings.vue index 914565298..93b9f665e 100644 --- a/src/client/pages/instance/settings.vue +++ b/src/client/pages/instance/settings.vue @@ -1,5 +1,5 @@ @@ -180,7 +164,7 @@ import MkTextarea from '../../components/ui/textarea.vue'; import MkSwitch from '../../components/ui/switch.vue'; import MkInfo from '../../components/ui/info.vue'; import MkUserSelect from '../../components/user-select.vue'; -import { version, url } from '../../config'; +import { url } from '../../config'; import i18n from '../../i18n'; import getAcct from '../../../misc/acct/render'; @@ -203,10 +187,7 @@ export default Vue.extend({ data() { return { - version, url, - stats: null, - serverInfo: null, proxyAccount: null, proxyAccountId: null, cacheRemoteFiles: false, @@ -291,14 +272,6 @@ export default Vue.extend({ this.proxyAccount = proxyAccount; }); } - - this.$root.api('admin/server-info').then(res => { - this.serverInfo = res; - }); - - this.$root.api('stats').then(res => { - this.stats = res; - }); }, mounted() { @@ -395,19 +368,3 @@ export default Vue.extend({ } }); - -