From 7e23662a44bd48aeaeffb66ebc3579116e322a2c Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 21 Oct 2022 15:12:53 +0100 Subject: [PATCH] DEV: Remove unneeded `templateOnly()` stubs (#18701) Lone hbs files in the `/components` are automatically assumed to be template-only Glimmer components. The `templateOnly()` stub is only required when templates are in the `/templates/components` directory. --- .../app}/components/composer-fullscreen-prompt.hbs | 0 .../discourse/app/components/composer-fullscreen-prompt.js | 3 --- .../components/sidebar/common/all-categories-section-link.js | 3 --- .../app/components/sidebar/common/all-tags-section-link.js | 3 --- .../discourse/app/components/sidebar/section-header.js | 3 --- .../discourse/app/components/sidebar/section-link-prefix.js | 3 --- .../discourse/app/components/sidebar/section-message.js | 3 --- .../javascripts/discourse/app/components/sidebar/sections.js | 3 --- .../app/components/user-menu/bookmarks-list-empty-state.js | 3 --- .../app/components/user-menu/items-list-empty-state.js | 3 --- .../app/components/user-menu/messages-list-empty-state.js | 3 --- .../app/components/user-menu/notifications-list-empty-state.js | 3 --- 12 files changed, 33 deletions(-) rename app/assets/javascripts/{admin/addon/templates => discourse/app}/components/composer-fullscreen-prompt.hbs (100%) delete mode 100644 app/assets/javascripts/discourse/app/components/composer-fullscreen-prompt.js delete mode 100644 app/assets/javascripts/discourse/app/components/sidebar/common/all-categories-section-link.js delete mode 100644 app/assets/javascripts/discourse/app/components/sidebar/common/all-tags-section-link.js delete mode 100644 app/assets/javascripts/discourse/app/components/sidebar/section-header.js delete mode 100644 app/assets/javascripts/discourse/app/components/sidebar/section-link-prefix.js delete mode 100644 app/assets/javascripts/discourse/app/components/sidebar/section-message.js delete mode 100644 app/assets/javascripts/discourse/app/components/sidebar/sections.js delete mode 100644 app/assets/javascripts/discourse/app/components/user-menu/bookmarks-list-empty-state.js delete mode 100644 app/assets/javascripts/discourse/app/components/user-menu/items-list-empty-state.js delete mode 100644 app/assets/javascripts/discourse/app/components/user-menu/messages-list-empty-state.js delete mode 100644 app/assets/javascripts/discourse/app/components/user-menu/notifications-list-empty-state.js diff --git a/app/assets/javascripts/admin/addon/templates/components/composer-fullscreen-prompt.hbs b/app/assets/javascripts/discourse/app/components/composer-fullscreen-prompt.hbs similarity index 100% rename from app/assets/javascripts/admin/addon/templates/components/composer-fullscreen-prompt.hbs rename to app/assets/javascripts/discourse/app/components/composer-fullscreen-prompt.hbs diff --git a/app/assets/javascripts/discourse/app/components/composer-fullscreen-prompt.js b/app/assets/javascripts/discourse/app/components/composer-fullscreen-prompt.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/composer-fullscreen-prompt.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/sidebar/common/all-categories-section-link.js b/app/assets/javascripts/discourse/app/components/sidebar/common/all-categories-section-link.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/sidebar/common/all-categories-section-link.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/sidebar/common/all-tags-section-link.js b/app/assets/javascripts/discourse/app/components/sidebar/common/all-tags-section-link.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/sidebar/common/all-tags-section-link.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section-header.js b/app/assets/javascripts/discourse/app/components/sidebar/section-header.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/sidebar/section-header.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section-link-prefix.js b/app/assets/javascripts/discourse/app/components/sidebar/section-link-prefix.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/sidebar/section-link-prefix.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section-message.js b/app/assets/javascripts/discourse/app/components/sidebar/section-message.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/sidebar/section-message.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/sidebar/sections.js b/app/assets/javascripts/discourse/app/components/sidebar/sections.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/sidebar/sections.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/user-menu/bookmarks-list-empty-state.js b/app/assets/javascripts/discourse/app/components/user-menu/bookmarks-list-empty-state.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/user-menu/bookmarks-list-empty-state.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/user-menu/items-list-empty-state.js b/app/assets/javascripts/discourse/app/components/user-menu/items-list-empty-state.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/user-menu/items-list-empty-state.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/user-menu/messages-list-empty-state.js b/app/assets/javascripts/discourse/app/components/user-menu/messages-list-empty-state.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/user-menu/messages-list-empty-state.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly(); diff --git a/app/assets/javascripts/discourse/app/components/user-menu/notifications-list-empty-state.js b/app/assets/javascripts/discourse/app/components/user-menu/notifications-list-empty-state.js deleted file mode 100644 index 742bb3c18ef..00000000000 --- a/app/assets/javascripts/discourse/app/components/user-menu/notifications-list-empty-state.js +++ /dev/null @@ -1,3 +0,0 @@ -import templateOnly from "@ember/component/template-only"; - -export default templateOnly();