alex
|
888bc980cf
|
Effective config with source tracking, Dnsmasq page, and test harness
- Effective config: track value sources (ConfigValueSource, EffectiveConfigSources)
and show readonly badges/tooltips for non-managed files. Multi-value options
use ValueWithSource/PathWithSource for JSON. StatusClient uses camelCase
serialization for reliable deserialization.
- Parsing: align with dnsmasq (conf-file/conf-dir order, suffix filter, case-
sensitive keys). DnsmasqConfIncludeParser and DnsmasqConfigSetService build
effective config and sources. New DnsmasqConfigSetServiceTests.
- UI: rename Overview/Home to Dnsmasq (page, nav, doc comments). Add
EffectiveConfigOptionItem and EffectiveConfigMultiValueRow components.
Dnsmasq.razor uses them; Hosts.razor shows addn-hosts with source. Encode
server-derived strings in markup to avoid XSS.
- Home section namespace: Components.Home -> Components.Dnsmasq (LogsSection,
StatusSection, _Imports).
- Test data: expand testdata (README, resolv.dnsmasq, hosts.extra, dnsmasq.d
configs). dhcp.conf static IP aligned with testnet.
- agents.md: add agent instructions for test harness and conventions.
|
2026-02-02 12:12:01 +10:00 |
|
alex
|
e99b2d0453
|
Initial commit: dnsmasq web UI
- ASP.NET Core 9 Blazor Web App + Web API
- Hosts file management (read/write, hosts(5) format)
- DHCP static hosts (dhcp-host=, dnsmasq config)
- DHCP leases (read-only, dnsmasq lease file format)
- Reload and status commands (configurable)
- Docker: standalone app image + Dockerfile.dnsmasq (app + dnsmasq)
- docker-compose.test.yml: app + dhcp-client, testdata mount
- Unit tests (Hosts, DhcpHost, Leases, DnsmasqConfig parsers) using testdata
|
2026-01-31 03:06:46 +10:00 |
|