0.1.5 ā€¢ Published 1 year ago

@basster/react-symfony-debug-toolbar v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

React Symfony Web Debug Toolbar

npm

This project aims to help developers who develop a separate SPA frontend against a Symfony Backend, utilizing none of the bundled frontend stacks.

In this case the frontend has its own index.html and cannot profit from Symfonys tremendous Web Debug Toolbar & Profiler.

This component to the rescue! šŸŽ‰

āš ļø This is an early version and nothing more than a PoC. Please help me to streamline it (especially with UX and styling šŸ˜…).

What it does?

The <SymfonyWebDebugToolbar /> component intercepts each XMLHttpRequest and window.fetch call (with a little help from @mswjs/interceptors) and looks for x-debug-token and x-debug-token-link headers in all responses, which are injected into every Symfony response, if the Profiler Component is installed, and lists it in nearly the same way as the original Symfony Web Debug Toolbar does.

How does it look?

React Symfony Web Debug Toolbar in a very early stage

How to install?

# npm
npm install --save @basster/react-symfony-debug-toolbar

# yarn
yarn add @basster/react-symfony-debug-toolbar