Ring handlers for the dev halos overlay. All endpoints 404 when the
server was not started with :halos? true, so production builds
never expose them.
Three endpoints:
| route | method | purpose |
|---|---|---|
/stube/halos.js | GET | the overlay script |
/stube/halos/:cid/enable | POST | flip a conv into halos mode + redraw |
/stube/halos/:cid/panel | GET | render the inspector side-panel HTML |
Ring handlers for the dev halos overlay. All endpoints 404 when the server was not started with `:halos? true`, so production builds never expose them. Three endpoints: | route | method | purpose | |--------------------------------|--------|----------------------------------------| | `/stube/halos.js` | GET | the overlay script | | `/stube/halos/:cid/enable` | POST | flip a conv into halos mode + redraw | | `/stube/halos/:cid/panel` | GET | render the inspector side-panel HTML |
(enable-handler {:keys [path-params] :as req})POST /stube/halos/:cid/enable — flip the conv into halos mode and
push a freshly-decorated frame so the overlay sees data-stube attrs
without a hard reload.
POST `/stube/halos/:cid/enable` — flip the conv into halos mode and push a freshly-decorated frame so the overlay sees data-stube attrs without a hard reload.
(js-handler _req)Serve the dev halos overlay script. 404s when halos is disabled.
Serve the dev halos overlay script. 404s when halos is disabled.
(panel-handler {:keys [path-params] :as req})Return the rendered side-panel HTML for the dev halos overlay.
404s when the server has halos off; 410 when the conversation has halos off (the overlay shouldn't be polling); plain 200 HTML otherwise.
Return the rendered side-panel HTML for the dev halos overlay. 404s when the server has halos off; 410 when the conversation has halos off (the overlay shouldn't be polling); plain 200 HTML otherwise.
(requested? req)True when the request URL has ?halos=1 (or any value).
True when the request URL has `?halos=1` (or any value).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |