Files
dnsmasq-webui/src/DnsmasqWebUI/Models/Hosts/HostsPageUi.cs
T
alex c7e7844ce7 Update hosts workflow and align DHCP metadata.
Redesign the Hosts page around source-aware grouped rows with shared table shell styling, fix effective-config save session synchronization, and move read-ethers into the DHCP model where dnsmasq actually applies it.
2026-03-26 00:24:21 +10:00

28 lines
632 B
C#

namespace DnsmasqWebUI.Models.Hosts;
/// <summary>How rows are grouped on the Hosts page.</summary>
public enum HostsGroupingMode
{
Source,
Activity
}
/// <summary>Sort key for rows within each group.</summary>
public enum HostsSortMode
{
Address,
Name,
EffectiveName,
LineNumber
}
/// <summary>Filter and sort state for <see cref="IHostsPageProjectionService"/>.</summary>
public sealed record HostsPageQueryState(
string Search,
HostsGroupingMode Grouping,
HostsSortMode Sort,
bool Descending,
HostsRowSourceKind? SourceKindFilter,
bool? EditableFilter,
bool? ActiveFilter);