From ea57f265ad9222bafa9ea29bf229209775472d5e Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 18 Feb 2020 19:31:11 +0900 Subject: [PATCH] Add activity widget --- locales/ja-JP.yml | 1 + src/client/app.vue | 3 +- src/client/widgets/activity.calendar.vue | 84 ++++++++++++++++++ src/client/widgets/activity.chart.vue | 108 +++++++++++++++++++++++ src/client/widgets/activity.vue | 80 +++++++++++++++++ src/client/widgets/index.ts | 1 + 6 files changed, 276 insertions(+), 1 deletion(-) create mode 100644 src/client/widgets/activity.calendar.vue create mode 100644 src/client/widgets/activity.chart.vue create mode 100644 src/client/widgets/activity.vue diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 1d8b09b1c..f1271c809 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -526,6 +526,7 @@ _widgets: trends: "トレンド" clock: "時計" rss: "RSSリーダー" + activity: "アクティビティ" _cw: hide: "隠す" diff --git a/src/client/app.vue b/src/client/app.vue index a23b6e128..e88979f00 100644 --- a/src/client/app.vue +++ b/src/client/app.vue @@ -606,7 +606,8 @@ export default Vue.extend({ 'calendar', 'rss', 'trends', - 'clock' + 'clock', + 'activity', ]; this.$root.menu({ diff --git a/src/client/widgets/activity.calendar.vue b/src/client/widgets/activity.calendar.vue new file mode 100644 index 000000000..dfc0d29d3 --- /dev/null +++ b/src/client/widgets/activity.calendar.vue @@ -0,0 +1,84 @@ + + + + + diff --git a/src/client/widgets/activity.chart.vue b/src/client/widgets/activity.chart.vue new file mode 100644 index 000000000..0278e02ae --- /dev/null +++ b/src/client/widgets/activity.chart.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/src/client/widgets/activity.vue b/src/client/widgets/activity.vue new file mode 100644 index 000000000..5f18c17d4 --- /dev/null +++ b/src/client/widgets/activity.vue @@ -0,0 +1,80 @@ + + + diff --git a/src/client/widgets/index.ts b/src/client/widgets/index.ts index d6af41e2f..9f8bbc888 100644 --- a/src/client/widgets/index.ts +++ b/src/client/widgets/index.ts @@ -7,3 +7,4 @@ Vue.component('mkw-calendar', () => import('./calendar.vue').then(m => m.default Vue.component('mkw-rss', () => import('./rss.vue').then(m => m.default)); Vue.component('mkw-trends', () => import('./trends.vue').then(m => m.default)); Vue.component('mkw-clock', () => import('./clock.vue').then(m => m.default)); +Vue.component('mkw-activity', () => import('./activity.vue').then(m => m.default));