mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
c489f4474b
no issue - bump core `ember`, `ember-data` and `ember-cli` related dependencies - remove deprecated `MODEL_FACTORY_INJECTIONS` flag - update files to better match `ember-cli new` output for easier diffs during upgrades
42 lines
997 B
JavaScript
Executable File
42 lines
997 B
JavaScript
Executable File
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';
|
|
import config from './config/environment';
|
|
import loadInitializers from 'ember-load-initializers';
|
|
|
|
const App = Application.extend({
|
|
Resolver,
|
|
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);
|
|
});
|
|
|
|
loadInitializers(App, config.modulePrefix);
|
|
|
|
export default App;
|