Ghost/ghost/admin/app/app.js

44 lines
1.0 KiB
JavaScript
Raw Normal View History

2015-02-13 07:22:32 +03:00
import Ember from 'ember';
import Application from 'ember-application';
2016-02-16 21:32:48 +03:00
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import 'ghost-admin/utils/route';
import 'ghost-admin/utils/link-component';
import 'ghost-admin/utils/text-field';
2015-02-13 07:22:32 +03:00
import config from './config/environment';
Ember.MODEL_FACTORY_INJECTIONS = true;
let App = Application.extend({
Resolver,
2015-02-13 07:22:32 +03:00
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
customEvents: {
touchstart: null,
touchmove: null,
touchend: null,
touchcancel: null
}
});
// TODO: remove once the validations refactor is complete
// eslint-disable-next-line
Ember.Debug.registerWarnHandler((message, options, next) => {
let skip = [
'ds.errors.add',
'ds.errors.remove',
'ds.errors.clear'
];
if (skip.includes(options.id)) {
return;
}
next(message, options);
});
2015-02-13 07:22:32 +03:00
loadInitializers(App, config.modulePrefix);
export default App;