UNPKG

@finos/legend-application-marketplace

Version:
40 lines 2.17 kB
import { jsx as _jsx } from "react/jsx-runtime"; /** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { createRoot } from 'react-dom/client'; import { ApplicationStoreProvider, getApplicationRootElement, LegendApplication, } from '@finos/legend-application'; import { LegendMarketplaceApplicationConfig, } from './LegendMarketplaceApplicationConfig.js'; import { LegendMarketplacePluginManager } from './LegendMarketplacePluginManager.js'; import { Core_LegendMarketplaceApplicationPlugin } from './extensions/Core_LegendMarketplaceApplicationPlugin.js'; import { LegendMarketplaceWebApplication } from './LegendMarketplaceWebApplication.js'; import { Core_LegendMarketplace_LegendApplicationPlugin } from './extensions/Core_LegendMarketplace_LegendApplicationPlugin.js'; export class LegendMarketplace extends LegendApplication { static create() { const application = new LegendMarketplace(LegendMarketplacePluginManager.create()); application.withBasePlugins([ new Core_LegendMarketplace_LegendApplicationPlugin(), new Core_LegendMarketplaceApplicationPlugin(), ]); return application; } async configureApplication(input) { return new LegendMarketplaceApplicationConfig(input); } async loadApplication(applicationStore) { createRoot(getApplicationRootElement()).render(_jsx(ApplicationStoreProvider, { store: applicationStore, children: _jsx(LegendMarketplaceWebApplication, { baseUrl: this.baseAddress, oidcConfig: this.config.marketplaceOidcConfig }) })); } } //# sourceMappingURL=LegendMarketplace.js.map