Release v0.1.7
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
import { createElement, lazy } from "react";
|
||||
import { type AdminSectionsUiCapability, type PlatformWebModule } from "@govoplan/core-webui";
|
||||
|
||||
const AdminAuditPanel = lazy(() => import("./features/audit/AdminAuditPanel"));
|
||||
|
||||
const auditAdminSections: AdminSectionsUiCapability = {
|
||||
sections: [
|
||||
{
|
||||
id: "system-audit",
|
||||
label: "Audit",
|
||||
group: "SYSTEM",
|
||||
order: 90,
|
||||
allOf: ["system:audit:read"],
|
||||
render: ({ settings, auth }) => createElement(AdminAuditPanel, {
|
||||
settings,
|
||||
auth,
|
||||
systemMode: true
|
||||
})
|
||||
},
|
||||
{
|
||||
id: "tenant-audit",
|
||||
label: "Audit",
|
||||
group: "TENANT",
|
||||
order: 100,
|
||||
allOf: ["audit:read"],
|
||||
render: ({ settings, auth }) => createElement(AdminAuditPanel, {
|
||||
settings,
|
||||
auth,
|
||||
systemMode: false
|
||||
})
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export const auditModule: PlatformWebModule = {
|
||||
id: "audit",
|
||||
label: "Audit",
|
||||
version: "0.1.6",
|
||||
dependencies: ["access", "admin"],
|
||||
uiCapabilities: {
|
||||
"admin.sections": auditAdminSections
|
||||
}
|
||||
};
|
||||
|
||||
export default auditModule;
|
||||
Reference in New Issue
Block a user