Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit c64bb15

Browse files
committed
placeholders for new community pages
1 parent 764a896 commit c64bb15

File tree

7 files changed

+60
-2
lines changed

7 files changed

+60
-2
lines changed

app/community/community.module.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(function() {
2+
'use strict';
3+
4+
var dependencies = [
5+
'ui.router',
6+
'tc.services',
7+
'tcUIComponents',
8+
'toaster'
9+
];
10+
11+
angular.module('tc.community', dependencies);
12+
13+
})();

app/community/community.routes.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
(function() {
2+
'use strict';
3+
4+
angular.module('tc.community').config([
5+
'$stateProvider',
6+
'$urlRouterProvider',
7+
'$locationProvider',
8+
routes
9+
]);
10+
11+
function routes($stateProvider, $urlRouterProvider, $locationProvider) {
12+
$locationProvider.html5Mode(true);
13+
var states = {
14+
'community': {
15+
parent: 'root',
16+
url: '/community/',
17+
abstract: true,
18+
data: {
19+
authRequired: false,
20+
}
21+
},
22+
23+
'community.members': {
24+
parent: 'root',
25+
url: '/community/members/',
26+
templateUrl: 'community/members.html'
27+
},
28+
29+
'community.statistics': {
30+
parent: 'root',
31+
url: '/community/statistics/',
32+
templateUrl: 'community/statistics.html'
33+
},
34+
};
35+
36+
angular.forEach(states, function(state, name) {
37+
$stateProvider.state(name, state);
38+
});
39+
};
40+
})();

app/community/members.jade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
span members page placeholder

app/community/statistics.jade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
span statistics page placeholder

app/index.jade

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ html
141141
script(src="blocks/logger/logger.module.js")
142142
script(src="blocks/logger/logEnhancer.js")
143143
script(src="blocks/logger/logger.js")
144+
script(src="community/community.module.js")
145+
script(src="community/community.routes.js")
144146
script(src="directives/tcui-components.module.js")
145147
script(src="directives/account/toggle-password/toggle-password.directive.js")
146148
script(src="directives/account/toggle-password-with-tips/toggle-password-with-tips.directive.js")

app/layout/header/header.controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
{ 'href': '/community/competitive%20programming/', 'text': 'COMPETITIVE PROGRAMMING', 'icon': '/images/nav/srms.svg' },
3131
],
3232
'community': [
33-
{ 'href': '/community/members/', 'text': 'MEMBERS', 'icon': '/images/nav/users.svg' },
33+
{ 'sref': 'community.members', 'text': 'MEMBERS', 'icon': '/images/nav/users.svg' },
3434
{ 'href': '/community/member-programs/', 'text': 'PROGRAMS', 'icon': '/images/nav/medal.svg' },
3535
{ 'href': vm.constants.FORUMS_APP_URL, 'text': 'FORUMS', 'icon': '/images/nav/forum.svg' },
36-
{ 'href': '/community/statistics/', 'text': 'STATISTICS', 'icon': '/images/nav/statistics.svg' },
36+
{ 'sref': 'community.statistics', 'text': 'STATISTICS', 'icon': '/images/nav/statistics.svg' },
3737
{ 'href': '/community/events/', 'text': 'EVENTS', 'icon': '/images/nav/calendar.svg' },
3838
{ 'href': '/blog/', 'text': 'BLOG', 'icon': '/images/nav/blog.svg' }
3939
]

app/topcoder.module.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'tc.profile',
1414
'tc.settings',
1515
'tc.skill-picker',
16+
'tc.community',
1617
'ui.router',
1718
'blocks.logger',
1819
'blocks.exception',

0 commit comments

Comments
 (0)