/** * @author : 최정우 * @since : 2022.09.20 * @dscription : Application의 Route 정보를 관리하는 Component 입니다. */ import React from "react"; //react router 라이브러리 import import { Routes, Route } from "react-router-dom"; import HouseIcon from "@mui/icons-material/House"; import PersonIcon from "@mui/icons-material/Person"; import Diversity1Icon from "@mui/icons-material/Diversity1"; import DoorFrontIcon from "@mui/icons-material/DoorFront"; import SpeakerPhoneIcon from "@mui/icons-material/SpeakerPhone"; import SettingsIcon from "@mui/icons-material/Settings"; import CallIcon from '@mui/icons-material/Call'; import ConstructionIcon from '@mui/icons-material/Construction'; import EqualizerIcon from '@mui/icons-material/Equalizer'; import ApartmentIcon from '@mui/icons-material/Apartment'; import Test from "./Test/Test.jsx"; import Main_government from "./main/Main_government.jsx"; import Main_guardian from "./main/Main_guardian.jsx"; import Main_agency from "./main/Main_agency.jsx"; import Main from "./main/Main.jsx"; import SeniorSelect from "./senior_management/SeniorSelect.jsx"; import SeniorInsert from "./senior_management/SeniorInsert.jsx"; import SeniorSelectOne from "./senior_management/SeniorSelectOne.jsx"; import MedicineCareSelect from "./healthcare/medicinecare/MedicineCareSelect.jsx"; import MedicineCareSelectOne from "./healthcare/medicinecare/MedicineCareSelectOne.jsx"; import TemperatureManagementSelect from "./healthcare/temperature/TemperatureManagementSelect.jsx"; import TemperatureManagementSelectOne from "./healthcare/temperature/TemperatureManagementSelectOne.jsx"; import Questionnaire from "./healthcare/Questionnaire.jsx"; import MedicineStatistics from "./healthcare/statistics/MedicineStatistics.jsx"; import GuardianStatistics from "./healthcare/statistics/GuardianStatistics.jsx"; import VisitSelect from "./visit/visit/VisitSelect.jsx"; import VisitInsert from "./visit/visit/VisitInsert.jsx"; import VisitSelectOne from "./visit/visit/VisitSelectOne.jsx"; import EquipmentRentalInsert from "./equipment/EquipmentRentalInsert.jsx"; import EquipmentManagementSelect from "./equipment/EquipmentManagementSelect.jsx"; import EquipmentManagementSelectOne from "./equipment/EquipmentManagementSelectOne.jsx"; import UserAuthoriySelect from "./user_management/UserAuthoriySelect.jsx"; import UserAuthoriySelect_agency from "./user_management/UserAuthoriySelect_agency.jsx"; import MyInfoUpdate from "./authority/MyInfoUpdate.jsx"; import QandASelect from "./callcenter/QandASelect.jsx"; import QandAConfirm from "./callcenter/QandAConfirm.jsx"; import EquipmentManagementInsert from "./equipment/EquipmentManagementInsert.jsx"; import EquipmentManagementSelectAdd from "./equipment/EquipmentManagementSelectAdd.jsx"; import RiskSet from "./setting/RiskSet.jsx"; import QandAInsert from "./callcenter/QandAInsert.jsx"; import QandA_agency from "./callcenter/QandA_agency.jsx"; import UserSelectOk from "./user_management/UserSelectOk.jsx"; import AuthorityManagement from "./setting/AuthorityManagement.jsx"; import AgencyInsert from "./user_management/AgencyInsert.jsx"; import AgencySelect from "./user_management/AgencySelect.jsx"; import ProtectorSelect from "./user_management/ProtectorSelect.jsx"; import MedicineCareSelect_government from "./healthcare/medicinecare/MedicineCareSelect_government.jsx"; import TemperatureManagementSelect_government from "./healthcare/temperature/TemperatureManagementSelect_government.jsx"; import Questionnaire_government from "./healthcare/Questionnaire_government.jsx"; import VisitSelect_government from "./visit/visit/VisitSelect_government.jsx"; import QandA_government from "./callcenter/QandA_government.jsx"; const AllAppMenuItems = [ { title: "올잇메디", path: "/Main", icon: , childrens: [ { title: "Home", path: "/Main", icon: }, { title: "사용자 관리", path: "/UserAuthoriySelect", icon: ( ), }, { title: "시니어 건강 관리", // path: "/TemperatureManagementSelect", icon: ( ), }, { title: "장비 조회", path: "/EquipmentManagementSelect", icon: ( ), }, { title: "장비 문의 관리", path: "/QandASelect", icon: ( ), }, ], }, { title: "관리기관", path: "/Main_government", icon: , childrens: [ { title: "Home", path: "/Main_government", icon: , }, { title: "기관 조회", path: "/AgencySelect", icon: ( ), }, { title: "사용자 계정 승인", path: "/UserSelectOk", icon: ( ), }, { title: "복약 관리", path: "/MedicineCareSelect_government", icon: ( ), }, { title: "댁내 온도 관리", path: "/TemperatureManagementSelect_government", icon: ( ), }, { title: "진료 관리", path: "/Questionnaire_government", icon: ( ), }, { title: "방문 관리", path: "/VisitSelect_government", icon: ( ), }, { title: "Q&A 관리", path: "/QandA_government", icon: ( ), }, { title: "위험 기준 관리", path: "/RiskSet", icon: ( ), }, { title: "사용자 권한 관리", path: "/AuthorityManagement", icon: ( ), }, ], }, { title: "시행기관", path: "/Main_agency", icon: , childrens: [ { title: "Home", path: "/Main_agency", icon: , }, { title: "시니어 관리", path: "/UserAuthoriySelect_agency", icon: ( ), }, { title: "복약 관리", path: "/MedicineCareSelect", icon: ( ), }, { title: "댁내 온도 관리", path: "/TemperatureManagementSelect", icon: ( ), }, { title: "진료 관리", path: "/Questionnaire", icon: ( ), }, { title: "방문 관리", path: "/VisitSelect", icon: ( ), }, { title: "Q&A 관리", path: "/QandASelect", icon: ( ), }, { title: "장비 대여 관리x", path: "/EquipmentInquiry", icon: ( ), }, { title: "장비 문의", path: "/EquipmentInquiry", icon: ( ), }, ], }, { title: "보호자", path: "/Main_guardian", icon: , childrens: [ { title: "Home", path: "/Main_guardian", icon: , }, { title: "그래프로 보기", path: "/GuardianStatistics", icon: , }, ], }, ]; function AllAppRoute() { return ( }> }> }> }> }> }> }> }> } > } > } > } > } > }> }> }> } > } > } > } > }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> ); } const AdminAppMenuItems = [ { title: "Home(올잇메디)", path: "/Main", icon: , }, { title: "사용자 관리", path: "/UserAuthoriySelect", icon: ( ), }, { title: "시니어 건강 관리", path: "/UserAuthoriySelect_agency", icon: ( ), childrens: [ { title: "복약 관리", path: "/MedicineCareSelect", }, { title: "댁내 온도 관리", path: "/TemperatureManagementSelect", }, { title: "진료 관리", path: "/Questionnaire", }, { title: "방문 관리", path: "/VisitSelect", }, ], }, { title: "장비 관리", icon: ( ), childrens: [ { title: "장비 조회", path: "/EquipmentManagementSelect", }, { title: "장비 문의 관리", path: "/QandASelect", }, ], }, ]; function AdminAppRoute() { return ( }> }> } > } > } > } > } > } > } > } > } > } > } > }> }> }> }> }> ); } const GovernmentAppMenuItems = [ { title: "Home", path: "/Main_government", icon: , }, { title: "기관 관리", icon: ( ), childrens: [ { title: "기관 조회", path: "/AgencySelect", }, { title: "사용자 계정 승인", path: "/UserSelectOk", }, ], }, { title: "시니어 건강 관리", icon: ( ), childrens:[ { title: "복약 관리", path: "/MedicineCareSelect", }, { title: "댁내 온도 관리", path: "/TemperatureManagementSelect", }, { title: "진료 관리", path: "/Questionnaire", }, { title: "방문 관리", path: "/VisitSelect", }, ] }, { title: "문의 현황 관리", path: "/QandA", icon: ( ), }, { title: "설정 관리", prefix: "/Visit", icon: ( ), childrens: [ { title: "위험 기준 관리", path: "/RiskSet", }, { title: "사용자 권한 관리", path: "/AuthorityManagement", }, ], }, ]; function GovernmentAppRoute() { return ( }> }> }> }> } > } > } > } > } > }> }> }> } > }> }> ); } const AgencyAppMenuItems = [ { title: "Home", path: "/Main_agency", icon: , }, { title: "시니어 관리", path: "/UserAuthoriySelect_agency", icon: ( ), }, { title: "시니어 건강 관리", icon: ( ), childrens:[ { title: "복약 관리", path: "/MedicineCareSelect", }, { title: "댁내 온도 관리", path: "/TemperatureManagementSelect", }, { title: "진료 관리", path: "/Questionnaire", }, { title: "방문 관리", path: "/VisitSelect", }, ] }, { title: "장비 대여 관리", path: "/EquipmentInquiry", icon: ( ), }, { title: "문의게시판", path: "/EquipmentInquiry", icon: ( ), }, ]; function AgencyAppRoute() { return ( }> }> }> }> }> } > } > } > } > }> }> }> }> } > } > } > } > ); } const GuardianAppMenuItems = [ { title: "Home", path: "/Main_guardian", icon: , }, { title: "그래프로 보기", path: "/GuardianStatistics", icon: , }, ]; function GuardianAppRoute() { return ( ); } const AllApp = {'menuItems': AllAppMenuItems, 'AppRoute': AllAppRoute}; const AdminApp = {'menuItems': AdminAppMenuItems, 'AppRoute': AdminAppRoute}; const GovernmentApp = {'menuItems': GovernmentAppMenuItems, 'AppRoute': GovernmentAppRoute}; const AgencyApp = {'menuItems': AgencyAppMenuItems, 'AppRoute': AgencyAppRoute}; const GuardianApp = {'menuItems': GuardianAppMenuItems, 'AppRoute': GuardianAppRoute}; export default AllApp; export {AdminApp, GovernmentApp, GuardianApp, AgencyApp};