Skip to content

Commit

Permalink
style: note about TSSatisfiesExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed Apr 3, 2023
1 parent 14591aa commit b91d831
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/frontend/src/pages/user/activity.following.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ async function renderChart() {
barPercentage: 0.7,
categoryPercentage: 0.7,
fill: true,
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
} satisfies ChartData, extra);
*/
}, extra);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/frontend/src/pages/user/activity.heatmap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ async function renderChart() {
const a = c.chart.chartArea ?? {};
return (a.bottom - a.top) / 7 - marginEachCell;
},
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
}] satisfies ChartData[],
*/
}],
},
options: {
Expand Down
3 changes: 3 additions & 0 deletions packages/frontend/src/pages/user/activity.notes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ async function renderChart() {
borderRadius: 4,
barPercentage: 0.9,
fill: true,
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
} satisfies ChartData, extra);
*/
}, extra);
}
Expand Down
3 changes: 3 additions & 0 deletions packages/frontend/src/pages/user/activity.pv.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ async function renderChart() {
barPercentage: 0.7,
categoryPercentage: 0.7,
fill: true,
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
} satisfies ChartData, extra);
*/
}, extra);
}
Expand Down
5 changes: 3 additions & 2 deletions packages/frontend/src/scripts/achievements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,14 @@ export const ACHIEVEMENT_BADGES = {
bg: 'linear-gradient(0deg, rgb(144, 224, 255), rgb(255, 168, 252))',
frame: 'bronze',
},
/*
/* @see <https://github.com/misskey-dev/misskey/pull/10365#discussion_r1155511107>
} as const satisfies Record<typeof ACHIEVEMENT_TYPES[number], {
img: string;
bg: string | null;
frame: 'bronze' | 'silver' | 'gold' | 'platinum';
}>;
*/ } as const;
*/
} as const;

export const claimedAchievements: typeof ACHIEVEMENT_TYPES[number][] = ($i && $i.achievements) ? $i.achievements.map(x => x.name) : [];

Expand Down

0 comments on commit b91d831

Please sign in to comment.