mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-08-16 20:59:16 +00:00
* feat: forklift poc first commit * feat: add migration and plan detail pages with progress tracking * feat(forklift): UI based on the FIGMA * feat(forklift): Fixed config based on new figma changes * feat(forklift): New changes added based on new figma * feat(forklift): Add the succeded state * Merge the new APIs * feat(forklift): Applied fix to select the proper data on network. Added condition to show critical * feat(forklift): Added icons, critical state, fix grids, action button * feat(forklift): Change to use the proper provider instead of a hardcoded * feat(forklift): Added pagination UI * feat(forklift): FIxed the routing for the extension * feat(forklift): route and router doesnt work properly on extensions * feat(forklift): fixed to fix the icon on extension * feat(forklift): Added overflow hidden to mapping target list * feat(forklift): Added better handling on the saving and testing * feat(forklift): Remove test flags * feat(forklift): Changed based on review * feat(forklift): fixed title and button * feat(forklift): Design changes * feat(forklift): Changed to Wizard * feat(forklift): added the provider wizard * feat(forklift): Fixed some UI changes * feat(forklift): Removed wrong configs used for testing * feat(forklift): update size * feat(forklift): small fixes * feat(forklift): small fixes after Copilot * feat(forklift): small fixes after Copilot * feat(forklift): reverted settings.json changes * feat(forklift): small fixes after Copilot * feat(forklift): Fix the way it is registered * feat(forklift): Fixed the type for VMware * feat(forklift): small changes before rebase * feat: Added new API for the vms * feat: Fix some labels * feat: Added some final fixes to structure * feat: added loading to provider steps * feat: added comments from copilot review --------- (cherry picked from commit 560643d299216e679942d05803af9d1ce0f74f6a) Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com> Co-authored-by: marcelofukumoto <marceloyfukumoto@gmail.com>
122 lines
4.5 KiB
JavaScript
122 lines
4.5 KiB
JavaScript
// eslint-disable-next-line import/named
|
|
// import { RouteRecordRaw } from 'vue-router';
|
|
import { PRODUCT_NAME } from '../config/harvester';
|
|
|
|
import Root from '../pages/c/_cluster/index.vue';
|
|
import HarvesterSupport from '../pages/c/_cluster/support/index.vue';
|
|
import HarvesterConsoleSerial from '../pages/c/_cluster/console/_uid/serial.vue';
|
|
import HarvesterConsoleVnc from '../pages/c/_cluster/console/_uid/vnc.vue';
|
|
import ListHarvesterResource from '../pages/c/_cluster/_resource/index.vue';
|
|
import HarvesterBrand from '../pages/c/_cluster/brand/index.vue';
|
|
import CreateHarvesterResource from '../pages/c/_cluster/_resource/create.vue';
|
|
import ViewHarvesterResource from '../pages/c/_cluster/_resource/_id.vue';
|
|
import ViewHarvesterNsResource from '../pages/c/_cluster/_resource/_namespace/_id.vue';
|
|
import HarvesterAirgapUpdgrade from '../pages/c/_cluster/airgapupgrade/index.vue';
|
|
import HarvesterMembers from '../pages/c/_cluster/members/index.vue';
|
|
import ProjectNamespaces from '../pages/c/_cluster/projectsnamespaces.vue';
|
|
import HarvesterAlertmanagerReceiver from '../pages/c/_cluster/alertmanagerconfig/_alertmanagerconfigid/receiver.vue';
|
|
import HarvesterUnsupported from '../pages/c/_cluster/unsupported/index.vue';
|
|
import ForkliftDashboard from '../pages/c/_cluster/vm-migration/index.vue';
|
|
import ForkliftVmMigrationWizard from '../pages/c/_cluster/vm-migration/vm-migration-wizard.vue';
|
|
import ForkliftProviderWizard from '../pages/c/_cluster/vm-migration/provider-wizard.vue';
|
|
|
|
const routes = [
|
|
{
|
|
route: {
|
|
name: `${ PRODUCT_NAME }-c-cluster-unsupported-standalone`,
|
|
path: `/:product`,
|
|
component: HarvesterUnsupported
|
|
},
|
|
parent: 'blank'
|
|
},
|
|
{
|
|
route: {
|
|
name: `${ PRODUCT_NAME }-c-cluster-unsupported`,
|
|
path: `/:product`,
|
|
component: HarvesterUnsupported
|
|
},
|
|
parent: 'plain'
|
|
},
|
|
{
|
|
name: `${ PRODUCT_NAME }-c-cluster-support`,
|
|
path: `/:product/c/:cluster/support`,
|
|
component: HarvesterSupport,
|
|
},
|
|
{
|
|
route: {
|
|
name: `${ PRODUCT_NAME }-c-cluster-console-uid-serial`,
|
|
path: `/:product/c/:cluster/console/:uid/serial`,
|
|
component: HarvesterConsoleSerial,
|
|
},
|
|
parent: 'blank'
|
|
},
|
|
{
|
|
route: {
|
|
name: `${ PRODUCT_NAME }-c-cluster-console-uid-vnc`,
|
|
path: `/:product/c/:cluster/console/:uid/vnc`,
|
|
component: HarvesterConsoleVnc,
|
|
},
|
|
parent: 'blank'
|
|
},
|
|
{
|
|
name: `${ PRODUCT_NAME }-c-cluster-airgapupgrade`,
|
|
path: `/:product/c/:cluster/airgapupgrade`,
|
|
component: HarvesterAirgapUpdgrade,
|
|
},
|
|
{
|
|
name: `${ PRODUCT_NAME }-c-cluster-brand`,
|
|
path: `/:product/c/:cluster/brand`,
|
|
component: HarvesterBrand,
|
|
},
|
|
{
|
|
name: `${ PRODUCT_NAME }-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,
|
|
path: `/:product/c/:cluster/alertmanagerconfig/:alertmanagerconfigid/receiver`,
|
|
component: HarvesterAlertmanagerReceiver,
|
|
},
|
|
{
|
|
name: `${ PRODUCT_NAME }-c-cluster-members`,
|
|
path: `/:product/c/:cluster/members`,
|
|
component: HarvesterMembers,
|
|
},
|
|
{
|
|
name: `${ PRODUCT_NAME }-c-cluster`,
|
|
path: `/:product/c/:cluster`,
|
|
component: Root,
|
|
}, {
|
|
name: `${ PRODUCT_NAME }-c-cluster-projectsnamespaces`,
|
|
path: `/:product/c/:cluster/projectsnamespaces`,
|
|
component: ProjectNamespaces,
|
|
}, {
|
|
name: `${ PRODUCT_NAME }-c-cluster-vm-migration`,
|
|
path: `/:product/c/:cluster/vm-migration`,
|
|
component: ForkliftDashboard,
|
|
}, {
|
|
name: `${ PRODUCT_NAME }-c-cluster-vm-migration-wizard`,
|
|
path: `/:product/c/:cluster/vm-migration/wizard`,
|
|
component: ForkliftVmMigrationWizard,
|
|
}, {
|
|
name: `${ PRODUCT_NAME }-c-cluster-vm-migration-provider-wizard`,
|
|
path: `/:product/c/:cluster/vm-migration/provider-wizard`,
|
|
component: ForkliftProviderWizard,
|
|
}, {
|
|
name: `${ PRODUCT_NAME }-c-cluster-resource`,
|
|
path: `/:product/c/:cluster/:resource`,
|
|
component: ListHarvesterResource,
|
|
}, {
|
|
name: `${ PRODUCT_NAME }-c-cluster-resource-create`,
|
|
path: `/:product/c/:cluster/:resource/create`,
|
|
component: CreateHarvesterResource,
|
|
}, {
|
|
name: `${ PRODUCT_NAME }-c-cluster-resource-id`,
|
|
path: `/:product/c/:cluster/:resource/:id`,
|
|
component: ViewHarvesterResource,
|
|
}, {
|
|
name: `${ PRODUCT_NAME }-c-cluster-resource-namespace-id`,
|
|
path: `/:product/c/:cluster/:resource/:namespace/:id`,
|
|
component: ViewHarvesterNsResource,
|
|
},
|
|
|
|
];
|
|
|
|
export default routes;
|