-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: () => <div>Extra Tab Content</div>, | ||
}, | ||
], | ||
}; | ||
pluginManager.registerPluginAppTabs(appTabsPlugin); | ||
|
||
const container = document.getElementById('root'); | ||
if (!container) throw new Error("Failed to find root element!"); | ||
|
||
const root = createRoot(container); | ||
root.render(<LakeFSApp pluginManager={pluginManager}/>); |