mitmproxy/web
Maximilian Hils b5ac8e62ea
add CSS and JS syntax highlighting (#7749)
* add CSS and JS syntax highlighting

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-01 13:19:14 +02:00
..
gen Ensure syntax highlighting is consistent between Rust and mitmweb (#7741) 2025-05-30 23:21:40 +02:00
src add CSS and JS syntax highlighting (#7749) 2025-06-01 13:19:14 +02:00
.editorconfig
.prettierignore
eslint.config.mjs web: upgrade dependencies (#7707) 2025-05-13 22:56:11 +02:00
gulpfile.js web: upgrade dependencies (#7707) 2025-05-13 22:56:11 +02:00
jest.config.js [web] add multiple flow selection (#7319) 2025-04-27 12:21:50 +02:00
package-lock.json web: remove unused prop-types dependency (#7722) 2025-05-23 07:35:15 +02:00
package.json web: remove unused prop-types dependency (#7722) 2025-05-23 07:35:15 +02:00
README.md
setup-jest.js web: upgrade dependencies (#7707) 2025-05-13 22:56:11 +02:00
tsconfig.json Web: search/highlight by body content (#7704) 2025-05-23 20:44:33 +02:00

Quick Start

  • Install mitmproxy as described in ../CONTRIBUTING.md
  • Run node --version to make sure that you have at least Node.js 18 or above. If you are on Ubuntu <= 22.04, you need to upgrade.
  • Run cd mitmproxy/web to change to the directory with package.json
  • Run npm install to install dependencies
  • Run npm start to start live-compilation
  • Run mitmweb after activating your Python virtualenv (see ../CONTRIBUTING.md).

Testing

  • Run npm test to run the test suite.

Code formatting

Architecture

There are two components:

Contributing

We very much appreciate any (small) improvements to mitmweb. Please do not include the compiled assets in mitmproxy/tools/web/static in your pull request. Refreshing them on every commit would massively increase repository size. We will update these files before every release.

Developer Tools