From 8acb778121e88f58c233cc9e66175a2e4b427bea Mon Sep 17 00:00:00 2001 From: Hiroshi Nishito Date: Thu, 16 Jan 2025 22:38:08 +0900 Subject: [PATCH 1/4] =?UTF-8?q?#31=20=E4=BD=9C=E6=88=90=E7=94=BB=E9=9D=A2?= =?UTF-8?q?=E3=82=92=E3=83=88=E3=83=83=E3=83=97=E3=81=AB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit パンくずリストなどを修正した。 --- frontend/src/App.tsx | 44 +++---- frontend/src/__tests__/App.test.tsx | 4 +- frontend/src/__tests__/pages/DocPage.test.tsx | 28 ++--- frontend/src/pages/DocPage.tsx | 108 ++++++++++++------ frontend/src/pages/DocsListPage.tsx | 25 ++-- frontend/src/pages/PublicDocumentPage.tsx | 29 +++-- 6 files changed, 141 insertions(+), 97 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index c2bc835..7164659 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,15 +1,14 @@ -// App.tsx (抜粋) +// App.tsx (抜粋) + import React from "react"; import { BrowserRouter as Router, Route, Routes, Link } from "react-router-dom"; import DocsListPage from "./pages/DocsListPage"; import DocPage from "./pages/DocPage"; import PublicDocumentPage from "./pages/PublicDocumentPage"; import PrivacyPolicyPage from "./pages/PrivacyPolicyPage"; - import { CombinedAuthProvider } from "./context/AuthContext.bridge"; -import { useAuthContextSwitch as useAuthContext} from "./context/useAuthContextSwitch.ts"; -import "./App.css"; // 必要に応じて、追加CSSをApp.cssなどに追記 - +import { useAuthContextSwitch as useAuthContext} from "./context/useAuthContextSwitch"; +import "./App.css"; import footerStyles from "./styles/Footer.module.scss"; import TermsOfUsePage from "./pages/TermsOfUsePage"; import AccountInfoPage from "./pages/AccountInfoPage"; @@ -30,14 +29,11 @@ const MainRouter: React.FC = () => { {/* ナビゲーションバー */}
- - Markdown Portal - + Markdown Portal
{isSignedIn ? ( <> - {/* displayName を押すと /account へ移動するように */} {displayName} @@ -52,24 +48,30 @@ const MainRouter: React.FC = () => { )}
+
- {/* ルーティング */} - - }/> - }/> - }/> - }/> - }/> - } /> - } /> - + + {/* 新規作成 (DocPageを "新規モード" で表示) */} + } /> + + {/* 自分のドキュメント一覧 */} + } /> + + {/* 自分のドキュメント詳細・編集 */} + } /> + + {/* 公開用ドキュメント */} + } /> + + } /> + } /> + } /> +
- {/* Footer */}