2014-02-26 23:45:45 -05:00
|
|
|
import Resolver from 'ember/resolver';
|
2014-03-02 15:12:06 -05:00
|
|
|
import initFixtures from 'ghost/fixtures/init';
|
2014-05-14 18:36:13 -05:00
|
|
|
import injectCurrentUser from 'ghost/initializers/current-user';
|
|
|
|
import injectCsrf from 'ghost/initializers/csrf';
|
2014-03-22 07:08:15 -05:00
|
|
|
import {registerNotifications, injectNotifications} from 'ghost/initializers/notifications';
|
2014-05-13 20:52:31 -05:00
|
|
|
import registerTrailingLocationHistory from 'ghost/initializers/trailing-history';
|
2014-05-14 20:56:43 -05:00
|
|
|
import injectGhostPaths from 'ghost/initializers/ghost-paths';
|
2014-04-01 21:09:28 -05:00
|
|
|
import 'ghost/utils/link-view';
|
2014-03-28 20:02:23 -05:00
|
|
|
import 'ghost/utils/text-field';
|
2014-02-26 23:45:45 -05:00
|
|
|
|
|
|
|
var App = Ember.Application.extend({
|
2014-02-25 23:58:00 -05:00
|
|
|
/**
|
|
|
|
* These are debugging flags, they are useful during development
|
|
|
|
*/
|
|
|
|
LOG_ACTIVE_GENERATION: true,
|
|
|
|
LOG_MODULE_RESOLVER: true,
|
|
|
|
LOG_TRANSITIONS: true,
|
|
|
|
LOG_TRANSITIONS_INTERNAL: true,
|
|
|
|
LOG_VIEW_LOOKUPS: true,
|
2014-03-03 15:18:10 -05:00
|
|
|
modulePrefix: 'ghost',
|
2014-02-26 23:45:45 -05:00
|
|
|
Resolver: Resolver['default']
|
2014-02-25 23:58:00 -05:00
|
|
|
});
|
|
|
|
|
2014-03-02 15:12:06 -05:00
|
|
|
initFixtures();
|
2014-03-02 09:30:35 -05:00
|
|
|
|
2014-03-11 11:23:32 -05:00
|
|
|
App.initializer(injectCurrentUser);
|
2014-05-14 18:36:13 -05:00
|
|
|
App.initializer(injectCsrf);
|
2014-05-14 20:56:43 -05:00
|
|
|
App.initializer(injectGhostPaths);
|
2014-03-22 07:08:15 -05:00
|
|
|
App.initializer(registerNotifications);
|
|
|
|
App.initializer(injectNotifications);
|
2014-05-13 20:52:31 -05:00
|
|
|
App.initializer(registerTrailingLocationHistory);
|
2014-03-11 11:23:32 -05:00
|
|
|
|
2014-04-01 21:09:28 -05:00
|
|
|
export default App;
|