From b91d831e820813a8ed5afd05f8402957b5bc50c5 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: Mon, 3 Apr 2023 20:55:24 +0900 Subject: [PATCH] style: note about `TSSatisfiesExpression` --- packages/frontend/src/pages/user/activity.following.vue | 3 +++ packages/frontend/src/pages/user/activity.heatmap.vue | 3 +++ packages/frontend/src/pages/user/activity.notes.vue | 3 +++ packages/frontend/src/pages/user/activity.pv.vue | 3 +++ packages/frontend/src/scripts/achievements.ts | 5 +++-- 5 files changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/pages/user/activity.following.vue b/packages/frontend/src/pages/user/activity.following.vue index 25a1edaca9..1c7c991aac 100644 --- a/packages/frontend/src/pages/user/activity.following.vue +++ b/packages/frontend/src/pages/user/activity.following.vue @@ -77,6 +77,9 @@ async function renderChart() { barPercentage: 0.7, categoryPercentage: 0.7, fill: true, + /* @see + } satisfies ChartData, extra); + */ }, extra); } diff --git a/packages/frontend/src/pages/user/activity.heatmap.vue b/packages/frontend/src/pages/user/activity.heatmap.vue index 2dcb754c9b..ada0166eda 100644 --- a/packages/frontend/src/pages/user/activity.heatmap.vue +++ b/packages/frontend/src/pages/user/activity.heatmap.vue @@ -113,6 +113,9 @@ async function renderChart() { const a = c.chart.chartArea ?? {}; return (a.bottom - a.top) / 7 - marginEachCell; }, + /* @see + }] satisfies ChartData[], + */ }], }, options: { diff --git a/packages/frontend/src/pages/user/activity.notes.vue b/packages/frontend/src/pages/user/activity.notes.vue index 63e1c76e03..8a946aebac 100644 --- a/packages/frontend/src/pages/user/activity.notes.vue +++ b/packages/frontend/src/pages/user/activity.notes.vue @@ -76,6 +76,9 @@ async function renderChart() { borderRadius: 4, barPercentage: 0.9, fill: true, + /* @see + } satisfies ChartData, extra); + */ }, extra); } diff --git a/packages/frontend/src/pages/user/activity.pv.vue b/packages/frontend/src/pages/user/activity.pv.vue index 1be495f410..0e9c581e1e 100644 --- a/packages/frontend/src/pages/user/activity.pv.vue +++ b/packages/frontend/src/pages/user/activity.pv.vue @@ -77,6 +77,9 @@ async function renderChart() { barPercentage: 0.7, categoryPercentage: 0.7, fill: true, + /* @see + } satisfies ChartData, extra); + */ }, extra); } diff --git a/packages/frontend/src/scripts/achievements.ts b/packages/frontend/src/scripts/achievements.ts index c93e968594..25e8b71a12 100644 --- a/packages/frontend/src/scripts/achievements.ts +++ b/packages/frontend/src/scripts/achievements.ts @@ -443,13 +443,14 @@ export const ACHIEVEMENT_BADGES = { bg: 'linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))', frame: 'bronze', }, -/* +/* @see } as const satisfies Record; - */ } as const; + */ +} as const; export const claimedAchievements: typeof ACHIEVEMENT_TYPES[number][] = ($i && $i.achievements) ? $i.achievements.map(x => x.name) : [];