mirror of https://github.com/rancher/ui.git
52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
import Engine from 'ember-engines/engine';
|
|
import loadInitializers from 'ember-load-initializers';
|
|
import Resolver from './resolver';
|
|
import config from './config/environment';
|
|
|
|
const { modulePrefix } = config;
|
|
|
|
const Eng = Engine.extend({
|
|
modulePrefix,
|
|
Resolver,
|
|
dependencies: {
|
|
services: [
|
|
'access',
|
|
'app',
|
|
'catalog',
|
|
'clusterStore',
|
|
'endpoint',
|
|
'azureAd',
|
|
'github',
|
|
'globalStore',
|
|
'intl',
|
|
'modal',
|
|
'resource-actions',
|
|
'router',
|
|
'scope',
|
|
'session',
|
|
'settings',
|
|
'store',
|
|
'tooltip',
|
|
'user-language',
|
|
'user-theme',
|
|
],
|
|
externalRoutes: [
|
|
'index',
|
|
'failWhale',
|
|
'authenticated',
|
|
'authenticated.cluster',
|
|
'authenticated.cluster.projects',
|
|
'authenticated.project',
|
|
'authenticated.prefs',
|
|
'authenticated.cluster.nodes',
|
|
'authenticated.cluster.nodes.node',
|
|
'authenticated.cluster.security.members.index',
|
|
'logout'
|
|
]
|
|
}
|
|
});
|
|
|
|
loadInitializers(Eng, modulePrefix);
|
|
|
|
export default Eng;
|