2024-11-23 08:14:22 +01:00
|
|
|
import { OperatingSystem } from "@/lib/types";
|
2024-11-04 23:55:08 +01:00
|
|
|
import { MessagesSquare, Scroll } from "lucide-react";
|
2024-11-21 07:51:02 +01:00
|
|
|
import { FaDiscord, FaGithub } from "react-icons/fa";
|
2024-11-04 23:55:08 +01:00
|
|
|
|
2025-01-16 14:36:46 +01:00
|
|
|
const isMobile = typeof window !== "undefined" && window.innerWidth < 640;
|
|
|
|
|
|
2024-11-09 20:06:54 +01:00
|
|
|
export const basePath = process.env.BASE_PATH;
|
2024-11-06 23:47:04 +01:00
|
|
|
|
2024-11-04 23:55:08 +01:00
|
|
|
export const navbarLinks = [
|
|
|
|
|
{
|
2024-11-06 23:47:04 +01:00
|
|
|
href: `https://github.com/community-scripts/${basePath}`,
|
2024-11-04 23:55:08 +01:00
|
|
|
event: "Github",
|
|
|
|
|
icon: <FaGithub className="h-4 w-4" />,
|
|
|
|
|
text: "Github",
|
|
|
|
|
},
|
2024-11-21 07:51:02 +01:00
|
|
|
{
|
|
|
|
|
href: `https://discord.gg/2wvnMDgdnU`,
|
|
|
|
|
event: "Discord",
|
|
|
|
|
icon: <FaDiscord className="h-4 w-4" />,
|
|
|
|
|
text: "Discord",
|
|
|
|
|
},
|
2024-11-04 23:55:08 +01:00
|
|
|
{
|
2024-11-06 23:47:04 +01:00
|
|
|
href: `https://github.com/community-scripts/${basePath}/blob/main/CHANGELOG.md`,
|
2024-11-04 23:55:08 +01:00
|
|
|
event: "Change Log",
|
2024-11-28 05:46:32 +01:00
|
|
|
icon: <Scroll className="h-4 w-4" />,
|
2024-11-04 23:55:08 +01:00
|
|
|
text: "Change Log",
|
|
|
|
|
},
|
2025-01-16 14:36:46 +01:00
|
|
|
!isMobile && {
|
2024-11-09 20:06:54 +01:00
|
|
|
href: `https://github.com/community-scripts/${basePath}/discussions`,
|
2024-11-04 23:55:08 +01:00
|
|
|
event: "Discussions",
|
2025-01-16 14:36:46 +01:00
|
|
|
icon: <MessagesSquare className="h-4 w-4" />,
|
2024-11-04 23:55:08 +01:00
|
|
|
text: "Discussions",
|
|
|
|
|
},
|
2025-01-16 14:36:46 +01:00
|
|
|
].filter(Boolean);
|
2024-11-06 23:47:04 +01:00
|
|
|
|
|
|
|
|
export const mostPopularScripts = [
|
|
|
|
|
"Proxmox VE Post Install",
|
|
|
|
|
"Docker",
|
|
|
|
|
"Home Assistant OS",
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const analytics = {
|
|
|
|
|
url: "analytics.proxmoxve-scripts.com",
|
|
|
|
|
token: "b60d3032-1a11-4244-a100-81d26c5c49a7",
|
|
|
|
|
};
|
2024-11-13 22:33:45 +01:00
|
|
|
|
|
|
|
|
export const AlertColors = {
|
2024-11-14 09:08:45 +01:00
|
|
|
warning: "border-red-500/25 bg-destructive/25",
|
2024-11-16 12:15:17 +01:00
|
|
|
info: "border-cyan-500/25 bg-cyan-50 dark:border-cyan-900 dark:bg-cyan-900/25",
|
2024-11-23 08:14:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
];
|