Ghost/ghost/admin/app/app.js

42 lines
1006 B
JavaScript
Raw Normal View History

import 'ghost-admin/utils/link-component';
import 'ghost-admin/utils/route';
import Application from '@ember/application';
import Resolver from 'ember-resolver';
2015-02-13 07:22:32 +03:00
import config from './config/environment';
import loadInitializers from 'ember-load-initializers';
import {registerWarnHandler} from '@ember/debug';
const App = Application.extend({
Resolver,
2015-02-13 07:22:32 +03:00
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
// eslint-disable-next-line
customEvents: {
touchstart: null,
touchmove: null,
touchend: null,
touchcancel: null
}
});
// TODO: remove once the validations refactor is complete
// eslint-disable-next-line
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;