forked from TryGhost/Admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
executable file
·41 lines (34 loc) · 1002 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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;