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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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" },
],
},
];