Relocate misplaced frontend files

This commit is contained in:
2026-04-19 18:36:55 +02:00
parent d44a667592
commit e7582c4bae
23 changed files with 92 additions and 40 deletions

View File

@@ -32,6 +32,7 @@ import {
import { DashboardFilterBar } from "../components/DashboardFilterBar";
import { useHistory } from "../hooks/useHistory";
import { IpDetailView } from "./history/IpDetailView";
import { areHistoryQueriesEqual } from "../utils/queryUtils";
import type { HistoryBanItem, HistoryQuery, TimeRange } from "../types/history";
import type { BanOriginFilter } from "../types/ban";
@@ -119,25 +120,6 @@ const useStyles = makeStyles({
},
});
// ---------------------------------------------------------------------------
// Utilities
// ---------------------------------------------------------------------------
function areHistoryQueriesEqual(
a: HistoryQuery,
b: HistoryQuery,
): boolean {
return (
a.range === b.range &&
a.origin === b.origin &&
a.jail === b.jail &&
a.ip === b.ip &&
a.source === b.source &&
a.page === b.page &&
a.page_size === b.page_size
);
}
// ---------------------------------------------------------------------------
// Column definitions for the main history table
// ---------------------------------------------------------------------------