/** * @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 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_admin from "./user_management/UserAuthoriySelect_admin.jsx"; import MyInfoUpdate from "./authority/MyInfoUpdate.jsx"; import CallInsert from "./callcenter/CallInsert.jsx"; import CallSelect from "./callcenter/CallSelect.jsx"; import CallSelectOne from "./setting/RiskSet.jsx"; import CallUpdate from "./callcenter/CallUpdate.jsx"; import EquipmentInquiry from "./equipment/EquipmentInquiry.jsx"; import EquipmentManagementSelectAdd from "./equipment/EquipmentManagementSelectAdd.jsx"; import RiskSet from "./setting/RiskSet.jsx"; import QandA from "./callcenter/QandA.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"; const AllAppMenuItems = [ { title: "Home(올잇메디)", path: "/Main", icon: , }, { title: "Home(에이젼시)", path: "/Main_agency", icon: , }, { title: "Home(관리기관)", path: "/Main_government", icon: , }, { title: "Home(보호자)", path: "/Main_guardian", icon: , }, { title: "그래프로 보기", path: "/GuardianStatistics", icon: , }, { title: "사용자 관리", path: "/UserAuthoriySelect", icon: ( ), }, { title: "시니어 관리", path: "/UserAuthoriySelect_admin", icon: ( ), }, { title: "시행기관관리", prefix: "/Medicine", icon: ( ), childrens: [ { title: "기관 조회", path: "/AgencySelect", }, { title: "사용자 계정 승인", path: "/UserSelectOk", }, ], }, { title: "건강 관리", prefix: "/Medicine", icon: ( ), childrens: [ { title: "복약 관리", path: "/MedicineCareSelect", }, { title: "댁내 온도 관리", path: "/TemperatureManagementSelect", }, { title: "문진표 작성", path: "/Questionnaire", }, ], }, { title: "방문 관리", prefix: "/Visit", icon: ( ), childrens: [ { title: "방문 관리", path: "/VisitSelect", }, ], }, { title: "장비 관리", icon: ( ), childrens: [ { title: "장비 조회", path: "/EquipmentManagementSelect", }, { title: "장비 문의 요청", path: "/EquipmentInquiry", }, // { // title: "장비 추가 요청", // path: "/EquipmentManagementSelectAdd", // }, ], }, { title: "문의게시판", path: "/QandA", icon: ( ), }, { title: "설정", icon: ( ), childrens: [ { title: "위험 기준 관리", path: "/RiskSet", }, { title: "사용자 권한 관리", path: "/AuthorityManagement", }, // { // title: "장비 추가 요청", // path: "/EquipmentManagementSelectAdd", // }, ], }, ]; function AllAppRoute() { return ( }> }> }> }> }> }> }> }> } > } > } > } > } > }> }> }> } > } > } > } > }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> }> ); } const AdminAppMenuItems = [ { title: "Home", path: "/Main", icon: , }, { title: "사용자 관리", path: "/UserAuthoriySelect", icon: ( ), }, // { // title: "시니어 관리", // path: "/UserAuthoriySelect_admin", // icon: ( // // ), // }, // { // title: "사용자 계정 승인", // path: "/UserSelectOk", // icon: ( // // ), // }, // { // title: "건강 관리", // prefix: "/Medicine", // icon: ( // // ), // childrens: [ // { // title: "복약 관리", // path: "/MedicineCareSelect", // }, // { // title: "댁내 온도 관리", // path: "/TemperatureManagementSelect", // }, // { // title: "문진표 작성", // path: "/TemperatureManagementSelect", // }, // ], // }, // { // title: "방문 관리", // prefix: "/Visit", // icon: ( // // ), // childrens: [ // { // title: "방문 관리", // path: "/VisitSelect", // }, // ], // }, // { // title: "장비 관리", // icon: ( // // ), // childrens: [ // { // title: "장비 조회", // path: "/EquipmentManagementSelect", // }, // { // title: "장비 문의 요청", // path: "/EquipmentInquiry", // }, // // { // // title: "장비 추가 요청", // // path: "/EquipmentManagementSelectAdd", // // }, // ], // }, { title: "문의게시판", path: "/QandA", icon: ( ), }, // { // title: "설정", // icon: ( // // ), // childrens: [ // { // title: "위험 기준 관리", // path: "/RiskSet", // }, // { // title: "사용자 권한 관리", // path: "/AuthorityManagement", // }, // // { // // title: "장비 추가 요청", // // path: "/EquipmentManagementSelectAdd", // // }, // ], // }, ]; function AdminAppRoute() { return ( }> }> }> }> }> } > } > } > }> }> }> }> }> }> }> }> }> }> }> }> }> ); } const GovernmentAppMenuItems = [ { title: "Home", path: "/Main", icon: , }, { title: "사용자 관리", path: "/UserAuthoriySelect", icon: ( ), }, { title: "시니어 관리", path: "/UserAuthoriySelect_admin", icon: ( ), }, { title: "사용자 계정 승인", path: "/UserSelectOk", }, { title: "건강 관리", prefix: "/Medicine", icon: ( ), childrens: [ { title: "복약 관리", path: "/MedicineCareSelect", }, { title: "댁내 온도 관리", path: "/TemperatureManagementSelect", }, { title: "문진표 작성", path: "/TemperatureManagementSelect", }, ], }, { title: "방문 관리", prefix: "/Visit", icon: ( ), childrens: [ { title: "방문 관리", path: "/VisitSelect", }, ], }, { title: "장비 관리", icon: ( ), childrens: [ { title: "장비 조회", path: "/EquipmentManagementSelect", }, { title: "장비 문의 요청", path: "/EquipmentInquiry", }, // { // title: "장비 추가 요청", // path: "/EquipmentManagementSelectAdd", // }, ], }, { title: "문의게시판", path: "/QandA", icon: ( ), }, { title: "설정", icon: ( ), childrens: [ { title: "위험 기준 관리", path: "/RiskSet", }, { title: "사용자 권한 관리", path: "/AuthorityManagement", }, // { // title: "장비 추가 요청", // path: "/EquipmentManagementSelectAdd", // }, ], }, ]; function GovernmentAppRoute() { return ( }> }> }> }> }> } > } > } > } > } > }> }> }> } > } > } > } > }> }> }> }> }> }> }> }> }> }> ); } const AllApp = {'menuItems': AllAppMenuItems, 'AppRoute': AllAppRoute}; const AdminApp = {'menuItems': AdminAppMenuItems, 'AppRoute': AdminAppRoute}; const GovernmentApp = {'menuItems': GovernmentAppMenuItems, 'AppRoute': GovernmentAppRoute}; export default AllApp; export {AdminApp, GovernmentApp};