Skip to content

Commit ce62433

Browse files
committed
frontend: drop fs routes
1 parent e35e085 commit ce62433

5 files changed

Lines changed: 19 additions & 33 deletions

File tree

apps/frontend/app/routes.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { type RouteConfig } from '@react-router/dev/routes';
2-
import { flatRoutes } from '@react-router/fs-routes';
1+
import { type RouteConfig, index } from '@react-router/dev/routes';
32

4-
export default flatRoutes() satisfies RouteConfig;
3+
export default [
4+
index('./routes/main.tsx'),
5+
6+
// other routes can be added here...
7+
] satisfies RouteConfig;

apps/frontend/app/routes/_index.tsx

Lines changed: 0 additions & 12 deletions
This file was deleted.

apps/frontend/app/routes/main.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { Route } from './+types/main';
2+
3+
export function meta({}: Route.MetaArgs) {
4+
return [
5+
{ title: 'OIerDb' },
6+
{ name: 'description', content: 'A database for Chinese OI participants.' },
7+
];
8+
}
9+
10+
export default function Home() {
11+
return <div>Home</div>;
12+
}

apps/frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
},
2424
"devDependencies": {
2525
"@react-router/dev": "^7.9.4",
26-
"@react-router/fs-routes": "^7.9.4",
2726
"@types/node": "^22",
2827
"@types/react": "^19.2.2",
2928
"@types/react-dom": "^19.2.2",

yarn.lock

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,7 +3471,6 @@ __metadata:
34713471
"@mantine/hooks": "npm:^8.3.5"
34723472
"@mantine/vanilla-extract": "npm:^8.3.5"
34733473
"@react-router/dev": "npm:^7.9.4"
3474-
"@react-router/fs-routes": "npm:^7.9.4"
34753474
"@react-router/node": "npm:^7.9.4"
34763475
"@react-router/serve": "npm:^7.9.4"
34773476
"@types/node": "npm:^22"
@@ -3598,21 +3597,6 @@ __metadata:
35983597
languageName: node
35993598
linkType: hard
36003599

3601-
"@react-router/fs-routes@npm:^7.9.4":
3602-
version: 7.9.4
3603-
resolution: "@react-router/fs-routes@npm:7.9.4"
3604-
dependencies:
3605-
minimatch: "npm:^9.0.0"
3606-
peerDependencies:
3607-
"@react-router/dev": ^7.9.4
3608-
typescript: ^5.1.0
3609-
peerDependenciesMeta:
3610-
typescript:
3611-
optional: true
3612-
checksum: 10c0/fe950fde77d87458bac734090ba8b41c7af446f6df2c6857500f1937a73320a77a17d6e89770fe167476e244b76739b011d99e0791330fd68064b8060d9a8add
3613-
languageName: node
3614-
linkType: hard
3615-
36163600
"@react-router/node@npm:7.9.4, @react-router/node@npm:^7.9.4":
36173601
version: 7.9.4
36183602
resolution: "@react-router/node@npm:7.9.4"
@@ -10534,7 +10518,7 @@ __metadata:
1053410518
languageName: node
1053510519
linkType: hard
1053610520

10537-
"minimatch@npm:^9.0.0, minimatch@npm:^9.0.4":
10521+
"minimatch@npm:^9.0.4":
1053810522
version: 9.0.5
1053910523
resolution: "minimatch@npm:9.0.5"
1054010524
dependencies:

0 commit comments

Comments
 (0)