mirror of https://github.com/rancher/dashboard.git
17 lines
464 B
TypeScript
17 lines
464 B
TypeScript
import { importTypes } from '@rancher/auto-import';
|
|
import { IPlugin } from '@shell/core/types';
|
|
|
|
// 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'));
|
|
}
|