Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
refactor: Remove unused UserView component and related route
Browse files Browse the repository at this point in the history
This commit removes the unused UserView component and its corresponding route from the router configuration. The UserView component was no longer needed and was causing unnecessary code clutter. Removing it improves code cleanliness and reduces potential confusion for developers working on the project.
  • Loading branch information
SakuraPuare committed Jun 18, 2024
1 parent 160124b commit e47ba8c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions web/src/utils/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ const routes = [
component: () => import("@/views/home/staff/RequestView.vue"),
meta: { title: "Request", requiresAuth: true },
},
{
path: "/home/staff/user",
component: () => import("@/views/home/staff/UserView.vue"),
meta: { title: "User", requiresAuth: true },
},
],
},
],
Expand Down
1 change: 0 additions & 1 deletion web/src/views/home/staff/UserView.vue

This file was deleted.

8 changes: 0 additions & 8 deletions web/src/views/index/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
faStore,
faSuitcase,
faTicket,
faUser,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { autoIncrement } from "@/utils/utils";
Expand Down Expand Up @@ -137,13 +136,6 @@ const update = () => {
icon: faComment,
children: [],
});
managementChildren.push({
id: autoIncrement(menuItems.value),
label: "User",
link: "/home/staff/user",
icon: faUser,
children: [],
});
}
if (managementChildren.length > 0) {
menuItems.value.push({
Expand Down

0 comments on commit e47ba8c

Please sign in to comment.