show owner in users table, list roles query in invite form, and more

This commit is contained in:
Milo Schwartz
2024-11-08 00:03:54 -05:00
parent 458de04fcf
commit 9c2e481d2b
13 changed files with 145 additions and 81 deletions

View File

@@ -24,6 +24,7 @@ import { useParams } from "next/navigation";
import { useRouter } from "next/navigation";
import { Checkbox } from "@app/components/ui/checkbox";
import { PickSiteDefaultsResponse } from "@server/routers/site";
import CopyTextBox from "@app/components/CopyTextBox";
const method = [
{ label: "Wireguard", value: "wg" },
@@ -188,19 +189,11 @@ sh get-docker.sh`;
)}
/>
{form.watch("method") === "wg" && !isLoading ? (
<pre className="mt-2 w-full rounded-md bg-muted p-4 overflow-x-auto">
<code className="whitespace-pre-wrap font-mono">
{wgConfig}
</code>
</pre>
<CopyTextBox text={wgConfig} />
) : form.watch("method") === "wg" && isLoading ? (
<p>Loading WireGuard configuration...</p>
) : (
<pre className="mt-2 w-full rounded-md bg-muted p-4 overflow-x-auto">
<code className="whitespace-pre-wrap">
{newtConfig}
</code>
</pre>
<CopyTextBox text={newtConfig} wrapText={false} />
)}
<div className="flex items-center space-x-2">
<Checkbox