Index: document/index.html =================================================================== diff -u -r776752fd3297266014bee3533d793eeb8a6e887a -r9680c9eb7e7f593cafe96716c2dcb6877aa5c706 --- document/index.html (.../index.html) (revision 776752fd3297266014bee3533d793eeb8a6e887a) +++ document/index.html (.../index.html) (revision 9680c9eb7e7f593cafe96716c2dcb6877aa5c706) @@ -10,5 +10,7 @@
+ Index: document/package.json =================================================================== diff -u -r012e7c91b30b223f509a994742261bfbc75d640d -r9680c9eb7e7f593cafe96716c2dcb6877aa5c706 --- document/package.json (.../package.json) (revision 012e7c91b30b223f509a994742261bfbc75d640d) +++ document/package.json (.../package.json) (revision 9680c9eb7e7f593cafe96716c2dcb6877aa5c706) @@ -3,6 +3,7 @@ "private": true, "version": "0.0.0", "type": "module", + "homepage" : "https://313.co.kr/document/dist", "scripts": { "dev": "vite", "build": "vite build && mv dist/assets dist", Index: document/src/App.jsx =================================================================== diff -u -r776752fd3297266014bee3533d793eeb8a6e887a -r9680c9eb7e7f593cafe96716c2dcb6877aa5c706 --- document/src/App.jsx (.../App.jsx) (revision 776752fd3297266014bee3533d793eeb8a6e887a) +++ document/src/App.jsx (.../App.jsx) (revision 9680c9eb7e7f593cafe96716c2dcb6877aa5c706) @@ -1,29 +1,47 @@ import { Routes, Route } from 'react-router-dom' import { ThemeProvider } from '@/components/shadcn/theme-provider' -import Layout from '@/layout/Layout' -import Dashboard from "@/pages/Dashboard" +import { SubMenuContextProvider } from '@/contexts/contexts' import '@/assets/css/globals.css' import '@/assets/css/test.css' -import { SubMenuContextProvider } from '@/contexts/contexts' +import Layout from '@/layout/Layout' +import Dashboard from "@/pages/Dashboard" +import Installation from '@/pages/Installation' +import IntegrationStatus from '@/pages/ARMS_DashBoard/IntegrationStatus' +import ProgressStatus from '@/pages/ARMS_DashBoard/ProgressStatus' +import ProductServiceChoice from '@/pages/ARMS_ProductService/ProductServiceChoice' +import ProductServiceCheck from '@/pages/ARMS_ProductService/ProductServiceCheck' +import ProductServiceEdit from '@/pages/ARMS_ProductService/ProductServiceEdit' +import VersionControlChoice from '@/pages/ARMS_ProductService/VersionControlChoice' +import VersionControlCheck from '@/pages/ARMS_ProductService/VersionControlCheck' +import VersionControlEdit from '@/pages/ARMS_ProductService/VersionControlEdit' /* SubMenuContextProvider : 헤더 서브 메뉴 전역 변수 제공 ThemeProvider : 테마 관리 Routes : URL 경로와 컴포넌트를 매핑하는 컨테이너 Route : 사용자가 접근할 url 컴포넌트 PropTypes : 타입과 형식을 따르는지 검증하는 도구 */ -export const Guide = () => { - return
Guide page
-} - function App() { return ( + {/* + -- Sub menu & path -- + Route path 를 만들고 contexts/contexts.jsx 파일로 가서 서브 메뉴 링크를 수정하면 연결 됩니다. + To connect the path to the submenu, check 'contexts/contets.jsx' + */} }> } /> - } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> Index: document/src/layout/HeaderMenu.jsx =================================================================== diff -u -r776752fd3297266014bee3533d793eeb8a6e887a -r9680c9eb7e7f593cafe96716c2dcb6877aa5c706 --- document/src/layout/HeaderMenu.jsx (.../HeaderMenu.jsx) (revision 776752fd3297266014bee3533d793eeb8a6e887a) +++ document/src/layout/HeaderMenu.jsx (.../HeaderMenu.jsx) (revision 9680c9eb7e7f593cafe96716c2dcb6877aa5c706) @@ -12,7 +12,7 @@ export const AccordionMenu = ({ title, to }) => { return ( - {title} + {title} ) } @@ -26,11 +26,11 @@ item.subMenus && item.subMenus.length > 0 ? ( // 메뉴 Data에 서브메뉴가 있을 시 아코디언 컴포넌트로 출력 - + {item.title} -
+
{/* 아코디언 서브 메뉴 출력 */} {item.subMenus.map((el) => ( Index: document/src/main.jsx =================================================================== diff -u -r6b1c2333d986f04a6802c4b1327e2e4496855029 -r9680c9eb7e7f593cafe96716c2dcb6877aa5c706 --- document/src/main.jsx (.../main.jsx) (revision 6b1c2333d986f04a6802c4b1327e2e4496855029) +++ document/src/main.jsx (.../main.jsx) (revision 9680c9eb7e7f593cafe96716c2dcb6877aa5c706) @@ -3,10 +3,14 @@ import App from '@/App'; import { BrowserRouter } from 'react-router-dom' +// 빌드시 env 설정에 따라 Dev 와 Prod 베이스 URL 설정 +const baseName = import.meta.env.DEV ? "/" : import.meta.env.VITE_ASSET_URL + "/document/dist"; + createRoot(document.getElementById('root')).render( {/* -- React-Router-dom -- BrowserRouter : URL 변경 시 렌더링할 컴포넌트 */} - + + {/* */} , Index: document/vite.config.js =================================================================== diff -u -r6a420697d19eb870808414abea6a06b41eefb86e -r9680c9eb7e7f593cafe96716c2dcb6877aa5c706 --- document/vite.config.js (.../vite.config.js) (revision 6a420697d19eb870808414abea6a06b41eefb86e) +++ document/vite.config.js (.../vite.config.js) (revision 9680c9eb7e7f593cafe96716c2dcb6877aa5c706) @@ -5,12 +5,16 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); -// const VITE_ASSET_URL = import.meta.env.VITE_ASSET_URL || ''; export default defineConfig({ plugins: [react()], - // base: import.meta.env.VITE_ASSET_URL, + base: './', + // root: 'src', + // build: { + // outDir: path.resolve(__dirname, '/document/dist'), + // }, server: { + cors: { origin: "*" }, fs: { // 1레벨 프로젝트 루트까지 파일 접속 허용 allow: ['..'], @@ -22,10 +26,6 @@ rewrite: (path) => path.replace(/^\/api/, ''), }, }, - '/': { - target: 'http://313.co.kr/php/gnuboard5/bbs/board.php?bo_table=manual', - changeOrigin: true, - }, }, resolve: { alias: {