routes.js
216 lines
| 6.0 KiB
| application/javascript
|
JavascriptLexer
r112 | // Copyright 2010 - 2017 RhodeCode GmbH and the AppEnlight project authors | |||
// | ||||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||||
// you may not use this file except in compliance with the License. | ||||
// You may obtain a copy of the License at | ||||
// | ||||
// http://www.apache.org/licenses/LICENSE-2.0 | ||||
// | ||||
// Unless required by applicable law or agreed to in writing, software | ||||
// distributed under the License is distributed on an "AS IS" BASIS, | ||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
// See the License for the specific language governing permissions and | ||||
// limitations under the License. | ||||
r0 | ||||
angular.module('appenlight').config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) { | ||||
$urlRouterProvider.otherwise('/ui'); | ||||
$stateProvider.state('logs', { | ||||
url: '/ui/logs?resource', | ||||
r76 | component: 'logsBrowserView' | |||
r0 | }); | |||
$stateProvider.state('front_dashboard', { | ||||
url: '/ui', | ||||
r75 | component: 'indexDashboardView' | |||
r0 | }); | |||
$stateProvider.state('report', { | ||||
abstract: true, | ||||
url: '/ui/report', | ||||
r84 | template: '<ui-view></ui-view>' | |||
r0 | }); | |||
$stateProvider.state('report.list', { | ||||
r84 | url: '/list?start_date&min_duration&max_duration&{view_name:any}&{server_name:any}&resource', | |||
component: 'reportsBrowserView' | ||||
r0 | }); | |||
$stateProvider.state('report.list_slow', { | ||||
url: '/list_slow?start_date&min_duration&max_duration&{view_name:any}&{server_name:any}&resource', | ||||
r84 | component: 'reportsSlowBrowserView' | |||
r0 | }); | |||
$stateProvider.state('report.view_detail', { | ||||
url: '/:groupId/:reportId', | ||||
r84 | component: 'reportView' | |||
r0 | }); | |||
$stateProvider.state('report.view_group', { | ||||
url: '/:groupId', | ||||
r84 | component: 'reportView' | |||
r0 | }); | |||
$stateProvider.state('events', { | ||||
url: '/ui/events', | ||||
r77 | component: 'eventBrowserView' | |||
r0 | }); | |||
$stateProvider.state('admin', { | ||||
url: '/ui/admin', | ||||
r85 | component: 'adminView' | |||
r0 | }); | |||
$stateProvider.state('admin.user', { | ||||
abstract: true, | ||||
url: '/user', | ||||
r85 | template: '<ui-view></ui-view>' | |||
r0 | }); | |||
$stateProvider.state('admin.user.list', { | ||||
url: '/list', | ||||
r85 | component: 'adminUsersListView' | |||
r0 | }); | |||
$stateProvider.state('admin.user.create', { | ||||
url: '/create', | ||||
r85 | component: 'adminUsersCreateView' | |||
r0 | }); | |||
$stateProvider.state('admin.user.update', { | ||||
url: '/{userId}/update', | ||||
r85 | component: 'adminUsersCreateView' | |||
r0 | }); | |||
$stateProvider.state('admin.group', { | ||||
abstract: true, | ||||
url: '/group', | ||||
r85 | template: '<ui-view></ui-view>' | |||
r0 | }); | |||
$stateProvider.state('admin.group.list', { | ||||
url: '/list', | ||||
r85 | component: 'adminGroupsListView' | |||
r0 | }); | |||
$stateProvider.state('admin.group.create', { | ||||
url: '/create', | ||||
r85 | component: 'adminGroupsCreateView' | |||
r0 | }); | |||
$stateProvider.state('admin.group.update', { | ||||
url: '/{groupId}/update', | ||||
r85 | component: 'adminGroupsCreateView' | |||
r0 | }); | |||
$stateProvider.state('admin.application', { | ||||
abstract: true, | ||||
url: '/application', | ||||
r85 | template: '<ui-view></ui-view>' | |||
r0 | }); | |||
$stateProvider.state('admin.application.list', { | ||||
url: '/list', | ||||
r85 | component: 'adminApplicationsListView' | |||
r0 | }); | |||
$stateProvider.state('admin.partitions', { | ||||
url: '/partitions', | ||||
r85 | component: 'adminPartitionsView' | |||
r0 | }); | |||
$stateProvider.state('admin.system', { | ||||
url: '/system', | ||||
r85 | component: 'adminSystemView' | |||
r0 | }); | |||
$stateProvider.state('admin.configs', { | ||||
abstract: true, | ||||
url: '/configs', | ||||
r85 | template: '<ui-view></ui-view>' | |||
r0 | }); | |||
$stateProvider.state('admin.configs.list', { | ||||
r78 | url: '/list', | |||
r85 | component: 'adminConfigurationView' | |||
r0 | }); | |||
$stateProvider.state('user', { | ||||
url: '/ui/user', | ||||
r78 | component: 'settingsView' | |||
r0 | }); | |||
$stateProvider.state('user.profile', { | ||||
abstract: true, | ||||
r78 | template: '<ui-view></ui-view>' | |||
r0 | }); | |||
$stateProvider.state('user.profile.edit', { | ||||
r78 | url: '/profile', | |||
component: 'userProfileView' | ||||
r0 | }); | |||
$stateProvider.state('user.profile.password', { | ||||
url: '/password', | ||||
r81 | component: 'userPasswordView' | |||
r0 | }); | |||
$stateProvider.state('user.profile.identities', { | ||||
url: '/identities', | ||||
r78 | component: 'userIdentitiesView' | |||
r0 | }); | |||
$stateProvider.state('user.profile.auth_tokens', { | ||||
url: '/auth_tokens', | ||||
r81 | component: 'userAuthTokensView' | |||
r0 | }); | |||
$stateProvider.state('user.alert_channels', { | ||||
abstract: true, | ||||
url: '/alert_channels', | ||||
r81 | template: '<ui-view></ui-view>' | |||
r0 | }); | |||
$stateProvider.state('user.alert_channels.list', { | ||||
r78 | url: '/list', | |||
r81 | component: 'userAlertChannelsListView' | |||
r0 | }); | |||
$stateProvider.state('user.alert_channels.email', { | ||||
url: '/email', | ||||
r81 | component: 'userAlertChannelsEmailNewView' | |||
r0 | }); | |||
$stateProvider.state('applications', { | ||||
abstract: true, | ||||
url: '/ui/applications', | ||||
r83 | component: 'settingsView' | |||
r0 | }); | |||
$stateProvider.state('applications.list', { | ||||
r78 | url: '/list', | |||
r83 | component: 'applicationsListView' | |||
r0 | }); | |||
$stateProvider.state('applications.update', { | ||||
url: '/{resourceId}/update', | ||||
r83 | component: 'applicationsUpdateView' | |||
r0 | }); | |||
$stateProvider.state('applications.integrations', { | ||||
url: '/{resourceId}/integrations', | ||||
r83 | component: 'integrationsListView', | |||
r0 | data: { | |||
resource: null | ||||
} | ||||
}); | ||||
$stateProvider.state('applications.purge_logs', { | ||||
url: '/purge_logs', | ||||
r83 | component: 'applicationsPurgeLogsView' | |||
r0 | }); | |||
$stateProvider.state('applications.integrations.edit', { | ||||
url: '/{integration}', | ||||
r83 | template: function ($stateParams) { | |||
return '<'+ $stateParams.integration + '-integration-config-view>' | ||||
} | ||||
r0 | }); | |||
$stateProvider.state('tests', { | ||||
url: '/ui/tests', | ||||
templateUrl: 'templates/user/alert_channels_test.html', | ||||
controller: 'AlertChannelsTestController as test_action' | ||||
}); | ||||
}]); | ||||