mitmproxy/web
Dave T e98cf20b28
Make mitmweb use relative paths to connect to its resources. (#6411)
* Use relative paths in index.html

* Allow relative paths in websocket.tsx

* [autofix.ci] apply automated fixes

* Replace more root-relative URLs with relative URLs

* Add test for root relative URLs in index.html

* [autofix.ci] apply automated fixes

* Update changelog

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-10-19 14:10:26 -07:00
..
src Make mitmweb use relative paths to connect to its resources. (#6411) 2023-10-19 14:10:26 -07:00
.editorconfig [web] editor config for line endings 2016-06-17 06:26:46 +08:00
.prettierignore Add prettier to mitmweb (#5985) 2023-03-12 17:50:15 +01:00
gulpfile.js Add prettier to mitmweb (#5985) 2023-03-12 17:50:15 +01:00
jest.config.js Add prettier to mitmweb (#5985) 2023-03-12 17:50:15 +01:00
package-lock.json Add prettier to mitmweb (#5985) 2023-03-12 17:50:15 +01:00
package.json Add a prettier npm script (#5986) 2023-03-13 12:26:30 +01:00
README.md Add a prettier npm script (#5986) 2023-03-13 12:26:30 +01:00
tsconfig.json Add prettier to mitmweb (#5985) 2023-03-12 17:50:15 +01:00

Quick Start

  • Install mitmproxy as described in ../CONTRIBUTING.md
  • Run node --version to make sure that you have at least Node.js 14 or above. If you are on Ubuntu <= 20.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