mitmproxy/web
Jay Malhotra 0bd36e7313
Add content view syntax highlighting for JSON and msgpack (#5648)
* feat(contentview): add json syntax highlighting

* feat(contentview): add msgpack syntax highlighting

* fix(contentview): address pipeline failures

* feat(contentview): switch to pygment-like token names

* feat(mitmproxy): update cli syntax highlighting

* refactor: respond to review comments

* nits

Co-authored-by: Maximilian Hils <git@maximilianhils.com>
Co-authored-by: Maximilian Hils <github@maximilianhils.com>
2022-10-19 21:51:03 +00:00
..
src Add content view syntax highlighting for JSON and msgpack (#5648) 2022-10-19 21:51:03 +00:00
.editorconfig
gulpfile.js Merge pull request #4779 from mhils/mitmweb-tcp 2021-08-25 13:35:37 +02:00
jest.config.js web: test coverage++, adjust commandbar 2021-08-20 18:38:22 +02:00
package-lock.json WireGuard: Show QR Code (#5591) 2022-09-19 17:08:07 +02:00
package.json WireGuard: Show QR Code (#5591) 2022-09-19 17:08:07 +02:00
README.md Clarify web frontend docs (#5055) 2022-01-14 13:00:47 +01:00
tsconfig.json

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.

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