* fix strategy forms handling, add register route and hidden fields Refactored strategy forms to include hidden fields for type and name. Added a registration route with necessary adjustments to the admin controller and routes. Corrected field handling within relevant forms and components. * fix admin access permissions and refactor routing structure display a fixed error for unmet permissions when retrieving the schema. moved auth routes outside of BkndProvider and reorganized remaining routes to include BkndWrapper. * fix: properly type BkndWrapper * bump fix release version * ModuleManager: update diff checking and AppData validation Revised diff handling includes validation of diffs, reverting changes on failure, and enforcing module constraints with onBeforeUpdate hooks. Introduced `validateDiffs` and backup of stable configs. Applied changes in related modules, tests, and UI layer to align with updated diff logic. * fix: cli: running from config file were using invalid args * fix: cli: improve sequence of onBuilt trigger to allow custom routes from cli * fix e2e tests
27 lines
750 B
TypeScript
27 lines
750 B
TypeScript
import { IconLockAccessOff } from "@tabler/icons-react";
|
|
import { Empty, type EmptyProps } from "./Empty";
|
|
|
|
const NotFound = (props: Partial<EmptyProps>) => <Empty title="Not Found" {...props} />;
|
|
const NotAllowed = (props: Partial<EmptyProps>) => <Empty title="Not Allowed" {...props} />;
|
|
const MissingPermission = ({
|
|
what,
|
|
...props
|
|
}: Partial<EmptyProps> & {
|
|
what?: string;
|
|
}) => (
|
|
<Empty
|
|
Icon={IconLockAccessOff}
|
|
title="Missing Permission"
|
|
description={`You're not allowed to access ${what ?? "this"}.`}
|
|
{...props}
|
|
/>
|
|
);
|
|
const NotEnabled = (props: Partial<EmptyProps>) => <Empty title="Not Enabled" {...props} />;
|
|
|
|
export const Message = {
|
|
NotFound,
|
|
NotAllowed,
|
|
NotEnabled,
|
|
MissingPermission,
|
|
};
|