mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
f083e8bc59
no issue - Ember's TextSupport mixin (used by TextField and TextArea) has had `autofocus` as an `attributeBinding` since 1.5.0 so the override to add it is not necessary
42 lines
1002 B
JavaScript
Executable File
42 lines
1002 B
JavaScript
Executable File
import 'ghost-admin/utils/link-component';
|
|
import 'ghost-admin/utils/route';
|
|
import Application from '@ember/application';
|
|
import Resolver from './resolver';
|
|
import config from './config/environment';
|
|
import loadInitializers from 'ember-load-initializers';
|
|
import {registerWarnHandler} from '@ember/debug';
|
|
|
|
const App = Application.extend({
|
|
Resolver,
|
|
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);
|
|
});
|
|
|
|
loadInitializers(App, config.modulePrefix);
|
|
|
|
export default App;
|