diff --git a/webui/src/mainEnt.tsx b/webui/src/mainEnt.tsx new file mode 100644 index 00000000000..2669fe1a8ea --- /dev/null +++ b/webui/src/mainEnt.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import { createRoot } from 'react-dom/client'; + +// styles +import 'bootstrap/dist/css/bootstrap.css'; +import './styles/globals.css'; + +// app and plugins system +import LakeFSApp from "./exported/lakefsApp"; +import { PluginManager } from "./exported/plugins/pluginManager"; + +const pluginManager = new PluginManager(); +// Register a plugin +const appTabsPlugin = { + tabs: [ + { + id: 'extra-tab', + name: 'Extra Tab', + component: () =>
Extra Tab Content
, + }, + ], +}; +pluginManager.registerPluginAppTabs(appTabsPlugin); + +const container = document.getElementById('root'); +if (!container) throw new Error("Failed to find root element!"); + +const root = createRoot(container); +root.render();