Commit 2607487
Move mitmweb to Vite (mitmproxy#7971)
* Partially Revert "Web: harden `xsrf_token` usage (mitmproxy#7491)"
This reverts commit b761cb4.
The reason for this revert is that it's incompatible with Vite's
server (mitmproxy#7969).
We keep the parts that are compatible, and add an additional
`Sec-Fetch-Site` check for for all requests.
* use type imports for Vite compatibility
* make flow columns work with function name minification
* make modals work with function name minification
* vite: move assets
* web: switch builds to vite
* move to vite
* vite: move css and js
* update CHANGELOG
* [autofix.ci] apply automated fixes
* fix test failures
* fix static viewer
* obtain xsrf cookie lazily
* split js/css bundles into app/vendor
* [autofix.ci] apply automated fixes
* update compiled assets
* fix nits
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>1 parent 7093e50 commit 2607487
57 files changed
Lines changed: 3801 additions & 7692 deletions
File tree
- mitmproxy/tools/web
- static
- images
- chrome-devtools
- templates
- release
- test/mitmproxy/tools/web
- web
- public/static
- src
- css
- fonts
- js
- __tests__/components/Modal/__snapshots__
- components
- FlowTable
- Modal
- ducks
- flow
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
277 | 286 | | |
278 | 287 | | |
279 | 288 | | |
| |||
292 | 301 | | |
293 | 302 | | |
294 | 303 | | |
| 304 | + | |
295 | 305 | | |
296 | 306 | | |
297 | 307 | | |
| |||
343 | 353 | | |
344 | 354 | | |
345 | 355 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | 356 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 357 | + | |
355 | 358 | | |
356 | 359 | | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
| 360 | + | |
365 | 361 | | |
366 | 362 | | |
367 | 363 | | |
| |||
378 | 374 | | |
379 | 375 | | |
380 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
381 | 382 | | |
382 | 383 | | |
383 | 384 | | |
| |||
918 | 919 | | |
919 | 920 | | |
920 | 921 | | |
921 | | - | |
| 922 | + | |
922 | 923 | | |
923 | 924 | | |
924 | 925 | | |
925 | 926 | | |
926 | 927 | | |
927 | 928 | | |
| 929 | + | |
928 | 930 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
This file was deleted.
This file was deleted.
File renamed without changes.
0 commit comments