NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
sidebar i18n fixes (#20394)
Josh Hawkinsc71e235b3895
diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.jsonindex e91f5278c7..912d4f6931 100644--- a/web/public/locales/en/views/settings.json+++ b/web/public/locales/en/views/settings.json@@ -20,6 +20,7 @@"triggers": "Triggers","debug": "Debug","users": "Users",+ "roles": "Roles","notifications": "Notifications","frigateplus": "Frigate+"},diff --git a/web/src/components/ui/sidebar.tsx b/web/src/components/ui/sidebar.tsxindex d5990a5e95..5a21a6cc1f 100644--- a/web/src/components/ui/sidebar.tsx+++ b/web/src/components/ui/sidebar.tsx@@ -737,7 +737,7 @@ const SidebarMenuSubButton = React.forwardRef<data-size={size}data-active={isActive}className={cn(- "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",+ "flex min-h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",size === "sm" && "text-xs",size === "md" && "text-sm",diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsxindex c47e51d0eb..aebbe1692e 100644--- a/web/src/pages/Settings.tsx+++ b/web/src/pages/Settings.tsx@@ -84,11 +84,11 @@ type SettingsType = (typeof allSettingsViews)[number];const settingsGroups = [{- label: "General",+ label: "general",items: [{ key: "ui", component: UiSettingsView }],},{- label: "Cameras",+ label: "cameras",items: [{ key: "cameras", component: CameraSettingsView },{ key: "masksAndZones", component: MasksAndZonesView },@@ -96,25 +96,25 @@ const settingsGroups = [],},{- label: "Enrichments",+ label: "enrichments",items: [{ key: "enrichments", component: EnrichmentsSettingsView }],},{- label: "Users",+ label: "users",items: [{ key: "users", component: UsersView },{ key: "roles", component: RolesView },],},{- label: "Notifications",+ label: "notifications",items: [{ key: "notifications", component: NotificationView },{ key: "triggers", component: TriggerView },],},{- label: "Frigate+",+ label: "frigateplus",items: [{ key: "frigateplus", component: FrigatePlusSettingsView }],},];@@ -293,7 +293,7 @@ export default function Settings() {</div><div className="flex flex-row text-center"><h2 className="ml-2 text-lg font-semibold">- {t("settings", { ns: "common" })}+ {t("menu.settings", { ns: "common" })}</h2></div></div>@@ -308,7 +308,9 @@ export default function Settings() {<div key={group.label} className="mb-3">{filteredItems.length > 1 && (<h3 className="mb-2 ml-2 text-sm font-medium text-secondary-foreground">- {group.label}+ <div className="smart-capitalize">+ {t("menu." + group.label)}+ </div></h3>)}{filteredItems.map((item) => (@@ -422,7 +424,7 @@ export default function Settings() {<div className="flex h-full flex-col"><div className="flex items-center justify-between border-b border-secondary p-3"><Heading as="h3" className="mb-0">- {t("settings", { ns: "common" })}+ {t("menu.settings", { ns: "common" })}</Heading>{["debug",@@ -498,7 +500,9 @@ export default function Settings() {: "text-sidebar-foreground/80",)}>- {group.label}+ <div className="smart-capitalize">+ {t("menu." + group.label)}+ </div></SidebarGroupLabel><SidebarMenuSub className="mx-2 border-0">{filteredItems.map((item) => (