work on phone validation part and complete structure with timeline

This commit is contained in:
2024-12-15 18:27:27 +03:30
parent 66518250db
commit 9fccf770d5
13 changed files with 466 additions and 87 deletions

View File

@@ -28,7 +28,7 @@ export const pageMenu = [
label: "پیشخوان",
type: "page",
route: "/dashboard",
icon: <SpaceDashboardIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <SpaceDashboardIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["all"],
},
{
@@ -36,14 +36,14 @@ export const pageMenu = [
label: "مدیریت کاربران",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/user_management",
icon: <GroupsIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <GroupsIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["full-user-management", "limited-user-management"],
},
{
id: "projectsManagment",
label: "پروژه های راهداری",
type: "menu",
icon: <AccountTreeIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AccountTreeIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
Subitems: [
{
@@ -51,7 +51,7 @@ export const pageMenu = [
label: "ثبت قرارداد و پروژه",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/finance",
icon: <GavelIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <GavelIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["show-contract", "show-contract-province"],
},
{
@@ -59,7 +59,7 @@ export const pageMenu = [
label: "لیست پروژه ها",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/projects_list",
icon: <BallotIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <BallotIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["all"],
},
{
@@ -67,7 +67,7 @@ export const pageMenu = [
label: "پروژه های پیشنهادی",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/proposal",
icon: <AssistantIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssistantIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["show-proposal", "show-proposal-province"],
},
{
@@ -75,7 +75,7 @@ export const pageMenu = [
label: "درخواست نمایندگان",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/rahdari_projects/lawmakers",
icon: <AdminPanelSettingsIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AdminPanelSettingsIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["show-lawmaker", "show-lawmaker-province"],
},
{
@@ -83,7 +83,7 @@ export const pageMenu = [
label: "پراکندگی بر روی نقشه",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=rahdari_projects",
icon: <MapIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <MapIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["all"],
},
],
@@ -92,7 +92,7 @@ export const pageMenu = [
id: "roadItemManagment",
label: "فعالیت های روزانه",
type: "menu",
icon: <FactCheckIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <FactCheckIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["road_items.total"],
Subitems: [
@@ -100,7 +100,7 @@ export const pageMenu = [
id: "roadItemManagmentSupervisor",
label: "ارزیابی",
type: "menu",
icon: <SpeedIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <SpeedIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["road_items.supervise_cnt"],
Subitems: [
@@ -120,7 +120,7 @@ export const pageMenu = [
id: "roadItemManagmentOparation",
label: "عملیات",
type: "menu",
icon: <EngineeringIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <EngineeringIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["road_items.operation_cnt"],
Subitems: [
@@ -145,7 +145,7 @@ export const pageMenu = [
label: "پراکندگی بر روی نقشه",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_items",
icon: <MapIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <MapIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: [
"show-road-item-supervise-cartable",
"show-road-item-supervise-cartable-province",
@@ -157,7 +157,7 @@ export const pageMenu = [
label: "گزارش ها",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_items/report",
icon: <AssessmentIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssessmentIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: [
"show-road-item-supervise-cartable",
"show-road-item-supervise-cartable-province",
@@ -170,7 +170,7 @@ export const pageMenu = [
id: "roadPatrolManagment",
label: "گشت راهداری و ترابری",
type: "menu",
icon: <FireTruckIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <FireTruckIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["road_patrols.total"],
Subitems: [
@@ -178,7 +178,7 @@ export const pageMenu = [
id: "roadPatrolManagmentSupervisor",
label: "ارزیابی",
type: "menu",
icon: <SpeedIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <SpeedIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["road_patrols.supervise_cnt"],
Subitems: [
@@ -198,22 +198,15 @@ export const pageMenu = [
id: "roadPatrolManagmentOparation",
label: "عملیات",
type: "menu",
icon: <EngineeringIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <EngineeringIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["road_patrols.operation_cnt"],
Subitems: [
{
id: "roadPatrolManagmentOparationCreate",
label: "ثبت اقدام",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/operator/create",
permissions: ["add-road-patrol"],
},
{
id: "roadPatrolManagmentOparationCartable",
label: "کارتابل",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/operator/cartable",
route: "/dashboard/road-patrols/operator",
permissions: ["add-road-patrol"],
},
],
@@ -223,7 +216,7 @@ export const pageMenu = [
label: "پراکندگی بر روی نقشه",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_patrols",
icon: <MapIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <MapIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: [
"add-road-patrol",
"show-road-patrol-supervise-cartable",
@@ -235,7 +228,7 @@ export const pageMenu = [
label: "گزارش ها",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_patrols/report",
icon: <AssessmentIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssessmentIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: [
"add-road-patrol",
"show-road-patrol-supervise-cartable",
@@ -248,7 +241,7 @@ export const pageMenu = [
id: "inquiryPrivacyManagment",
label: "استعلام حریم راه",
type: "menu",
icon: <DoorbellIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <DoorbellIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
Subitems: [
{
@@ -285,7 +278,7 @@ export const pageMenu = [
id: "safetyAndPrivacyManagment",
label: "نگهداری حریم راه",
type: "menu",
icon: <RouteIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <RouteIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["safety_and_privacy.step_one", "safety_and_privacy.step_two"],
Subitems: [
@@ -293,7 +286,7 @@ export const pageMenu = [
id: "safetyAndPrivacyManagmentOparation",
label: "عملیات",
type: "menu",
icon: <EngineeringIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <EngineeringIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
Subitems: [
{
@@ -321,7 +314,7 @@ export const pageMenu = [
label: "پراکندگی بر روی نقشه",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=safety_and_privacy",
icon: <MapIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <MapIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: [
"show-safety-and-privacy-operator-cartable",
"show-safety-and-privacy-operator-cartable-province",
@@ -334,7 +327,7 @@ export const pageMenu = [
label: "گزارش ها",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/safety_and_privacy/report",
icon: <AssessmentIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssessmentIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: [
"show-safety-and-privacy-operator-cartable",
"show-safety-and-privacy-operator-cartable-province",
@@ -348,7 +341,7 @@ export const pageMenu = [
id: "roadObservationsManagment",
label: "واکنش سریع",
type: "menu",
icon: <ElectricBoltIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <ElectricBoltIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["road_observations.total"],
Subitems: [
@@ -356,7 +349,7 @@ export const pageMenu = [
id: "roadObservationsManagmentSupervisor",
label: "ارزیابی",
type: "menu",
icon: <SpeedIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <SpeedIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["road_observations.supervise_cnt"],
Subitems: [
@@ -374,14 +367,14 @@ export const pageMenu = [
label: "رسیدگی به شکایات",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations",
icon: <AssignmentLateIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssignmentLateIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["show-fast-react", "show-fast-react-province", "show-fast-react-edarate-shahri"],
},
{
id: "roadObservationsManagmentOparation",
label: "عملیات",
type: "menu",
icon: <EngineeringIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <EngineeringIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
badges: ["road_observations.operation_cnt"],
Subitems: [
@@ -399,7 +392,7 @@ export const pageMenu = [
label: "پراکندگی بر روی نقشه",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=road_observations",
icon: <MapIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <MapIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["all"],
},
{
@@ -407,7 +400,7 @@ export const pageMenu = [
label: "گزارش ها",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/road_observations/report/index",
icon: <AssessmentIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssessmentIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["all"],
},
],
@@ -416,7 +409,7 @@ export const pageMenu = [
id: "winterCampManagment",
label: "قرارگاه زمستانی",
type: "menu",
icon: <CottageIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <CottageIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
Subitems: [
{
@@ -424,7 +417,7 @@ export const pageMenu = [
label: "محور های انسدادی",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/winter_camp",
icon: <LineAxisIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <LineAxisIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["show-camp", "show-camp-province"],
},
{
@@ -432,7 +425,7 @@ export const pageMenu = [
label: "محور های حلقه اول",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=camp",
icon: <LineAxisIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <LineAxisIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["show-camp", "show-camp-province"],
},
{
@@ -440,7 +433,7 @@ export const pageMenu = [
label: "گزارش ها",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/map?type=campNew",
icon: <AssessmentIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssessmentIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["show-camp", "show-camp-province"],
},
],
@@ -449,14 +442,14 @@ export const pageMenu = [
id: "receiptManagment",
label: "خسارات وارده بر ابنیه فنی و تاسیسات راه",
type: "menu",
icon: <GppMaybeIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <GppMaybeIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
Subitems: [
{
id: "receiptManagmentOparation",
label: "عملیات",
type: "menu",
icon: <EngineeringIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <EngineeringIcon sx={{width: "inherit", height: "inherit"}}/>,
hasSubitems: true,
Subitems: [
{
@@ -473,7 +466,7 @@ export const pageMenu = [
label: "گزارش ها",
type: "page",
route: process.env.NEXT_PUBLIC_API_URL + "/v2/receipt/report",
icon: <AssessmentIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <AssessmentIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["all"],
},
],
@@ -483,7 +476,7 @@ export const pageMenu = [
label: "آزمایشات (OPTS)",
type: "page",
route: "/dashboard/azmayesh",
icon: <ScienceIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <ScienceIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["azmayesh-management"],
},
{
@@ -491,7 +484,7 @@ export const pageMenu = [
label: "نوع آزمایشات",
type: "page",
route: "/dashboard/azmayesh_type",
icon: <BiotechIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <BiotechIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: ["azmayesh-type-management"],
},
{
@@ -499,7 +492,7 @@ export const pageMenu = [
label: "اطلاعات خودرو",
type: "page",
route: "/dashboard/car-details",
icon: <DriveEtaIcon sx={{ width: "inherit", height: "inherit" }} />,
icon: <DriveEtaIcon sx={{width: "inherit", height: "inherit"}}/>,
permissions: [""],
},
];

View File

@@ -31,3 +31,4 @@ export const GET_OPERATOR_LIST = "/v3/api/fake-operator-list";
export const EXPORT_OPERATOR_LIST = "https://rms.rmto.ir/v2/road_patrols/operator/cartable/report";
export const GET_SUPERVISOR_LIST = "/v3/api/fake-supervisor-list";
export const EXPORT_SUPERVISOR_LIST = "https://rms.rmto.ir/v2/road_patrols/supervisor/cartable/report";
export const GET_OTP_TOKEN = "https://rms.rmto.ir/v2/get_otp_token";