Robin Ward
|
df81d109e5
|
The ability to attach attrs when embedding widgets
|
2017-09-28 16:08:43 -04:00 |
|
Robin Ward
|
8c2d6118ff
|
Remove some of the last few fa-icon helpers
|
2017-09-14 11:20:36 -04:00 |
|
Robin Ward
|
dffb1fc4ee
|
FEATURE: Use Glimmer compiler for widget templates
Widgets can now specify a template which is precompiled using Glimmer's
AST and then converted into our virtual dom code.
Example:
```javascript
createWidget('post-link-arrow', {
template: hbs`
{{#if attrs.above}}
<a class="post-info arrow" title={{i18n "topic.jump_reply_up"}}>
{{fa-icon "arrow-up"}}
</a>
{{else}}
<a class="post-info arrow" title={{i18n "topic.jump_reply_down"}}>
{{fa-icon "arrow-down"}}
</a>
{{/if}}
`,
click() {
DiscourseURL.routeTo(this.attrs.shareUrl);
}
});
```
|
2017-09-01 09:28:16 -04:00 |
|
Robin Ward
|
cc525b1a8d
|
Upgrade QUnit to latest version
|
2017-06-15 10:12:07 -04:00 |
|
Robin Ward
|
514c3976f0
|
PERF: Migrate header to discourse widgets
|
2016-04-25 10:48:04 -04:00 |
|
Robin Ward
|
627ef54efe
|
New PluginAPI for widget settings
|
2016-02-26 14:26:29 -05:00 |
|
Robin Ward
|
98ab64dc89
|
FIX: Some re-render functionality in widgets, added more coverage
|
2016-02-26 14:01:20 -05:00 |
|