import type { RouterOptions } from 'vue-router' import { createRouter, createWebHashHistory } from 'vue-router' export const routes: RouterOptions['routes'] = [ { path: '/', redirect: '/overview', }, { path: '/rgb', component: () => import('./src/RGBFlow/RGBFlow.vue'), }, { path: '/basic', component: () => import('./src/Basic/Basic.vue'), }, { path: '/basic-options-api', component: () => import('./src/Basic/BasicOptionsAPI.vue'), }, { path: '/custom-connectionline', component: () => import('./src/CustomConnectionLine/CustomConnectionLine.vue'), }, { path: '/custom-node', component: () => import('./src/CustomNode/CustomNode.vue'), }, { path: '/drag-n-drop', component: () => import('./src/DragNDrop/DnD.vue'), }, { path: '/edges', component: () => import('./src/Edges/EdgesExample.vue'), }, { path: '/edge-types', component: () => import('./src/EdgeTypes/EdgeTypesExample.vue'), }, { path: '/empty', component: () => import('./src/Empty/EmptyExample.vue'), }, { path: '/hidden', component: () => import('./src/Hidden/HiddenExample.vue'), }, { path: '/interaction', component: () => import('./src/Interaction/InteractionExample.vue'), }, { path: '/layouting', component: () => import('./src/Layouting/LayoutingExample.vue'), }, { path: '/multi-flows', component: () => import('./src/MultiFlows/MultiFlowsExample.vue'), }, { path: '/node-type-change', component: () => import('./src/NodeTypeChange/NodeTypeChangeExample.vue'), }, { path: '/floating-edges', component: () => import('./src/FloatingEdges/FloatingEdges.vue'), }, { path: '/overview', component: () => import('./src/Overview/Overview.vue'), }, { path: '/provider', component: () => import('./src/Provider/ProviderExample.vue'), }, { path: '/save-restore', component: () => import('./src/SaveRestore/SaveRestoreExample.vue'), }, { path: '/stress', component: () => import('./src/Stress/StressExample.vue'), }, { path: '/switch', component: () => import('./src/Switch/SwitchExample.vue'), }, { path: '/unidirectional', component: () => import('./src/Unidirectional/UnidirectionalExample.vue'), }, { path: '/updateable-edge', component: () => import('./src/UpdatableEdge/UpdatableEdgeExample.vue'), }, { path: '/update-node', component: () => import('./src/UpdateNode/UpdateNodeExample.vue'), }, { path: '/validation', component: () => import('./src/Validation/ValidationExample.vue'), }, { path: '/nesting', component: () => import('./src/Nesting/Nesting.vue'), }, ] export const router = createRouter({ history: createWebHashHistory(), routes, })