blob: 3b080954e7654528c616ad88fef17006d553274a [file] [log] [blame]
st782sb54df0d2017-05-04 07:48:42 -04001/*-
st782s21a87612018-01-30 17:29:36 -05002 * ============LICENSE_START==========================================
3 * ONAP Portal
4 * ===================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ===================================================================
7 *
8 * Unless otherwise specified, all software contained herein is licensed
9 * under the Apache License, Version 2.0 (the "License");
10 * you may not use this software except in compliance with the License.
st782sb54df0d2017-05-04 07:48:42 -040011 * You may obtain a copy of the License at
st782s21a87612018-01-30 17:29:36 -050012 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
st782sb54df0d2017-05-04 07:48:42 -040015 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
st782s21a87612018-01-30 17:29:36 -050020 *
21 * Unless otherwise specified, all documentation contained herein is licensed
22 * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23 * you may not use this documentation except in compliance with the License.
24 * You may obtain a copy of the License at
25 *
26 * https://creativecommons.org/licenses/by/4.0/
27 *
28 * Unless required by applicable law or agreed to in writing, documentation
29 * distributed under the License is distributed on an "AS IS" BASIS,
30 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 * See the License for the specific language governing permissions and
32 * limitations under the License.
33 *
34 * ============LICENSE_END============================================
35 *
Hima Elisetty24608a92018-04-19 14:15:29 -040036 *
st782sb54df0d2017-05-04 07:48:42 -040037 */
38'use strict';
39
40angular.module('ecompApp')
41 .config($stateProvider => {
42 $stateProvider
43 .state('root', {
44 abstract: true,
45 views: {
46 'header@': {
47 templateUrl: 'app/views/header/header.tpl.html',
48 controller: 'HeaderCtrl',
49 controllerAs: 'header'
50 },
51 'tabbar@': {
52 templateUrl: 'app/views/tabs/tabs.tpl.html',
53 controller: 'TabsCtrl',
54 controllerAs: 'tabsHome'
55 },
56 'sidebar@':{
57 templateUrl: 'app/views/sidebar/sidebar.tpl.html',
58 controller: 'SidebarCtrl',
59 controllerAs: 'sidebar'
60 },
61 'userbar@':{
62 templateUrl: 'app/views/userbar/userbar.tpl.html',
63 controller: 'UserbarCtrl',
64 controllerAs: 'userbar'
65 },
66 'footer@': {
67 templateUrl: 'app/views/footer/footer.tpl.html',
68 controller: 'FooterCtrl',
69 controllerAs: 'footer'
70 }
71 }
72 }).state('root.applicationsHome', {
73 url: '/applicationsHome',
74 views: {
75 'content@': {
76 templateUrl: 'app/views/dashboard/dashboard.tpl.html',
77 controller: 'DashboardCtrl',
78 controllerAs: 'dashboard'
79 }
80 }
81 }).state('root.appCatalog', {
82 url: '/appCatalog',
83 views: {
84 'content@': {
85 templateUrl: 'app/views/catalog/catalog.tpl.html',
86 controller: 'CatalogCtrl',
87 controllerAs: 'catalog'
88 }
89 }
st782sb54df0d2017-05-04 07:48:42 -040090 }).state('root.widgetCatalog', {
91 url: '/widgetCatalog',
92 views: {
93 'content@': {
94 templateUrl: 'app/views/widget-catalog/widget-catalog.tpl.html',
95 controller: 'WidgetCatalogCtrl',
96 controllerAs: 'widgetCatalog'
97 }
98 }
99 }).state('root.admins', {
100 url: '/admins',
101 views: {
102 'content@': {
103 templateUrl: 'app/views/admins/admins.tpl.html',
104 controller: 'AdminsCtrl',
105 controllerAs: 'admins'
106 }
107 }
108 }).state('root.roles', {
109 url: '/roles',
110 views: {
111 'content@': {
112 templateUrl: 'app/views/role/role_list.html',
113 controller: 'roleListController',
114 controllerAs: 'roles'
115 }
116 }
117 }).state('root.role', {
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -0400118 url: '/role',
119 params: {
120 roleId: 0,
121 },
st782sb54df0d2017-05-04 07:48:42 -0400122 views: {
123 'content@': {
124 templateUrl: 'app/views/role/role.html',
125 controller: 'roleController',
126 controllerAs: 'role'
127 }
128 }
129 }).state('root.roleFunctions', {
130 url: '/roleFunctions',
131 views: {
132 'content@': {
133 templateUrl: 'app/views/role/role_function_list.html',
134 controller: 'roleFunctionListController',
135 controllerAs: 'roleFunctions'
136 }
137 }
138 }).state('root.users', {
139 url: '/users',
140 views: {
141 'content@': {
142 templateUrl: 'app/views/users/users.tpl.html',
143 controller: 'UsersCtrl',
144 controllerAs: 'users'
145 }
146 }
147 }).state('root.applications', {
148 url: '/applications',
149 views: {
150 'content@': {
151 templateUrl: 'app/views/applications/applications.tpl.html',
152 controller: 'ApplicationsCtrl',
153 controllerAs: 'apps'
154 }
155 }
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -0400156 }).state('root.microserviceOnboarding', {
157 url: '/microserviceOnboarding',
158 views: {
159 'content@': {
160 templateUrl: 'app/views/microservice-onboarding/microservice-onboarding.tpl.html',
161 controller: 'MicroserviceOnboardingCtrl',
162 controllerAs: 'microserviceOnboarding'
163 }
164 }
st782sb54df0d2017-05-04 07:48:42 -0400165 }).state('root.widgetOnboarding', {
166 url: '/widgetOnboarding',
167 views: {
168 'content@': {
169 templateUrl: 'app/views/widget-onboarding/widget-onboarding.tpl.html',
170 controller: 'WidgetOnboardingCtrl',
171 controllerAs: 'widgetOnboarding'
172 }
173 }
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -0400174 }).state('root.accountOnboarding', {
175 url: '/accountOnboarding',
176 views: {
177 'content@': {
178 templateUrl: 'app/views/account-onboarding/account-onboarding.tpl.html',
179 controller: 'AccountOnboardingCtrl',
180 controllerAs: 'accountOnboarding'
181 }
182 }
st782sb54df0d2017-05-04 07:48:42 -0400183 }).state('root.functionalMenu', {
184 url: '/functionalMenu',
185 views: {
186 'content@': {
187 templateUrl: 'app/views/functionalMenu/functionalMenu.tpl.html',
188 controller: 'FunctionalMenuCtrl',
189 controllerAs: 'functionalMenu'
190 }
191 }
192 }).state('root.getAccess', {
193 url: '/getAccess',
194 params: {
195 appName: null,
196 },
197 views: {
198 'content@': {
199 templateUrl: 'app/views/support/get-access/get-access.tpl.html',
200 controller: 'GetAccessCtrl',
201 controllerAs: 'access'
202 }
203 }
204 }).state('root.contactUs', {
205 url: '/contactUs',
206 views: {
207 'content@': {
208 templateUrl: 'app/views/support/contact-us/contact-us.tpl.html',
209 controller: 'ContactUsCtrl',
210 controllerAs: 'contact'
211 }
212 }
213 }).state('root.userNotifications', {
214 url: '/userNotifications',
215 views: {
216 'content@': {
217 templateUrl: 'app/views/user-notifications-admin/user.notifications.tpl.html',
218 controller: 'userNotificationsCtrl',
219 controllerAs: 'userNotifications'
220 }
221 }
222 }).state('root.notificationHistory', {
223 url: '/notificationHistory',
224 views: {
225 'content@': {
226 templateUrl: 'app/views/notification-history/notificationhistory.tpl.html',
227 controller: 'notificationHistoryCtrl',
228 controllerAs: 'notificationHistory'
229 }
230 }
231 }).state('root.portalAdmins', {
232 url: '/portalAdmins',
233 views: {
234 'content@': {
235 templateUrl: 'app/views/portal-admin/portal-admin.tpl.html',
236 controller: 'PortalAdminsCtrl',
237 controllerAs: 'portalAdmin'
238 }
239 }
Christopher Lott (Christopher) (cl778h)627bada2017-06-12 09:49:00 -0400240 }).state('root.webAnalytics', {
241 url: '/webAnalytics',
242 views: {
243 'content@': {
244 templateUrl: 'app/views/webAnalytics/webAnalytics.tpl.html',
245 controller: 'WebAnalyticsCtrl',
246 controllerAs: 'webAnalytics'
247 }
248 }
249 }).state('root.webAnlayticsSource', {
250 url: '/addWebAnalyticsSource',
251 views: {
252 'content@': {
253 templateUrl: 'app/views/webAnalytics/webAnalyticsList.tpl.html',
254 controller: 'WebAnalyticsCtrl',
255 controllerAs: 'webAnalytics'
256 }
257 }
st782sb54df0d2017-05-04 07:48:42 -0400258 }).state('root.error404', {
259 url: '/error404',
260 views: {
261 'content@': {
Christopher Lott (cl778h)52ef9472017-08-30 16:09:59 -0400262 templateUrl: 'app/views/errors/error.tpl.html',
st782sb54df0d2017-05-04 07:48:42 -0400263 controller: 'ErrorCtrl',
264 controllerAs: 'error'
265 }
266 }
267 }).state('noUserError', {
268 url: '/noUserError',
269 views: {
270 'error@': {
271 templateUrl: 'app/views/errors/error.tpl.html',
272 controller: 'ErrorCtrl',
273 controllerAs: 'error'
274 }
275 }
276 }).state('unKnownError', {
277 url: '/unKnownError',
278 views: {
279 'error@': {
280 templateUrl: 'app/views/errors/error.tpl.html',
281 controller: 'ErrorCtrl',
282 controllerAs: 'error'
283 }
284 }
285 });
286 });