Skip to content

Commit

Permalink
feat(ui): add user field routes
Browse files Browse the repository at this point in the history
- introduce new route for "/user" with child routes
- add components for overview, image upload, images, albums, and profile
- enable redirection to "overview" as default child route
  • Loading branch information
ShiinaKin committed Nov 11, 2024
1 parent dcf33b9 commit eb02da8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions ui/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,39 @@ const router = createRouter({
}
]
},
{
path: "/user",
name: "userField",
component: () => import("@/views/structure/userField/UserField.vue"),
redirect: { name: "overview" },
children: [
{
path: "overview",
name: "overview",
component: () => import("@/views/structure/userField/common/OverviewView.vue")
},
{
path: "upload",
name: "imageUpload",
component: () => import("@/views/structure/userField/image/ImageUploadView.vue")
},
{
path: "images",
name: "myImage",
component: () => import("@/views/structure/userField/image/MyImageView.vue")
},
{
path: "albums",
name: "myAlbum",
component: () => import("@/views/structure/userField/album/MyAlbumView.vue")
},
{
path: "profile",
name: "profile",
component: () => import("@/views/structure/userField/user/UserProfileView.vue")
}
]
},
{
path: "/:pathMatch(.*)",
name: "notFound",
Expand Down

0 comments on commit eb02da8

Please sign in to comment.