mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 17:53:55 +08:00
This commit covers fully converting the chat integration plugin to use the correct admin UI guidelines for Discourse at https://meta.discourse.org/t/creating-consistent-admin-interfaces/326780 and converting the plugin to use the newer admin plugin show route. A TLDR: * Migrated admin UI to new plugin pattern * Replaced channel edit modal with inline forms * Deleted legacy admin assets * Rewrote and modernized Glimmer components * Updated admin URL routes * Moved everything to FormKit * Updated translations and fixed empty lists --------- Co-authored-by: Martin Brennan <martin@discourse.org>
13 lines
558 B
Ruby
Vendored
13 lines
558 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
Discourse::Application.routes.append do
|
|
mount DiscourseChatIntegration::AdminEngine,
|
|
at: "/admin/plugins/discourse-chat-integration",
|
|
constraints: AdminConstraint.new
|
|
mount DiscourseChatIntegration::PublicEngine, at: "/chat-transcript/", as: "chat-transcript"
|
|
mount DiscourseChatIntegration::Provider::HookEngine, at: "/chat-integration/"
|
|
|
|
# For backwards compatibility with Slack plugin
|
|
post "/slack/command" =>
|
|
"discourse_chat_integration/provider/slack_provider/slack_command#command"
|
|
end
|