ff-admin/src/router/index.ts

1344 lines
56 KiB
TypeScript
Raw Normal View History

2024-09-18 10:38:57 +02:00
import { createRouter, createWebHistory } from "vue-router";
2024-09-17 16:44:02 +02:00
import Login from "@/views/Login.vue";
2024-08-23 14:42:32 +02:00
2024-11-21 15:58:58 +01:00
import { isAuthenticated } from "./authGuard";
2024-08-25 13:37:23 +02:00
import { isSetup } from "./setupGuard";
2024-09-01 19:19:48 +02:00
import { abilityAndNavUpdate } from "./adminGuard";
2024-09-17 16:44:02 +02:00
import type { PermissionType, PermissionSection, PermissionModule } from "@/types/permissionTypes";
2025-03-26 16:56:07 +01:00
import { resetMemberStores, setMemberId } from "./club/memberGuard";
import { resetProtocolStores, setProtocolId } from "./club/protocolGuard";
import { resetNewsletterStores, setNewsletterId } from "./club/newsletterGuard";
import { setBackupPage } from "./management/backupGuard";
import { resetEquipmentTypeStores, setEquipmentTypeId } from "./unit/equipmentType";
import { resetEquipmentStores, setEquipmentId } from "./unit/equipment";
import { resetVehicleStores, setVehicleId } from "./unit/vehicle";
import { resetRespiratoryGearStores, setRespiratoryGearId } from "./unit/respiratoryGear";
import { resetRespiratoryWearerStores, setRespiratoryWearerId } from "./unit/respiratoryWearer";
import { resetRespiratoryMissionStores, setRespiratoryMissionId } from "./unit/respiratoryMission";
2025-04-01 16:11:39 +02:00
import { resetWearableStores, setWearableId } from "./unit/wearable";
2025-04-11 14:14:11 +02:00
import { resetInspectionPlanStores, setInspectionPlanId } from "./unit/inspectionPlan";
2025-04-28 12:29:44 +02:00
import { setVehicleTypeId } from "./unit/vehicleType";
2024-08-22 11:48:04 +02:00
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: "/",
2024-08-23 14:42:32 +02:00
redirect: { name: "admin" },
},
{
path: "/login",
name: "login",
component: Login,
},
2024-08-25 13:37:23 +02:00
{
path: "/setup",
name: "setup",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2024-08-25 13:37:23 +02:00
beforeEnter: [isSetup],
children: [
{
path: "",
name: "setup-create",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/setup/Setup.vue"),
2024-08-25 13:37:23 +02:00
},
{
path: "verify",
name: "setup-verify",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/setup/Verify.vue"),
2024-08-25 13:37:23 +02:00
props: (route) => ({ mail: route.query.mail, token: route.query.token }),
},
],
},
2024-11-23 12:11:26 +01:00
{
2024-11-24 15:31:08 +01:00
path: "/reset",
name: "reset",
2024-11-23 12:11:26 +01:00
component: () => import("@/views/RouterView.vue"),
children: [
{
path: "",
2024-11-24 15:31:08 +01:00
name: "reset-start",
component: () => import("@/views/reset/Start.vue"),
2024-11-23 12:11:26 +01:00
},
{
2024-11-24 15:31:08 +01:00
path: "reset",
name: "reset-reset",
component: () => import("@/views/reset/Reset.vue"),
2024-11-23 14:25:41 +01:00
props: (route) => ({ mail: route.query.mail, token: route.query.token }),
},
],
},
{
path: "/invite",
name: "invite",
component: () => import("@/views/RouterView.vue"),
children: [
{
path: "verify",
name: "invite-verify",
component: () => import("@/views/invite/Verify.vue"),
2024-11-23 12:11:26 +01:00
props: (route) => ({ mail: route.query.mail, token: route.query.token }),
},
],
},
2024-08-23 14:42:32 +02:00
{
path: "/admin",
name: "admin",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/admin/View.vue"),
2024-08-23 14:42:32 +02:00
beforeEnter: [isAuthenticated],
2024-09-01 19:19:48 +02:00
children: [
{
path: "",
name: "admin-default",
component: () => import("@/views/admin/ViewSelect.vue"),
2024-09-01 19:19:48 +02:00
},
{
path: "club",
name: "admin-club",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2024-09-01 19:19:48 +02:00
meta: { type: "read", section: "club" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-club-default",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/admin/ViewSelect.vue"),
2024-09-02 15:57:03 +02:00
meta: { type: "read", section: "club" },
beforeEnter: [abilityAndNavUpdate],
2024-09-01 19:19:48 +02:00
},
{
path: "members",
2024-09-17 16:44:02 +02:00
name: "admin-club-member-route",
component: () => import("@/views/RouterView.vue"),
2024-09-16 19:03:52 +02:00
meta: { type: "read", section: "club", module: "member" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
2024-09-17 16:44:02 +02:00
children: [
{
path: "",
name: "admin-club-member",
2024-11-24 15:31:08 +01:00
component: () => import("@/views/admin/club/members/Member.vue"),
2024-09-18 10:38:57 +02:00
beforeEnter: [resetMemberStores],
2024-09-17 16:44:02 +02:00
},
{
path: ":memberId",
name: "admin-club-member-routing",
2024-11-24 15:31:08 +01:00
component: () => import("@/views/admin/club/members/MemberRouting.vue"),
2024-09-17 16:44:02 +02:00
beforeEnter: [setMemberId],
props: true,
children: [
{
path: "overview",
name: "admin-club-member-overview",
2024-11-24 15:31:08 +01:00
component: () => import("@/views/admin/club/members/MemberOverview.vue"),
2024-09-17 16:44:02 +02:00
props: true,
},
{
path: "membership",
name: "admin-club-member-membership",
2024-11-24 15:31:08 +01:00
component: () => import("@/views/admin/club/members/Membership.vue"),
2024-09-17 16:44:02 +02:00
props: true,
},
{
path: "communication",
name: "admin-club-member-communication",
2024-11-24 15:31:08 +01:00
component: () => import("@/views/admin/club/members/MemberCommunication.vue"),
2024-09-17 16:44:02 +02:00
props: true,
},
{
path: "awards",
name: "admin-club-member-awards",
2024-11-24 15:31:08 +01:00
component: () => import("@/views/admin/club/members/MemberAwards.vue"),
2024-09-17 16:44:02 +02:00
props: true,
},
{
path: "qualifications",
name: "admin-club-member-qualifications",
2024-11-24 15:31:08 +01:00
component: () => import("@/views/admin/club/members/MemberQualifications.vue"),
2024-09-17 16:44:02 +02:00
props: true,
},
{
path: "positions",
name: "admin-club-member-positions",
2024-11-24 15:31:08 +01:00
component: () => import("@/views/admin/club/members/MemberExecutivePositions.vue"),
2024-09-17 16:44:02 +02:00
props: true,
},
2024-09-26 13:16:31 +02:00
{
path: "edit",
name: "admin-club-member-edit",
2024-11-24 15:31:08 +01:00
component: () => import("@/views/admin/club/members/MemberEdit.vue"),
2024-09-26 13:16:31 +02:00
meta: { type: "update", section: "club", module: "member" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
2024-09-17 16:44:02 +02:00
],
},
],
2024-09-01 19:19:48 +02:00
},
{
path: "calendar",
name: "admin-club-calendar",
2024-10-06 12:02:39 +02:00
component: () => import("@/views/admin/club/calendar/Calendar.vue"),
2024-09-02 15:57:03 +02:00
meta: { type: "read", section: "club", module: "calendar" },
beforeEnter: [abilityAndNavUpdate],
2024-09-01 19:19:48 +02:00
},
{
path: "newsletter",
2024-12-26 13:57:45 +01:00
name: "admin-club-newsletter-route",
component: () => import("@/views/RouterView.vue"),
2024-09-02 15:57:03 +02:00
meta: { type: "read", section: "club", module: "newsletter" },
beforeEnter: [abilityAndNavUpdate],
2024-12-26 13:57:45 +01:00
children: [
{
path: "",
name: "admin-club-newsletter",
component: () => import("@/views/admin/club/newsletter/Newsletter.vue"),
beforeEnter: [resetNewsletterStores],
},
{
path: ":newsletterId",
name: "admin-club-newsletter-routing",
component: () => import("@/views/admin/club/newsletter/NewsletterRouting.vue"),
beforeEnter: [setNewsletterId],
props: true,
children: [
{
path: "overview",
name: "admin-club-newsletter-overview",
component: () => import("@/views/admin/club/newsletter/NewsletterOverview.vue"),
props: true,
},
2024-12-28 18:03:20 +01:00
{
path: "data",
name: "admin-club-newsletter-data",
component: () => import("@/views/admin/club/newsletter/NewsletterData.vue"),
props: true,
},
2024-12-26 13:57:45 +01:00
{
path: "recipients",
name: "admin-club-newsletter-recipients",
component: () => import("@/views/admin/club/newsletter/NewsletterRecipients.vue"),
props: true,
},
{
path: "dates",
name: "admin-club-newsletter-dates",
component: () => import("@/views/admin/club/newsletter/NewsletterDates.vue"),
props: true,
},
{
path: "printout",
name: "admin-club-newsletter-printout",
component: () => import("@/views/admin/club/newsletter/NewsletterPrintout.vue"),
props: true,
},
],
},
],
2024-09-01 19:19:48 +02:00
},
{
path: "protocol",
2024-10-03 13:43:13 +02:00
name: "admin-club-protocol-route",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "club", module: "protocol" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
2024-10-03 13:43:13 +02:00
children: [
{
path: "",
name: "admin-club-protocol",
2024-10-08 10:43:16 +02:00
component: () => import("@/views/admin/club/protocol/Protocol.vue"),
2024-10-03 13:43:13 +02:00
beforeEnter: [resetProtocolStores],
},
{
path: ":protocolId",
name: "admin-club-protocol-routing",
2024-10-08 10:43:16 +02:00
component: () => import("@/views/admin/club/protocol/ProtocolRouting.vue"),
2024-10-03 13:43:13 +02:00
beforeEnter: [setProtocolId],
props: true,
children: [
{
path: "overview",
name: "admin-club-protocol-overview",
2024-10-08 10:43:16 +02:00
component: () => import("@/views/admin/club/protocol/ProtocolOverview.vue"),
2024-10-03 13:43:13 +02:00
props: true,
},
{
2024-10-11 14:43:56 +02:00
path: "presence",
name: "admin-club-protocol-presence",
component: () => import("@/views/admin/club/protocol/ProtocolPresence.vue"),
2024-10-04 12:47:04 +02:00
props: true,
},
{
path: "voting",
name: "admin-club-protocol-voting",
2024-10-08 10:43:16 +02:00
component: () => import("@/views/admin/club/protocol/ProtocolVoting.vue"),
2024-10-04 12:47:04 +02:00
props: true,
},
{
path: "decisions",
name: "admin-club-protocol-decisions",
2024-10-08 10:43:16 +02:00
component: () => import("@/views/admin/club/protocol/ProtocolDecisions.vue"),
2024-10-04 12:47:04 +02:00
props: true,
},
{
2024-10-11 14:43:56 +02:00
path: "agenda",
name: "admin-club-protocol-agenda",
component: () => import("@/views/admin/club/protocol/ProtocolAgenda.vue"),
2024-10-03 13:43:13 +02:00
props: true,
},
2024-10-19 16:24:33 +02:00
{
path: "printout",
name: "admin-club-protocol-printout",
component: () => import("@/views/admin/club/protocol/ProtocolPrintout.vue"),
props: true,
},
2024-10-03 13:43:13 +02:00
],
},
],
2024-09-01 19:19:48 +02:00
},
2024-12-12 16:34:03 +01:00
{
path: "query-builder",
name: "admin-club-query_builder",
component: () => import("@/views/admin/club/query/Builder.vue"),
meta: { type: "read", section: "club", module: "query" },
beforeEnter: [abilityAndNavUpdate],
},
2025-03-19 14:38:35 +01:00
{
path: "listprint",
name: "admin-club-listprint",
component: () => import("@/views/admin/club/listprint/ListPrint.vue"),
meta: { type: "read", section: "club", module: "listprint" },
beforeEnter: [abilityAndNavUpdate],
},
2024-09-01 19:19:48 +02:00
],
},
2025-03-22 08:18:36 +01:00
{
path: "unit",
name: "admin-unit",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "unit" },
beforeEnter: [abilityAndNavUpdate],
2025-03-24 15:12:03 +01:00
children: [
{
path: "",
name: "admin-unit-default",
component: () => import("@/views/admin/ViewSelect.vue"),
meta: { type: "read", section: "unit" },
beforeEnter: [abilityAndNavUpdate],
},
{
path: "equipment",
name: "admin-unit-equipment-route",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "unit", module: "equipment" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-equipment",
component: () => import("@/views/admin/unit/equipment/Equipment.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [resetEquipmentStores],
2025-03-24 15:12:03 +01:00
},
2025-03-30 17:24:17 +02:00
{
path: "create",
name: "admin-unit-equipment-create",
2025-03-31 15:35:21 +02:00
component: () => import("@/views/admin/unit/equipment/CreateEquipment.vue"),
2025-03-30 17:24:17 +02:00
meta: { type: "create", section: "unit", module: "equipment" },
beforeEnter: [abilityAndNavUpdate],
},
2025-03-26 12:20:06 +01:00
{
path: ":equipmentId",
name: "admin-unit-equipment-routing",
component: () => import("@/views/admin/unit/equipment/EquipmentRouting.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [setEquipmentId],
2025-03-26 12:20:06 +01:00
props: true,
children: [
{
path: "overview",
name: "admin-unit-equipment-overview",
2025-03-31 15:35:21 +02:00
component: () => import("@/views/admin/unit/equipment/Overview.vue"),
2025-03-26 12:20:06 +01:00
props: true,
},
{
2025-03-30 17:24:17 +02:00
path: "maintenance",
name: "admin-unit-equipment-maintenance",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "inspection",
name: "admin-unit-equipment-inspection",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "report",
name: "admin-unit-equipment-damage_report",
2025-03-26 12:20:06 +01:00
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "edit",
name: "admin-unit-equipment-edit",
2025-03-31 15:35:21 +02:00
component: () => import("@/views/admin/unit/equipment/UpdateEquipment.vue"),
2025-03-26 12:20:06 +01:00
meta: { type: "update", section: "unit", module: "equipment" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
2025-03-24 15:12:03 +01:00
],
},
{
path: "vehicle",
name: "admin-unit-vehicle-route",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "unit", module: "vehicle" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-vehicle",
component: () => import("@/views/admin/unit/vehicle/Vehicle.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [resetVehicleStores],
2025-03-24 15:12:03 +01:00
},
2025-03-30 17:24:17 +02:00
{
path: "create",
name: "admin-unit-vehicle-create",
2025-04-28 12:29:44 +02:00
component: () => import("@/views/admin/unit/vehicle/CreateVehicle.vue"),
2025-03-30 17:24:17 +02:00
meta: { type: "create", section: "unit", module: "vehicle" },
beforeEnter: [abilityAndNavUpdate],
},
2025-03-26 12:20:06 +01:00
{
path: ":vehicleId",
name: "admin-unit-vehicle-routing",
component: () => import("@/views/admin/unit/vehicle/VehicleRouting.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [setVehicleId],
2025-03-26 12:20:06 +01:00
props: true,
children: [
{
path: "overview",
name: "admin-unit-vehicle-overview",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
2025-03-30 17:24:17 +02:00
path: "maintenance",
name: "admin-unit-vehicle-maintenance",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "inspection",
name: "admin-unit-vehicle-inspection",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "report",
name: "admin-unit-vehicle-damage_report",
2025-03-26 12:20:06 +01:00
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "edit",
name: "admin-unit-vehicle-edit",
2025-05-13 12:30:57 +02:00
component: () => import("@/views/admin/unit/vehicle/UpdateVehicle.vue"),
2025-03-26 12:20:06 +01:00
meta: { type: "update", section: "unit", module: "vehicle" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
2025-03-24 15:12:03 +01:00
],
},
2025-04-01 16:11:39 +02:00
{
path: "wearable",
name: "admin-unit-wearable-route",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "unit", module: "wearable" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-wearable",
component: () => import("@/views/admin/unit/wearable/Wearable.vue"),
beforeEnter: [resetWearableStores],
},
{
path: "create",
name: "admin-unit-wearable-create",
component: () => import("@/views/admin/unit/wearable/CreateWearable.vue"),
meta: { type: "create", section: "unit", module: "wearable" },
beforeEnter: [abilityAndNavUpdate],
},
{
path: ":wearableId",
name: "admin-unit-wearable-routing",
component: () => import("@/views/admin/unit/wearable/WearableRouting.vue"),
beforeEnter: [setWearableId],
props: true,
children: [
{
path: "overview",
name: "admin-unit-wearable-overview",
component: () => import("@/views/admin/unit/wearable/Overview.vue"),
props: true,
},
{
path: "report",
name: "admin-unit-wearable-damage_report",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "edit",
name: "admin-unit-wearable-edit",
component: () => import("@/views/admin/unit/wearable/UpdateWearable.vue"),
meta: { type: "update", section: "unit", module: "wearable" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
],
},
2025-03-24 17:16:07 +01:00
{
path: "respiratory-gear",
name: "admin-unit-respiratory_gear-route",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "unit", module: "respiratory_gear" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-respiratory_gear",
component: () => import("@/views/admin/unit/respiratoryGear/RespiratoryGear.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [resetRespiratoryGearStores],
2025-03-24 17:16:07 +01:00
},
2025-03-26 12:20:06 +01:00
{
path: ":respiratoryGearId",
name: "admin-unit-respiratory_gear-routing",
component: () => import("@/views/admin/unit/respiratoryGear/RespiratoryGearRouting.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [setRespiratoryGearId],
2025-03-26 12:20:06 +01:00
props: true,
children: [
{
path: "overview",
name: "admin-unit-respiratory_gear-overview",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
2025-03-30 17:24:17 +02:00
path: "maintenance",
name: "admin-unit-respiratory_gear-maintenance",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "inspection",
name: "admin-unit-respiratory_gear-inspection",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "mission",
name: "admin-unit-respiratory_gear-mission",
2025-03-26 12:20:06 +01:00
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "edit",
name: "admin-unit-respiratory_gear-edit",
component: () => import("@/views/admin/ViewSelect.vue"),
meta: { type: "update", section: "unit", module: "respiratory_gear" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
2025-03-24 17:16:07 +01:00
],
},
{
path: "respiratory-wearer",
name: "admin-unit-respiratory_wearer-route",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "unit", module: "respiratory_wearer" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-respiratory_wearer",
component: () => import("@/views/admin/unit/respiratoryWearer/RespiratoryWearer.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [resetRespiratoryWearerStores],
2025-03-24 17:16:07 +01:00
},
2025-03-26 12:20:06 +01:00
{
path: ":respiratoryWearerId",
name: "admin-unit-respiratory_wearer-routing",
component: () => import("@/views/admin/unit/respiratoryWearer/RespiratoryWearerRouting.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [setRespiratoryWearerId],
2025-03-26 12:20:06 +01:00
props: true,
children: [
{
path: "overview",
name: "admin-unit-respiratory_wearer-overview",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
2025-03-30 17:24:17 +02:00
path: "mission",
name: "admin-unit-respiratory_wearer-mission",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "education",
name: "admin-unit-respiratory_wearer-education",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "instruction",
name: "admin-unit-respiratory_wearer-instruction",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "screening",
name: "admin-unit-respiratory_wearer-screening",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "strain",
name: "admin-unit-respiratory_wearer-strain",
2025-03-26 12:20:06 +01:00
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "edit",
name: "admin-unit-respiratory_wearer-edit",
component: () => import("@/views/admin/ViewSelect.vue"),
meta: { type: "update", section: "unit", module: "respiratory_wearer" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
2025-03-24 17:16:07 +01:00
],
},
{
path: "respiratory-mission",
name: "admin-unit-respiratory_mission-route",
component: () => import("@/views/RouterView.vue"),
2025-03-26 12:20:06 +01:00
meta: { type: "read", section: "unit", module: "respiratory_mission" },
2025-03-24 17:16:07 +01:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-respiratory_mission",
component: () => import("@/views/admin/unit/respiratoryMission/RespiratoryMission.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [resetRespiratoryMissionStores],
2025-03-24 17:16:07 +01:00
},
2025-03-26 12:20:06 +01:00
{
path: ":respiratoryMissionId",
name: "admin-unit-respiratory_mission-routing",
component: () => import("@/views/admin/unit/respiratoryMission/RespiratoryMissionRouting.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [setRespiratoryMissionId],
2025-03-26 12:20:06 +01:00
props: true,
children: [
{
path: "overview",
name: "admin-unit-respiratory_mission-overview",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
2025-03-30 17:24:17 +02:00
path: "wearer",
name: "admin-unit-respiratory_mission-wearer",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "gear",
name: "admin-unit-respiratory_mission-gear",
2025-03-26 12:20:06 +01:00
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "edit",
name: "admin-unit-respiratory_mission-edit",
component: () => import("@/views/admin/ViewSelect.vue"),
meta: { type: "update", section: "unit", module: "respiratory_mission" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
2025-03-24 17:16:07 +01:00
],
},
{
path: "damage-report",
name: "admin-unit-damage_report-route",
2025-03-27 17:02:21 +01:00
component: () => import("@/views/admin/unit/damageReport/DamageReportRouting.vue"),
2025-03-24 17:16:07 +01:00
meta: { type: "read", section: "unit", module: "damage_report" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-damage_report",
component: () => import("@/views/admin/unit/damageReport/DamageReport.vue"),
},
2025-03-27 17:02:21 +01:00
{
path: "done",
name: "admin-unit-damage_report-done",
component: () => import("@/views/admin/unit/damageReport/DamageReport.vue"),
},
2025-03-24 17:16:07 +01:00
],
},
{
path: "equipment-type",
2025-03-26 12:20:06 +01:00
name: "admin-unit-equipment_type-route",
component: () => import("@/views/RouterView.vue"),
2025-03-24 17:16:07 +01:00
meta: { type: "read", section: "unit", module: "equipment_type" },
beforeEnter: [abilityAndNavUpdate],
2025-03-26 12:20:06 +01:00
children: [
{
path: "",
name: "admin-unit-equipment_type",
component: () => import("@/views/admin/unit/equipmentType/EquipmentType.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [resetEquipmentTypeStores],
2025-03-26 12:20:06 +01:00
},
{
path: ":equipmentTypeId",
name: "admin-unit-equipment_type-routing",
component: () => import("@/views/admin/unit/equipmentType/EquipmentTypeRouting.vue"),
2025-03-26 16:56:07 +01:00
beforeEnter: [setEquipmentTypeId],
2025-03-26 12:20:06 +01:00
props: true,
children: [
{
path: "overview",
name: "admin-unit-equipment_type-overview",
2025-03-31 10:59:41 +02:00
component: () => import("@/views/admin/unit/equipmentType/Overview.vue"),
2025-03-26 12:20:06 +01:00
props: true,
},
{
2025-03-30 17:24:17 +02:00
path: "inspection-plan",
name: "admin-unit-equipment_type-inspection_plan",
2025-03-31 10:59:41 +02:00
component: () => import("@/views/admin/unit/equipmentType/InspectionPlans.vue"),
2025-03-26 12:20:06 +01:00
props: true,
},
{
path: "edit",
name: "admin-unit-equipment_type-edit",
2025-04-28 12:29:44 +02:00
component: () => import("@/views/admin/unit/equipmentType/UpdateEquipmentType.vue"),
2025-03-26 12:20:06 +01:00
meta: { type: "update", section: "unit", module: "equipment_type" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
],
2025-03-24 17:16:07 +01:00
},
2025-04-11 14:14:11 +02:00
{
path: "vehicle-type",
name: "admin-unit-vehicle_type-route",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "unit", module: "vehicle_type" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-vehicle_type",
component: () => import("@/views/admin/unit/vehicleType/VehicleType.vue"),
},
{
path: ":vehicleTypeId",
name: "admin-unit-vehicle_type-routing",
component: () => import("@/views/admin/unit/vehicleType/VehicleTypeRouting.vue"),
2025-04-28 12:29:44 +02:00
beforeEnter: [setVehicleTypeId],
2025-04-11 14:14:11 +02:00
props: true,
children: [
{
path: "overview",
name: "admin-unit-vehicle_type-overview",
component: () => import("@/views/admin/unit/vehicleType/Overview.vue"),
props: true,
},
{
path: "inspection-plan",
name: "admin-unit-vehicle_type-inspection_plan",
component: () => import("@/views/admin/unit/vehicleType/InspectionPlans.vue"),
props: true,
},
{
path: "edit",
name: "admin-unit-vehicle_type-edit",
component: () => import("@/views/admin/ViewSelect.vue"),
meta: { type: "update", section: "unit", module: "equipment_type" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
],
},
2025-04-01 16:11:39 +02:00
{
path: "wearable-type",
name: "admin-unit-wearable_type-route",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "unit", module: "wearable_type" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-wearable_type",
component: () => import("@/views/admin/unit/wearableType/WearableType.vue"),
},
{
path: ":wearableTypeId/edit",
name: "admin-unit-wearable_type-edit",
component: () => import("@/views/admin/unit/wearableType/UpdateWearableType.vue"),
meta: { type: "update", section: "unit", module: "wearable_type" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
2025-04-11 14:14:11 +02:00
{
path: "inspection-plan",
name: "admin-unit-inspection_plan-route",
component: () => import("@/views/RouterView.vue"),
meta: { type: "read", section: "unit", module: "inspection_plan" },
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
name: "admin-unit-inspection_plan",
component: () => import("@/views/admin/unit/inspectionPlan/InspectionPlan.vue"),
beforeEnter: [resetInspectionPlanStores],
},
{
path: "create",
name: "admin-unit-inspection_plan-create",
component: () => import("@/views/admin/unit/inspectionPlan/CreateInspectionPlan.vue"),
meta: { type: "create", section: "unit", module: "equipment" },
beforeEnter: [abilityAndNavUpdate],
},
{
path: ":inspectionPlanId",
name: "admin-unit-inspection_plan-routing",
component: () => import("@/views/admin/unit/inspectionPlan/InspectionPlanRouting.vue"),
beforeEnter: [setInspectionPlanId],
props: true,
children: [
{
path: "",
name: "admin-unit-inspection_plan-overview",
component: () => import("@/views/admin/unit/inspectionPlan/Overview.vue"),
props: true,
},
{
path: "edit",
name: "admin-unit-inspection_plan-edit",
component: () => import("@/views/admin/ViewSelect.vue"),
meta: { type: "update", section: "unit", module: "inspection_plan" },
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
],
},
2025-03-24 15:12:03 +01:00
],
2025-03-22 08:18:36 +01:00
},
2024-09-01 19:19:48 +02:00
{
2025-02-15 11:41:27 +01:00
path: "configuration",
name: "admin-configuration",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration" },
2024-09-01 19:19:48 +02:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-default",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/admin/ViewSelect.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
2024-09-01 19:19:48 +02:00
},
{
path: "qualification",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-qualification-route",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "qualification" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
2024-09-09 13:13:45 +02:00
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-qualification",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/qualification/Qualification.vue"),
2024-09-09 13:13:45 +02:00
},
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-qualification-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/qualification/QualificationEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "configuration", module: "qualification" },
2024-09-09 13:13:45 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
2024-09-01 19:19:48 +02:00
},
{
path: "award",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-award-route",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "award" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
2024-09-09 13:13:45 +02:00
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-award",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/award/Award.vue"),
2024-09-09 13:13:45 +02:00
},
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-award-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/award/AwardEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "configuration", module: "award" },
2024-09-09 13:13:45 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
2024-09-01 19:19:48 +02:00
},
2024-09-09 13:13:45 +02:00
{
path: "executive-position",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-executive_position-route",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "executive_position" },
2024-09-09 13:13:45 +02:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-executive_position",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/executivePosition/ExecutivePosition.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "executive_position" },
2024-10-27 15:51:15 +01:00
beforeEnter: [abilityAndNavUpdate],
2024-09-09 13:13:45 +02:00
},
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-executive_position-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/executivePosition/ExecutivePositionEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "configuration", module: "executive_position" },
2024-09-09 13:13:45 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
2024-09-01 19:19:48 +02:00
{
2024-12-12 16:34:03 +01:00
path: "communication-type",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-communication_type-route",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "communication_type" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
2024-09-09 13:13:45 +02:00
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-communication_type",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/communicationType/CommunicationType.vue"),
2024-09-09 13:13:45 +02:00
},
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-communication_type-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/communicationType/CommunicationTypeEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "configuration", module: "communication_type" },
2024-09-09 13:13:45 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
{
path: "status",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-membership_status-route",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "membership_status" },
2024-09-09 13:13:45 +02:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-membership_status",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/membershipStatus/MembershipStatus.vue"),
2024-09-09 13:13:45 +02:00
},
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-membership_status-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/membershipStatus/MembershipStatusEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "configuration", module: "membership_status" },
2024-09-09 13:13:45 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
2024-10-27 15:51:15 +01:00
],
},
2025-01-25 12:16:05 +01:00
{
path: "salutation",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-salutation-route",
2025-01-25 12:16:05 +01:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "salutation" },
2025-01-25 12:16:05 +01:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-salutation",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/salutation/Salutation.vue"),
2025-01-25 12:16:05 +01:00
},
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-salutation-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/salutation/SalutationEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "configuration", module: "salutation" },
2025-01-25 12:16:05 +01:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
2024-10-27 15:51:15 +01:00
{
path: "calendar-type",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-calendar_type-route",
2024-10-27 15:51:15 +01:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "calendar_type" },
2024-10-27 15:51:15 +01:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-calendar_type",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/calendarType/CalendarType.vue"),
2024-10-27 15:51:15 +01:00
},
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-calendar_type-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/calendarType/CalendarTypeEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "configuration", module: "calendar_type" },
2024-10-27 15:51:15 +01:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
2024-09-09 13:13:45 +02:00
],
2024-09-01 19:19:48 +02:00
},
2024-12-12 16:34:03 +01:00
{
path: "query-store",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-query_store",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/queryStore/QueryStore.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "query_store" },
2024-12-12 16:34:03 +01:00
beforeEnter: [abilityAndNavUpdate],
},
2024-12-21 16:01:18 +01:00
{
path: "template",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-template-route",
2024-12-21 16:01:18 +01:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "template" },
2024-12-21 16:01:18 +01:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-template",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/template/Template.vue"),
2024-12-21 16:01:18 +01:00
},
2024-12-22 10:29:31 +01:00
{
path: "info",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-template-info",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/template/UsageInfo.vue"),
2024-12-22 10:29:31 +01:00
props: true,
},
2024-12-21 16:01:18 +01:00
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-template-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/template/TemplateEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "configuration", module: "template" },
2024-12-22 10:29:31 +01:00
beforeEnter: [abilityAndNavUpdate],
2024-12-21 16:01:18 +01:00
props: true,
},
],
},
2024-12-23 14:00:32 +01:00
{
path: "template-usage",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-template_usage",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/templateUsage/TemplateUsage.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "template_usage" },
2024-12-23 14:00:32 +01:00
beforeEnter: [abilityAndNavUpdate],
},
2024-12-25 12:22:10 +01:00
{
path: "newsletter-config",
2025-02-15 11:41:27 +01:00
name: "admin-configuration-newsletter_config",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/configuration/newsletterConfig/NewsletterConfig.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "configuration", module: "newsletter_config" },
2024-12-25 12:22:10 +01:00
beforeEnter: [abilityAndNavUpdate],
},
2024-09-01 19:19:48 +02:00
],
},
{
2025-02-15 11:41:27 +01:00
path: "management",
name: "admin-management",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "management" },
2024-09-01 19:19:48 +02:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-management-default",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/admin/ViewSelect.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "management" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
2024-09-01 19:19:48 +02:00
},
{
path: "user",
2025-02-15 11:41:27 +01:00
name: "admin-management-user-route",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "management", module: "user" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-management-user",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/user/User.vue"),
2024-09-02 15:57:03 +02:00
},
2024-11-23 14:25:41 +01:00
{
path: "invites",
2025-02-15 11:41:27 +01:00
name: "admin-management-user-invites",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/user/Invite.vue"),
2024-11-23 14:25:41 +01:00
},
2024-09-02 15:57:03 +02:00
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-management-user-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/user/UserEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "management", module: "user" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
{
path: ":id/permission",
2025-02-15 11:41:27 +01:00
name: "admin-management-user-permission",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/user/UserEditPermission.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "management", module: "user" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
{
path: ":id/roles",
2025-02-15 11:41:27 +01:00
name: "admin-management-user-roles",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/user/UserEditRoles.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "management", module: "user" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
2024-09-01 19:19:48 +02:00
},
{
path: "role",
2025-02-15 11:41:27 +01:00
name: "admin-management-role-route",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "management", module: "role" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-management-role",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/role/Role.vue"),
2024-09-02 15:57:03 +02:00
},
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-management-role-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/role/RoleEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "management", module: "role" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
{
path: ":id/permission",
2025-02-15 11:41:27 +01:00
name: "admin-management-role-permission",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/role/RoleEditPermission.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "management", module: "role" },
2025-01-22 10:17:11 +01:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
},
{
path: "webapi",
2025-02-15 11:41:27 +01:00
name: "admin-management-webapi-route",
2025-01-22 10:17:11 +01:00
component: () => import("@/views/RouterView.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "management", module: "webapi" },
2025-01-22 10:17:11 +01:00
beforeEnter: [abilityAndNavUpdate],
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-management-webapi",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/webapi/Webapi.vue"),
2025-01-22 10:17:11 +01:00
},
{
path: ":id/edit",
2025-02-15 11:41:27 +01:00
name: "admin-management-webapi-edit",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/webapi/WebapiEdit.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "management", module: "webapi" },
2025-01-22 10:17:11 +01:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
{
path: ":id/permission",
2025-02-15 11:41:27 +01:00
name: "admin-management-webapi-permission",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/webapi/WebapiEditPermission.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "update", section: "management", module: "webapi" },
2024-09-02 15:57:03 +02:00
beforeEnter: [abilityAndNavUpdate],
props: true,
},
],
2024-09-01 19:19:48 +02:00
},
{
path: "settings",
name: "admin-management-setting",
component: () => import("@/views/admin/management/setting/Setting.vue"),
meta: { type: "read", section: "management", module: "setting" },
beforeEnter: [abilityAndNavUpdate],
},
2025-02-02 16:37:46 +01:00
{
path: "backup",
2025-02-15 11:41:27 +01:00
name: "admin-management-backup-route",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/backup/BackupRouting.vue"),
2025-02-15 11:26:34 +01:00
meta: { type: "read", section: "management", module: "backup" },
2025-02-02 16:37:46 +01:00
beforeEnter: [abilityAndNavUpdate],
2025-02-03 11:03:38 +01:00
children: [
{
path: "",
2025-02-15 11:41:27 +01:00
name: "admin-management-backup",
redirect: { name: "admin-management-backup-generated" },
2025-02-03 11:03:38 +01:00
},
{
path: "generated",
2025-02-15 11:41:27 +01:00
name: "admin-management-backup-generated",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/backup/GeneratedBackup.vue"),
2025-02-03 11:03:38 +01:00
beforeEnter: [setBackupPage],
},
{
path: "uploads",
2025-02-15 11:41:27 +01:00
name: "admin-management-backup-uploaded",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/backup/UploadedBackup.vue"),
2025-02-03 11:03:38 +01:00
beforeEnter: [setBackupPage],
},
],
2025-02-02 16:37:46 +01:00
},
2025-02-07 13:23:53 +01:00
{
path: "version",
2025-02-15 11:41:27 +01:00
name: "admin-management-version",
2025-02-15 11:08:09 +01:00
component: () => import("@/views/admin/management/version/VersionDisplay.vue"),
2025-02-15 11:16:52 +01:00
meta: { admin: true },
beforeEnter: [abilityAndNavUpdate],
2025-02-07 13:23:53 +01:00
},
2024-09-01 19:19:48 +02:00
],
},
{
path: ":pathMatch(.*)*",
name: "admin-404",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/notFound.vue"),
2024-09-01 19:19:48 +02:00
},
],
2024-08-23 14:42:32 +02:00
},
2024-11-16 12:19:13 +01:00
{
path: "/account",
name: "account",
component: () => import("@/views/account/View.vue"),
beforeEnter: [isAuthenticated],
children: [
{
path: "",
name: "account-default",
2024-11-20 09:32:52 +01:00
component: () => import("@/views/account/ViewSelect.vue"),
},
{
path: "me",
name: "account-me",
2024-11-20 10:02:25 +01:00
component: () => import("@/views/account/Me.vue"),
2024-11-20 09:32:52 +01:00
},
{
path: "logindata",
name: "account-logindata",
component: () => import("@/views/account/LoginData.vue"),
2024-11-16 12:19:13 +01:00
},
2024-11-20 10:13:10 +01:00
{
path: "permission",
name: "account-permission",
component: () => import("@/views/account/Permission.vue"),
},
2024-11-21 15:58:58 +01:00
{
path: "administration",
name: "account-administration",
component: () => import("@/views/account/Administration.vue"),
},
2024-11-16 12:19:13 +01:00
{
path: ":pathMatch(.*)*",
name: "account-404",
component: () => import("@/views/notFound.vue"),
},
],
},
{
path: "/public",
name: "public",
component: () => import("@/views/public/View.vue"),
children: [
{
path: "",
name: "public-default",
component: () => import("@/views/notFound.vue"),
},
{
path: "calendar",
name: "public-calendar",
component: () => import("@/views/public/calendar/Calendar.vue"),
},
2024-12-05 16:37:10 +01:00
{
path: "calendar-explain",
name: "public-calendar-explain",
component: () => import("@/views/public/calendar/CalendarExplain.vue"),
},
],
},
2025-01-03 16:27:39 +01:00
{
path: "/docs",
name: "docs",
component: () => import("@/views/docs/View.vue"),
2025-01-04 19:18:14 +01:00
beforeEnter: [isAuthenticated],
2025-01-03 16:27:39 +01:00
props: true,
children: [
{
path: "",
name: "docs-default",
component: () => import("@/views/docs/ViewSelect.vue"),
},
{
path: ":page",
name: "docs-page",
component: () => import("@/views/docs/DocPage.vue"),
props: true,
},
],
},
{
path: "/nopermissions",
name: "nopermissions",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/NoPermission.vue"),
},
2024-08-23 14:42:32 +02:00
{
path: "/:pathMatch(.*)*",
name: "404",
2024-09-17 16:44:02 +02:00
component: () => import("@/views/notFound.vue"),
2024-08-22 11:48:04 +02:00
},
],
});
export default router;
2024-09-01 19:19:48 +02:00
declare module "vue-router" {
interface RouteMeta {
2025-02-15 11:26:34 +01:00
admin?: boolean;
2024-09-01 19:19:48 +02:00
type?: PermissionType | "admin";
section?: PermissionSection;
module?: PermissionModule;
}
}