From 08e1db45a9f2dc29d2fe1bf8ff92c5e2ec546bfe Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Sat, 17 Apr 2021 11:29:44 +0900
Subject: [PATCH] Improve client

---
 src/client/pages/instance-info.vue | 9 +++++++++
 src/client/pages/user-ap-info.vue  | 3 +++
 2 files changed, 12 insertions(+)

diff --git a/src/client/pages/instance-info.vue b/src/client/pages/instance-info.vue
index 5c1210c4bd..326b30c7c9 100644
--- a/src/client/pages/instance-info.vue
+++ b/src/client/pages/instance-info.vue
@@ -86,10 +86,19 @@
 				<template #key>{{ $ts.registeredAt }}</template>
 				<template #value><MkTime mode="detail" :time="instance.caughtAt"/></template>
 			</FormKeyValueView>
+			<FormKeyValueView>
+				<template #key>{{ $ts.updatedAt }}</template>
+				<template #value><MkTime mode="detail" :time="instance.infoUpdatedAt"/></template>
+			</FormKeyValueView>
 		</FormGroup>
 		<FormObjectView tall :value="instance">
 			<span>Raw</span>
 		</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>
 </FormBase>
 </template>
diff --git a/src/client/pages/user-ap-info.vue b/src/client/pages/user-ap-info.vue
index 3f2920402f..7520540c2d 100644
--- a/src/client/pages/user-ap-info.vue
+++ b/src/client/pages/user-ap-info.vue
@@ -43,6 +43,9 @@
 			<FormObjectView tall :value="ap">
 				<span>Raw</span>
 			</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>
 			<FormKeyValueView v-else>
 				<template #key>{{ $ts.instanceInfo }}</template>