From 4bcefb5b05518126e82b9fd35b46fff286125eb0 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Fri, 14 Jul 2023 00:25:30 +0900 Subject: [PATCH] (fix) build error: move server list to client cps --- components/servers/Finder.vue | 217 ++++++++++++++++++++++++++++++++++ locales/ja-JP.yml | 1 + pages/servers.vue | 191 +++--------------------------- 3 files changed, 233 insertions(+), 176 deletions(-) create mode 100644 components/servers/Finder.vue diff --git a/components/servers/Finder.vue b/components/servers/Finder.vue new file mode 100644 index 00000000..0f3db66e --- /dev/null +++ b/components/servers/Finder.vue @@ -0,0 +1,217 @@ + + + + + \ No newline at end of file diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 90960259..ba3db396 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1,5 +1,6 @@ noScript: "現在Javascriptが無効になっています。サイトの表示にはJavascriptが必須となりますので有効にしてください。" learnMore: "詳しく知る" +loading: "読み込み中…" _seo: siteName: "Misskey Hub" defaultTitleTagline: "ノートでひろがるネットワーク" diff --git a/pages/servers.vue b/pages/servers.vue index d7008520..dd18ccb5 100644 --- a/pages/servers.vue +++ b/pages/servers.vue @@ -15,207 +15,46 @@
{{ $t('_servers._statistics.notes') }}
-
{{ data?.stats.notesCount.toLocaleString() }}
+
{{ instancesStats?.notesCount?.toLocaleString() || $t('loading') }}
{{ $t('_servers._statistics.users') }}
-
{{ data?.stats.usersCount.toLocaleString() }}
+
{{ instancesStats?.usersCount?.toLocaleString() || $t('loading') }}
{{ $t('_servers._statistics.servers') }}
-
{{ data?.stats.instancesCount.toLocaleString() }}
+
{{ instancesStats?.instancesCount?.toLocaleString() || $t('loading') }}
-
- -
-
- -
-
- -

{{ $t('_servers._list.notFound') }}

-
-
- -
-
-
+ + +