diff --git a/components/servers/Finder.vue b/components/servers/Finder.vue index 3c37e15a..9a8d43fb 100644 --- a/components/servers/Finder.vue +++ b/components/servers/Finder.vue @@ -149,7 +149,7 @@ import ListIco from 'bi/view-stacked.svg'; const { t, locale } = useI18n(); const route = useRoute(); const emits = defineEmits<{ - (e: 'load', value?: InstancesStatsObj): void; + (e: 'load', value?: InstancesStatsObj, updatedAt?: string): void; }>(); // ▼スマホ用ソート▼ @@ -215,7 +215,7 @@ if (data.value?.stats.usersCount) { notesCount: data.value.stats.notesCount, usersCount: data.value.stats.usersCount, instancesCount: data.value.stats.instancesCount, - }); + }, data.value.date); } watch(data, (to) => { @@ -224,7 +224,7 @@ watch(data, (to) => { notesCount: to.stats.notesCount, usersCount: to.stats.usersCount, instancesCount: to.stats.instancesCount, - }); + }, to.date); } }, { deep: true, diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index bbdb9d3a..8aafdb7f 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -14,6 +14,7 @@ settings: "設定" goToLegacyHub: "従来のMisskey Hub" contactUs: "お問い合わせ" detail: "詳細" +lastUpdate: "最終更新" _error: notFound: "ページが見つかりませんでした" diff --git a/locales/ja-KS.yml b/locales/ja-KS.yml index c29c0992..5df14ce7 100644 --- a/locales/ja-KS.yml +++ b/locales/ja-KS.yml @@ -13,6 +13,7 @@ browse: "参照" settings: "設定" goToLegacyHub: "前のMisskey Hub" contactUs: "お問い合わせ" +lastUpdate: "最終更新" _error: notFound: "ページ食べた" diff --git a/pages/servers/index.vue b/pages/servers/index.vue index f85603fd..23071976 100644 --- a/pages/servers/index.vue +++ b/pages/servers/index.vue @@ -7,6 +7,9 @@ {{ $t('_servers.addYourServerLink') }} +
+ {{ $t('lastUpdate') }}: {{ updatedAt ? $d(updatedAt) : $t('loading') }} +