From f829585518edd5f4fcd63e7f3d73dd9980b0fea2 Mon Sep 17 00:00:00 2001 From: pommee Date: Sat, 27 Sep 2025 23:26:24 +0200 Subject: [PATCH] ui: clean up resolution widgets --- client/src/pages/resolution.tsx | 220 ++++++++++++++++---------------- 1 file changed, 108 insertions(+), 112 deletions(-) diff --git a/client/src/pages/resolution.tsx b/client/src/pages/resolution.tsx index 6176e1b..9b8b746 100644 --- a/client/src/pages/resolution.tsx +++ b/client/src/pages/resolution.tsx @@ -7,7 +7,6 @@ import { CardTitle } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; -import { Label } from "@/components/ui/label"; import { Skeleton } from "@/components/ui/skeleton"; import { DeleteRequest, GetRequest, PostRequest } from "@/util"; import { @@ -135,122 +134,119 @@ export function Resolution() { - - - - - Add New Resolution - - - Create a custom domain-to-IP mapping for your network - - - -
-
- -
- - setDomainName(e.target.value)} - /> -

- Domain name to use, supports wildcard. Make sure it's a{" "} - - FQDN - -

-
-
- -
- - setIP(e.target.value)} - /> -

- IPv4 / IPv6 address where domains will resolve -

-
- -
- - -
-
- -
-
-
-
-

Wildcard Matching

-

- Use wildcards to match multiple subdomains with a single - rule +

+ + + + + Add New Resolution + + + Create a custom domain-to-IP mapping for your network + + + +
+
+
+ + setDomainName(e.target.value)} + /> +

+ Domain name to use, supports wildcard. Make sure it's a{" "} + + FQDN + + .

-
-
- - *.example.local. - -
- - Matches -
-
+
-
- {[ - "app.example.local.", - "my.app.example.local.", - "sub1.sub2.sub3.example.local." - ].map((domain, index) => ( -
-
- {domain} -
- ))} -
-
+
+ setIP(e.target.value)} + /> +

+ IPv4 / IPv6 address where domains will resolve. +

+
+ +
+
-
-
-
+ + + + + + Wildcard Matching + + Use wildcards to match multiple subdomains with a single rule + + + +
+
+
+
+ Pattern +
+
+ + + *.example.local. + +
+ +
+
+ {["app.example.local.", "my.app.example.local."].map( + (domain, index) => ( +
+
+ + {domain} + + +
+ ) + )} +
+
+ + +