discourse/app/assets/javascripts/admin/addon
David Taylor 4461256f9e
FEATURE: Allow a gjs initializer to be authored in local themes (#31423)
Previously, the only way to author js/hbs via the admin panel was to use
`<script>` tags. This strategy is not pretty, and doesn't provide access
to proper ES module imports or gjs `<template>` syntax.

Our recommendation for most themes is still that they should be authored
using a proper IDE, the `discourse_theme` CLI, and version-controlled
using git. However, we understand that this isn't a good fit for
everyone, and that there's still a place for simple
admin-panel-ui-authored themes.

This commit introduces a "JS" tab in the admin theme editor, which
corresponds to a file named
`discourse/api-initializers/theme-initializer.gjs` in the theme. This
means that everyone will be able to move towards the more modern
syntaxes, and away from the old `<script>` patterns.
2025-02-21 09:59:41 +00:00
..
adapters DEV: Move admin config pages out of /customize/ sub-route (#30511) 2025-01-02 09:13:11 +10:00
components FEATURE: Allow a gjs initializer to be authored in local themes (#31423) 2025-02-21 09:59:41 +00:00
controllers FEATURE: Initial version of experimental admin search (#31299) 2025-02-21 11:59:24 +10:00
helpers DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
lib DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
mixins FEATURE: Initial version of experimental admin search (#31299) 2025-02-21 11:59:24 +10:00
models FEATURE: Allow a gjs initializer to be authored in local themes (#31423) 2025-02-21 09:59:41 +00:00
routes FEATURE: Initial version of experimental admin search (#31299) 2025-02-21 11:59:24 +10:00
services FEATURE: Initial version of experimental admin search (#31299) 2025-02-21 11:59:24 +10:00
templates FEATURE: Allow a gjs initializer to be authored in local themes (#31423) 2025-02-21 09:59:41 +00:00