Repository navigation
Releases
Releases · wesort/statamic-dev-panel
v1.1.1
What's improved
dev-panel:statusalso checks the site's own scripts underresources/js(notnode_modules) for the old dev panel Alpine keys,showRawData,showDesignGridsandminimiseDevPanel, so removing them from<body x-data>can't break a script that still reads them
v1.1.0
What's new
{{ dev_panel:raw_data }} ... {{ /dev_panel:raw_data }}tag pair for content shown only while the raw-data toggle is on, with no Alpine syntax in templates.aspicks the element, and any other parameter becomes an attribute.
What's improved
- Raw data in the tag stays hidden without an
[x-cloak]CSS rule and before Alpine starts, as it's hidden with an inline style - The tag doesn't need an
x-dataancestor, and renders nothing whenfeatures.raw_datais off dev-panel:statusanddev-panel:installnow point to the tag, and count it as raw-data use.$store.devPanel?.rawDatakeeps working.
v1.0.0
What's new
{{ dev_panel }}and{{ dev_panel:grids }}tags: a front-end developer panel and a design grids overlay, shown only to logged-in users- Panel tools: the current commit (from the
statamic.git.*config keys), an entry's access field, a breakpoint and viewport readout, design grids and raw-data toggles, an edit link and back to top config/statamic-dev-panel.phpto switch off any feature, start minimised or not, match the grid container classes and breakpoints, and set the access fieldextraconfig to render the site's own partials inside the panel, with the current entry or term's data- An Alpine store,
$store.devPanel, for the toggles. Site templates can use$store.devPanel?.rawData, and each user's choices are remembered when the persist plugin is installed. - Safe with static caching: output goes in a nocache region that stores only the content ID, a few hundred bytes per region
php please dev-panel:installpublishes the config, adds the Tailwind 4@sourceline after asking (or shows the Tailwind 3contentpath) and lists the layout steps leftphp please dev-panel:statuschecks the setup, lists leftovers from a copied dev panel, shows the installed version against the latest release, and exits 1 when something needs fixing- Supports Statamic 5 and 6, PHP 8.2+, Alpine.js 3, and Tailwind 3 or 4