Remove global dependency on registry and plugins

This commit is contained in:
Chi Vinh Le
2017-08-23 01:41:58 +07:00
parent 54ea0b1a3f
commit fccbcce7a8
21 changed files with 582 additions and 496 deletions
-6
View File
@@ -1,9 +1,3 @@
export {t, timeago} from 'coral-framework/services/i18n';
export {can} from 'coral-framework/services/perms';
import {isSlotEmpty as ise} from 'coral-framework/helpers/plugins';
// @TODO: Deprecated.
export function isSlotEmpty(...args) {
console.warn('A plugin is using `isSlotEmpty` which has been deprecated, please port to the new API using the `IfSlotIsEmpty` and `IfSlotIsNotEmpty` components.');
return ise(...args);
}