discourse/app/assets/javascripts/admin/addon/routes
Martin Brennan 57ededb770
DEV: Move admin sidebar out of initializer (#25396)
Having the admin sidebar code in an instance initializer is not
ideal because:

* It runs during app boot which may not even be necessary based on site settings
* It makes it hard for plugins to register additional links in time without resorting
to before/after initializer gymnastics

This PR moves the admin sidebar into a lib and creates the panel
in custom-sections.js, then the sections and links are loaded when
the main sidebar component is rendered, which leaves plugins enough
time to add additional links in an initializer.

---------

Co-authored-by: David Taylor <david@taylorhq.com>
2024-01-25 10:45:14 +10:00
..
admin-badges DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-api-index.js DEV: Update transitionTo on Route (#22644) 2023-07-18 14:52:55 -05:00
admin-api-keys-index.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-api-keys-new.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-api-keys-show.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-api-keys.js DEV: Update transitionTo on Route (#22644) 2023-07-18 14:52:55 -05:00
admin-backups-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-backups-logs.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-backups.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-badges.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-customize-colors-show.js DEV: Update replaceWith on Route (#23153) 2023-08-21 16:53:54 -05:00
admin-customize-colors.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-customize-email-style-edit.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-customize-email-style-index.js DEV: Update replaceWith on Route (#23153) 2023-08-21 16:53:54 -05:00
admin-customize-email-style.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-email-templates-edit.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-email-templates.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-customize-form-templates-edit.js DEV: Create form templates (#20189) 2023-02-08 11:21:39 -08:00
admin-customize-form-templates-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-customize-index.js DEV: Update transitionTo on Route (#22644) 2023-07-18 14:52:55 -05:00
admin-customize-robots-txt.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-theme-components.js FEATURE: Add theme-components route for admin (#24264) 2023-11-08 13:42:27 +10:00
admin-customize-themes-edit.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-customize-themes-index.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-themes-show.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-customize-themes.js FEATURE: Add theme-components route for admin (#24264) 2023-11-08 13:42:27 +10:00
admin-dashboard-general.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-dashboard-new-features.js FEATURE: dedicated admin section for new features (#24292) 2023-11-20 09:59:04 +11:00
admin-dashboard-reports.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-dashboard.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-email-bounced.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-email-incomings.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-index.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-logs.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-preview-digest.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-email-received.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-rejected.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-email-sent.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-email-skipped.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-embedding.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-emojis.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-flags-posts-active.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-flags-posts-old.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-flags-topics-index.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-logs-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-logs-screened-emails.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-logs-screened-ip-addresses.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-logs-screened-urls.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-logs-staff-action-logs.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-permalinks.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-plugins.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-reports-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-reports-show.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-revamp-config-area.js DEV: Automatically generate all admin links for app for new sidebar (#24175) 2023-11-02 10:34:37 +10:00
admin-revamp-config.js DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-revamp-lobby.js DEV: Add new experimental admin UI route and sidebar (#23952) 2023-10-19 14:23:41 +10:00
admin-revamp.js DEV: Move admin sidebar out of initializer (#25396) 2024-01-25 10:45:14 +10:00
admin-route-map.js DEV: Fix router linting errors (#24012) 2023-11-29 12:26:31 +01:00
admin-search-logs-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-search-logs-term.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-site-settings-category.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-site-settings-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-site-settings.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-site-text-edit.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-site-text-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-user-badges.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-user-fields.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-user-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-user-tl3-requirements.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-user.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-users-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-users-list-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-users-list-show.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-users-list.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-watched-words-action.js DEV: Rename I18n imports to discourse-i18n (#23915) 2023-10-18 11:07:09 +01:00
admin-watched-words-index.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-watched-words.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-web-hooks-edit.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-web-hooks-show.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-web-hooks.js FEATURE: granular webhooks (#23070) 2023-10-09 03:35:31 +00:00
admin.js DEV: Move admin sidebar out of initializer (#25396) 2024-01-25 10:45:14 +10:00