diff --git a/components/charts/CircGraph.vue b/components/charts/CircGraph.vue new file mode 100644 index 00000000..13059344 --- /dev/null +++ b/components/charts/CircGraph.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/components/servers/StatsViewer.vue b/components/servers/StatsViewer.vue new file mode 100644 index 00000000..84da1650 --- /dev/null +++ b/components/servers/StatsViewer.vue @@ -0,0 +1,227 @@ + + + + + \ No newline at end of file diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 38d4582c..984ea675 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -5,6 +5,7 @@ clickToExpand: "(クリックして展開)" copy: "コピー" share: "共有する" note: "ノート" +other: "その他" _error: notFound: "ページが見つかりませんでした" @@ -102,6 +103,12 @@ _servers: _system: fetchError: "データの読み込みに失敗しました。後でもう一度お試しください。" _statistics: + title: "サーバー統計" + description: "Misskeyサーバーの統計データをグラフでご紹介。" + viewFullStats: "詳しい統計を見る" + lang: "プライマリ言語" + registerAcceptance: "新規登録受付方式" + version: "バージョン" notes: "ノート数" users: "ユーザー数" servers: "サーバー数" diff --git a/pages/servers.vue b/pages/servers/index.vue similarity index 86% rename from pages/servers.vue rename to pages/servers/index.vue index a5e8765d..e64819fa 100644 --- a/pages/servers.vue +++ b/pages/servers/index.vue @@ -12,7 +12,7 @@
-
+
{{ $t('_servers._statistics.notes') }}
{{ instancesStats?.notesCount?.toLocaleString() || $t('loading') }}
@@ -25,6 +25,9 @@
{{ $t('_servers._statistics.servers') }}
{{ instancesStats?.instancesCount?.toLocaleString() || $t('loading') }}
+
+ {{ $t('_servers._statistics.viewFullStats') }} +
@@ -45,8 +48,10 @@ + + \ No newline at end of file diff --git a/public/img/emojis/chart_increasing_3d.png b/public/img/emojis/chart_increasing_3d.png new file mode 100644 index 00000000..3b5c1c26 Binary files /dev/null and b/public/img/emojis/chart_increasing_3d.png differ diff --git a/tailwind.config.ts b/tailwind.config.ts index ea84e679..e9f709a0 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -38,6 +38,7 @@ export default { }, }, fontFamily: { + ...defaultTheme.fontFamily, 'title': ['Capriola', 'var(--mi-localized-font, \'\')', ...defaultTheme.fontFamily.sans], 'sans': ['Nunito', 'var(--mi-localized-font, \'\')', ...defaultTheme.fontFamily.sans], 'content-sans': ['Nunito', 'var(--mi-localized-font-p, var(--mi-localized-font))', ...defaultTheme.fontFamily.sans],