mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
47a045a935
no refs. - updated moment locale to display '1 minute' instead of 'a minute' to be more explicit about scheduled time - removed full stop from the scheduler message in editor header
49 lines
1.1 KiB
JavaScript
Executable File
49 lines
1.1 KiB
JavaScript
Executable File
import 'ghost-admin/utils/link-component';
|
|
import 'ghost-admin/utils/route';
|
|
import Application from '@ember/application';
|
|
import Resolver from 'ember-resolver';
|
|
import config from 'ghost-admin/config/environment';
|
|
import loadInitializers from 'ember-load-initializers';
|
|
import moment from 'moment';
|
|
import {registerWarnHandler} from '@ember/debug';
|
|
|
|
moment.updateLocale('en', {
|
|
relativeTime: {
|
|
m: '1 minute'
|
|
}
|
|
});
|
|
|
|
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;
|