Skip to content

Commit

Permalink
Refine routes map
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby committed Jan 17, 2024
1 parent d29b258 commit 1cad970
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
25 changes: 13 additions & 12 deletions console/uc-src/modules/contents/posts/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@ export default definePlugin({
ucRoutes: [
{
path: "/posts",
name: "PostsRoot",
component: BasicLayout,
meta: {
title: "core.uc_post.title",
searchable: true,
permissions: ["uc:posts:manage"],
menu: {
name: "core.uc_sidebar.menu.items.posts",
group: "content",
icon: markRaw(IconBookRead),
priority: 0,
mobile: true,
},
},
children: [
{
path: "",
name: "Posts",
component: PostList,
meta: {
title: "core.uc_post.title",
searchable: true,
permissions: ["uc:posts:manage"],
menu: {
name: "core.uc_sidebar.menu.items.posts",
group: "content",
icon: markRaw(IconBookRead),
priority: 0,
mobile: true,
},
},
},
{
path: "editor",
Expand Down
23 changes: 12 additions & 11 deletions console/uc-src/modules/notifications/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ export default definePlugin({
ucRoutes: [
{
path: "/notifications",
name: "NotificationsRoot",
component: BasicLayout,
meta: {
title: "core.uc_notification.title",
searchable: true,
menu: {
name: "core.uc_sidebar.menu.items.notification",
group: "dashboard",
icon: markRaw(IconNotificationBadgeLine),
priority: 1,
mobile: true,
},
},
children: [
{
path: "",
name: "Notifications",
component: Notifications,
meta: {
title: "core.uc_notification.title",
searchable: true,
menu: {
name: "core.uc_sidebar.menu.items.notification",
group: "dashboard",
icon: markRaw(IconNotificationBadgeLine),
priority: 1,
mobile: true,
},
},
},
],
},
Expand Down

0 comments on commit 1cad970

Please sign in to comment.