* fix: enhance back navigation in NotFoundPage component * chore: update dependencies and refactor imports - Updated `framer-motion` to version `12.23.12` in `package.json` and `bun.lock`. - Removed unused dependencies: `fuse.js`, `react-code-blocks`, `react-datepicker`, `pocketbase`, `simple-icons`. - Refactored import in `number-ticker.tsx` to use `motion/react` instead of `framer-motion`. - Removed CSS import for `react-datepicker` in `page.tsx`. * fix: update NotFoundPage redirection to use basePath from site-config - Modified the redirection logic in NotFoundPage to use the basePath variable. - Set default basePath to "ProxmoxVE" in site-config for improved routing consistency. * update bun.lock
73 lines
1.8 KiB
TypeScript
73 lines
1.8 KiB
TypeScript
import { MessagesSquare, Scroll } from "lucide-react";
|
|
import { FaDiscord, FaGithub } from "react-icons/fa";
|
|
import React from "react";
|
|
|
|
import type { OperatingSystem } from "@/lib/types";
|
|
|
|
// eslint-disable-next-line node/no-process-env
|
|
export const basePath = process.env.BASE_PATH || "ProxmoxVE";
|
|
|
|
export const navbarLinks = [
|
|
{
|
|
href: `https://github.com/community-scripts/${basePath}`,
|
|
event: "GitHub",
|
|
icon: <FaGithub className="h-4 w-4" />,
|
|
text: "GitHub",
|
|
},
|
|
{
|
|
href: `https://discord.gg/2wvnMDgdnU`,
|
|
event: "Discord",
|
|
icon: <FaDiscord className="h-4 w-4" />,
|
|
text: "Discord",
|
|
},
|
|
{
|
|
href: `https://github.com/community-scripts/${basePath}/blob/main/CHANGELOG.md`,
|
|
event: "Changelog",
|
|
icon: <Scroll className="h-4 w-4" />,
|
|
text: "Changelog",
|
|
mobileHidden: true,
|
|
},
|
|
{
|
|
href: `https://github.com/community-scripts/${basePath}/discussions`,
|
|
event: "Discussions",
|
|
icon: <MessagesSquare className="h-4 w-4" />,
|
|
text: "Discussions",
|
|
mobileHidden: true,
|
|
},
|
|
].filter(Boolean) as {
|
|
href: string;
|
|
event: string;
|
|
icon: React.ReactNode;
|
|
text: string;
|
|
mobileHidden?: boolean;
|
|
}[];
|
|
|
|
export const mostPopularScripts = ["post-pve-install", "docker", "homeassistant"];
|
|
|
|
export const analytics = {
|
|
url: "analytics.bramsuurd.nl",
|
|
token: "f9eee289f931",
|
|
};
|
|
|
|
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: "12", slug: "bookworm" },
|
|
{ name: "13", slug: "trixie" },
|
|
],
|
|
},
|
|
{
|
|
name: "Ubuntu",
|
|
versions: [
|
|
{ name: "22.04", slug: "jammy" },
|
|
{ name: "24.04", slug: "noble" },
|
|
],
|
|
},
|
|
];
|