routes.js
221 lines
| 6.3 KiB
| application/javascript
|
JavascriptLexer
r0 | // # Copyright (C) 2010-2016 RhodeCode GmbH | |||
// # | ||||
// # This program is free software: you can redistribute it and/or modify | ||||
// # it under the terms of the GNU Affero General Public License, version 3 | ||||
// # (only), as published by the Free Software Foundation. | ||||
// # | ||||
// # This program is distributed in the hope that it will be useful, | ||||
// # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
// # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
// # GNU General Public License for more details. | ||||
// # | ||||
// # You should have received a copy of the GNU Affero General Public License | ||||
// # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
// # | ||||
// # This program is dual-licensed. If you wish to learn more about the | ||||
r28 | // # AppEnlight Enterprise Edition, including its added features, Support | |||
r0 | // # services, and proprietary license terms, please see | |||
// # https://rhodecode.com/licenses/ | ||||
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' | ||||
}); | ||||
}]); | ||||