A platform for community discussion. Free, open, simple.
DEV: Revert colocation of components with mobile templates (#20285)
David Taylor524cb5211b97
diff --git a/app/assets/javascripts/discourse/app/components/categories-only.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-only.hbssimilarity index 100%rename from app/assets/javascripts/discourse/app/components/categories-only.hbsrename to app/assets/javascripts/discourse/app/templates/components/categories-only.hbsdiff --git a/app/assets/javascripts/discourse/app/components/categories-with-featured-topics.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-with-featured-topics.hbssimilarity index 100%rename from app/assets/javascripts/discourse/app/components/categories-with-featured-topics.hbsrename to app/assets/javascripts/discourse/app/templates/components/categories-with-featured-topics.hbsdiff --git a/app/assets/javascripts/discourse/app/components/directory-item.hbs b/app/assets/javascripts/discourse/app/templates/components/directory-item.hbssimilarity index 100%rename from app/assets/javascripts/discourse/app/components/directory-item.hbsrename to app/assets/javascripts/discourse/app/templates/components/directory-item.hbsdiff --git a/app/assets/javascripts/discourse/app/components/navigation-bar.hbs b/app/assets/javascripts/discourse/app/templates/components/navigation-bar.hbssimilarity index 100%rename from app/assets/javascripts/discourse/app/components/navigation-bar.hbsrename to app/assets/javascripts/discourse/app/templates/components/navigation-bar.hbsdiff --git a/app/assets/javascripts/discourse/app/components/parent-category-row.hbs b/app/assets/javascripts/discourse/app/templates/components/parent-category-row.hbssimilarity index 100%rename from app/assets/javascripts/discourse/app/components/parent-category-row.hbsrename to app/assets/javascripts/discourse/app/templates/components/parent-category-row.hbsdiff --git a/app/assets/javascripts/discourse/app/components/sub-category-item.hbs b/app/assets/javascripts/discourse/app/templates/components/sub-category-item.hbssimilarity index 100%rename from app/assets/javascripts/discourse/app/components/sub-category-item.hbsrename to app/assets/javascripts/discourse/app/templates/components/sub-category-item.hbsdiff --git a/app/assets/javascripts/discourse/app/components/sub-category-row.hbs b/app/assets/javascripts/discourse/app/templates/components/sub-category-row.hbssimilarity index 100%rename from app/assets/javascripts/discourse/app/components/sub-category-row.hbsrename to app/assets/javascripts/discourse/app/templates/components/sub-category-row.hbsdiff --git a/app/assets/javascripts/discourse/app/components/subcategories-with-featured-topics.hbs b/app/assets/javascripts/discourse/app/templates/components/subcategories-with-featured-topics.hbssimilarity index 100%rename from app/assets/javascripts/discourse/app/components/subcategories-with-featured-topics.hbsrename to app/assets/javascripts/discourse/app/templates/components/subcategories-with-featured-topics.hbsdiff --git a/spec/integrity/coding_style_spec.rb b/spec/integrity/coding_style_spec.rbindex ad9cc91cbbf..c90c8bcae4e 100644--- a/spec/integrity/coding_style_spec.rb+++ b/spec/integrity/coding_style_spec.rb@@ -48,7 +48,7 @@ RSpec.describe "Coding style" dodescribe "non-colocated component templates" do{- "discourse" => "app/assets/javascripts/discourse/app/templates/components",+ # "discourse" => "app/assets/javascripts/discourse/app/templates/components","admin" => "app/assets/javascripts/admin/addon/templates/components","chat/discourse" => "plugins/chat/assets/javascripts/discourse/templates/components","chat/admin" => "plugins/chat/assets/javascripts/admin/templates/components",