Release v0.1.2

This commit is contained in:
2026-06-25 19:58:20 +02:00
parent b5f7c43028
commit 189e950589
9 changed files with 112 additions and 10 deletions

View File

@@ -1,5 +1,7 @@
import { createElement, lazy } from "react";
import type { PlatformWebModule } from "@govoplan/core-webui";
import type { FilesFileExplorerUiCapability, PlatformWebModule } from "@govoplan/core-webui";
import { FolderTree } from "./features/files/components/FileManagerComponents";
const FilesPage = lazy(() => import("./features/files/FilesPage"));
const fileRead = ["files:file:read"];
@@ -12,7 +14,10 @@ export const filesModule: PlatformWebModule = {
navItems: [{ to: "/files", label: "Files", iconName: "folder", anyOf: fileRead, order: 40 }],
routes: [
{ path: "/files", anyOf: fileRead, order: 40, render: ({ settings, auth }) => createElement(FilesPage, { settings, auth }) }
]
],
uiCapabilities: {
"files.fileExplorer": { FolderTree } satisfies FilesFileExplorerUiCapability
}
};
export default filesModule;