Initial commit with Phase 0 Scaffolding
This commit is contained in:
parent
b393607602
commit
c545d4b17d
51 changed files with 7064 additions and 4 deletions
23
frontend/src/app/App.tsx
Normal file
23
frontend/src/app/App.tsx
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { Routes, Route, Navigate } from 'react-router-dom'
|
||||
import { LoginPage } from '../pages/LoginPage'
|
||||
import { HomePage } from '../pages/HomePage'
|
||||
import { EditorPage } from '../pages/EditorPage'
|
||||
|
||||
/**
|
||||
* Root application component with route definitions.
|
||||
*
|
||||
* Routes:
|
||||
* - /login — password entry / first-run setup
|
||||
* - / — home page (recently edited, library, trash)
|
||||
* - /editor/:id — PDF editor workspace
|
||||
*/
|
||||
export function App() {
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/login" element={<LoginPage />} />
|
||||
<Route path="/" element={<HomePage />} />
|
||||
<Route path="/editor/:id" element={<EditorPage />} />
|
||||
<Route path="*" element={<Navigate to="/" replace />} />
|
||||
</Routes>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue