Joffrey JAFFEUX
39f3dbd945
Introduces select-kit
...
* renames `select-box-kit` into `select-kit`
* introduces `single-select` and `multi-select` as base components
* introduces {{search-advanced-category-chooser}} as a better component for selecting category in advanced search
* improves events handling in select-kit
* recreates color selection inputs using {{multi-select}} and a custom {{selected-color}} component
* replaces category-selector by a component using select-kit and based on multi-select
* improves positioning of wrapper
* removes the need for offscreen, and instead use `select-kit-header` as a base focus point for all select-kit based components
* introduces a formal plugin api for select-kit based components
* introduces a formal pattern for loading and updating select-kit based components:
```
computeValue()
computeContent()
mutateValue()
```
2017-11-21 11:53:09 +01:00
Robin Ward
a0dd75ba88
FEATURE: New API to create a custom formatter for displaying usernames
...
This is not exhaustive right now, but a good start and we can add to
it over time.
2017-10-30 13:27:08 -04:00
Robin Ward
fbd5f1e411
REFACTOR: Rename store:main to service:store so we can inject it
2017-10-27 13:59:45 -04:00
Robin Ward
954013a45c
Use appEvents for page tracking so widgets can listen to it easily
2017-09-28 14:20:32 -04:00
Robin Ward
cb78ffd328
<<<<<<< HEAD
...
=======
>>>>>>> FEATURE: Add ability to claim topics on flagged topics page
Bump Plugin API version
2017-09-25 12:28:01 -04:00
Robin Ward
e809996c2a
Allow modifyClass to operate on optional classes.
...
This is useful if you want to modify an admin class that might not be
present for regular users.
2017-09-25 12:28:00 -04:00
Robin Ward
e4e27a4b83
New API for replacing an icon
2017-09-15 13:54:47 -04:00
Régis Hanol
15fa27a1ff
Add warning when using the 'modifyClass' plugin API after it's been cached in the container
2017-08-08 20:07:35 +02:00
Régis Hanol
125cc356f3
FIX: don't break the site when adding a navigation item without a 'name' field
2017-08-07 10:45:35 +02:00
Régis Hanol
4b53fe3cc7
new 'addNavigationBarItem' plugin api
2017-08-05 02:23:35 +02:00
Robin Ward
41afd9c818
Bump Plugin API version for icon api
2017-07-27 15:13:03 -04:00
Robin Ward
e87125b63c
FEATURE: Plugins can overwrite and add support for new icons
2017-07-26 13:21:17 -04:00
Robin Ward
8ae445766f
Upgrade Ember to 2.13
2017-06-15 10:12:07 -04:00
Robin Ward
733b0009cb
FIX: Don't memoize the currentUser in case some plugins use it too early
2017-05-16 16:35:18 -04:00
James Kiesel
3b55ceffb3
Use local var for additionalPanels
2017-03-29 08:52:50 +09:00
James Kiesel
c99883cf65
SEMICOLONS ;.;
2017-03-25 21:44:28 +13:00
James Kiesel
a4127a8f71
Add addAdditionalHeader widget to pluginApi
2017-03-25 21:33:55 +13:00
Sam
0c03ccb01e
FEATURE: allow plugins to transform, the transformed post
...
This allows plugins to amend posts prior to rendering.
2017-03-07 17:12:31 -05:00
Sam
3e3fdfc717
FEATURE: plugin can now extend list of classes for topic-post
2017-03-03 16:57:25 -05:00
Sam
89bd538742
add callback priority to tags html
2017-03-01 12:56:45 -05:00
Sam
8c8de1c2d4
FEATURE: addUserMenuGlyph extensibility point
2017-03-01 10:32:01 -05:00
Sam
f918951d42
FEATURE: clean up tags extensibility
...
centralizes all logic for topic tag rendering and provides API for extension
2017-02-28 17:08:43 -05:00
Sam
023bd0e9e7
FEATURE: allow client side of topic list to accept custom params
...
- Also normalize API version to use a version comparison function instead of float
2017-02-15 16:14:43 -05:00
Sam
675cb1c715
FEATURE: allow registrations of custom small action icons via plugins
2017-02-10 12:55:21 -05:00
James Kiesel
816a030f78
Bump plugin api to 0.7
2017-02-01 11:05:47 +13:00
James Kiesel
646b49e5ae
Expose reopenWidget through plugin api
2017-01-17 08:19:29 +13:00
Robin Ward
3786d3679c
FIX: Always return the latest API version requested
2016-12-27 11:57:46 -05:00
Robin Ward
e03d5e2140
Reapply Ember 2.10 for good this time!
...
This reverts commit ddd299f4aa .
2016-12-19 11:19:10 -05:00
Robin Ward
ddd299f4aa
Revert "Revert "Revert Ember 2.10+ for a short while""
...
This reverts commit 76bbc481cb .
2016-12-16 10:29:30 -05:00
Robin Ward
76bbc481cb
Revert "Revert Ember 2.10+ for a short while"
...
This reverts commit 21682fd60b .
2016-12-16 09:52:29 -05:00
Robin Ward
21682fd60b
Revert Ember 2.10+ for a short while
2016-12-15 16:43:38 -05:00
Robin Ward
250ca11416
Add PluginAPI for registering a connector class
2016-12-15 11:54:37 -05:00
Robin Ward
9afa55a3fd
FIX: Random failing plugin tests
2016-11-22 15:36:18 -05:00
Guo Xiang Tan
07717dfaa7
FIX: Emoji not rendering using plugin api.
2016-11-21 14:33:17 +08:00
Guo Xiang Tan
3f54730c2d
Make title attribute on emoji widget optional.
2016-11-18 12:36:48 +08:00
Guo Xiang Tan
239cbc6e68
Make eslint happy.
2016-11-16 10:55:57 +08:00
Guo Xiang Tan
64b5c81843
FIX: Add alt and title attribute to emoji widget.
2016-11-16 10:48:20 +08:00
Robin Ward
be1d74d207
Split out common functions into discourse-common module
2016-09-22 09:52:19 -04:00
Robin Ward
a546395397
REFACTOR: Migrate markdown functionality in ES6
2016-07-11 12:57:05 -04:00
Guo Xiang Tan
4657d22eb0
Make eslint happy.
2016-07-04 11:00:14 +08:00
Guo Xiang Tan
d102a079b1
FIX: Bump plugin API version.
2016-07-01 09:32:30 +08:00
Guo Xiang Tan
2484ef93ed
Use ES6 arrow functions instead.
2016-06-17 11:37:15 +08:00
Guo Xiang Tan
a74291c91a
We no longer pass it the controller.
2016-06-16 17:12:45 +08:00
Guo Xiang Tan
5813352439
FEATURE: Add new API to add a toolbar popup menu button.
2016-06-15 00:39:53 +08:00
Guo Xiang Tan
dd0260e435
Improve example for addStorePluralization.
2016-05-17 11:23:32 +08:00
Guo Xiang Tan
4f671724cc
Add store addPluralization to plugin-api. ( #4224 )
2016-05-16 11:11:15 -04:00
Robin Ward
187d7d6f96
Remove more views and deprecations.
2016-04-28 16:17:18 -04:00
Robin Ward
514c3976f0
PERF: Migrate header to discourse widgets
2016-04-25 10:48:04 -04:00
Robin Ward
b10b6c673d
Add h helper to plugin-api in v0.3
2016-04-07 16:38:30 -04:00
Régis Hanol
514d6ede0e
FIX: addPosterIcon wasn't working on initial load
2016-04-01 18:25:13 +02:00
Robin Ward
e0347b18da
UX: Improve icon positioning on mobile
2016-03-23 14:44:34 -04:00
Robin Ward
1006b1ba94
Various Plugin Enhancements and Extension Points
2016-03-11 15:53:37 -05:00
Robin Ward
d538bcbe40
FIX: Don't cloak videos once they begin playing
2016-02-29 13:56:54 -05:00
Robin Ward
627ef54efe
New PluginAPI for widget settings
2016-02-26 14:26:29 -05:00
Robin Ward
05a0308663
Finish documenting new PluginAPI
2016-02-23 12:44:52 -05:00
Robin Ward
ef079004da
Ability to decorate after post cooked, and rawHtml helper
2016-02-23 12:10:25 -05:00
Robin Ward
54904133a0
Ability to mount ember views into vdom
...
It's slow but can be used as a last resort for old plugins.
2016-02-22 12:10:34 -05:00
Robin Ward
e848ea5a99
Depcreate PageTracker in favor of PluginAPI
2016-02-19 16:30:59 -05:00
Robin Ward
9b0b213ba2
FIX: Less safe API for icons
2016-02-19 16:03:26 -05:00
Robin Ward
8b318f76a1
Expose decoration for plugins such as signatures
2016-02-19 14:46:29 -05:00
Robin Ward
f2f49a5e96
Ability to add text to a poster name icon
2016-02-19 14:22:36 -05:00
Robin Ward
4d599612a2
Support for emoji poster icons
2016-02-18 17:03:18 -05:00
Robin Ward
6935925f10
Update Polls plugin to work with new Plugin API
2016-02-18 15:23:43 -05:00
Robin Ward
f6aa1ac37a
Migrate onToolbarCreate to the DiscourseAPI
2016-02-18 15:23:43 -05:00
Robin Ward
c0a6e34610
API for extra post menu buttons and support for solved button
2016-02-17 15:56:30 -05:00
Robin Ward
98f4b3f8a9
FIX: Bad merge
2016-02-17 12:00:08 -05:00
Sam
e8f76c335a
Merge branch 'master' into vdom
2016-02-17 18:10:12 +11:00
Robin Ward
63cda22623
Upgrade withPluginApi to support non-api callbacks
2016-02-16 16:44:27 -05:00
Robin Ward
c6456f5c3e
Provide an option callback to the API
2016-02-16 16:22:35 -05:00
Robin Ward
3811b8aa4c
withPluginAPI shim to updated plugins will not raise errors
2016-02-16 12:25:01 -05:00
Robin Ward
3a78321c63
withPluginApi means you don't have to check for null.
2016-02-16 12:17:22 -05:00
Robin Ward
f9722f8598
Add custom post icons to PluginAPI
2016-02-12 16:57:24 -05:00
Robin Ward
9b8871d7dd
PluginAPI for more stable backwards compatibility going forward
2016-02-12 15:46:36 -05:00
Robin Ward
5f65bf420c
FIX: Support the plugin-api for decorators
2016-02-11 11:00:42 -05:00
Robin Ward
d1e85bdd8b
FEATURE: Use virtual dom framework for faster post rendering
2016-02-11 11:00:40 -05:00
Robin Ward
395d01c5f9
FIX: Have the preview refreshed event fire by decorateCooked
2015-11-10 13:26:12 -05:00
Robin Ward
b2a7411620
FIX: decorateCooked was not being applied to embedded posts
2015-06-01 11:58:50 -04:00
Robin Ward
7c9fb5d3fc
Refactored SiteMap/Header to support more dynamic flag counts
...
Also fixes deprecation in `plugin-outlet`
2015-03-11 16:12:53 -04:00
Robin Ward
2d3a9b334d
FIX: LazyYT was not being applied when a post was edited
2014-12-18 12:28:14 -05:00
Robin Ward
59c3ca7e7b
PLUGIN: New API for decorating a post with jQuery
2014-07-21 11:38:38 -04:00