##// END OF EJS Templates
frontend: move link definitions to javascript layer
frontend: move link definitions to javascript layer

File last commit:

r85:d384ac58
r91:b463cc34
Show More
routes.js
221 lines | 6.3 KiB | application/javascript | JavascriptLexer
project: initial commit
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
refactor: fix inconsistent naming
r28 // # AppEnlight Enterprise Edition, including its added features, Support
project: initial commit
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',
log browser: turn into component
r76 component: 'logsBrowserView'
project: initial commit
r0 });
$stateProvider.state('front_dashboard', {
url: '/ui',
front dashboard: turn into component
r75 component: 'indexDashboardView'
project: initial commit
r0 });
$stateProvider.state('report', {
abstract: true,
url: '/ui/report',
components: reports componentized
r84 template: '<ui-view></ui-view>'
project: initial commit
r0 });
$stateProvider.state('report.list', {
components: reports componentized
r84 url: '/list?start_date&min_duration&max_duration&{view_name:any}&{server_name:any}&resource',
component: 'reportsBrowserView'
project: initial commit
r0 });
$stateProvider.state('report.list_slow', {
url: '/list_slow?start_date&min_duration&max_duration&{view_name:any}&{server_name:any}&resource',
components: reports componentized
r84 component: 'reportsSlowBrowserView'
project: initial commit
r0 });
$stateProvider.state('report.view_detail', {
url: '/:groupId/:reportId',
components: reports componentized
r84 component: 'reportView'
project: initial commit
r0 });
$stateProvider.state('report.view_group', {
url: '/:groupId',
components: reports componentized
r84 component: 'reportView'
project: initial commit
r0 });
$stateProvider.state('events', {
url: '/ui/events',
event browser: turn into component
r77 component: 'eventBrowserView'
project: initial commit
r0 });
$stateProvider.state('admin', {
url: '/ui/admin',
components: admin panel componentized
r85 component: 'adminView'
project: initial commit
r0 });
$stateProvider.state('admin.user', {
abstract: true,
url: '/user',
components: admin panel componentized
r85 template: '<ui-view></ui-view>'
project: initial commit
r0 });
$stateProvider.state('admin.user.list', {
url: '/list',
components: admin panel componentized
r85 component: 'adminUsersListView'
project: initial commit
r0 });
$stateProvider.state('admin.user.create', {
url: '/create',
components: admin panel componentized
r85 component: 'adminUsersCreateView'
project: initial commit
r0 });
$stateProvider.state('admin.user.update', {
url: '/{userId}/update',
components: admin panel componentized
r85 component: 'adminUsersCreateView'
project: initial commit
r0 });
$stateProvider.state('admin.group', {
abstract: true,
url: '/group',
components: admin panel componentized
r85 template: '<ui-view></ui-view>'
project: initial commit
r0 });
$stateProvider.state('admin.group.list', {
url: '/list',
components: admin panel componentized
r85 component: 'adminGroupsListView'
project: initial commit
r0 });
$stateProvider.state('admin.group.create', {
url: '/create',
components: admin panel componentized
r85 component: 'adminGroupsCreateView'
project: initial commit
r0 });
$stateProvider.state('admin.group.update', {
url: '/{groupId}/update',
components: admin panel componentized
r85 component: 'adminGroupsCreateView'
project: initial commit
r0 });
$stateProvider.state('admin.application', {
abstract: true,
url: '/application',
components: admin panel componentized
r85 template: '<ui-view></ui-view>'
project: initial commit
r0 });
$stateProvider.state('admin.application.list', {
url: '/list',
components: admin panel componentized
r85 component: 'adminApplicationsListView'
project: initial commit
r0 });
$stateProvider.state('admin.partitions', {
url: '/partitions',
components: admin panel componentized
r85 component: 'adminPartitionsView'
project: initial commit
r0 });
$stateProvider.state('admin.system', {
url: '/system',
components: admin panel componentized
r85 component: 'adminSystemView'
project: initial commit
r0 });
$stateProvider.state('admin.configs', {
abstract: true,
url: '/configs',
components: admin panel componentized
r85 template: '<ui-view></ui-view>'
project: initial commit
r0 });
$stateProvider.state('admin.configs.list', {
flash: re-add flash messages to top application component
r78 url: '/list',
components: admin panel componentized
r85 component: 'adminConfigurationView'
project: initial commit
r0 });
$stateProvider.state('user', {
url: '/ui/user',
flash: re-add flash messages to top application component
r78 component: 'settingsView'
project: initial commit
r0 });
$stateProvider.state('user.profile', {
abstract: true,
flash: re-add flash messages to top application component
r78 template: '<ui-view></ui-view>'
project: initial commit
r0 });
$stateProvider.state('user.profile.edit', {
flash: re-add flash messages to top application component
r78 url: '/profile',
component: 'userProfileView'
project: initial commit
r0 });
$stateProvider.state('user.profile.password', {
url: '/password',
components: user and alert channels components
r81 component: 'userPasswordView'
project: initial commit
r0 });
$stateProvider.state('user.profile.identities', {
url: '/identities',
flash: re-add flash messages to top application component
r78 component: 'userIdentitiesView'
project: initial commit
r0 });
$stateProvider.state('user.profile.auth_tokens', {
url: '/auth_tokens',
components: user and alert channels components
r81 component: 'userAuthTokensView'
project: initial commit
r0 });
$stateProvider.state('user.alert_channels', {
abstract: true,
url: '/alert_channels',
components: user and alert channels components
r81 template: '<ui-view></ui-view>'
project: initial commit
r0 });
$stateProvider.state('user.alert_channels.list', {
flash: re-add flash messages to top application component
r78 url: '/list',
components: user and alert channels components
r81 component: 'userAlertChannelsListView'
project: initial commit
r0 });
$stateProvider.state('user.alert_channels.email', {
url: '/email',
components: user and alert channels components
r81 component: 'userAlertChannelsEmailNewView'
project: initial commit
r0 });
$stateProvider.state('applications', {
abstract: true,
url: '/ui/applications',
components: whole settings panel componentized
r83 component: 'settingsView'
project: initial commit
r0 });
$stateProvider.state('applications.list', {
flash: re-add flash messages to top application component
r78 url: '/list',
components: whole settings panel componentized
r83 component: 'applicationsListView'
project: initial commit
r0 });
$stateProvider.state('applications.update', {
url: '/{resourceId}/update',
components: whole settings panel componentized
r83 component: 'applicationsUpdateView'
project: initial commit
r0 });
$stateProvider.state('applications.integrations', {
url: '/{resourceId}/integrations',
components: whole settings panel componentized
r83 component: 'integrationsListView',
project: initial commit
r0 data: {
resource: null
}
});
$stateProvider.state('applications.purge_logs', {
url: '/purge_logs',
components: whole settings panel componentized
r83 component: 'applicationsPurgeLogsView'
project: initial commit
r0 });
$stateProvider.state('applications.integrations.edit', {
url: '/{integration}',
components: whole settings panel componentized
r83 template: function ($stateParams) {
return '<'+ $stateParams.integration + '-integration-config-view>'
}
project: initial commit
r0 });
$stateProvider.state('tests', {
url: '/ui/tests',
templateUrl: 'templates/user/alert_channels_test.html',
controller: 'AlertChannelsTestController as test_action'
});
}]);