Backend for Custom Frontend OSPRO Surveyor Indonesia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

80 lines
1.5 KiB

let dashboardUrl = '';
let menu = {};
if (localStorage.getItem('u_group') === "kominfo") {
dashboardUrl = '/dashboard-kominfo';
menu = {
items: [
{
name: 'Dashboard',
url: dashboardUrl,
icon: 'icon-speedometer',
},
{
name: 'Map',
url: '/map/view',
icon: 'icon-map',
}
]
}
}
else {
dashboardUrl = '/dashboard';
menu = {
items: [
{
name: 'Dashboard',
url: dashboardUrl,
icon: 'icon-speedometer',
},
{
name: 'Peta',
url: '/map/view',
icon: 'icon-map',
},
{
name: 'Karyawan',
url: '/karyawan',
icon: 'icon-user',
},
{
name: 'Presensi',
url: '/presensi',
icon: 'fa fa-calendar-check-o',
},
{
name: 'Absensi',
url: '/absensi',
icon: 'fa fa-calendar-times-o'
},
{
name: 'Laporan Tugas Karyawan',
url: '/laporan-tugas-karyawan',
icon: 'cil-task',
},
{
name: 'Tombol Darurat',
url: '/panic-button',
icon: 'fa fa-dot-circle-o ',
},
{
name: 'Menu',
url: '/menu',
icon: 'cil-menu',
},
{
name: 'Roles',
url: '/roles',
icon: 'cil-people',
},
{
name: 'Lembur',
url: '/lembur',
icon: 'fa fa-clock-o',
},
],
};
}
export default menu;