refactor(ui): cleanup eslint configuration
[e-mobility-charging-stations-simulator.git] / ui / web / src / router / index.ts
1 import { createRouter, createWebHistory } from 'vue-router'
2
3 import AddChargingStations from '@/components/actions/AddChargingStations.vue'
4 import SetSupervisionUrl from '@/components/actions/SetSupervisionUrl.vue'
5 import StartTransaction from '@/components/actions/StartTransaction.vue'
6 import ChargingStationsView from '@/views/ChargingStationsView.vue'
7 import NotFoundView from '@/views/NotFoundView.vue'
8
9 export const router = createRouter({
10 history: createWebHistory(),
11 routes: [
12 {
13 path: '/',
14 name: 'charging-stations',
15 components: {
16 default: ChargingStationsView
17 }
18 },
19 {
20 path: '/add-charging-stations',
21 name: 'add-charging-stations',
22 components: {
23 default: ChargingStationsView,
24 action: AddChargingStations
25 }
26 },
27 {
28 path: '/set-supervision-url/:hashId/:chargingStationId',
29 name: 'set-supervision-url',
30 components: {
31 default: ChargingStationsView,
32 action: SetSupervisionUrl
33 },
34 props: { default: false, action: true }
35 },
36 {
37 path: '/start-transaction/:hashId/:chargingStationId/:connectorId',
38 name: 'start-transaction',
39 components: {
40 default: ChargingStationsView,
41 action: StartTransaction
42 },
43 props: { default: false, action: true }
44 },
45 {
46 name: 'not-found',
47 path: '/:pathMatch(.*)*',
48 components: {
49 default: NotFoundView
50 }
51 }
52 ]
53 })