clockwork icon indicating copy to clipboard operation
clockwork copied to clipboard

How can I enable toolbar on my custom project

Open abramov-ks opened this issue 5 years ago • 4 comments

I'm not using awesome frameworks but clockwork works with chrome extension. I want to enable toolbar on my project, but doesn't know how.

I just added script from CDN but it doesn't affect

abramov-ks avatar Mar 07 '21 07:03 abramov-ks

Hey, previously you'd also need to enable it server-side. I've just released 5.0.7, which enables it by default, so it should start working after the update with no changes required.

itsgoingd avatar Mar 14 '21 16:03 itsgoingd

Nice. I see it correctly, but it doesn't work for my SPA app. First, it's frozen and show only info about first request (it was loaded from ./clockwork.php correctly). But it doesn't refreshes after next XHR requests. So, may be I need to fire some event while I make XHR requests ?

Second, If I click "show details" it redirects me to /clockwork route, but I don't have it. Is it possible to make custom panel like chrome extension looks ?

Thanks for your work!

abramov-ks avatar Mar 15 '21 09:03 abramov-ks

It does not currently show XHR requests, which I guess makes it not very useful for SPAs. The toolbar is supposed to be a simple addition to the full Clockwork UI, not a replacement. I will see if we can improve things for the next release though.

The "show details" button opens the Clockwork web app, which is not supported in the vanilla integration atm. I've already did some work on this, so you can expect it being added in a future release.

itsgoingd avatar Mar 16 '21 09:03 itsgoingd

Vanilla web UI is now available in Clockwork 5.1.

itsgoingd avatar Aug 09 '21 20:08 itsgoingd