mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Replace EntityDetailRegistry with an injectable solution - Add some behavioural tests Signed-off-by: Sebastian Malton <sebastian@malton.name> * Update snapshots Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix import error Signed-off-by: Sebastian Malton <sebastian@malton.name> * Simplify loading extensions Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix lint Signed-off-by: Sebastian Malton <sebastian@malton.name> * Update snapshot Signed-off-by: Sebastian Malton <sebastian@malton.name> * Remove the last reminents of BaseRegistry Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix import errors Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix TypeError when loading extensions Signed-off-by: Sebastian Malton <sebastian@malton.name> * Update snapshots Signed-off-by: Sebastian Malton <sebastian@malton.name> * Cleanup LensExtensions Signed-off-by: Sebastian Malton <sebastian@malton.name> * Remove bad comment Signed-off-by: Sebastian Malton <sebastian@malton.name> * Fix type errors Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
27 lines
1.4 KiB
TypeScript
27 lines
1.4 KiB
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { getInjectable } from "@ogre-tools/injectable";
|
|
import { initRootFrame } from "./init-root-frame";
|
|
import ipcRendererInjectable from "../../../utils/channel/ipc-renderer.injectable";
|
|
import bindProtocolAddRouteHandlersInjectable from "../../../protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable";
|
|
import lensProtocolRouterRendererInjectable from "../../../protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable";
|
|
import catalogEntityRegistryInjectable from "../../../api/catalog/entity/registry.injectable";
|
|
import registerIpcListenersInjectable from "../../../ipc/register-ipc-listeners.injectable";
|
|
import loadExtensionsInjectable from "../../load-extensions.injectable";
|
|
|
|
const initRootFrameInjectable = getInjectable({
|
|
id: "init-root-frame",
|
|
instantiate: (di) => initRootFrame({
|
|
loadExtensions: di.inject(loadExtensionsInjectable),
|
|
registerIpcListeners: di.inject(registerIpcListenersInjectable),
|
|
ipcRenderer: di.inject(ipcRendererInjectable),
|
|
bindProtocolAddRouteHandlers: di.inject(bindProtocolAddRouteHandlersInjectable),
|
|
lensProtocolRouterRenderer: di.inject(lensProtocolRouterRendererInjectable),
|
|
catalogEntityRegistry: di.inject(catalogEntityRegistryInjectable),
|
|
}),
|
|
});
|
|
|
|
export default initRootFrameInjectable;
|