Merge branch 'develop' into 'feature/profile_and_icons'
# Conflicts: # src/components/layouts/dashboard/headerWithSidebar/index.jsx # src/core/components/SidebarMenu.jsx
This commit is contained in:
@@ -4,7 +4,7 @@ import { prefixer } from "stylis";
|
||||
import stylisRTLPlugin from "stylis-plugin-rtl";
|
||||
import { CacheProvider } from "@emotion/react";
|
||||
|
||||
const isBrowser = typeof document !== 'undefined';
|
||||
const isBrowser = typeof document !== "undefined";
|
||||
|
||||
const createEmotionCache = () => {
|
||||
let insertionPoint;
|
||||
|
||||
@@ -19,7 +19,7 @@ const errorServer = (response, notification, toastContainer) => {
|
||||
const errorClient = (response, notification, toastContainer, logout) => {
|
||||
switch (response.status) {
|
||||
case 401:
|
||||
logout()
|
||||
logout();
|
||||
if (notification) errorUnauthorizedToast(toastContainer);
|
||||
break;
|
||||
case 422:
|
||||
|
||||
@@ -7,4 +7,3 @@ export const flattenArrayOfObjects = (array, key) => {
|
||||
return acc;
|
||||
}, []);
|
||||
};
|
||||
|
||||
|
||||
@@ -9,4 +9,4 @@ export const flattenObjectOfObjects = (obj, res = {}) => {
|
||||
}
|
||||
}
|
||||
return res;
|
||||
};
|
||||
};
|
||||
|
||||
80
src/core/utils/headerMenu.js
Normal file
80
src/core/utils/headerMenu.js
Normal file
@@ -0,0 +1,80 @@
|
||||
export const headerMenu = [
|
||||
{
|
||||
title: 'تصادفات',
|
||||
subMenu: [
|
||||
[
|
||||
{
|
||||
title: 'تصادفات روزانه',
|
||||
href: 'https://rms.witel.ir/v2/daily_accidents/create'
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'گزارش های جامع',
|
||||
subMenu: [
|
||||
[
|
||||
{
|
||||
title: 'گزارش محوری',
|
||||
href: 'https://rms.witel.ir/v2/axis_reports'
|
||||
},
|
||||
{
|
||||
title: 'هوش تجاری (BI)',
|
||||
href: 'https://rms.witel.ir/v2/axis_reports'
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'زیرساخت و ناوگان',
|
||||
subMenu: [
|
||||
[
|
||||
{
|
||||
title: 'پراکندگی بر روی نقشه راهدارخانه ها',
|
||||
href: 'https://rms.witel.ir/v2/map?type=rahdar'
|
||||
},
|
||||
{
|
||||
title: 'راهدارخانه ها',
|
||||
href: 'https://rms.witel.ir/v2/rahdari_points'
|
||||
}
|
||||
],
|
||||
[
|
||||
{
|
||||
title: 'ممیزی ماشین آلات راهداری کشور',
|
||||
href: 'https://rms.witel.ir/cmms-audit'
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
title: 'سامانه های راهداری',
|
||||
subMenu: [
|
||||
[
|
||||
{
|
||||
title: 'تحقیق و توسعه',
|
||||
href: 'https://rms.witel.ir/RandD'
|
||||
},
|
||||
{
|
||||
title: 'سامانه مدیریت یکپارچه زیرساخت های راه (PMS,BMS,SMS)',
|
||||
href: 'http://roadams.rmto.ir'
|
||||
},
|
||||
{
|
||||
title: 'سامانه مدیریت ناوگان (FMS)',
|
||||
href: 'http://fms.141.ir'
|
||||
},
|
||||
{
|
||||
title: 'سامانه جامع مدیریت سوانح و حوادث جاده ای',
|
||||
href: 'https://items.rmto.ir'
|
||||
},
|
||||
{
|
||||
title: 'سامانه مدیریت نگهداری ماشین آلات (CMMS)',
|
||||
href: 'https://cmms.rmto.ir/Login.aspx?ReturnUrl=%2f'
|
||||
},
|
||||
{
|
||||
title: 'درگاه کاتالوگ داده',
|
||||
href: 'https://roadams.rmto.ir:8080'
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user