Files
coba-tampilan/data/dummy/rolePage.ts
T
2025-07-21 10:14:27 +07:00

137 lines
3.1 KiB
TypeScript

import type { RolePage } from "~/types/setting/setting";
const rolePages: RolePage[] = [
{
id_user: 1,
username: "Super Admin",
email: "[email protected]",
password: "123456",
full_name: "System Administrator",
role: "Super admin",
role_description: "Administrative access with most permissions",
pages: [
{
title: "Dashboard1",
path: "/dashboards/dashboard1",
permissions: ["create", "view", "update", "delete"],
},
{
title: "Dashboard2",
path: "/dashboards/dashboard2",
permissions: ["create", "view", "update", "delete"],
},
{
title: "Homepage",
path: "/front-page/homepage",
permissions: ["create", "view", "update", "delete"],
},
{
title: "About Us",
path: "/front-page/about-us",
permissions: ["create", "view", "update", "delete"],
},
{
title: "Error",
path: "/auth/404",
permissions: ["view"],
},
{
title: "Side Login",
path: "/auth/login",
permissions: ["view"],
},
],
},
{
id_user: 2,
username: "admin",
email: "[email protected]",
password: "234567",
full_name: "John Manager",
role: "admin",
role_description: "admin level access for operational tasks",
pages: [
{
title: "Dashboard1",
path: "/dashboards/dashboard1",
permissions: ["view"],
},
{
title: "Dashboard2",
path: "/dashboards/dashboard1",
permissions: ["view"],
},
{
title: "Homepage",
path: "/front-page/homepage",
permissions: ["view"],
},
{
title: "About Us",
path: "/front-page/about-us",
permissions: ["view"],
},
],
},
{
id_user: 3,
username: "staf",
email: "[email protected]",
password: "234567",
full_name: "John Manager",
role: "staf",
role_description: "staf level access for operational tasks",
pages: [
{
title: "Dashboard1",
path: "/dashboards/dashboard1",
permissions: ["view"],
},
{
title: "Dashboard2",
path: "/dashboards/dashboard1",
permissions: ["view"],
},
{
title: "Homepage",
path: "/front-page/homepage",
permissions: ["view"],
},
{
title: "About Us",
path: "/front-page/about-us",
permissions: ["view"],
},
],
},
{
id_user: 4,
username: "PJA / Koordinator",
email: "[email protected]",
password: "234567",
full_name: "John Manager",
role: "PJA / Koordinator",
role_description: "PJA / Koordinator level access for operational tasks",
pages: [
{
title: "Dashboard1",
path: "/dashboards/dashboard1",
permissions: ["view"],
},
{
title: "Dashboard2",
path: "/dashboards/dashboard1",
permissions: ["view"],
},
{
title: "Homepage",
path: "/front-page/homepage",
permissions: ["view"],
},
],
},
];
export default rolePages;