Improve client

This commit is contained in:
syuilo 2021-04-17 11:29:44 +09:00
parent 27c373ddf4
commit 08e1db45a9
2 changed files with 12 additions and 0 deletions

View File

@ -86,10 +86,19 @@
<template #key>{{ $ts.registeredAt }}</template> <template #key>{{ $ts.registeredAt }}</template>
<template #value><MkTime mode="detail" :time="instance.caughtAt"/></template> <template #value><MkTime mode="detail" :time="instance.caughtAt"/></template>
</FormKeyValueView> </FormKeyValueView>
<FormKeyValueView>
<template #key>{{ $ts.updatedAt }}</template>
<template #value><MkTime mode="detail" :time="instance.infoUpdatedAt"/></template>
</FormKeyValueView>
</FormGroup> </FormGroup>
<FormObjectView tall :value="instance"> <FormObjectView tall :value="instance">
<span>Raw</span> <span>Raw</span>
</FormObjectView> </FormObjectView>
<FormGroup>
<FormLink :to="`https://${host}/.well-known/host-meta`" external>host-meta</FormLink>
<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>
</FormGroup> </FormGroup>
</FormBase> </FormBase>
</template> </template>

View File

@ -43,6 +43,9 @@
<FormObjectView tall :value="ap"> <FormObjectView tall :value="ap">
<span>Raw</span> <span>Raw</span>
</FormObjectView> </FormObjectView>
<FormGroup>
<FormLink :to="`https://${user.host}/.well-known/webfinger?resource=acct:${user.username}`" external>WebFinger</FormLink>
</FormGroup>
<FormLink v-if="user.host" :to="`/instance-info/${user.host}`">{{ $ts.instanceInfo }}<template #suffix>{{ user.host }}</template></FormLink> <FormLink v-if="user.host" :to="`/instance-info/${user.host}`">{{ $ts.instanceInfo }}<template #suffix>{{ user.host }}</template></FormLink>
<FormKeyValueView v-else> <FormKeyValueView v-else>
<template #key>{{ $ts.instanceInfo }}</template> <template #key>{{ $ts.instanceInfo }}</template>