Commit dd8898a
authored
build: upgrade react-router to framework mode (#3722)
Details:
* Upgrade some packages
* Setup `react-router@v7` to use the framework mode -> see https://reactrouter.com/start/modes for more details about modes. This is what would be `remix` but is now part of react-router.
* Some source files have been added to support framework mode. This mostly follows the custom node server template -> https://github.com/remix-run/react-router-templates/tree/main/node-custom-server.
* Updated the Dockerfile and other build-related files
* The most important change is that the UI container now runs `node` instead of `nginx`. The server is an `express` server set-up to serve the UI and the compiled `storybook`.
* A corresponding PR on `renku` is open (only change is the `runAs` user ID).
* Server-side routing:
* Routes: `client/src/routes.ts`
* All routes are rendered from `client/src/routes/catchall.tsx` as client-side routes.
* This setup can be updated to handle new routes from the server-side.1 parent 63b7797 commit dd8898a
34 files changed
Lines changed: 2367 additions & 459 deletions
File tree
- client
- .storybook
- server
- src
- error-boundary
- features
- dataConnectorsV2
- api
- components/DataConnectorModal
- dataServices
- kgSearch
- projectsV2/api
- project
- components/cloudStorage
- api
- dataset
- searchV2/api
- session
- routes
- styles/components
- utils/helpers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
28 | 47 | | |
29 | 48 | | |
30 | 49 | | |
31 | 50 | | |
32 | 51 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
40 | 55 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
44 | 59 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
48 | 63 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
52 | 67 | | |
53 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
54 | 71 | | |
| 72 | + | |
55 | 73 | | |
56 | | - | |
| 74 | + | |
57 | 75 | | |
58 | 76 | | |
59 | 77 | | |
60 | 78 | | |
61 | | - | |
62 | | - | |
| 79 | + | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
This file was deleted.
0 commit comments