Ghost/ghost/admin/app/services/event-bus.js
Kevin Ansfield 0abe447551 theme management UI
refs https://github.com/TryGhost/Ghost/issues/7204, requires https://github.com/TryGhost/Ghost/pull/7209

- replaces theme dropdown with a table
- adds theme upload modal
    - validates theme mime type
    - prevents upload of `casper.zip` (default Casper theme can't be overwritten)
    - warns if an upload will overwrite an existing theme
    - gives option of immediately activating the uploaded theme or closing after successful upload
- adds theme activation link/action
- adds theme download link/action
- adds theme deletion modal
    - warns about no undo possibility
    - offers possibility to download theme
- modifies mirage config to handle theme changes
2016-08-23 12:42:38 +01:00

15 lines
314 B
JavaScript

import Service from 'ember-service';
import Evented from 'ember-evented';
export default Service.extend(Evented, {
publish() {
return this.trigger(...arguments);
},
subscribe() {
return this.on(...arguments);
},
unsubscribe() {
return this.off(...arguments);
}
});