diff --git a/src/client/pages/instance/federation.vue b/src/client/pages/instance/federation.vue index 77819235d..8c5cbe2ff 100644 --- a/src/client/pages/instance/federation.vue +++ b/src/client/pages/instance/federation.vue @@ -66,7 +66,7 @@ import MkButton from '../../components/ui/button.vue'; import MkInput from '../../components/ui/input.vue'; import MkSelect from '../../components/ui/select.vue'; import MkPagination from '../../components/ui/pagination.vue'; -import MkInstanceInfo from './federation.instance.vue'; +import MkInstanceInfo from './instance.vue'; export default Vue.extend({ metaInfo() { diff --git a/src/client/pages/instance/index.vue b/src/client/pages/instance/index.vue index 596d145cc..de0590781 100644 --- a/src/client/pages/instance/index.vue +++ b/src/client/pages/instance/index.vue @@ -90,12 +90,12 @@
- +
-
{{ job[0] }}
+
{{ job[1] | number }} jobs
@@ -173,6 +173,7 @@ import MkFolder from '../../components/ui/folder.vue'; import MkwFederation from '../../widgets/federation.vue'; import { version, url } from '../../config'; import XQueue from './index.queue-chart.vue'; +import MkInstanceInfo from './instance.vue'; const alpha = (hex, a) => { const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex)!; @@ -495,6 +496,18 @@ export default Vue.extend({ }, methods: { + async showInstanceInfo(q) { + let instance = q; + if (typeof q === 'string') { + instance = await this.$root.api('federation/show-instance', { + host: q + }); + } + this.$root.new(MkInstanceInfo, { + instance: instance + }); + }, + fetchLogs() { this.$root.api('admin/logs', { level: this.logLevel === 'all' ? null : this.logLevel, @@ -595,7 +608,7 @@ export default Vue.extend({ .vkyrmkwb { display: grid; grid-template-columns: 0.5fr 1fr 1fr; - grid-template-rows: 1fr; + grid-template-rows: 385px; gap: 16px 16px; } diff --git a/src/client/pages/instance/federation.instance.vue b/src/client/pages/instance/instance.vue similarity index 100% rename from src/client/pages/instance/federation.instance.vue rename to src/client/pages/instance/instance.vue