diff --git a/src/client/pages/instance/index.vue b/src/client/pages/instance/index.vue index db88982330..afe9c6d15c 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 914565298a..93b9f665e6 100644 --- a/src/client/pages/instance/settings.vue +++ b/src/client/pages/instance/settings.vue @@ -1,5 +1,5 @@ - + {{ $t('settings') }} @@ -150,22 +150,6 @@ {{ $t('save') }} - - - {{ $t('instanceInfo') }} - - {{ $t('users') }}{{ stats.originalUsersCount | number }} - {{ $t('notes') }}{{ stats.originalNotesCount | number }} - - - Misskeyv{{ version }} - - - Node.js{{ serverInfo.node }} - PostgreSQLv{{ serverInfo.psql }} - Redisv{{ serverInfo.redis }} - - @@ -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({ } }); - -