mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 05:01:43 +00:00
23 lines
558 B
TypeScript
23 lines
558 B
TypeScript
import { IPlugin } from '@shell/core/types';
|
|
|
|
export function init($plugin: IPlugin, store: any) {
|
|
const PRODUCT_NAME = 'harvester';
|
|
const BLANK_CLUSTER = '_';
|
|
|
|
const { product } = $plugin.DSL(store, PRODUCT_NAME);
|
|
|
|
product({
|
|
icon: 'gear',
|
|
inStore: 'management',
|
|
weight: 100,
|
|
to: {
|
|
name: `${ PRODUCT_NAME }-c-cluster`,
|
|
path: `/${ PRODUCT_NAME }/c/:cluster/dashboard`,
|
|
params: {
|
|
product: PRODUCT_NAME,
|
|
cluster: BLANK_CLUSTER,
|
|
pkg: PRODUCT_NAME
|
|
}
|
|
}
|
|
});
|
|
} |