mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
19 lines
524 B
TypeScript
19 lines
524 B
TypeScript
import { importTypes } from '@rancher/auto-import';
|
|
import { IPlugin } from '@shell/core/types';
|
|
import extensionRouting from './routing/extension-routing';
|
|
|
|
// Init the package
|
|
export default function(plugin: IPlugin): void {
|
|
// Auto-import model, detail, edit from the folders
|
|
importTypes(plugin);
|
|
|
|
// Provide plugin metadata from package.json
|
|
plugin.metadata = require('./package.json');
|
|
|
|
// Load a product
|
|
plugin.addProduct(require('./product'));
|
|
|
|
// Add Vue Routes
|
|
plugin.addRoutes(extensionRouting);
|
|
}
|