mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
15 lines
398 B
TypeScript
15 lines
398 B
TypeScript
import { getFeature } from "@k8slens/feature-core";
|
|
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
|
|
|
export const uiComponentsFeature = getFeature({
|
|
id: "ui-components",
|
|
|
|
register: (di) => {
|
|
autoRegister({
|
|
di,
|
|
targetModule: module,
|
|
getRequireContexts: () => [require.context("./", true, /\.injectable\.(ts|tsx)$/)],
|
|
});
|
|
},
|
|
});
|