mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 07:33:37 +08:00
9ef3a18ce4
This commit adds a new admin UI under the route `/admin-revamp`, which is only accessible if the user is in a group defined by the new `enable_experimental_admin_ui_groups` site setting. It also adds a special `admin` sidebar panel that is shown instead of the `main` forum one when the admin is in this area. ![image](https://github.com/discourse/discourse/assets/920448/fa0f25e1-e178-4d94-aa5f-472fd3efd787) We also add an "Admin Revamp" sidebar link to the community section, which will only appear if the user is in the setting group: ![image](https://github.com/discourse/discourse/assets/920448/ec05ca8b-5a54-442b-ba89-6af35695c104) Within this there are subroutes defined like `/admin-revamp/config/:area`, these areas could contain any UI imaginable, this is just laying down an initial idea of the structure and how the sidebar will work. Sidebar links are currently hardcoded. Some other changes: * Changed the `main` and `chat` panels sidebar panel keys to use exported const values for reuse * Allowed custom sidebar sections to hide their headers with the `hideSectionHeader` option * Add a `groupSettingArray` setting on `this.siteSettings` in JS, which accepts a group site setting name and splits it by `|` then converts the items in the array to integers, similar to the `_map` magic for ruby group site settings * Adds a `hidden` option for sidebar panels which prevents them from showing in separated mode and prevents the switch button from being shown --------- Co-authored-by: Krzysztof Kotlarek <kotlarek.krzysztof@gmail.com> |
||
---|---|---|
.. | ||
admin-badges | ||
admin-api-index.js | ||
admin-api-keys-index.js | ||
admin-api-keys-new.js | ||
admin-api-keys-show.js | ||
admin-api-keys.js | ||
admin-backups-index.js | ||
admin-backups-logs.js | ||
admin-backups.js | ||
admin-badges.js | ||
admin-customize-colors-show.js | ||
admin-customize-colors.js | ||
admin-customize-email-style-edit.js | ||
admin-customize-email-style-index.js | ||
admin-customize-email-style.js | ||
admin-customize-email-templates-edit.js | ||
admin-customize-email-templates.js | ||
admin-customize-form-templates-edit.js | ||
admin-customize-form-templates-index.js | ||
admin-customize-index.js | ||
admin-customize-robots-txt.js | ||
admin-customize-themes-edit.js | ||
admin-customize-themes-index.js | ||
admin-customize-themes-show.js | ||
admin-customize-themes.js | ||
admin-dashboard-general.js | ||
admin-dashboard-reports.js | ||
admin-dashboard.js | ||
admin-email-bounced.js | ||
admin-email-incomings.js | ||
admin-email-index.js | ||
admin-email-logs.js | ||
admin-email-preview-digest.js | ||
admin-email-received.js | ||
admin-email-rejected.js | ||
admin-email-sent.js | ||
admin-email-skipped.js | ||
admin-embedding.js | ||
admin-emojis.js | ||
admin-flags-posts-active.js | ||
admin-flags-posts-old.js | ||
admin-flags-topics-index.js | ||
admin-logs-index.js | ||
admin-logs-screened-emails.js | ||
admin-logs-screened-ip-addresses.js | ||
admin-logs-screened-urls.js | ||
admin-logs-staff-action-logs.js | ||
admin-permalinks.js | ||
admin-plugins.js | ||
admin-reports-index.js | ||
admin-reports-show.js | ||
admin-revamp-config-area.js | ||
admin-revamp-config.js | ||
admin-revamp-lobby.js | ||
admin-revamp.js | ||
admin-route-map.js | ||
admin-search-logs-index.js | ||
admin-search-logs-term.js | ||
admin-site-settings-category.js | ||
admin-site-settings-index.js | ||
admin-site-settings.js | ||
admin-site-text-edit.js | ||
admin-site-text-index.js | ||
admin-user-badges.js | ||
admin-user-fields.js | ||
admin-user-index.js | ||
admin-user-tl3-requirements.js | ||
admin-user.js | ||
admin-users-index.js | ||
admin-users-list-index.js | ||
admin-users-list-show.js | ||
admin-users-list.js | ||
admin-watched-words-action.js | ||
admin-watched-words-index.js | ||
admin-watched-words.js | ||
admin-web-hooks-edit.js | ||
admin-web-hooks-show.js | ||
admin-web-hooks.js | ||
admin.js |