Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbourdeau committed Feb 27, 2024
1 parent 5917960 commit 6bac42c
Show file tree
Hide file tree
Showing 7 changed files with 239 additions and 1,225 deletions.
9 changes: 7 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,15 @@
});

$events->beforeBuild(function (Jigsaw $jigsaw) {
$manifest = json_decode(file_get_contents(__DIR__.'/source/assets/debugbar/manifest.json'), true);
$files = glob(__DIR__.'/source/assets/debugbar/*.js');

if (count($files) !== 1) {
echo "\n\nToo many demo files found in source/assets/debugbar\n\n";
exit(1);
}

$jigsaw->setConfig('debugbarAssets', [
'js' => basename($manifest['src/demo.ts']['file']),
'js' => basename($files[0]),
]);
});

Expand Down
4 changes: 3 additions & 1 deletion source/_docs/80-polling-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ seo_description:
If you cannot use websocket via ActionCable, the debugbar has a fallback mode using HTTP polling.
It's not as nice as the websocket, but it works.

If ActionCable isn't found, the debugbar will automatically switch to polling mode.
If ActionCable isn't found, the debugbar will automatically switch to polling mode (only if using the ERB helper).

It's also possible to pause and resume polling to avoid all those calls in the browser Network tab when debugging.

## Configuration

Expand Down
1 change: 0 additions & 1 deletion source/assets/debugbar/debugbar-756U0KKi.js.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions source/assets/debugbar/debugbar-iA0j0PM7.js.map

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions source/assets/debugbar/manifest.json

This file was deleted.

Loading

0 comments on commit 6bac42c

Please sign in to comment.