Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+6
-15
@@ -5,6 +5,12 @@ import ButtonTertiary from "~/components/ui/buttons/ButtonTertiary";
|
||||
import { ErrorPage } from "~/components/ui/errors/ErrorPage";
|
||||
import RefreshIcon from "~/components/ui/icons/RefreshIcon";
|
||||
import { permissionDisplayDescription, permissionDisplayName } from "~/components/core/roles/roleDisplay";
|
||||
import { getTranslations } from "~/locale/i18next.server";
|
||||
import { safeRedirectPathFromRequest } from "~/utils/app/RedirectSafety.server";
|
||||
import { getPermissionName } from "~/utils/db/permissions/permissions.db.server";
|
||||
import { getUserPermission } from "~/utils/helpers/.server/PermissionsService";
|
||||
import { getUserInfo } from "~/utils/session.server";
|
||||
import { getTenantIdFromUrl } from "~/utils/services/.server/urlService";
|
||||
|
||||
type LoaderData = {
|
||||
title: string;
|
||||
@@ -12,21 +18,6 @@ type LoaderData = {
|
||||
permission: { name: string; description: string };
|
||||
};
|
||||
export const loader = async ({ request, params }: LoaderFunctionArgs) => {
|
||||
const [
|
||||
{ getTranslations },
|
||||
{ getPermissionName },
|
||||
{ getUserPermission },
|
||||
{ getUserInfo },
|
||||
{ safeRedirectPathFromRequest },
|
||||
{ getTenantIdFromUrl },
|
||||
] = await Promise.all([
|
||||
import("~/locale/i18next.server"),
|
||||
import("~/utils/db/permissions/permissions.db.server"),
|
||||
import("~/utils/helpers/.server/PermissionsService"),
|
||||
import("~/utils/session.server"),
|
||||
import("~/utils/app/RedirectSafety.server"),
|
||||
import("~/utils/services/.server/urlService"),
|
||||
]);
|
||||
const { t } = await getTranslations(request);
|
||||
const permission = await getPermissionName(params.permission ?? "");
|
||||
const searchParams = new URLSearchParams(new URL(request.url).search);
|
||||
|
||||
Reference in new issue
Block a user