mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
19 lines
561 B
TypeScript
19 lines
561 B
TypeScript
import { importTypes } from '@rancher/auto-import';
|
|
import { IPlugin } from '@shell/core/types';
|
|
import extensionRoutes from './routing/harvester-routing';
|
|
|
|
// Init the package
|
|
export default function (plugin: IPlugin) {
|
|
// Auto-import model, detail, edit from the folders
|
|
importTypes(plugin);
|
|
|
|
// Provide plugin metadata from package.json
|
|
plugin.metadata = require('./package.json');
|
|
|
|
// Built-in icon
|
|
plugin.metadata.icon = require('./icon.svg');
|
|
|
|
plugin.addProduct(require('./config/harvester-manager'));
|
|
plugin.addRoutes(extensionRoutes);
|
|
}
|