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

Commit 47d32d5

Browse files
author
Nick Litwin
committed
Merge branch 'dev' into submissions-header
2 parents 0bdcc0d + 480c675 commit 47d32d5

File tree

8 files changed

+45
-8
lines changed

8 files changed

+45
-8
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.17
1+
v1.0.18

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,23 @@ SCSS Files
9191
- Use variables, mixins, and classes as much as possible from our [style guide](https://github.com/appirio-tech/styles)
9292
- Reuse our [UI Components](https://github.com/appirio-tech/ng-ui-components)
9393
- When adding media queries, nest them inside the element, rather than creating a new section
94+
```
95+
.box {
96+
height: 50px;
97+
width: 50px;
98+
@media screen and (min-width: 768px) {
99+
height: 100px;
100+
width: 100px;
101+
}
102+
103+
.inside-box {
104+
font-size: 14px;
105+
@media screen and (min-width: 768px) {
106+
font-size: 18px;
107+
}
108+
}
109+
}
110+
```
94111
- This repository uses flexbox for arranging content. The use of any extra CSS libraries should be discussed with the team
95112

96113
JavaScript

app/directives/external-account/external-link-data.directive.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.external-link-tile(ng-repeat="account in linkedAccountsData", ng-class="{'external-link-tile--editable' : editable, 'external-link-tile--pending' : account.status === 'PENDING' || account.data.status === 'PENDING'}", ng-click="openLink(account)")
33
.top
44
.ext-link-tile_edit-header(ng-show="editable && account.provider === 'weblink'")
5-
.ext-link-tile_edit-header_delete(ng-click="confirmDeletion(account)", ng-class="{'ext-link-tile_edit-header_delete--disabled': account.deletingAccount || account.status === 'PENDING'}")
5+
.ext-link-tile_edit-header_delete(ng-click="confirmDeletion(account)", ng-class="{'ext-link-tile_edit-header_delete--disabled': account.deletingAccount || account.status === 'PENDING'}", prevent-event-propagation)
66
div.logo
77
i.fa(ng-class="(account|providerData:'className') || 'fa-globe'")
88
h2 {{account|providerData:"displayName"}}

app/filters/challengeLinks.filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
case 'forums':
1717
return String.supplant('https://apps.{domain}/forums/?module=ThreadList&forumID={forumId}', data);
1818
case 'registrants':
19-
return String.supplant('https://community.{domain}/longcontest/?module=ViewStandings&rd={roundId}', data);
19+
return String.supplant('https://community.{domain}/longcontest/?module=ViewRegistrants&rd={roundId}', data);
2020
case 'detail':
2121
return String.supplant('https://community.{domain}/longcontest/stats/?module=ViewOverview&rd={roundId}', data);
2222
}

app/filters/filters.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('filters', function() {
9595
};
9696
expect(challengeLinksFilter(_ch, 'detail')).to.be.equal('https://community.'+domain+'/longcontest/stats/?module=ViewOverview&rd=3');
9797
expect(challengeLinksFilter(_ch, 'forums')).to.be.equal('https://apps.'+domain+'/forums/?module=ThreadList&forumID=2');
98-
expect(challengeLinksFilter(_ch, 'registrants')).to.be.equal('https://community.'+domain+'/longcontest/?module=ViewStandings&rd=3');
98+
expect(challengeLinksFilter(_ch, 'registrants')).to.be.equal('https://community.'+domain+'/longcontest/?module=ViewRegistrants&rd=3');
9999
});
100100
});
101101

app/services/tcAuth.service.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33

44
angular.module('tc.services').factory('TcAuthService', TcAuthService);
55

6-
TcAuthService.$inject = ['CONSTANTS', 'auth', 'AuthTokenService', '$rootScope', '$q', '$log', '$timeout', 'UserService', 'Helpers', 'ApiService', 'store'];
6+
TcAuthService.$inject = ['CONSTANTS', 'auth', 'AuthTokenService', '$rootScope', '$q', '$log', '$timeout', 'UserService', 'Helpers', 'ApiService', 'store', '$http'];
77

8-
function TcAuthService(CONSTANTS, auth, AuthTokenService, $rootScope, $q, $log, $timeout, UserService, Helpers, ApiService, store) {
8+
function TcAuthService(CONSTANTS, auth, AuthTokenService, $rootScope, $q, $log, $timeout, UserService, Helpers, ApiService, store, $http) {
99
$log = $log.getInstance("TcAuthServicetcAuth");
1010
var auth0 = auth;
11+
var apiUrl = CONSTANTS.AUTH_API_URL;
1112
var service = {
1213
login: login,
1314
socialLogin: socialLogin,
@@ -162,10 +163,29 @@
162163
}
163164

164165
function logout() {
166+
// options for DELETE http call
167+
var logoutOptions = {
168+
url: apiUrl + '/authorizations/1',
169+
method: 'DELETE',
170+
headers: {
171+
'Authorization': "Bearer " + AuthTokenService.getV3Token()
172+
}
173+
};
174+
175+
176+
// logout of all browsers
165177
return $q(function(resolve, reject) {
178+
// remove local token
166179
AuthTokenService.removeTokens();
167180
$rootScope.$broadcast(CONSTANTS.EVENT_USER_LOGGED_OUT);
168181
resolve();
182+
// $http(logoutOptions).then(function(res) {
183+
// $log.log('logout successful');
184+
// resolve();
185+
// }).catch(function(resp) {
186+
// $log.error('logout error');
187+
// reject();
188+
// });
169189
});
170190
}
171191

app/sitemap/sitemap.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
li
2424
a(href="/community/design") Design
2525
li
26-
a(href="/community/devlopment") Development
26+
a(href="/community/development") Development
2727
li
2828
a(href="/community/data-science") Data Science
2929
li

assets/css/directives/external-link-deletion-confirm.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
.deletion-confirmation-message {
30-
@include merriweather-sans-regular;//TODO use sansbook font
30+
@include font-with-weight('Merriweather Sans', 300);
3131

3232
.deletion-confirmation-account-title {
3333
font-style: italic;

0 commit comments

Comments
 (0)