From b049633db7bc39b3fc75f30990d0e8d17f077ec5 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 25 May 2022 09:43:12 +0200 Subject: [PATCH] Refactor widgets and fix lint issues (#8719) * fix(client): refactor widgets and fix lint issues * Apply review suggestions from @Johann150 Co-authored-by: Johann150 Co-authored-by: Johann150 --- .../client/src/widgets/activity.calendar.vue | 62 ++++----- .../client/src/widgets/activity.chart.vue | 89 +++++------- packages/client/src/widgets/activity.vue | 6 +- packages/client/src/widgets/aichan.vue | 2 +- packages/client/src/widgets/aiscript.vue | 8 +- packages/client/src/widgets/button.vue | 8 +- packages/client/src/widgets/calendar.vue | 2 +- packages/client/src/widgets/clock.vue | 2 +- packages/client/src/widgets/digital-clock.vue | 2 +- packages/client/src/widgets/federation.vue | 2 +- packages/client/src/widgets/job-queue.vue | 2 +- packages/client/src/widgets/memo.vue | 2 +- packages/client/src/widgets/notifications.vue | 2 +- packages/client/src/widgets/online-users.vue | 2 +- packages/client/src/widgets/photos.vue | 2 +- packages/client/src/widgets/post-form.vue | 2 +- packages/client/src/widgets/rss.vue | 2 +- .../src/widgets/server-metric/cpu-mem.vue | 129 +++++++++--------- .../client/src/widgets/server-metric/cpu.vue | 49 +++---- .../src/widgets/server-metric/index.vue | 4 +- .../client/src/widgets/server-metric/mem.vue | 62 ++++----- .../client/src/widgets/server-metric/net.vue | 128 ++++++++--------- packages/client/src/widgets/slideshow.vue | 4 +- packages/client/src/widgets/timeline.vue | 2 +- packages/client/src/widgets/trends.vue | 2 +- packages/client/src/widgets/widget.ts | 2 +- 26 files changed, 261 insertions(+), 318 deletions(-) diff --git a/packages/client/src/widgets/activity.calendar.vue b/packages/client/src/widgets/activity.calendar.vue index b833bd65ca..2388edefc6 100644 --- a/packages/client/src/widgets/activity.calendar.vue +++ b/packages/client/src/widgets/activity.calendar.vue @@ -23,45 +23,41 @@ - diff --git a/packages/client/src/widgets/activity.chart.vue b/packages/client/src/widgets/activity.chart.vue index 9702d66663..b7db2af580 100644 --- a/packages/client/src/widgets/activity.chart.vue +++ b/packages/client/src/widgets/activity.chart.vue @@ -24,9 +24,19 @@ -