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

@@ -1,4 +1,4 @@
import { t as i18nT } from "i18next";
import { requestScopedT as i18nT } from "~/locale/request-scoped-t";
import { useTranslation } from "react-i18next";
// // "use client";
@@ -563,10 +563,17 @@ function SidebarMenuSkeleton({
}: React.ComponentProps<"div"> & {
showIcon?: boolean;
}) {
// Random width between 50 to 90%.
// Deterministic width (50-90%) derived from the hydration-safe React id so the
// server and client render the same skeleton width (avoids React #418).
const reactId = React.useId();
const width = React.useMemo(() => {
return `${Math.floor(Math.random() * 40) + 50}%`;
}, []);
const widths = [65, 82, 54, 73, 88, 59];
let hash = 0;
for (let i = 0; i < reactId.length; i += 1) {
hash = (hash * 31 + reactId.charCodeAt(i)) | 0;
}
return `${widths[Math.abs(hash) % widths.length]}%`;
}, [reactId]);
return (
<div data-slot="sidebar-menu-skeleton" data-sidebar="menu-skeleton" className={cn("flex h-8 items-center gap-2 rounded-md px-2", className)} {...props}>