summaryrefslogtreecommitdiff
path: root/src/client/pages
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/pages')
-rw-r--r--src/client/pages/instance-info.vue28
-rw-r--r--src/client/pages/user-ap-info.vue2
-rw-r--r--src/client/pages/user-info.vue7
3 files changed, 36 insertions, 1 deletions
diff --git a/src/client/pages/instance-info.vue b/src/client/pages/instance-info.vue
index 326b30c7c9..a3cd402993 100644
--- a/src/client/pages/instance-info.vue
+++ b/src/client/pages/instance-info.vue
@@ -14,6 +14,10 @@
</FormKeyValueView>
</FormGroup>
+ <FormTextarea readonly :value="instance.description">
+ <span>{{ $ts.description }}</span>
+ </FormTextarea>
+
<FormGroup>
<FormKeyValueView>
<template #key>{{ $ts.software }}</template>
@@ -99,6 +103,27 @@
<FormLink :to="`https://${host}/.well-known/host-meta.json`" external>host-meta.json</FormLink>
<FormLink :to="`https://${host}/.well-known/nodeinfo`" external>nodeinfo</FormLink>
</FormGroup>
+ <FormSuspense :p="dnsPromiseFactory" v-slot="{ result: dns }">
+ <FormGroup>
+ <template #label>DNS</template>
+ <FormKeyValueView v-for="record in dns.a" :key="record">
+ <template #key>A</template>
+ <template #value><span class="_monospace">{{ record }}</span></template>
+ </FormKeyValueView>
+ <FormKeyValueView v-for="record in dns.aaaa" :key="record">
+ <template #key>AAAA</template>
+ <template #value><span class="_monospace">{{ record }}</span></template>
+ </FormKeyValueView>
+ <FormKeyValueView v-for="record in dns.cname" :key="record">
+ <template #key>CNAME</template>
+ <template #value><span class="_monospace">{{ record }}</span></template>
+ </FormKeyValueView>
+ <FormKeyValueView v-for="record in dns.txt">
+ <template #key>TXT</template>
+ <template #value><span class="_monospace">{{ record[0] }}</span></template>
+ </FormKeyValueView>
+ </FormGroup>
+ </FormSuspense>
</FormGroup>
</FormBase>
</template>
@@ -167,6 +192,9 @@ export default defineComponent({
}],
},
instance: null,
+ dnsPromiseFactory: () => os.api('federation/dns', {
+ host: this.host
+ }),
now: null,
canvas: null,
chart: null,
diff --git a/src/client/pages/user-ap-info.vue b/src/client/pages/user-ap-info.vue
index 7520540c2d..648ecdb10a 100644
--- a/src/client/pages/user-ap-info.vue
+++ b/src/client/pages/user-ap-info.vue
@@ -22,7 +22,7 @@
</FormKeyValueView>
<FormKeyValueView>
<template #key>Shared Inbox</template>
- <template #value><span class="_monospace">{{ ap.sharedInbox }}</span></template>
+ <template #value><span class="_monospace">{{ ap.sharedInbox || ap.endpoints.sharedInbox }}</span></template>
</FormKeyValueView>
<FormKeyValueView>
<template #key>Outbox</template>
diff --git a/src/client/pages/user-info.vue b/src/client/pages/user-info.vue
index 1d714cac33..06f2e4270d 100644
--- a/src/client/pages/user-info.vue
+++ b/src/client/pages/user-info.vue
@@ -18,6 +18,13 @@
</FormKeyValueView>
</FormGroup>
+ <FormGroup>
+ <FormKeyValueView>
+ <template #key>{{ $ts.updatedAt }}</template>
+ <template #value><MkTime v-if="user.lastFetchedAt" mode="detail" :time="user.lastFetchedAt"/><span v-else>N/A</span></template>
+ </FormKeyValueView>
+ </FormGroup>
+
<FormObjectView tall :value="user">
<span>Raw</span>
</FormObjectView>