mirror of
https://github.com/MeshCore-Beacon/beacon-web.git
synced 2026-10-19 19:49:53 +00:00
15 lines
774 B
TypeScript
15 lines
774 B
TypeScript
import type { ObserverSummary } from "../../src/features/observers/types";
|
|
|
|
export const directoryRow = (id: string, count: number | null = 100) => ({
|
|
id, displayName: `Receiver ${id}`, iata: "YOW", status: "online" as const, observationCount: count,
|
|
});
|
|
export function directoryPage(items: (ObserverSummary & { observationCount: number | null })[], extra = {}) {
|
|
return {
|
|
items, hasMore: false, generatedAt: 1791162000000,
|
|
windowStart: 1790557200000, windowEnd: 1791162000000,
|
|
sort: "traffic" as const, effectiveSort: "traffic" as const,
|
|
coverage: { status: "complete" as const, expectedHours: 168, completeHours: 168, partialHours: 0, missingHours: 0 },
|
|
maxObservationCount: 1000, observerTypes: ["meshcoretomqtt", "RemoteTerm"], ...extra,
|
|
};
|
|
}
|