Update constants.ts

This commit is contained in:
Stefan Pejcic 2025-05-15 19:00:15 +02:00 committed by GitHub
parent e5ed6ee0b3
commit 2ca4b20de9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,115 +1,110 @@
import { import {
DocumentsIcon, DocumentsIcon,
IntegrationsIcon, IntegrationsIcon,
TutorialIcon, TutorialIcon,
ExamplesIcon, ExamplesIcon,
AwesomeIcon, AwesomeIcon,
ContributeIcon, ContributeIcon,
RefineWeekIcon, RefineWeekIcon,
HackathonsIcon, HackathonsIcon,
AboutUsIcon, AboutUsIcon,
StoreIcon, StoreIcon,
MeetIcon, MeetIcon,
BlogIcon, BlogIcon,
NewBadgeIcon, NewBadgeIcon,
} from "../icons/popover"; } from "../icons/popover";
export type NavbarPopoverItemType = { export type NavbarPopoverItemType = {
isPopover: true; isPopover: true;
label: string;
items: {
label: string; label: string;
description: string; items: {
link: string; label: string;
icon: React.FC; description: string;
}[]; link: string;
icon: React.FC;
}[];
}; };
export type NavbarItemType = { export type NavbarItemType = {
isPopover?: false; isPopover?: false;
label: string; label: string;
icon?: React.FC; icon?: React.FC;
href?: string; href?: string;
}; };
export type MenuItemType = NavbarPopoverItemType | NavbarItemType; export type MenuItemType = NavbarPopoverItemType | NavbarItemType;
export const MENU_ITEMS: MenuItemType[] = [ export const MENU_ITEMS: MenuItemType[] = [
{ {
isPopover: true, isPopover: true,
label: "Resources", label: "Products",
items: [ items: [
{ {
label: "Documentation", label: "Community Edition",
description: "Everything you need to get started.", description: "Free web hosting panel for VPS and private use.",
link: "/docs/", link: "/docs",
icon: DocumentsIcon, icon: ExamplesIcon,
}, },
{ {
label: "Live Demo", label: "Enterprise Edition",
description: "Give OpenPanel or OpenAdmin a try.", description: "Premium server control panel for shared hosting.",
link: "/demo", link: "/blog",
icon: TutorialIcon, icon: IntegrationsIcon,
}, },
{ ],
label: "Install Command", },
description: "Generate command to customize installation.", {
link: "/install", isPopover: false,
icon: AwesomeIcon, label: "Enterprise",
}, href: "/beta",
{ icon: NewBadgeIcon,
label: "Integrations", },
description: "WHMCS, FOSSBilling, Blesta.", {
link: "/features", isPopover: true,
icon: IntegrationsIcon, label: "Community",
}, items: [
{ {
label: "How-to Guides", label: "Documentation",
description: "Most common tasks on OpenPanel.", description: "Everything you need to get started.",
link: "/docs/articles/intro/", link: "/docs/",
icon: ExamplesIcon, icon: DocumentsIcon,
}, },
{ {
label: "Changelog", label: "Forums",
description: "Latest version and changes.", description: "Join our growing community!",
link: "/docs/changelog/intro/", link: "https://community.openpanel.org/",
icon: BlogIcon, icon: ContributeIcon,
}, },
], {
}, label: "Translations",
{ description: "Help us improve OpenPanel!",
isPopover: false, link: "https://github.com/stefanpejcic/openpanel-translations",
label: "Live Demo", icon: HackathonsIcon,
href: "/demo", },
icon: NewBadgeIcon, ],
}, },
{ // {
isPopover: false, // isPopover: true,
label: "Enterprise", // label: "Company",
href: "/beta", // items: [
}, // {
{ // label: "About Us",
isPopover: true, // description: "Team & company information.",
label: "Support", // link: "/about",
items: [ // icon: AboutUsIcon,
{ // },
label: "Forums", // {
description: "Join our Community forums!", // label: "Become a Partner",
link: "https://community.openpanel.org/", // description: "Help us spread the word!",
icon: AwesomeIcon, // link: "mailto:info@openpanel.co",
}, // icon: StoreIcon,
{ // },
label: "Discord", // {
description: "Join us on Discord.", // label: "Meet OpenPanel",
link: "https://discord.openpanel.com", // description: "Call us for any questions",
icon: ExamplesIcon, // link: "mailto:info@openpanel.co",
}, // icon: MeetIcon,
{ // },
label: "Contacy Us", // ],
description: "Email us for any questions.", // },
link: "mailto:info@openpanel.com",
icon: MeetIcon,
},
],
},
]; ];