discourse/app/assets/javascripts/admin/addon/models
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
..
admin-dashboard.js FEATURE: Always show full page "New Features" to admins (#28383) 2024-08-16 09:12:24 +10:00
admin-plugin.js DEV: Use default admin routes for plugins with settings (#30941) 2025-02-04 14:57:28 +08:00
admin-user.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
api-key.js DEV: Require at least one scope for API key granular mode (#31253) 2025-02-10 13:22:08 +08:00
backup-status.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
backup.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
color-scheme-color.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
color-scheme.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
email-log.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
email-preview.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
email-settings.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
email-style.js DEV: Update admin models to native class syntax (#20704) 2023-03-17 10:18:42 +00:00
email-template.js UX: Use DPageHeader on the Emails page (#30781) 2025-01-15 15:36:16 +11:00
flag-type.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
form-template.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
incoming-email.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
permalink.js FIX: Make permalink search work even when there're 100+ permalinks (#31354) 2025-02-16 00:19:16 +03:00
report.js UX: Show full total numbers in admin reports (#31061) 2025-01-31 09:55:05 +10:00
screened-email.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
screened-ip-address.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
screened-url.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
site-setting.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
site-text.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
staff-action-log.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
theme-settings.js DEV: refactor setting object mixin to helper class (#30529) 2025-01-06 12:02:46 +08:00
theme.js FEATURE: Allow a gjs initializer to be authored in local themes (#31423) 2025-02-21 09:59:41 +00:00
tl3-requirements.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
user-export.js FEATURE: Allow admins to export users (#30918) 2025-01-24 08:13:25 +11:00
user-field.js DEV: Modernize admin user fields (#29843) 2024-11-25 11:54:43 +08:00
version-check.js DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
watched-word.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
web-hook.js Admin webhooks UI guidelines (#30764) 2025-01-16 10:22:18 +08:00