-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor frontend structure and configuration; migrate from Next.js t…
…o Vite - Removed Next.js configuration and related files, transitioning to a Vite-based setup. - Updated package.json to reflect new dependencies and scripts for Vite. - Introduced new HTML entry point and main application structure using React Router. - Added basic routing and navigation components for the frontend application. - Enhanced TypeScript configuration for better module resolution and strict type checking. - Updated CSS styles for the new layout and components.
- Loading branch information
1 parent
065f83e
commit ed33b18
Showing
20 changed files
with
575 additions
and
1,162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Side Quest</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
{ | ||
"name": "frontend", | ||
"version": "0.1.0", | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"build": "next build", | ||
"dev": "next dev", | ||
"lint": "next lint", | ||
"start": "next start" | ||
"build": "tsc && vite build", | ||
"dev": "vite", | ||
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"next": "15.0.3", | ||
"react": "19.0.0-rc-66855b96-20241106", | ||
"react-dom": "19.0.0-rc-66855b96-20241106" | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^7.1.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20", | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18", | ||
"eslint": "^8", | ||
"eslint-config-next": "15.0.3", | ||
"eslint-config-prettier": "^9.0.0", | ||
"prettier-plugin-curly": "^0.3.1", | ||
"prettier-plugin-packagejson": "^2.5.3", | ||
"prettier-plugin-sh": "^0.14.0", | ||
"typescript": "^5" | ||
"@types/react": "^18.2.0", | ||
"@types/react-dom": "^18.2.0", | ||
"@vitejs/plugin-react": "^4.2.0", | ||
"eslint": "^8.55.0", | ||
"eslint-plugin-react": "^7.33.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.5", | ||
"vite": "^5.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; | ||
import Home from "./pages/Home"; | ||
import Navigation from "./components/Navigation"; | ||
|
||
const App = (): JSX.Element => { | ||
return ( | ||
<Router> | ||
<div className="app"> | ||
<Navigation /> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
Check failure on line 11 in apps/frontend/src/App.tsx GitHub Actions / Type Check
|
||
{/* Add more routes here as needed */} | ||
</Routes> | ||
</div> | ||
</Router> | ||
); | ||
}; | ||
|
||
export default App; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.