add auth and base functions and fixed bug
This commit is contained in:
@@ -12,7 +12,7 @@ export const pageMenu = [
|
||||
id: 'userManagement',
|
||||
label: 'مدیریت کاربران',
|
||||
type: "page",
|
||||
route: "./v2/user_management",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/user_management",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
@@ -26,35 +26,35 @@ export const pageMenu = [
|
||||
id: 'projectsManagmentFinance',
|
||||
label: 'ثبت قرارداد و پروژه',
|
||||
type: "page",
|
||||
route: "./v2/rahdari_projects/finance",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/finance",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'projectsManagmentList',
|
||||
label: 'لیست پروژه ها',
|
||||
type: "page",
|
||||
route: "./v2/rahdari_projects/projects_list",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/projects_list",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'projectsManagmentProposal',
|
||||
label: 'پروژه های پیشنهادی',
|
||||
type: "page",
|
||||
route: "./v2/rahdari_projects/proposal",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/proposal",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'projectsManagmentLawmaker',
|
||||
label: 'درخواست نمایندگان',
|
||||
type: "page",
|
||||
route: "./v2/rahdari_projects/lawmakers",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/lawmakers",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'projectsManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
type: "page",
|
||||
route: "./v2/map?type=rahdari_projects",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=rahdari_projects",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
]
|
||||
@@ -77,7 +77,7 @@ export const pageMenu = [
|
||||
id: 'roadItemManagmentSupervisorCartable',
|
||||
label: 'کارتابل',
|
||||
type: "page",
|
||||
route: "./v2/road_items/supervisor/cartable",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/supervisor/cartable",
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -92,13 +92,13 @@ export const pageMenu = [
|
||||
id: 'roadItemManagmentOparationCreate',
|
||||
label: 'ثبت فعالیت',
|
||||
type: "page",
|
||||
route: "./v2/road_items/operator/create",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/operator/create",
|
||||
},
|
||||
{
|
||||
id: 'roadItemManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
type: "page",
|
||||
route: "./v2/road_items/operator/cartable",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/operator/cartable",
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -106,14 +106,14 @@ export const pageMenu = [
|
||||
id: 'roadItemManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
type: "page",
|
||||
route: "./v2/map?type=road_items",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_items",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'roadItemManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
type: "page",
|
||||
route: "./v2/road_items/report",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/report",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
]
|
||||
@@ -136,7 +136,7 @@ export const pageMenu = [
|
||||
id: 'roadPatrolManagmentSupervisorCartable',
|
||||
label: 'کارتابل',
|
||||
type: "page",
|
||||
route: "./road_patrols/supervisor/cartable",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/road_patrols/supervisor/cartable",
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -151,13 +151,13 @@ export const pageMenu = [
|
||||
id: 'roadPatrolManagmentOparationCreate',
|
||||
label: 'ثبت اقدام',
|
||||
type: "page",
|
||||
route: "./v2/road_patrols/operator/create",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/operator/create",
|
||||
},
|
||||
{
|
||||
id: 'roadPatrolManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
type: "page",
|
||||
route: "./v2/road_patrols/operator/cartable",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/operator/cartable",
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -165,14 +165,14 @@ export const pageMenu = [
|
||||
id: 'roadPatrolManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
type: "page",
|
||||
route: "./v2/map?type=road_patrols",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_patrols",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'roadPatrolManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
type: "page",
|
||||
route: "./v2/road_patrols/report",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/report",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
]
|
||||
@@ -195,13 +195,13 @@ export const pageMenu = [
|
||||
id: 'safetyAndPrivacyManagmentOparationCreate',
|
||||
label: 'ثبت فعالیت',
|
||||
type: "page",
|
||||
route: "./safety_and_privacy/operator/first_step",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/safety_and_privacy/operator/first_step",
|
||||
},
|
||||
{
|
||||
id: 'safetyAndPrivacyManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
type: "page",
|
||||
route: "./v2/safety_and_privacy/operator/cartable",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/safety_and_privacy/operator/cartable",
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -209,14 +209,14 @@ export const pageMenu = [
|
||||
id: 'safetyAndPrivacyManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
type: "page",
|
||||
route: "./v2/map?type=safety_and_privacy",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=safety_and_privacy",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'safetyAndPrivacyManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
type: "page",
|
||||
route: "./v2/safety_and_privacy/report",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/safety_and_privacy/report",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
]
|
||||
@@ -239,7 +239,7 @@ export const pageMenu = [
|
||||
id: 'roadObservationsManagmentSupervisorCartable',
|
||||
label: 'کارتابل',
|
||||
type: "page",
|
||||
route: "./v2/road_observations/supervisor/cartable",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/supervisor/cartable",
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -247,7 +247,7 @@ export const pageMenu = [
|
||||
id: 'roadObservationsManagmentList',
|
||||
label: 'رسیدگی به شکایات',
|
||||
type: "page",
|
||||
route: "./v2/road_observations",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
@@ -261,7 +261,7 @@ export const pageMenu = [
|
||||
id: 'roadObservationsManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
type: "page",
|
||||
route: "./v2/road_observations/operator/cartable",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/operator/cartable",
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -269,14 +269,14 @@ export const pageMenu = [
|
||||
id: 'roadObservationsManagmentMap',
|
||||
label: 'پراکندگی بر روی نقشه',
|
||||
type: "page",
|
||||
route: "./v2/map?type=road_observations",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_observations",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'roadObservationsManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
type: "page",
|
||||
route: "./v2/road_observations/report/index",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/report/index",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
]
|
||||
@@ -292,21 +292,21 @@ export const pageMenu = [
|
||||
id: 'winterCampManagmentBlocking',
|
||||
label: 'محور های انسدادی',
|
||||
type: "page",
|
||||
route: "./v2/winter_camp",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/winter_camp",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'winterCampManagmentFirstRing',
|
||||
label: 'محور های حلقه اول',
|
||||
type: "page",
|
||||
route: "./v2/map?type=camp",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=camp",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
{
|
||||
id: 'winterCampManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
type: "page",
|
||||
route: "./v2/map?type=campNew",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=campNew",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
]
|
||||
@@ -329,7 +329,7 @@ export const pageMenu = [
|
||||
id: 'receiptManagmentOparationCartable',
|
||||
label: 'کارتابل',
|
||||
type: "page",
|
||||
route: "./v2/receipt",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/receipt",
|
||||
},
|
||||
]
|
||||
},
|
||||
@@ -337,7 +337,7 @@ export const pageMenu = [
|
||||
id: 'receiptManagmentReport',
|
||||
label: 'گزارش ها',
|
||||
type: "page",
|
||||
route: "./v2/receipt/report",
|
||||
route: process.env.NEXT_PUBLIC_API_URL + "/v2/receipt/report",
|
||||
icon: <Security sx={{ width: 'inherit', height: 'inherit' }} />,
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user