mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-21 00:11:27 -07:00
Add navigation state machine for tab/detail routing, anime overview stats with Yomitan lookup rates, session word count accuracy fixes, vocabulary tab hook order fix, simplified trends data fetching from backend-aggregated endpoints, and improved session detail charts.
20 lines
706 B
TypeScript
20 lines
706 B
TypeScript
export function confirmSessionDelete(): boolean {
|
|
return globalThis.confirm('Delete this session and all associated data?');
|
|
}
|
|
|
|
export function confirmDayGroupDelete(dayLabel: string, count: number): boolean {
|
|
return globalThis.confirm(
|
|
`Delete all ${count} session${count === 1 ? '' : 's'} from ${dayLabel} and all associated data?`,
|
|
);
|
|
}
|
|
|
|
export function confirmAnimeGroupDelete(title: string, count: number): boolean {
|
|
return globalThis.confirm(
|
|
`Delete all ${count} session${count === 1 ? '' : 's'} for "${title}" and all associated data?`,
|
|
);
|
|
}
|
|
|
|
export function confirmEpisodeDelete(title: string): boolean {
|
|
return globalThis.confirm(`Delete "${title}" and all its sessions?`);
|
|
}
|