mirror of
https://github.com/flarum/framework.git
synced 2025-05-23 15:19:56 +08:00
Get rid of extension convenience method
We might reintroduce this later, but for now I want to keep the extensions API as light as possible and get input before we add stuff
This commit is contained in:
@ -59,17 +59,3 @@ export function override(object, method, newMethod) {
|
|||||||
return newMethod.apply(this, [original.bind(this)].concat(args));
|
return newMethod.apply(this, [original.bind(this)].concat(args));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Register a notification type.
|
|
||||||
*
|
|
||||||
* @param {String} name The name of the notification type (equivalent to the
|
|
||||||
* serialized `contentType`)
|
|
||||||
* @param {Object} Component The constructor of the component that this
|
|
||||||
* notification type should be rendered with
|
|
||||||
* @param {String|Array} label vDOM to render a label in the notification
|
|
||||||
* preferences grid for this notification type
|
|
||||||
*/
|
|
||||||
export function notificationType(name, Component, label) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user