A platform for community discussion. Free, open, simple.
DEV: Remove unused services from plugins/themes (#34231)
Jarek Radosz89b108c4b245
diff --git a/plugins/automation/admin/assets/javascripts/admin/components/automation-list.gjs b/plugins/automation/admin/assets/javascripts/admin/components/automation-list.gjsindex ce5fe08368a..82f79aaf6ac 100644--- a/plugins/automation/admin/assets/javascripts/admin/components/automation-list.gjs+++ b/plugins/automation/admin/assets/javascripts/admin/components/automation-list.gjs@@ -19,7 +19,6 @@ const RUN_THRESHOLD = 10;export default class AutomationList extends Component {@service dialog;- @service router;@actionasync destroyAutomation(automation) {diff --git a/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs b/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjsindex 5560c673ae5..7917bc607ad 100644--- a/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/channels-list-direct.gjs@@ -18,10 +18,7 @@ import ChatZero from "./svg/chat-zero";export default class ChannelsListDirect extends Component {@service chat;@service chatChannelsManager;- @service chatStateManager;- @service currentUser;@service site;- @service siteSettings;@service modal;get inSidebar() {diff --git a/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs b/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjsindex e1caaa638e8..5ee01951854 100644--- a/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/channels-list-public.gjs@@ -16,11 +16,8 @@ import ChatZero from "./svg/chat-zero";export default class ChannelsListPublic extends Component {@service chatChannelsManager;- @service chatStateManager;@service chatTrackingStateManager;@service site;- @service siteSettings;- @service currentUser;@service router;get inSidebar() {diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-card.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-card.gjsindex 4565929f81a..a3c4ebbd2aa 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-card.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-card.gjs@@ -1,7 +1,5 @@-import Component from "@glimmer/component";import { hash } from "@ember/helper";import { LinkTo } from "@ember/routing";-import { service } from "@ember/service";import { gt } from "truth-helpers";import borderColor from "discourse/helpers/border-color";import concatClass from "discourse/helpers/concat-class";@@ -10,85 +8,80 @@ import replaceEmoji from "discourse/helpers/replace-emoji";import { i18n } from "discourse-i18n";import ToggleChannelMembershipButton from "./toggle-channel-membership-button";-export default class ChatChannelCard extends Component {- @service chat;-- <template>- {{#if @channel}}- <div- class={{concatClass- "chat-channel-card"- (if @channel.isClosed "--closed")- (if @channel.isArchived "--archived")- }}- style={{borderColor @channel.chatable.color}}- data-channel-id={{@channel.id}}- >- <div class="chat-channel-card__header">- <LinkTo- @route="chat.channel"- @models={{@channel.routeModels}}- class="chat-channel-card__name-container"- >- <span class="chat-channel-card__name">- {{replaceEmoji @channel.title}}- </span>- {{#if @channel.chatable.read_restricted}}- {{icon "lock" class="chat-channel-card__read-restricted"}}- {{/if}}- {{#if @channel.currentUserMembership.muted}}- <span- class="chat-channel-card__muted"- aria-label={{i18n "chat.muted"}}- title={{i18n "chat.muted"}}- >{{icon "d-muted"}}</span>- {{/if}}- </LinkTo>-- </div>-- <div class="chat-channel-card__cta">- {{#if @channel.isFollowing}}-- <ToggleChannelMembershipButton- @channel={{@channel}}- @options={{hash- leaveClass="btn-transparent btn-danger chat-channel-card__leave-btn"- labelType="short"- }}- />-- {{else if @channel.isJoinable}}- <ToggleChannelMembershipButton- @channel={{@channel}}- @options={{hash- joinClass="btn-primary btn-small chat-channel-card__join-btn"- labelType="short"- }}- />+const ChatChannelCard = <template>+ {{#if @channel}}+ <div+ class={{concatClass+ "chat-channel-card"+ (if @channel.isClosed "--closed")+ (if @channel.isArchived "--archived")+ }}+ style={{borderColor @channel.chatable.color}}+ data-channel-id={{@channel.id}}+ >+ <div class="chat-channel-card__header">+ <LinkTo+ @route="chat.channel"+ @models={{@channel.routeModels}}+ class="chat-channel-card__name-container"+ >+ <span class="chat-channel-card__name">+ {{replaceEmoji @channel.title}}+ </span>+ {{#if @channel.chatable.read_restricted}}+ {{icon "lock" class="chat-channel-card__read-restricted"}}{{/if}}- </div>+ {{#if @channel.currentUserMembership.muted}}+ <span+ class="chat-channel-card__muted"+ aria-label={{i18n "chat.muted"}}+ title={{i18n "chat.muted"}}+ >{{icon "d-muted"}}</span>+ {{/if}}+ </LinkTo>+ </div>- {{#if (gt @channel.membershipsCount 0)}}- <LinkTo- @route="chat.channel.info.members"- @models={{@channel.routeModels}}- class="chat-channel-card__members"- >- {{i18n- "chat.channel.memberships_count"+ <div class="chat-channel-card__cta">+ {{#if @channel.isFollowing}}+ <ToggleChannelMembershipButton+ @channel={{@channel}}+ @options={{hash+ leaveClass="btn-transparent btn-danger chat-channel-card__leave-btn"+ labelType="short"}}- </LinkTo>- {{/if}}+ />- {{#if @channel.description}}- <div class="chat-channel-card__description">- {{replaceEmoji @channel.description}}- </div>+ {{else if @channel.isJoinable}}+ <ToggleChannelMembershipButton+ @channel={{@channel}}+ @options={{hash+ joinClass="btn-primary btn-small chat-channel-card__join-btn"+ labelType="short"+ }}+ />{{/if}}-</div>- {{/if}}- </template>-}++ {{#if (gt @channel.membershipsCount 0)}}+ <LinkTo+ @route="chat.channel.info.members"+ @models={{@channel.routeModels}}+ class="chat-channel-card__members"+ >+ {{i18n+ "chat.channel.memberships_count"+ }}+ </LinkTo>+ {{/if}}++ {{#if @channel.description}}+ <div class="chat-channel-card__description">+ {{replaceEmoji @channel.description}}+ </div>+ {{/if}}+ </div>+ {{/if}}+</template>;++export default ChatChannelCard;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-leave-btn.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-leave-btn.gjsindex 09430a4b1d3..6c1ad8a8208 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-leave-btn.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-leave-btn.gjs@@ -4,7 +4,6 @@ import { isPresent } from "@ember/utils";import DButton from "discourse/components/d-button";export default class ChatChannelLeaveBtn extends Component {- @service chat;@service site;get shouldRender() {diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-preview-card.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-preview-card.gjsindex 7a7a6e6484a..a2c926d4dff 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-preview-card.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-preview-card.gjs@@ -1,7 +1,6 @@import Component from "@glimmer/component";import { hash } from "@ember/helper";import { LinkTo } from "@ember/routing";-import { service } from "@ember/service";import { isEmpty } from "@ember/utils";import concatClass from "discourse/helpers/concat-class";import { i18n } from "discourse-i18n";@@ -9,8 +8,6 @@ import ChannelTitle from "./channel-title";import ToggleChannelMembershipButton from "./toggle-channel-membership-button";export default class ChatChannelPreviewCard extends Component {- @service chat;-get showJoinButton() {return this.args.channel?.isOpen && this.args.channel?.canJoin;}diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjsindex 38c2f5b211f..e75b4a39b12 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs@@ -23,11 +23,8 @@ import ToggleChannelMembershipButton from "discourse/plugins/chat/discourse/compconst FADEOUT_CLASS = "-fade-out";export default class ChatChannelRow extends Component {- @service api;@service capabilities;@service chat;- @service currentUser;- @service router;@service site;@tracked isAtThreshold = false;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjsindex d9116b1768f..20c6dadabe3 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel.gjs@@ -49,7 +49,6 @@ import ChatSkeleton from "./chat-skeleton";import ChatUploadDropZone from "./chat-upload-drop-zone";export default class ChatChannel extends Component {- @service appEvents;@service capabilities;@service chat;@service chatApi;@@ -61,9 +60,6 @@ export default class ChatChannel extends Component {@service("chat-channel-pane") pane;@service currentUser;@service dialog;- @service messageBus;- @service router;- @service site;@service siteSettings;@tracked sending = false;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.gjsindex 553aea548c7..5ed30d3b39b 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer-uploads.gjs@@ -16,7 +16,6 @@ import ChatComposerUpload from "discourse/plugins/chat/discourse/components/chat@classNames("chat-composer-uploads")export default class ChatComposerUploads extends Component {@service mediaOptimizationWorker;- @service chatStateManager;uppyUpload = new UppyUpload(getOwner(this), {id: "chat-composer-uploader",diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-composer.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-composer.gjsindex 389c2af42ef..3f98d2a0aa2 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-composer.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-composer.gjs@@ -66,8 +66,6 @@ export default class ChatComposer extends Component {@service appEvents;@service emojiStore;@service currentUser;- @service chatApi;- @service chatDraftsManager;@service modal;@service menu;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-drawer.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-drawer.gjsindex c03fd42189c..1ce7e816069 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-drawer.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-drawer.gjs@@ -22,7 +22,6 @@ export default class ChatDrawer extends Component {@service chat;@service router;@service chatDrawerSize;- @service chatChannelsManager;@service chatStateManager;@service chatDrawerRouter;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjsindex 8111199502e..42efe8f0e07 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-footer.gjs@@ -11,12 +11,10 @@ import {} from "discourse/plugins/chat/discourse/components/chat/footer/unread-indicator";export default class ChatFooter extends Component {- @service router;@service chat;@service chatHistory;@service siteSettings;@service site;- @service currentUser;@service chatChannelsManager;@service chatStateManager;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.gjsindex af5a679318c..6c922e52f05 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-message-actions-mobile.gjs@@ -20,7 +20,6 @@ export default class ChatMessageActionsMobile extends Component {@service chat;@service site;@service capabilities;- @service modal;@service menu;@tracked hasExpandedReply = false;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-message-in-reply-to-indicator.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-message-in-reply-to-indicator.gjsindex 0397c7754c6..dd3e663e6e5 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-message-in-reply-to-indicator.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-message-in-reply-to-indicator.gjs@@ -1,6 +1,5 @@import Component from "@glimmer/component";import { LinkTo } from "@ember/routing";-import { service } from "@ember/service";import { htmlSafe } from "@ember/template";import icon from "discourse/helpers/d-icon";import replaceEmoji from "discourse/helpers/replace-emoji";@@ -8,8 +7,6 @@ import ChatEmojiAvatar from "./chat-emoji-avatar";import ChatUserAvatar from "./chat-user-avatar";export default class ChatMessageInReplyToIndicator extends Component {- @service router;-get route() {if (this.hasThread) {return "chat.channel.thread";diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-message.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-message.gjsindex 32265fdad95..addb278159b 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-message.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-message.gjs@@ -50,17 +50,11 @@ export const MESSAGE_CONTEXT_THREAD = "thread";export default class ChatMessage extends Component {@service site;- @service dialog;@service currentUser;- @service appEvents;- @service capabilities;@service chat;@service chatApi;@service chatChannelPane;@service chatThreadPane;- @service chatChannelsManager;- @service router;- @service toasts;@service modal;@service interactedChatMessage;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-thread-list.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-thread-list.gjsindex 519ca827be0..eda0e29a4b6 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-thread-list.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-thread-list.gjs@@ -11,7 +11,6 @@ import ChatThreadListItem from "discourse/plugins/chat/discourse/components/chatimport ChatTrackMessage from "discourse/plugins/chat/discourse/modifiers/chat/track-message";export default class ChatThreadList extends Component {- @service chat;@service chatApi;@service messageBus;@service chatTrackingStateManager;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-thread.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-thread.gjsindex 2fe43b8d7c4..063fdc851f3 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat-thread.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat-thread.gjs@@ -43,11 +43,9 @@ import ChatThreadHeading from "./chat-thread-heading";import ChatUploadDropZone from "./chat-upload-drop-zone";export default class ChatThread extends Component {- @service appEvents;@service capabilities;@service chat;@service chatApi;- @service chatHistory;@service chatDraftsManager;@service chatThreadComposer;@service chatThreadPane;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/drawer-routes/browse.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/drawer-routes/browse.gjsindex 9fd558703db..344c8d76f6d 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/drawer-routes/browse.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/drawer-routes/browse.gjs@@ -8,7 +8,6 @@ import Navbar from "discourse/plugins/chat/discourse/components/chat/navbar";export default class ChatDrawerRoutesBrowse extends Component {@service chat;@service chatStateManager;- @service chatHistory;<template><div class="c-drawer-routes --browse">diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/drawer-routes/channel.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/drawer-routes/channel.gjsindex b2e46dfe356..9ca5009752b 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/drawer-routes/channel.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/drawer-routes/channel.gjs@@ -7,7 +7,6 @@ import ChatChannel from "discourse/plugins/chat/discourse/components/chat-channeexport default class ChatDrawerRoutesChannel extends Component {@service chat;@service chatStateManager;- @service chatChannelsManager;@service chatHistory;get backBtnRoute() {diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/header/icon.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/header/icon.gjsindex 5986b8513ce..28e15e81ed4 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/header/icon.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/header/icon.gjs@@ -12,7 +12,6 @@ export default class ChatHeaderIcon extends Component {@service currentUser;@service site;@service chatStateManager;- @service router;get showUnreadIndicator() {if (this.chatStateManager.isFullPageActive && this.site.desktopView) {diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/add-members.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/add-members.gjsindex 405a421c501..3141e271741 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/add-members.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/add-members.gjs@@ -9,7 +9,6 @@ import MembersCount from "./members-count";import MembersSelector from "./members-selector";export default class AddMembers extends Component {- @service chat;@service chatApi;@service router;@service toasts;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/channel.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/channel.gjsindex df8d595f582..80d14618b95 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/channel.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/channel.gjs@@ -1,11 +1,8 @@import Component from "@glimmer/component";-import { service } from "@ember/service";import { not } from "truth-helpers";import ChannelTitle from "discourse/plugins/chat/discourse/components/channel-title";export default class Channel extends Component {- @service currentUser;-get tracking() {return this.args.item.tracking;}diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/group.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/group.gjsindex 34058a7cc63..35f21fb9b23 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/group.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/message-creator/group.gjs@@ -4,7 +4,6 @@ import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";export default class ChatableGroup extends Component {- @service currentUser;@service siteSettings;group_with_too_many_members = i18n(diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.gjsindex 04b741a00aa..7a7fab7e035 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/modal/create-channel.gjs@@ -29,14 +29,11 @@ const DEFAULT_HINT = htmlSafe();export default class ChatModalCreateChannel extends Component {- @service chat;@service dialog;@service chatChannelsManager;@service chatApi;@service router;- @service currentUser;@service siteSettings;- @service site;@tracked flash;@tracked name;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/modal/move-message-to-channel.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/modal/move-message-to-channel.gjsindex 4345cda538b..b7870f6421a 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/modal/move-message-to-channel.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/modal/move-message-to-channel.gjs@@ -11,7 +11,6 @@ import { i18n } from "discourse-i18n";import ChatChannelChooser from "../../chat-channel-chooser";export default class ChatModalMoveMessageToChannel extends Component {- @service chat;@service chatApi;@service router;@service chatChannelsManager;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/navbar/new-channel-button.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/navbar/new-channel-button.gjsindex 1ffe03c234f..38ad775b929 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/navbar/new-channel-button.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/navbar/new-channel-button.gjs@@ -5,7 +5,6 @@ import DButton from "discourse/components/d-button";import CreateChannelModal from "discourse/plugins/chat/discourse/components/chat/modal/create-channel";export default class ChatNavbarNewChannelButton extends Component {- @service chatStateManager;@service currentUser;@service modal;@service site;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-members.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-members.gjsindex 50160aa622d..eda4ba3220c 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-members.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-members.gjs@@ -21,10 +21,8 @@ import { MODES } from "discourse/plugins/chat/discourse/components/chat/message-import ChatUserInfo from "discourse/plugins/chat/discourse/components/chat-user-info";export default class ChatRouteChannelInfoMembers extends Component {- @service appEvents;@service chatApi;@service currentUser;- @service modal;@service loadingSlider;@service site;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-settings.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-settings.gjsindex 6526a80da9e..b177bae1512 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-settings.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info-settings.gjs@@ -31,7 +31,6 @@ export default class ChatRouteChannelInfoSettings extends Component {@service chatApi;@service chatGuardian;@service chatChannelsManager;- @service currentUser;@service siteSettings;@service dialog;@service modal;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjsindex 1cea5542f66..35009788968 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channel-info.gjs@@ -9,7 +9,6 @@ import ChannelInfoNav from "./channel-info-nav";export default class ChatRoutesChannelInfo extends Component {@service chatChannelInfoRouteOriginManager;- @service site;@service modal;@service chatGuardian;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channels.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channels.gjsindex bc7de3a402e..df4eb3c57bc 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/channels.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/channels.gjs@@ -1,23 +1,19 @@-import Component from "@glimmer/component";-import { service } from "@ember/service";import { i18n } from "discourse-i18n";-import ChannelsListPublic from "discourse/plugins/chat/discourse/components/channels-list-public";-import Navbar from "discourse/plugins/chat/discourse/components/chat/navbar";+import ChannelsListPublic from "../../channels-list-public";+import Navbar from "../navbar";-export default class ChatRoutesChannels extends Component {- @service site;+const ChatRoutesChannels = <template>+ <div class="c-routes --channels">+ <Navbar as |navbar|>+ <navbar.Title @title={{i18n "chat.chat_channels"}} />+ <navbar.Actions as |action|>+ <action.OpenDrawerButton />+ <action.BrowseChannelsButton />+ </navbar.Actions>+ </Navbar>- <template>- <div class="c-routes --channels">- <Navbar as |navbar|>- <navbar.Title @title={{i18n "chat.chat_channels"}} />- <navbar.Actions as |action|>- <action.OpenDrawerButton />- <action.BrowseChannelsButton />- </navbar.Actions>- </Navbar>+ <ChannelsListPublic />+ </div>+</template>;- <ChannelsListPublic />- </div>- </template>-}+export default ChatRoutesChannels;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/direct-messages.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/direct-messages.gjsindex 0d8b26e679e..4c0a05f32e6 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/direct-messages.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/direct-messages.gjs@@ -1,23 +1,19 @@-import Component from "@glimmer/component";-import { service } from "@ember/service";import { i18n } from "discourse-i18n";-import ChannelsListDirect from "discourse/plugins/chat/discourse/components/channels-list-direct";-import Navbar from "discourse/plugins/chat/discourse/components/chat/navbar";+import ChannelsListDirect from "../../channels-list-direct";+import Navbar from "../navbar";-export default class ChatRoutesDirectMessages extends Component {- @service site;+const ChatRoutesDirectMessages = <template>+ <div class="c-routes --direct-messages">+ <Navbar as |navbar|>+ <navbar.Title @title={{i18n "chat.direct_messages.title"}} />+ <navbar.Actions as |action|>+ <action.OpenDrawerButton />+ <action.NewDirectMessageButton />+ </navbar.Actions>+ </Navbar>- <template>- <div class="c-routes --direct-messages">- <Navbar as |navbar|>- <navbar.Title @title={{i18n "chat.direct_messages.title"}} />- <navbar.Actions as |action|>- <action.OpenDrawerButton />- <action.NewDirectMessageButton />- </navbar.Actions>- </Navbar>+ <ChannelsListDirect />+ </div>+</template>;- <ChannelsListDirect />- </div>- </template>-}+export default ChatRoutesDirectMessages;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/routes/threads.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/routes/threads.gjsindex 381c7c05000..9d2d83c3638 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/routes/threads.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/routes/threads.gjs@@ -1,23 +1,19 @@-import Component from "@glimmer/component";-import { service } from "@ember/service";import { i18n } from "discourse-i18n";-import Navbar from "discourse/plugins/chat/discourse/components/chat/navbar";-import UserThreads from "discourse/plugins/chat/discourse/components/user-threads";+import UserThreads from "../../user-threads";+import Navbar from "../navbar";-export default class ChatRoutesThreads extends Component {- @service site;+const ChatRoutesThreads = <template>+ <div class="c-routes --threads">+ <Navbar as |navbar|>+ <navbar.Title @title={{i18n "chat.my_threads.title"}} />- <template>- <div class="c-routes --threads">- <Navbar as |navbar|>- <navbar.Title @title={{i18n "chat.my_threads.title"}} />+ <navbar.Actions as |action|>+ <action.OpenDrawerButton />+ </navbar.Actions>+ </Navbar>- <navbar.Actions as |action|>- <action.OpenDrawerButton />- </navbar.Actions>- </Navbar>+ <UserThreads />+ </div>+</template>;- <UserThreads />- </div>- </template>-}+export default ChatRoutesThreads;diff --git a/plugins/chat/assets/javascripts/discourse/components/chat/thread-list/header.gjs b/plugins/chat/assets/javascripts/discourse/components/chat/thread-list/header.gjsindex 7d928faabc9..e9bf8bf5505 100644--- a/plugins/chat/assets/javascripts/discourse/components/chat/thread-list/header.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/chat/thread-list/header.gjs@@ -6,7 +6,6 @@ import { i18n } from "discourse-i18n";import Navbar from "discourse/plugins/chat/discourse/components/chat/navbar";export default class ChatThreadListHeader extends Component {- @service router;@service site;threadListTitle = i18n("chat.threads.list");diff --git a/plugins/chat/assets/javascripts/discourse/components/full-page-chat.gjs b/plugins/chat/assets/javascripts/discourse/components/full-page-chat.gjsindex 6652e54937c..3946f59e94f 100644--- a/plugins/chat/assets/javascripts/discourse/components/full-page-chat.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/full-page-chat.gjs@@ -1,14 +1,10 @@-import Component from "@glimmer/component";import { array } from "@ember/helper";-import { service } from "@ember/service";import ChatChannel from "./chat-channel";-export default class FullPageChat extends Component {- @service chat;+const FullPageChat = <template>+ {{#each (array @channel) as |channel|}}+ <ChatChannel @channel={{channel}} @targetMessageId={{@targetMessageId}} />+ {{/each}}+</template>;- <template>- {{#each (array @channel) as |channel|}}- <ChatChannel @channel={{channel}} @targetMessageId={{@targetMessageId}} />- {{/each}}- </template>-}+export default FullPageChat;diff --git a/plugins/chat/assets/javascripts/discourse/components/reviewable-chat-message.gjs b/plugins/chat/assets/javascripts/discourse/components/reviewable-chat-message.gjsindex 5bc346e3ce3..a43205d4211 100644--- a/plugins/chat/assets/javascripts/discourse/components/reviewable-chat-message.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/reviewable-chat-message.gjs@@ -2,7 +2,6 @@ import Component from "@glimmer/component";import { cached } from "@glimmer/tracking";import { array } from "@ember/helper";import { LinkTo } from "@ember/routing";-import { service } from "@ember/service";import { htmlSafe } from "@ember/template";import { or } from "truth-helpers";import ReviewableCreatedBy from "discourse/components/reviewable-created-by";@@ -12,9 +11,6 @@ import ChannelTitle from "discourse/plugins/chat/discourse/components/channel-tiimport ChatChannel from "discourse/plugins/chat/discourse/models/chat-channel";export default class ReviewableChatMessage extends Component {- @service store;- @service chatChannelsManager;-@cachedget channel() {if (!this.args.reviewable.chat_channel) {diff --git a/plugins/chat/assets/javascripts/discourse/components/styleguide/chat-composer-message-details.gjs b/plugins/chat/assets/javascripts/discourse/components/styleguide/chat-composer-message-details.gjsindex 7a4e98e909c..28c0032d5de 100644--- a/plugins/chat/assets/javascripts/discourse/components/styleguide/chat-composer-message-details.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/styleguide/chat-composer-message-details.gjs@@ -22,9 +22,6 @@ const StyleguideExample = optionalRequire();export default class ChatStyleguideChatComposerMessageDetails extends Component {- @service site;- @service session;- @service keyValueStore;@service currentUser;@cacheddiff --git a/plugins/chat/assets/javascripts/discourse/components/styleguide/chat-thread-list-item.gjs b/plugins/chat/assets/javascripts/discourse/components/styleguide/chat-thread-list-item.gjsindex 955b79808fd..426af6e5090 100644--- a/plugins/chat/assets/javascripts/discourse/components/styleguide/chat-thread-list-item.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/styleguide/chat-thread-list-item.gjs@@ -2,7 +2,6 @@ import Component from "@glimmer/component";import { tracked } from "@glimmer/tracking";import { getOwner } from "@ember/owner";import { next } from "@ember/runloop";-import { service } from "@ember/service";import { optionalRequire } from "discourse/lib/utilities";import Item from "discourse/plugins/chat/discourse/components/chat/thread-list/item";import ChatFabricators from "discourse/plugins/chat/discourse/lib/fabricators";@@ -15,8 +14,6 @@ const StyleguideExample = optionalRequire();export default class ChatStyleguideChatThreadListItem extends Component {- @service currentUser;-@tracked thread;constructor() {diff --git a/plugins/chat/assets/javascripts/discourse/components/user-threads/index.gjs b/plugins/chat/assets/javascripts/discourse/components/user-threads/index.gjsindex 92d87fcf13d..8baae82f126 100644--- a/plugins/chat/assets/javascripts/discourse/components/user-threads/index.gjs+++ b/plugins/chat/assets/javascripts/discourse/components/user-threads/index.gjs@@ -13,7 +13,6 @@ import ThreadPreview from "discourse/plugins/chat/discourse/components/user-threimport ChatThreadPreview from "discourse/plugins/chat/discourse/models/chat-thread-preview";export default class UserThreads extends Component {- @service chat;@service chatApi;@service chatChannelsManager;@service messageBus;diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjsindex 9fab06a899b..5604681ac6a 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-conversations.gjs@@ -31,7 +31,6 @@ import AiPersonaLlmSelector from "discourse/plugins/discourse-ai/discourse/compoexport default class AiBotConversations extends Component {@service aiBotConversationsHiddenSubmit;- @service currentUser;@service mediaOptimizationWorker;@service site;@service siteSettings;diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-header-icon.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-header-icon.gjsindex 5abb57deadb..d50b3a4f5ca 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-header-icon.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-bot-header-icon.gjs@@ -14,7 +14,6 @@ export default class AiBotHeaderIcon extends Component {@service composer;@service currentUser;@service navigationMenu;- @service router;@service sidebarState;@service siteSettings;@service aiConversationsSidebarManager;diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-full-page-search.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-full-page-search.gjsindex 23eaf7ecb38..9861028b5d4 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-full-page-search.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-full-page-search.gjs@@ -19,9 +19,7 @@ const AI_RESULTS_TOGGLED = "full-page-search:ai-results-toggled";export default class AiFullPageSearch extends Component {@service appEvents;- @service router;@service siteSettings;- @service searchPreferencesManager;@tracked searching;@tracked AiResults = [];diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-persona-editor.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-persona-editor.gjsindex d103cacaebc..38535dd69e0 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-persona-editor.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-persona-editor.gjs@@ -26,7 +26,6 @@ import RagUploader from "./rag-uploader";export default class PersonaEditor extends Component {@service router;- @service store;@service dialog;@service toasts;@service siteSettings;diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-spam.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-spam.gjsindex ea69e54293c..a7a6c936724 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-spam.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-spam.gjs@@ -21,7 +21,6 @@ import ComboBox from "select-kit/components/combo-box";import SpamTestModal from "./modal/spam-test-modal";export default class AiSpam extends Component {- @service siteSettings;@service toasts;@service modal;diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-split-topic-suggester.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-split-topic-suggester.gjsindex c39ec49b457..5b226794ed8 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-split-topic-suggester.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-split-topic-suggester.gjs@@ -13,7 +13,6 @@ import DMenu from "float-kit/components/d-menu";export default class AiSplitTopicSuggester extends Component {@service site;- @service menu;@tracked suggestions = [];@tracked loading = false;diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-usage.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-usage.gjsindex 0b5869ace52..0c587dccee5 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/ai-usage.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/ai-usage.gjs@@ -24,7 +24,6 @@ import Chart from "admin/components/chart";import ComboBox from "select-kit/components/combo-box";export default class AiUsage extends Component {- @service store;@service currentUser;@tracked startDate = moment().subtract(30, "days").toDate();diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/modal/ai-summary-modal.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/modal/ai-summary-modal.gjsindex 6e666db8785..4f28c2a1e74 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/modal/ai-summary-modal.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/modal/ai-summary-modal.gjs@@ -22,10 +22,8 @@ import AiSummarySkeleton from "../../components/ai-summary-skeleton";import SmoothStreamer from "../../lib/smooth-streamer";export default class AiSummaryModal extends Component {- @service siteSettings;@service messageBus;@service currentUser;- @service site;@service modal;@tracked text = "";diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/modal/chat-modal-channel-summary.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/modal/chat-modal-channel-summary.gjsindex 25a75a2df3e..afceb6a2904 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/modal/chat-modal-channel-summary.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/modal/chat-modal-channel-summary.gjs@@ -1,7 +1,6 @@import Component from "@glimmer/component";import { tracked } from "@glimmer/tracking";import { action } from "@ember/object";-import { service } from "@ember/service";import ConditionalLoadingSection from "discourse/components/conditional-loading-section";import DModal from "discourse/components/d-modal";import DModalCancel from "discourse/components/d-modal-cancel";@@ -11,8 +10,6 @@ import { i18n } from "discourse-i18n";import ComboBox from "select-kit/components/combo-box";export default class ChatModalChannelSummary extends Component {- @service chatApi;-@tracked sinceHours = null;@tracked loading = false;@tracked summary = null;diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/modal/diff-modal.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/modal/diff-modal.gjsindex eaceee5ec4b..f561818dc51 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/modal/diff-modal.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/modal/diff-modal.gjs@@ -19,7 +19,6 @@ import SmoothStreamer from "../../lib/smooth-streamer";import AiIndicatorWave from "../ai-indicator-wave";export default class ModalDiffModal extends Component {- @service currentUser;@service messageBus;@tracked loading = false;diff --git a/plugins/discourse-ai/assets/javascripts/discourse/components/modal/share-modal.gjs b/plugins/discourse-ai/assets/javascripts/discourse/components/modal/share-modal.gjsindex 8fda19c69e4..be62d467e02 100644--- a/plugins/discourse-ai/assets/javascripts/discourse/components/modal/share-modal.gjs+++ b/plugins/discourse-ai/assets/javascripts/discourse/components/modal/share-modal.gjs@@ -14,7 +14,6 @@ import copyConversation from "../../lib/copy-conversation";export default class ShareModal extends Component {@service modal;- @service siteSettings;@service currentUser;@tracked contextValue = 1;diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/components/discourse-post-event/invitees.gjs b/plugins/discourse-calendar/assets/javascripts/discourse/components/discourse-post-event/invitees.gjsindex 4e6d8377484..98beb49632f 100644--- a/plugins/discourse-calendar/assets/javascripts/discourse/components/discourse-post-event/invitees.gjs+++ b/plugins/discourse-calendar/assets/javascripts/discourse/components/discourse-post-event/invitees.gjs@@ -1,13 +1,9 @@import Component from "@glimmer/component";-import { service } from "@ember/service";import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";import Invitee from "./invitee";export default class DiscoursePostEventInvitees extends Component {- @service modal;- @service siteSettings;-get hasAttendees() {return this.args.event.stats.going > 0;}diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/components/discourse-post-event/more-menu.gjs b/plugins/discourse-calendar/assets/javascripts/discourse/components/discourse-post-event/more-menu.gjsindex ea75d468205..ef3e8cd6443 100644--- a/plugins/discourse-calendar/assets/javascripts/discourse/components/discourse-post-event/more-menu.gjs+++ b/plugins/discourse-calendar/assets/javascripts/discourse/components/discourse-post-event/more-menu.gjs@@ -23,7 +23,6 @@ import PostEventInvitees from "../modal/post-event-invitees";export default class DiscoursePostEventMoreMenu extends Component {@service currentUser;@service dialog;- @service discoursePostEventApi;@service modal;@service router;@service siteSettings;diff --git a/plugins/discourse-calendar/assets/javascripts/discourse/components/modal/post-event-invitees/index.gjs b/plugins/discourse-calendar/assets/javascripts/discourse/components/modal/post-event-invitees/index.gjsindex 10c90b0f5f2..b7489b12f4c 100644--- a/plugins/discourse-calendar/assets/javascripts/discourse/components/modal/post-event-invitees/index.gjs+++ b/plugins/discourse-calendar/assets/javascripts/discourse/components/modal/post-event-invitees/index.gjs@@ -15,7 +15,6 @@ import ToggleInvitees from "../../toggle-invitees";import User from "./user";export default class PostEventInviteesModal extends Component {- @service store;@service discoursePostEventApi;@tracked filter;diff --git a/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/json.gjs b/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/json.gjsindex 56b90921019..8677514c4c0 100644--- a/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/json.gjs+++ b/plugins/discourse-data-explorer/assets/javascripts/discourse/components/result-types/json.gjs@@ -6,7 +6,6 @@ import DButton from "discourse/components/d-button";import FullscreenCodeModal from "discourse/components/modal/fullscreen-code";export default class Json extends Component {- @service dialog;@service modal;@cacheddiff --git a/plugins/discourse-gamification/admin/assets/javascripts/admin/components/admin-edit-leaderboard.gjs b/plugins/discourse-gamification/admin/assets/javascripts/admin/components/admin-edit-leaderboard.gjsindex 3ead173905b..8ec80940c85 100644--- a/plugins/discourse-gamification/admin/assets/javascripts/admin/components/admin-edit-leaderboard.gjs+++ b/plugins/discourse-gamification/admin/assets/javascripts/admin/components/admin-edit-leaderboard.gjs@@ -11,7 +11,6 @@ import GroupChooser from "select-kit/components/group-chooser";import PeriodInput from "discourse/plugins/discourse-gamification/discourse/components/period-input";export default class AdminEditLeaderboard extends Component {- @service currentUser;@service site;@service toasts;@service router;diff --git a/plugins/discourse-post-voting/assets/javascripts/discourse/components/post-voting-comment-actions.gjs b/plugins/discourse-post-voting/assets/javascripts/discourse/components/post-voting-comment-actions.gjsindex b0d74c09b34..1f73200b5cf 100644--- a/plugins/discourse-post-voting/assets/javascripts/discourse/components/post-voting-comment-actions.gjs+++ b/plugins/discourse-post-voting/assets/javascripts/discourse/components/post-voting-comment-actions.gjs@@ -12,7 +12,6 @@ export default class PostVotingCommentActions extends Component {@service dialog;@service modal;@service currentUser;- @service siteSettings;@service site;comment = this.args.comment;diff --git a/plugins/styleguide/assets/javascripts/discourse/components/styleguide/calendar-date-time-input.gjs b/plugins/styleguide/assets/javascripts/discourse/components/styleguide/calendar-date-time-input.gjsindex fe0a2d0a76e..9c333dd7b90 100644--- a/plugins/styleguide/assets/javascripts/discourse/components/styleguide/calendar-date-time-input.gjs+++ b/plugins/styleguide/assets/javascripts/discourse/components/styleguide/calendar-date-time-input.gjs@@ -2,7 +2,6 @@ import Component from "@glimmer/component";import { tracked } from "@glimmer/tracking";import { Input } from "@ember/component";import { action } from "@ember/object";-import { service } from "@ember/service";import CalendarDateTimeInput from "discourse/components/calendar-date-time-input";import DatePicker from "discourse/components/date-picker";import StyleguideComponent from "discourse/plugins/styleguide/discourse/components/styleguide/component";@@ -11,8 +10,6 @@ import Row from "discourse/plugins/styleguide/discourse/components/styleguide/coimport StyleguideExample from "discourse/plugins/styleguide/discourse/components/styleguide-example";export default class StyleguideCalendarDateTimeInput extends Component {- @service currentUser;-@tracked dateFormat = "YYYY-MM-DD";@tracked timeFormat = "HH:mm:ss";@tracked date = null;diff --git a/plugins/styleguide/assets/javascripts/discourse/components/toggle-color-mode.gjs b/plugins/styleguide/assets/javascripts/discourse/components/toggle-color-mode.gjsindex 9f439fd98e9..896befd240b 100644--- a/plugins/styleguide/assets/javascripts/discourse/components/toggle-color-mode.gjs+++ b/plugins/styleguide/assets/javascripts/discourse/components/toggle-color-mode.gjs@@ -46,8 +46,6 @@ function colorSchemeOverride(type) {}export default class ToggleColorMode extends Component {- @service keyValueStore;- @service siteSettings;@service site;@tracked colorSchemeOverride = this.default;diff --git a/themes/horizon/javascripts/discourse/components/card/topic-status-column.gjs b/themes/horizon/javascripts/discourse/components/card/topic-status-column.gjsindex 4b888fb0ca1..38e50184d21 100644--- a/themes/horizon/javascripts/discourse/components/card/topic-status-column.gjs+++ b/themes/horizon/javascripts/discourse/components/card/topic-status-column.gjs@@ -1,11 +1,8 @@import Component from "@glimmer/component";-import { service } from "@ember/service";import icon from "discourse/helpers/d-icon";import { i18n } from "discourse-i18n";export default class TopicStatusColumn extends Component {- @service siteSettings;-get badge() {if (this.args.topic.is_hot) {return {diff --git a/themes/horizon/javascripts/discourse/components/user-color-palette-menu-item.gjs b/themes/horizon/javascripts/discourse/components/user-color-palette-menu-item.gjsindex a2c227b47f5..d8427b1d74c 100644--- a/themes/horizon/javascripts/discourse/components/user-color-palette-menu-item.gjs+++ b/themes/horizon/javascripts/discourse/components/user-color-palette-menu-item.gjs@@ -1,14 +1,10 @@import Component from "@glimmer/component";import { action } from "@ember/object";-import { service } from "@ember/service";import { htmlSafe } from "@ember/template";import DButton from "discourse/components/d-button";import concatClass from "discourse/helpers/concat-class";export default class UserColorPaletteMenuItem extends Component {- @service site;- @service session;-get siteStyle() {return `--icon-color: ${this.args.colorPalette.accent}`;}diff --git a/themes/horizon/javascripts/discourse/components/user-color-palette-selector.gjs b/themes/horizon/javascripts/discourse/components/user-color-palette-selector.gjsindex 0c3bcce2833..1593b856640 100644--- a/themes/horizon/javascripts/discourse/components/user-color-palette-selector.gjs+++ b/themes/horizon/javascripts/discourse/components/user-color-palette-selector.gjs@@ -27,10 +27,8 @@ const HORIZON_PALETTES = [export default class UserColorPaletteSelector extends Component {@service currentUser;- @service keyValueStore;@service site;@service session;- @service interfaceColor;@tracked anonColorPaletteId = this.#loadAnonColorPalette();@tracked userColorPaletteId = this.session.userColorSchemeId;