From dd1aa8c7d6ec003fcf187c1fc8e6c56f60723414 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 12 Aug 2017 15:17:03 +0900 Subject: stats --- src/web/app/common/scripts/config.js | 2 + src/web/app/desktop/tags/home-widgets/nav.tag | 2 +- src/web/app/stats/script.js | 23 +++ src/web/app/stats/style.styl | 9 ++ src/web/app/stats/tags/index.js | 1 + src/web/app/stats/tags/index.tag | 202 ++++++++++++++++++++++++++ src/web/app/status/tags/index.tag | 1 - 7 files changed, 238 insertions(+), 2 deletions(-) create mode 100644 src/web/app/stats/script.js create mode 100644 src/web/app/stats/style.styl create mode 100644 src/web/app/stats/tags/index.js create mode 100644 src/web/app/stats/tags/index.tag (limited to 'src/web') diff --git a/src/web/app/common/scripts/config.js b/src/web/app/common/scripts/config.js index d108b834bb..75a7abba29 100644 --- a/src/web/app/common/scripts/config.js +++ b/src/web/app/common/scripts/config.js @@ -8,6 +8,7 @@ const url = `${scheme}//${host}`; const apiUrl = `${scheme}//api.${host}`; const devUrl = `${scheme}//dev.${host}`; const aboutUrl = `${scheme}//about.${host}`; +const statsUrl = `${scheme}//stats.${host}`; const statusUrl = `${scheme}//status.${host}`; export default { @@ -17,5 +18,6 @@ export default { apiUrl, devUrl, aboutUrl, + statsUrl, statusUrl }; diff --git a/src/web/app/desktop/tags/home-widgets/nav.tag b/src/web/app/desktop/tags/home-widgets/nav.tag index 16a93545a4..499d66014b 100644 --- a/src/web/app/desktop/tags/home-widgets/nav.tag +++ b/src/web/app/desktop/tags/home-widgets/nav.tag @@ -1,4 +1,4 @@ -MisskeyについてステータスWikiリポジトリ開発者Follow us on +Misskeyについて統計ステータスWikiリポジトリ開発者Follow us on + + + + +

%i18n:stats.posts-count% { stats.posts_count }

+ + + +
+ + +

%i18n:stats.users-count% { stats.users_count }

+ + + +
+ + + + Black ... Total
Blue ... Posts
Red ... Replies
Green ... Reposts
+ + + + +
+ + +
+ + + + + + + + diff --git a/src/web/app/status/tags/index.tag b/src/web/app/status/tags/index.tag index 121f673d4d..07b9921abb 100644 --- a/src/web/app/status/tags/index.tag +++ b/src/web/app/status/tags/index.tag @@ -56,7 +56,6 @@ this.mixin('api'); this.initializing = true; - this.view = 0; this.connection = new Connection(); this.on('mount', () => { -- cgit v1.2.3-freya