mirror of
https://github.com/alexhopeoconnor/dnsmasq-webui.git
synced 2026-10-03 22:12:00 +10:00
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.
28 lines
632 B
C#
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);
|