Skip to content

Commit

Permalink
Remove sub routes bad meta fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Sep 28, 2024
1 parent c2ce1d2 commit 4cc6910
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 83 deletions.
20 changes: 0 additions & 20 deletions app/assets/router/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ const AdminGroupsRoutes = [
{
path: 'g/:slug', // groups/g/{slug}
name: 'admin.group',
meta: {
guest: {
redirect: { name: 'home' }
}
},
component: () => import('../views/GroupView.vue')
}
]
Expand All @@ -63,11 +58,6 @@ const AdminPermissionsRoutes = [
{
path: 'p/:id', // permissions/p/{id}
name: 'admin.permission',
meta: {
guest: {
redirect: { name: 'home' }
}
},
component: () => import('../views/PermissionView.vue')
}
]
Expand All @@ -87,11 +77,6 @@ const AdminRolesRoutes = [
{
path: 'r/:slug', // roles/r/{slug}
name: 'admin.role',
meta: {
guest: {
redirect: { name: 'home' }
}
},
component: () => import('../views/RoleView.vue')
}
]
Expand All @@ -112,11 +97,6 @@ const AdminUsersRoutes = [
{
path: 'u/:user_name', // users/u/{user_name}
name: 'admin.user',
meta: {
guest: {
redirect: { name: 'home' }
}
},
component: () => import('../views/UserView.vue')
}
]
Expand Down
28 changes: 0 additions & 28 deletions dist/router/routes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ declare const AdminGroupsRoutes: {
children: {
path: string;
name: string;
meta: {
guest: {
redirect: {
name: string;
};
};
};
component: () => Promise<typeof import("../views/GroupView.vue")>;
}[];
}[];
Expand All @@ -60,13 +53,6 @@ declare const AdminPermissionsRoutes: {
children: {
path: string;
name: string;
meta: {
guest: {
redirect: {
name: string;
};
};
};
component: () => Promise<typeof import("../views/PermissionView.vue")>;
}[];
}[];
Expand All @@ -84,13 +70,6 @@ declare const AdminRolesRoutes: {
children: {
path: string;
name: string;
meta: {
guest: {
redirect: {
name: string;
};
};
};
component: () => Promise<typeof import("../views/RoleView.vue")>;
}[];
}[];
Expand All @@ -108,13 +87,6 @@ declare const AdminUsersRoutes: {
children: {
path: string;
name: string;
meta: {
guest: {
redirect: {
name: string;
};
};
};
component: () => Promise<typeof import("../views/UserView.vue")>;
}[];
}[];
Expand Down
2 changes: 1 addition & 1 deletion dist/routes.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-CZ2sKm5M.cjs"))}],n=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-kaWFEO4i.cjs"))}],t=[{path:"groups",name:"admin.groups",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./GroupsView-BI4KKM8s.cjs")),children:[{path:"g/:slug",name:"admin.group",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./GroupView-BrWTling.cjs"))}]}],o=[{path:"permissions",name:"admin.permissions",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./PermissionsView-ftOWB-4K.cjs")),children:[{path:"p/:id",name:"admin.permission",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./PermissionView-CUKDO1AM.cjs"))}]}],r=[{path:"roles",name:"admin.roles",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./RolesView-ByDmJ9us.cjs")),children:[{path:"r/:slug",name:"admin.role",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./RoleView-CWK0-zrt.cjs"))}]}],i=[{path:"users",name:"admin.users",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./UsersView-C0bG-VhA.cjs")),children:[{path:"u/:user_name",name:"admin.user",meta:{guest:{redirect:{name:"home"}}},component:()=>Promise.resolve().then(()=>require("./UserView-BeTp1kMD.cjs"))}]}],s=[...e,...n,...t,...o,...r,...i];exports.AdminActivitiesRoutes=n;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=t;exports.AdminPermissionsRoutes=o;exports.AdminRolesRoutes=r;exports.AdminUsersRoutes=i;exports.default=s;
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=[{path:"dashboard",name:"admin.dashboard",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./DashboardView-CZ2sKm5M.cjs"))}],n=[{path:"activities",name:"admin.activities",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./ActivitiesView-kaWFEO4i.cjs"))}],o=[{path:"groups",name:"admin.groups",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./GroupsView-BI4KKM8s.cjs")),children:[{path:"g/:slug",name:"admin.group",component:()=>Promise.resolve().then(()=>require("./GroupView-BrWTling.cjs"))}]}],t=[{path:"permissions",name:"admin.permissions",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./PermissionsView-ftOWB-4K.cjs")),children:[{path:"p/:id",name:"admin.permission",component:()=>Promise.resolve().then(()=>require("./PermissionView-CUKDO1AM.cjs"))}]}],i=[{path:"roles",name:"admin.roles",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./RolesView-ByDmJ9us.cjs")),children:[{path:"r/:slug",name:"admin.role",component:()=>Promise.resolve().then(()=>require("./RoleView-CWK0-zrt.cjs"))}]}],s=[{path:"users",name:"admin.users",meta:{auth:{redirect:{name:"account.login"}}},component:()=>Promise.resolve().then(()=>require("./UsersView-C0bG-VhA.cjs")),children:[{path:"u/:user_name",name:"admin.user",component:()=>Promise.resolve().then(()=>require("./UserView-BeTp1kMD.cjs"))}]}],r=[...e,...n,...o,...t,...i,...s];exports.AdminActivitiesRoutes=n;exports.AdminDashboardRoutes=e;exports.AdminGroupsRoutes=o;exports.AdminPermissionsRoutes=t;exports.AdminRolesRoutes=i;exports.AdminUsersRoutes=s;exports.default=r;
48 changes: 14 additions & 34 deletions dist/routes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const e = [
const n = [
{
path: "dashboard",
name: "admin.dashboard",
Expand All @@ -20,7 +20,7 @@ const e = [
},
component: () => import("./ActivitiesView-C0jTPO1P.js")
}
], n = [
], e = [
{
path: "groups",
name: "admin.groups",
Expand All @@ -35,16 +35,11 @@ const e = [
path: "g/:slug",
// groups/g/{slug}
name: "admin.group",
meta: {
guest: {
redirect: { name: "home" }
}
},
component: () => import("./GroupView-R6IL_kMD.js")
}
]
}
], m = [
], o = [
{
path: "permissions",
name: "admin.permissions",
Expand All @@ -59,16 +54,11 @@ const e = [
path: "p/:id",
// permissions/p/{id}
name: "admin.permission",
meta: {
guest: {
redirect: { name: "home" }
}
},
component: () => import("./PermissionView-Bo5S_ghn.js")
}
]
}
], o = [
], a = [
{
path: "roles",
name: "admin.roles",
Expand All @@ -83,16 +73,11 @@ const e = [
path: "r/:slug",
// roles/r/{slug}
name: "admin.role",
meta: {
guest: {
redirect: { name: "home" }
}
},
component: () => import("./RoleView-HTwNAw_F.js")
}
]
}
], a = [
], m = [
{
path: "users",
name: "admin.users",
Expand All @@ -107,29 +92,24 @@ const e = [
path: "u/:user_name",
// users/u/{user_name}
name: "admin.user",
meta: {
guest: {
redirect: { name: "home" }
}
},
component: () => import("./UserView-BX3m4dnh.js")
}
]
}
], i = [
...e,
...t,
...n,
...m,
...t,
...e,
...o,
...a
...a,
...m
];
export {
t as AdminActivitiesRoutes,
e as AdminDashboardRoutes,
n as AdminGroupsRoutes,
m as AdminPermissionsRoutes,
o as AdminRolesRoutes,
a as AdminUsersRoutes,
n as AdminDashboardRoutes,
e as AdminGroupsRoutes,
o as AdminPermissionsRoutes,
a as AdminRolesRoutes,
m as AdminUsersRoutes,
i as default
};

0 comments on commit 4cc6910

Please sign in to comment.