From f246699f38a28befbfccc11e9eade22cbaace4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 1 Apr 2023 14:04:48 +0900 Subject: [PATCH] refactor: restore `SatisfiesExpression` --- packages/frontend/src/components/MkChart.vue | 4 ++-- packages/frontend/src/pages/admin/overview.active-users.vue | 4 ++-- packages/frontend/src/pages/admin/overview.ap-requests.vue | 4 ++-- packages/frontend/src/pages/user/activity.following.vue | 2 +- packages/frontend/src/pages/user/activity.notes.vue | 2 +- packages/frontend/src/pages/user/activity.pv.vue | 2 +- packages/frontend/src/scripts/achievements.ts | 2 -- 7 files changed, 9 insertions(+), 11 deletions(-) diff --git a/packages/frontend/src/components/MkChart.vue b/packages/frontend/src/components/MkChart.vue index 06d5b9949..3865b2919 100644 --- a/packages/frontend/src/components/MkChart.vue +++ b/packages/frontend/src/components/MkChart.vue @@ -15,7 +15,7 @@ As this is part of Chart.js's API it makes sense to disable the check here. */ import { onMounted, ref, shallowRef, watch, PropType } from 'vue'; -import { Chart } from 'chart.js'; +import { Chart, type ChartDataset } from 'chart.js'; import gradient from 'chartjs-plugin-gradient'; import * as os from '@/os'; import { defaultStore } from '@/store'; @@ -165,7 +165,7 @@ const render = () => { fill: x.type === 'area', clip: 8, hidden: !!x.hidden, - })), + } satisfies ChartDataset)), }, options: { aspectRatio: props.aspectRatio || 2.5, diff --git a/packages/frontend/src/pages/admin/overview.active-users.vue b/packages/frontend/src/pages/admin/overview.active-users.vue index fc10ad75f..a76f2e073 100644 --- a/packages/frontend/src/pages/admin/overview.active-users.vue +++ b/packages/frontend/src/pages/admin/overview.active-users.vue @@ -9,7 +9,7 @@