chore(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git] / ui / web / src / router / index.ts
CommitLineData
3083f76e 1/* eslint-disable @typescript-eslint/no-unsafe-assignment */
c317ae3e 2import AddChargingStations from '@/components/actions/AddChargingStations.vue'
f8696170 3import SetSupervisionUrl from '@/components/actions/SetSupervisionUrl.vue'
84ec8d34
JB
4import StartTransaction from '@/components/actions/StartTransaction.vue'
5import ChargingStationsView from '@/views/ChargingStationsView.vue'
877b880c 6import NotFoundView from '@/views/NotFoundView.vue'
0749233f 7import { createRouter, createWebHistory } from 'vue-router'
32de5a57 8
13c19b7b 9export const router = createRouter({
2cddfd51 10 history: createWebHistory(),
13c19b7b
JB
11 routes: [
12 {
13c19b7b 13 components: {
b015f776
JB
14 default: ChargingStationsView,
15 },
0749233f
JB
16 name: 'charging-stations',
17 path: '/',
c317ae3e
JB
18 },
19 {
c317ae3e 20 components: {
b015f776 21 action: AddChargingStations,
0749233f 22 default: ChargingStationsView,
b015f776 23 },
0749233f
JB
24 name: 'add-charging-stations',
25 path: '/add-charging-stations',
c317ae3e 26 },
f8696170 27 {
f8696170 28 components: {
b015f776 29 action: SetSupervisionUrl,
0749233f 30 default: ChargingStationsView,
f8696170 31 },
0749233f
JB
32 name: 'set-supervision-url',
33 path: '/set-supervision-url/:hashId/:chargingStationId',
34 props: { action: true, default: false },
f8696170 35 },
c317ae3e 36 {
c317ae3e 37 components: {
b015f776 38 action: StartTransaction,
0749233f 39 default: ChargingStationsView,
c317ae3e 40 },
0749233f
JB
41 name: 'start-transaction',
42 path: '/start-transaction/:hashId/:chargingStationId/:connectorId',
43 props: { action: true, default: false },
877b880c
JB
44 },
45 {
877b880c 46 components: {
b015f776
JB
47 default: NotFoundView,
48 },
0749233f
JB
49 name: 'not-found',
50 path: '/:pathMatch(.*)*',
b015f776
JB
51 },
52 ],
66a7748d 53})