Login
++ Authorize a platform account and collect the generated .env values. +
+diff --git a/app/admin/login/page.tsx b/app/admin/login/page.tsx new file mode 100644 index 0000000..c08e558 --- /dev/null +++ b/app/admin/login/page.tsx @@ -0,0 +1,161 @@ +import { AdminShellServer } from "@/components/admin-shell-server"; +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; +import { + Card, + CardAction, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "@/components/ui/card"; +import { + Tabs, + TabsContent, + TabsList, + TabsTrigger, +} from "@/components/ui/tabs"; +import { ExternalLink, KeyRound } from "lucide-react"; + +export const dynamic = "force-dynamic"; + +type LoginMethodProps = { + name: string; + description: string; + href: string; + configured: boolean; + setupVariables: string[]; + resultVariables: string[]; +}; + +function EnvironmentBlock({ variables }: { variables: string[] }) { + return ( +
+ {variables.map((variable) => `${variable}=\n`).join("")}
+
+ );
+}
+
+function LoginMethod({
+ name,
+ description,
+ href,
+ configured,
+ setupVariables,
+ resultVariables,
+}: LoginMethodProps) {
+ return (
+ + Add these values to the server environment and restart the app. +
++ The callback page will show these values for your .env file. +
++ Authorize a platform account and collect the generated .env values. +
+