Commit graph

14 commits

Author SHA1 Message Date
Maximilian Hils
4c0013aa7d
Update node.js version (#7992)
update node version
2025-11-24 18:46:06 +00:00
Maximilian Hils
2607487981
Move mitmweb to Vite (#7971)
* Partially Revert "Web: harden `xsrf_token` usage (#7491)"

This reverts commit b761cb46c4.

The reason for this revert is that it's incompatible with Vite's
server (https://github.com/mitmproxy/mitmproxy/issues/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>
2025-11-13 18:05:51 +00:00
Maximilian Hils
40ae9ff05b
Update package-lock.json, bump esbuild (#6915)
update node version, bump esbuild
2024-06-12 11:44:25 +00:00
Alexander Prinzhorn
8e7564e995
Add a prettier npm script (#5986)
* Add a prettier npm script

* Linting -> Formatting
2023-03-13 12:26:30 +01:00
Alex Gershberg
8f13293771
Add prettier to mitmweb (#5985)
Co-authored-by: Maximilian Hils <git@maximilianhils.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-03-12 17:50:15 +01:00
ian klatzco
33e58e2c2b
Clarify web frontend docs (#5055) 2022-01-14 13:00:47 +01:00
Maximilian Hils
9b119c3dac web: major upgrades
This commit brings a bunch of under-the-hood mitmweb improvements:

 - migrate large parts of the codebase to typescript
 - introduce modern react testing conventions
 - vendor react-codemirror to silence warnings
 - use esbuild for both bundles and tests
 - move from yarn to npm
 - various fixes across the board
2021-06-21 17:51:47 +02:00
gorogoroumaru
a4f5edb5b7
[mitmweb] Add "one click resume / accept all" button (#4615)
* Add one-click-resume button

* Add one-click-resume button

* update jest snapshot

* update style

* Disable forward button when the flow is not intercepted

* update jest snapshot

* group items in main menu

* add layout for quick actions menu

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
2021-06-10 14:59:30 +02:00
Maximilian Hils
0e9206ceb1 switch to esbuild for bundling 2021-06-09 18:02:05 +02:00
Maximilian Hils
eefc55f28f coverage++ 2021-03-30 13:03:41 +02:00
Lucas Ramage
7854562883
Document mitmweb architecture
Bug: https://github.com/mitmproxy/mitmproxy/issues/3925
2020-05-18 14:21:23 -04:00
Lucas Ramage
53ee0b23ec
Clarify developer documentation for mitmweb
Bug: https://github.com/mitmproxy/mitmproxy/issues/3888
2020-04-03 10:35:03 -04:00
Maximilian Hils
ff759fa51b update compiled mitmweb assets, fix #3822 2020-02-21 23:16:02 +01:00
Maximilian Hils
c6932cbde5
update mitmweb dev instructions 2018-03-20 18:33:51 +01:00