Initialize GovOPlaN calendar module

This commit is contained in:
2026-07-07 02:49:56 +02:00
commit 3bcb04ff76
36 changed files with 3410 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import { createElement, lazy } from "react";
import type { PlatformWebModule } from "@govoplan/core-webui";
import "./styles/calendar.css";
const CalendarPage = lazy(() => import("./features/calendar/CalendarPage"));
const eventRead = ["calendar:event:read"];
export const calendarModule: PlatformWebModule = {
id: "calendar",
label: "Calendar",
version: "1.0.0",
dependencies: ["access"],
optionalDependencies: ["mail", "tasks", "scheduling", "appointments", "workflow", "notifications", "dms", "connectors"],
navItems: [{ to: "/calendar", label: "Calendar", iconName: "calendar", anyOf: eventRead, order: 55 }],
routes: [
{ path: "/calendar", anyOf: eventRead, order: 55, render: ({ settings, auth }) => createElement(CalendarPage, { settings, auth }) }
]
};
export default calendarModule;