Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -2,6 +2,7 @@ import { LoaderFunctionArgs, MetaFunction } from "react-router";
import { Outlet } from "react-router";
import { useTranslation } from "react-i18next";
import ServerError from "~/components/ui/errors/ServerError";
import { AdminPageHeader } from "~/components/screens/admin/AdminPageHeader";
import IncreaseIcon from "~/components/ui/icons/crm/IncreaseIcon";
import IncreaseIconFilled from "~/components/ui/icons/crm/IncreaseIconFilled";
import AlarmIcon from "~/components/ui/icons/notifications/AlarmIcon";
@@ -19,7 +20,7 @@ type LoaderData = {
title: string;
};
export const loader = async ({ request, params }: LoaderFunctionArgs) => {
export const loader = async ({ request, params: _params }: LoaderFunctionArgs) => {
const { t } = await getTranslations(request);
await verifyUserHasPermission(request, "admin.notifications.view");
const data: LoaderData = {
@@ -34,38 +35,41 @@ export default () => {
const { t } = useTranslation();
return (
<SidebarIconsLayout
label={{ align: "right" }}
items={[
{
name: t("notifications.admin.nav.overview"),
href: adminPath("notifications", { mode: "host-aware" }),
exact: true,
icon: <IncreaseIcon className="h-5 w-5" />,
iconSelected: <IncreaseIconFilled className="h-5 w-5" />,
},
{
name: t("notifications.admin.nav.subscribers"),
href: adminPath("notifications/subscribers", { mode: "host-aware" }),
icon: <EarIcon className="h-5 w-5" />,
iconSelected: <EarIconFilled className="h-5 w-5" />,
},
{
name: t("notifications.admin.nav.messages"),
href: adminPath("notifications/messages", { mode: "host-aware" }),
icon: <AlarmIcon className="h-5 w-5" />,
iconSelected: <AlarmIconFilled className="h-5 w-5" />,
},
{
name: t("notifications.admin.nav.channels"),
href: adminPath("notifications/channels", { mode: "host-aware" }),
icon: <ChannelIcon className="h-5 w-5" />,
iconSelected: <ChannelIconFilled className="h-5 w-5" />,
},
]}
>
<Outlet />
</SidebarIconsLayout>
<div className="flex w-full flex-col">
<AdminPageHeader title={t("app.sidebar.notifications")} description={t("notifications.admin.pageDescription")} />
<SidebarIconsLayout
label={{ align: "right" }}
items={[
{
name: t("notifications.admin.nav.overview"),
href: adminPath("notifications", { mode: "host-aware" }),
exact: true,
icon: <IncreaseIcon className="h-5 w-5" />,
iconSelected: <IncreaseIconFilled className="h-5 w-5" />,
},
{
name: t("notifications.admin.nav.subscribers"),
href: adminPath("notifications/subscribers", { mode: "host-aware" }),
icon: <EarIcon className="h-5 w-5" />,
iconSelected: <EarIconFilled className="h-5 w-5" />,
},
{
name: t("notifications.admin.nav.messages"),
href: adminPath("notifications/messages", { mode: "host-aware" }),
icon: <AlarmIcon className="h-5 w-5" />,
iconSelected: <AlarmIconFilled className="h-5 w-5" />,
},
{
name: t("notifications.admin.nav.channels"),
href: adminPath("notifications/channels", { mode: "host-aware" }),
icon: <ChannelIcon className="h-5 w-5" />,
iconSelected: <ChannelIconFilled className="h-5 w-5" />,
},
]}
>
<Outlet />
</SidebarIconsLayout>
</div>
);
};