discourse/plugins/styleguide
David Taylor c139767055
DEV: Remove Ember.TEMPLATES and centralize template resolution rules (#19220)
In the past, the result of template compilation would be stored directly in `Ember.TEMPLATES`. Following the move to more modern ember-cli-based compilation, templates are now compiled to es6 modules. To handle forward/backwards compatibility during these changes we had logic in `discourse-boot` which would extract templates from the es6 modules and store them into the legacy-style `Ember.TEMPLATES` object.

This commit removes that shim, and updates our resolver to fetch templates directly from es6 modules. This is closer to how 'vanilla' Ember handles template resolution. We still have a lot of discourse-specific logic, but now it is centralised in one location and should be easier to understand and normalize in future.

This commit should not introduce any behaviour change.
2022-11-29 10:24:35 +00:00
..
app/controllers/styleguide DEV: makes discourse-styleguide core (styleguide) (#10847) 2020-10-07 14:48:38 +02:00
assets DEV: Remove Ember.TEMPLATES and centralize template resolution rules (#19220) 2022-11-29 10:24:35 +00:00
config Update translations (#19150) 2022-11-22 15:01:19 +01:00
lib/styleguide DEV: makes discourse-styleguide core (styleguide) (#10847) 2020-10-07 14:48:38 +02:00
public/images DEV: makes discourse-styleguide core (styleguide) (#10847) 2020-10-07 14:48:38 +02:00
spec/integration DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
plugin.rb DEV: Transpile all plugin js by default (#17175) 2022-06-21 22:07:10 +02:00
README.md DEV: makes discourse-styleguide core (styleguide) (#10847) 2020-10-07 14:48:38 +02:00
screenshot.png DEV: makes discourse-styleguide core (styleguide) (#10847) 2020-10-07 14:48:38 +02:00

styleguide

Adds a URL of /styleguide to discourse that renders widgets in various configurations to aid in styling.

Screenshot