|
7 | 7 |
|
8 | 8 | function HeaderController($state, TcAuthService, CONSTANTS, $log, $rootScope, UserService, ProfileService, IntroService) {
|
9 | 9 | var vm = this;
|
10 |
| - |
| 10 | + |
11 | 11 | vm.constants = CONSTANTS;
|
12 | 12 | vm.domain = CONSTANTS.domain;
|
13 | 13 | vm.login = TcAuthService.login;
|
14 | 14 | vm.logout = logout;
|
15 | 15 | vm.checkSubmit = checkSubmit;
|
16 | 16 | vm.searchTerm = '';
|
17 |
| - |
18 |
| - vm.menuLinks = |
| 17 | + |
| 18 | + vm.menuLinks = |
19 | 19 | {
|
20 |
| - 'compete': [ |
21 |
| - { 'href': "/challenges/design/active/", 'text': 'DESIGN CHALLENGES', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/design.svg' }, |
22 |
| - { 'href': "/challenges/develop/active", 'text': 'DEVELOPMENT CHALLENGES', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/development.svg' }, |
23 |
| - { 'href': "/challenges/data/active", 'text': 'DATA SCIENCE CHALLENGES', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/data-science.svg' }, |
24 |
| - { 'href': vm.constants.ARENA_URL, 'text': 'THE ARENA', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/srms.svg' }, |
| 20 | + 'compete': [ |
| 21 | + { 'href': "/challenges/design/active/", 'text': 'DESIGN CHALLENGES', 'icon': '/images/nav/design.svg' }, |
| 22 | + { 'href': "/challenges/develop/active", 'text': 'DEVELOPMENT CHALLENGES', 'icon': '/images/nav/development.svg' }, |
| 23 | + { 'href': "/challenges/data/active", 'text': 'DATA SCIENCE CHALLENGES', 'icon': '/images/nav/data-science.svg' }, |
| 24 | + { 'href': vm.constants.ARENA_URL, 'text': 'THE ARENA', 'icon': '/images/nav/srms.svg' }, |
25 | 25 | ],
|
26 | 26 | 'learn': [
|
27 |
| - { 'href': '/community/design/', 'text': 'DESIGN', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/scroll-design.svg' }, |
28 |
| - { 'href': '/community/development/', 'text': 'DEVELOPMENT', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/scroll-develop.svg' }, |
29 |
| - { 'href': '/community/data-science/', 'text': 'DATA SCIENCE', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/scroll-data.svg' }, |
30 |
| - { 'href': '/community/data-science/', 'text': 'COMPETITIVE PROGRAMMING', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/srms.svg' }, |
| 27 | + { 'href': '/community/design/', 'text': 'DESIGN', 'icon': '/images/nav/scroll-design.svg' }, |
| 28 | + { 'href': '/community/development/', 'text': 'DEVELOPMENT', 'icon': '/images/nav/scroll-develop.svg' }, |
| 29 | + { 'href': '/community/data-science/', 'text': 'DATA SCIENCE', 'icon': '/images/nav/scroll-data.svg' }, |
| 30 | + { 'href': '/community/data-science/', 'text': 'COMPETITIVE PROGRAMMING', 'icon': '/images/nav/srms.svg' }, |
31 | 31 | ],
|
32 | 32 | 'community': [
|
33 |
| - { 'href': '/community/members/', 'text': 'MEMBERS', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/users.svg' }, |
34 |
| - { 'href': '/community/member-programs/', 'text': 'PROGRAMS', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/medal.svg' }, |
35 |
| - { 'href': vm.constants.FORUMS_APP_URL, 'text': 'FORUMS', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/forum.svg' }, |
36 |
| - { 'href': '/community/statistics/', 'text': 'STATISTICS', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/statistics.svg' }, |
37 |
| - { 'href': '/community/events/', 'text': 'EVENTS', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/calendar.svg' }, |
38 |
| - { 'href': '/blog/', 'text': 'BLOG', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/blog.svg' } |
| 33 | + { 'href': '/community/members/', 'text': 'MEMBERS', 'icon': '/images/nav/users.svg' }, |
| 34 | + { 'href': '/community/member-programs/', 'text': 'PROGRAMS', 'icon': '/images/nav/medal.svg' }, |
| 35 | + { 'href': vm.constants.FORUMS_APP_URL, 'text': 'FORUMS', 'icon': '/images/nav/forum.svg' }, |
| 36 | + { 'href': '/community/statistics/', 'text': 'STATISTICS', 'icon': '/images/nav/statistics.svg' }, |
| 37 | + { 'href': '/community/events/', 'text': 'EVENTS', 'icon': '/images/nav/calendar.svg' }, |
| 38 | + { 'href': '/blog/', 'text': 'BLOG', 'icon': '/images/nav/blog.svg' } |
39 | 39 | ]
|
40 | 40 | };
|
41 |
| - |
| 41 | + |
42 | 42 | function checkSubmit(ev) {
|
43 | 43 | if (ev.keyCode === 13)
|
44 | 44 | window.location.replace(vm.constants.MAIN_URL + '/search?s=' + vm.searchTerm + '&scope=member');
|
|
66 | 66 | if (vm.isAuth) {
|
67 | 67 | vm.userHandle = UserService.getUserIdentity().handle;
|
68 | 68 | vm.userMenu = [
|
69 |
| - { 'sref': 'dashboard', 'text': 'DASHBOARD', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/dashboard.svg' }, |
70 |
| - { 'sref': 'profile.about', 'srefParams': { 'userHandle': vm.userHandle }, 'text': 'MY PROFILE', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/badge.svg' }, |
71 |
| - { 'href': vm.constants.COMMUNITY_URL + '/PactsMemberServlet?module=PaymentHistory&full_list=false', 'text': 'PAYMENTS', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/money-bag.svg' }, |
72 |
| - { 'sref': 'settings.profile', 'text': 'SETTINGS', 'icon': vm.constants.ASSET_PREFIX + '/images/nav/gear.svg' }, |
| 69 | + { 'sref': 'dashboard', 'text': 'DASHBOARD', 'icon': '/images/nav/dashboard.svg' }, |
| 70 | + { 'sref': 'profile.about', 'srefParams': { 'userHandle': vm.userHandle }, 'text': 'MY PROFILE', 'icon': '/images/nav/badge.svg' }, |
| 71 | + { 'href': vm.constants.COMMUNITY_URL + '/PactsMemberServlet?module=PaymentHistory&full_list=false', 'text': 'PAYMENTS', 'icon': '/images/nav/money-bag.svg' }, |
| 72 | + { 'sref': 'settings.profile', 'text': 'SETTINGS', 'icon': '/images/nav/gear.svg' }, |
73 | 73 | ];
|
74 | 74 |
|
75 | 75 | ProfileService.getUserProfile(vm.userHandle)
|
|
92 | 92 |
|
93 | 93 | // Intro data
|
94 | 94 | vm.introOptions = IntroService.getIntroData($state.$current.name);
|
| 95 | + console.log("into"); |
95 | 96 | console.log(vm.introOptions);
|
96 | 97 | }
|
97 | 98 | })();
|
0 commit comments