mirror of https://github.com/rancher/ui.git
60 lines
1.6 KiB
JavaScript
60 lines
1.6 KiB
JavaScript
import Application from '@ember/application';
|
|
import Resolver from './resolver';
|
|
import loadInitializers from 'ember-load-initializers';
|
|
import config from './config/environment';
|
|
const App = Application.extend({
|
|
modulePrefix: config.modulePrefix,
|
|
podModulePrefix: config.podModulePrefix,
|
|
Resolver,
|
|
engines: {
|
|
login: {
|
|
dependencies: {
|
|
services: [
|
|
'access',
|
|
'user-language',
|
|
'intl',
|
|
'settings',
|
|
'session'
|
|
],
|
|
externalRoutes: {
|
|
index: 'index',
|
|
authenticated: 'authenticated'
|
|
}
|
|
}
|
|
},
|
|
globalAdmin: {
|
|
dependencies: {
|
|
services: [
|
|
'access',
|
|
'authn-store',
|
|
'catalog',
|
|
'endpoint',
|
|
'github',
|
|
'intl',
|
|
'scope',
|
|
'session',
|
|
'settings',
|
|
'store',
|
|
'user-language',
|
|
'user-store',
|
|
'user-theme',
|
|
],
|
|
externalRoutes: {
|
|
index: 'index',
|
|
failWhale: 'failWhale',
|
|
authenticated: 'authenticated',
|
|
'authenticated.clusters': 'authenticated.clusters',
|
|
'authenticated.clusters.cluster': 'authenticated.clusters.cluster',
|
|
'authenticated.clusters.project': 'authenticated.clusters.project',
|
|
'authenticated.prefs': 'authenticated.prefs',
|
|
'logout': 'logout'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|
|
loadInitializers(App, config.modulePrefix);
|
|
|
|
export default App;
|