mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
0abe447551
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
15 lines
314 B
JavaScript
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);
|
|
}
|
|
});
|