Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

632 B
Raw Blame
<script lang="ts">
import AnalyticsPage from '$lib/components/AnalyticsPage.svelte';
import type { PageProps } from './$types';

let { data }: PageProps = $props();
let links = {
	All: '/admin/ext-site-problems/all',
	'Last 30 Days': '/admin/ext-site-problems/last30days',
	'Last week': '/admin/ext-site-problems/lastweek',
	'Last Day': '/admin/ext-site-problems/lastday',
};
</script>

<AnalyticsPage data={data.counts} prevPeriodData={data.prevCounts} title="Domains with the most reported problems." {links} keyLabel="Domain" keyLinkGenerator={(key) => `/admin/ext-site-problems/${data.timePeriod}/${encodeURIComponent(key)}`}/>