refactor!: replace Tantivy search engine with DuckDB

This commit is contained in:
rustmailer
2026-03-03 12:30:26 +08:00
parent ef4ab3496e
commit d2936ed4a7
52 changed files with 3594 additions and 1821 deletions
+3
View File
@@ -29,6 +29,7 @@ import { get_dashboard_stats, TimeBucket } from '@/api/system/api';
import { Main } from '@/components/layout/main';
import { FixedHeader } from '@/components/layout/fixed-header';
import { useTranslation } from 'react-i18next';
import { getToken } from '@/stores/authStore';
interface DailyActivity {
date: string;
@@ -102,8 +103,10 @@ const EmptyTable = ({ title }: { title: string }) => (
);
export default function MailArchiveDashboard() {
const token = getToken();
const { data: stats, isLoading } = useQuery({
queryKey: ['dashboard-stats'],
enabled: !!token,
queryFn: get_dashboard_stats,
});