Enhance InstallMethod component: add operating system selection and version handling with new input structure (#426)

This commit is contained in:
Bram Suurd
2024-11-23 08:14:22 +01:00
committed by GitHub
parent 0c744ad274
commit dc1b14dfd9
3 changed files with 138 additions and 81 deletions

View File

@@ -1,3 +1,4 @@
import { OperatingSystem } from "@/lib/types";
import { MessagesSquare, Scroll } from "lucide-react";
import { FaDiscord, FaGithub } from "react-icons/fa";
@@ -44,4 +45,21 @@ export const analytics = {
export const AlertColors = {
warning: "border-red-500/25 bg-destructive/25",
info: "border-cyan-500/25 bg-cyan-50 dark:border-cyan-900 dark:bg-cyan-900/25",
};
};
export const OperatingSystems: OperatingSystem[] = [
{
name: "Debian",
versions: [
{ name: "11", slug: "bullseye" },
{ name: "12", slug: "bookworm" },
],
},
{
name: "Ubuntu",
versions: [
{ name: "22.04", slug: "jammy" },
{ name: "24.04", slug: "noble" },
],
},
];