1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/app.js

42 lines
998 B
JavaScript
Raw Normal View History

import 'ghost-admin/utils/link-component';
import 'ghost-admin/utils/route';
import 'ghost-admin/utils/text-field';
import Application from '@ember/application';
import Ember from 'ember';
import Resolver from './resolver';
2015-02-13 05:22:32 +01:00
import config from './config/environment';
import loadInitializers from 'ember-load-initializers';
const App = Application.extend({
Resolver,
2015-02-13 05:22:32 +01: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 05:22:32 +01:00
loadInitializers(App, config.modulePrefix);
export default App;