Design changes
This commit is contained in:
parent
aa1f7b25cf
commit
ceab1a605c
5 changed files with 5 additions and 4 deletions
|
|
@ -12,6 +12,7 @@ This project provides a user-friendly web interface for managing a Caddy reverse
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
|
- [ ] More than just reverse_proxy directive
|
||||||
- [ ] Authentication
|
- [ ] Authentication
|
||||||
- [ ] Persistant storage
|
- [ ] Persistant storage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export default function Error() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex justify-center'>
|
<div className='flex justify-center'>
|
||||||
<div className="flex justify-center items-center min-h-screen h-[90vh]">
|
<div className="flex justify-center items-center h-[80vh]">
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Error</CardTitle>
|
<CardTitle>Error</CardTitle>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import Image from "next/image";
|
||||||
export default function Loading() {
|
export default function Loading() {
|
||||||
return (
|
return (
|
||||||
<div className='flex justify-center'>
|
<div className='flex justify-center'>
|
||||||
<div className="flex items-center min-h-screen h-[90vh]">
|
<div className="flex items-center h-[70vh]">
|
||||||
<Image src="/loading.svg" alt="Loading" width={25} height={25} />
|
<Image src="/loading.svg" alt="Loading" width={25} height={25} />
|
||||||
<p className='p-2'>Loading</p>
|
<p className='p-2'>Loading</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ export default function RouteCards() {
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p className="text-sm font-medium leading-none">
|
<p className="text-sm font-medium leading-none">
|
||||||
Tunneling to
|
Destination
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm text-muted-foreground">{getRouteUpstreams(route)?.map((upstream => upstream.dial))}</p>
|
<p className="text-sm text-muted-foreground">{getRouteUpstreams(route)?.map((upstream => upstream.dial))}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import { DialogClose } from "@radix-ui/react-dialog";
|
||||||
export function RouteDialog({ route, routesMap, open, onOpenChange }: { route: Route, routesMap: Route[], open: boolean, onOpenChange: (open: boolean) => void }) {
|
export function RouteDialog({ route, routesMap, open, onOpenChange }: { route: Route, routesMap: Route[], open: boolean, onOpenChange: (open: boolean) => void }) {
|
||||||
let index = routesMap.indexOf(route);
|
let index = routesMap.indexOf(route);
|
||||||
|
|
||||||
const [modifiedRoute, setRoute] = useState(route);
|
const [modifiedRoute, setRoute] = useState<Route>(route);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue