Is there a post or other documentation that lists the various locations eligible for widget injection? For instance, the post you linked mentions home-logo but I don’t see that anywhere in the rendered site. How/where do I find that in ember or learn more about using that approach to inject links/content?
There is no master list as far as I am aware. I should mention that the widget stuff is not Ember, it’s our homegrown rendering framework for pieces of the site that need a lot of performance. Most of the site is regular Ember, but a few critical paths use our widget framework.
Any widget’s name can be extended, so if you are looking to add something to Discourse and find the code starts within a widget, just look up its name and you’re good to go!
In the context of my original post, then, is it possible to add an icon with an external link next to the search icon at the upper-right of the screen, on the floating header? I don’t see any widget element that seems it would support that. If outlets don’t work in the header and there’s no supporting widget, then there’s no way to do that anymore?
@david recommend you read the OP and have a think about it.
There are 2 points I feel would be very nice to address:
It really is a bummer that we need to call api.registerConnectorClass instead of just using filenames like the plugin does. It makes all the skills you build as a plugin author not as tranferrable to theme authoring. Multiple js.es6 files per theme is a huge one that will help a lot.
On the topic of es6, it is a huge bummer we can not use import in themes, this means we are stuck with stuff like return require("discourse/lib/utilities").isAppleDevice(); which is no fun.