feat: initialize governed datasources module
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
import { createElement, lazy } from "react";
|
||||
import type { PlatformWebModule } from "@govoplan/core-webui";
|
||||
import "./styles/datasources.css";
|
||||
|
||||
const DatasourcesPage = lazy(() => import("./features/datasources/DatasourcesPage"));
|
||||
|
||||
const readScopes = ["datasources:catalogue:read", "datasources:source:admin"];
|
||||
|
||||
export const datasourcesModule: PlatformWebModule = {
|
||||
id: "datasources",
|
||||
label: "Datasources",
|
||||
version: "0.1.14",
|
||||
optionalDependencies: [
|
||||
"access",
|
||||
"audit",
|
||||
"connectors",
|
||||
"files",
|
||||
"notifications",
|
||||
"policy"
|
||||
],
|
||||
navItems: [
|
||||
{
|
||||
to: "/datasources",
|
||||
label: "Datasources",
|
||||
iconName: "database-zap",
|
||||
anyOf: readScopes,
|
||||
order: 70
|
||||
}
|
||||
],
|
||||
routes: [
|
||||
{
|
||||
path: "/datasources",
|
||||
anyOf: readScopes,
|
||||
order: 70,
|
||||
render: ({ settings, auth }) => createElement(DatasourcesPage, { settings, auth })
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default datasourcesModule;
|
||||
Reference in New Issue
Block a user