Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .idea/inspectionProfiles/Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cph-multi-objective-router"
version = "0.1.0"
version = "0.5.0"
description = "Multi-objective urban router and navigation app"
readme = "README.md"
authors = [
Expand Down
70 changes: 35 additions & 35 deletions backend/uv.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/.env.local.template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_API_URL=
74 changes: 1 addition & 73 deletions frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,73 +1 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## React Compiler

The React Compiler is currently not compatible with SWC. See [this issue](https://github.com/vitejs/vite-plugin-react/issues/428) for tracking the progress.

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

```js
export default defineConfig([
globalIgnores(["dist"]),
{
files: ["**/*.{ts,tsx}"],
extends: [
// Other configs...

// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,

// Other configs...
],
languageOptions: {
parserOptions: {
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
]);
```

You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:

```js
// eslint.config.mjs
import reactX from "eslint-plugin-react-x";
import reactDom from "eslint-plugin-react-dom";

export default defineConfig([
globalIgnores(["dist"]),
{
files: ["**/*.{ts,tsx}"],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs["recommended-typescript"],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
]);
```
# CPH Multi-objective Router Front End
18 changes: 15 additions & 3 deletions frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ export default defineConfig([
{
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
project: ["./tsconfig.app.json", "./tsconfig.eslint.json"],
projectService: {
allowDefaultProject: [
"eslint.config.mjs",
"postcss.config.cjs",
"openapi-ts.config.ts",
],
},
tsconfigRootDir: import.meta.dirname,
},
},
Expand All @@ -37,7 +42,14 @@ export default defineConfig([
},
},
{
files: ["postcss.config.cjs"],
files: ["src/**/*.{ts,tsx}"],
languageOptions: {
globals: globals.browser,
},
},
{
files: ["eslint.config.mjs", "postcss.config.cjs", "openapi-ts.config.ts"],
extends: [tseslint.configs.disableTypeChecked],
languageOptions: {
globals: globals.node,
},
Expand Down
14 changes: 9 additions & 5 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cph-multi-objective-router",
"version": "0.0.0",
"version": "0.5.0",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -21,16 +21,17 @@
"@tanstack/react-query": "^5.95.2",
"@turf/boolean-point-in-polygon": "^7.3.4",
"@turf/helpers": "^7.3.4",
"axios": "^1.13.6",
"axios": "^1.14.0",
"leaflet": "^1.9.4",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-leaflet": "^5.0.0"
"react-leaflet": "^5.0.0",
"recharts": "^3.8.1"
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@eslint/js": "^9.39.4",
"@hey-api/openapi-ts": "0.94.4",
"@hey-api/openapi-ts": "0.94.5",
"@rolldown/plugin-babel": "^0.2.2",
"@tanstack/eslint-plugin-query": "^5.95.2",
"@types/babel__core": "^7.20.5",
Expand All @@ -56,5 +57,8 @@
"typescript-eslint": "^8.57.2",
"vite": "^8.0.3"
},
"packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be"
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
"engines": {
"node": ">=24 <25"
}
}
Loading
Loading