discourse/app
David Taylor 498481e5be
DEV: Introduce 'dev tools' toolbar and plugin-outlet debugger (#30624)
This commit introduces a new 'dev tools' feature for core, theme and plugin developers. This is enabled by default in development environments, and can be enabled in production by running `enableDevTools()` in the browser console. 

When enabled, it will load a separate dev-tools JS/CSS bundle, and show a new toolbar on the left of the page. Dev Tools will remain enabled until the 'x' button is clicked, or `disableDevTools()` is run in the console.

The toolbar currently has three buttons:

- "Toggle safe mode" provides an easy way to toggle all themes/plugins on/off

- "Toggle verbose localization" is a toggle for our existing locale debugging feature

- "Debug plugin outlets" is inspired by the popular 'plugin outlet locations' theme component. It hooks into core's plugin outlet system, and renders a button into every single outlet. Those buttons have a tooltip which shows more information about the outlet, including all of the outletArg values. To inspect the value further, buttons allow the values to be saved to globals and logged to the console.

All of this is implemented under `/static`, and is only async-import()-d when the dev tools are enabled. Therefore, we can continue to add more tools, with zero performance cost to ordinary users of Discourse.
2025-01-08 15:26:18 +00:00
..
assets DEV: Introduce 'dev tools' toolbar and plugin-outlet debugger (#30624) 2025-01-08 15:26:18 +00:00
controllers DEV: unifies emoji picker (#28277) 2025-01-08 11:41:36 +01:00
helpers PERF: Refactor and optimize splash screen implementation (#30373) 2024-12-30 11:31:08 +00:00
jobs DEV: Allow export user archive (job) to be requested and sent to an admin (#30543) 2025-01-03 14:27:10 +08:00
mailers
models FIX: Name field should appear in the signup form for login-required sites (#30634) 2025-01-08 03:49:34 +03:00
serializers DEV: Convert admin API keys to conform to UI guidelines (#30096) 2025-01-08 18:11:38 +08:00
services DEV: Update nokogiri to 1.18.1 (#30554) 2025-01-07 12:05:39 +01:00
views PERF: Refactor and optimize splash screen implementation (#30373) 2024-12-30 11:31:08 +00:00