Skip to content

Commit

Permalink
Release v3.6.0 (#370 from ushahidi/release/sprint-11)
Browse files Browse the repository at this point in the history
Release Sprint 11 changes (v3.6.0)
  • Loading branch information
rjmackay authored Oct 17, 2016
2 parents 0e952f0 + 10385d1 commit 7ad6c5a
Show file tree
Hide file tree
Showing 340 changed files with 2,182 additions and 2,830 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ notifications:
notify: true
slack:
secure: MG3wEGLelQgasOVa5SyNbIfGWpvsmKZPF9moTrbLSrDgMptMxThSIDfVuAHvpBGsOw9o+izbTD26sbt1OQE9A9ipJfxUxZ+/LmYvaG0rSWvYEX9dIw9qp84pFyqwuO7nZlReeM7Ye9A2hYTBCZjqUsg8pwUlUUv065X3Qhp2IbY=
addons:
sauce_connect: true
#addons:
# sauce_connect: true
language: node_js
matrix:
include:
Expand Down
22 changes: 6 additions & 16 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,16 @@ require('angular-filter');
require('angular-local-storage');
require('checklist-model');
require('ngGeolocation/ngGeolocation');
require('ng-showdown/src/ng-showdown');
require('ng-showdown');
window.d3 = require('d3'); // Required for nvd3
require('./common/wrapper/nvd3-wrapper');
require('angular-nvd3/src/angular-nvd3');
require('angular-cache');

// Load ushahidi modules
require('./frame/frame-module.js');
require('./common/common-module.js');
require('./post/post-module.js');
require('./activity/activity-module.js');
require('./setting/setting-module.js');
require('./plans/plans-module.js');
require('./set/set-module.js');
require('./user-profile/user-profile-module.js');
require('./main/main-module.js');
require('./settings/settings.module.js');

// Stub ngRaven module incase its not configured
angular.module('ngRaven', []);
Expand Down Expand Up @@ -73,19 +68,14 @@ angular.module('app',
'angular-datepicker',
'leaflet-directive',
'angular.filter',
'showdown',
'ng-showdown',
'ngGeolocation',
'nvd3',
'angular-cache',
'ngRaven',
'ushahidi.frame',
'ushahidi.common',
'ushahidi.posts',
'ushahidi.tools',
'ushahidi.plans',
'ushahidi.sets',
'ushahidi.activity',
'ushahidi.user-profile'
'ushahidi.main',
'ushahidi.settings'
])

.constant('CONST', {
Expand Down
20 changes: 10 additions & 10 deletions app/common/auth/authentication-interceptor.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@ function AuthInterceptor($rootScope, $injector, $q, CONST, Session, _) {

var accessToken = Session.getSessionDataEntry('accessToken');

// if we already have an accessToken,
// we will set it straight ahead
// and resolve the promise for the config hash
if (accessToken !== undefined && accessToken !== null) {
// if we already have an accessToken,
// we will set it straight ahead
// and resolve the promise for the config hash
config.headers.Authorization = 'Bearer ' + accessToken;
deferred.resolve(config);

// otherwise, we will ask the backend
// via the client credentials oauth flow
// for an anonymous accessToken
// (for some resources, of course,
// this authorization level is not enough
// and a 403 or 401 will be thrown
// which results in showing the login page)
} else {
// otherwise, we will ask the backend
// via the client credentials oauth flow
// for an anonymous accessToken
// (for some resources, of course,
// this authorization level is not enough
// and a 403 or 401 will be thrown
// which results in showing the login page)
getClientCredsToken(config).then(deferred.resolve, deferred.reject);
}
return deferred.promise;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/common/auth/login.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Login() {
restrict: 'E',
scope: {},
controller: LoginController,
templateUrl: 'templates/auth/login.html'
templateUrl: 'templates/common/auth/login.html'
};
}
LoginController.$inject = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<input id="password" type="password" ng-model="password" ng-disabled="processing" required>
<p><a ng-click="forgotPassword()" translate>nav.forgotyourpassword</a></p>
</div>

</div>
<div class="modal-actions">
<div class="form-field">
<button type="button" class="button-link" ng-click="cancel()" ng-show="showCancel" translate="app.cancel">Cancel</button>
<button type="submit" class="button-alpha" ng-disabled="loginForm.$invalid || processing" translate="nav.login">Login</button>
Expand Down
2 changes: 1 addition & 1 deletion app/common/auth/password-reset-confirm.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function PasswordResetConfirmDirective() {
restrict: 'E',
scope: true,
controller: PasswordResetConfirmController,
templateUrl: 'templates/auth/password-reset-confirm.html'
templateUrl: 'templates/common/auth/password-reset-confirm.html'
};
}
PasswordResetConfirmController.$inject = [
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/common/auth/password-reset.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function PasswordResetDirective() {
restrict: 'E',
scope: true,
controller: PasswordResetController,
templateUrl: 'templates/auth/password-reset.html'
templateUrl: 'templates/common/auth/password-reset.html'
};
}
PasswordResetController.$inject = [
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/common/auth/register.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function RegisterDirective() {
restrict: 'E',
scope: {},
controller: RegisterController,
templateUrl: 'templates/auth/register.html'
templateUrl: 'templates/common/auth/register.html'
};
}
RegisterController.$inject = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@
</div>

</div>
</div>

<div class="modal-actions">
<div class="form-field">
<button type="button" class="button-link" ng-click="cancel()" translate="app.cancel">Cancel</button>
<button type="submit" class="button-alpha" ng-disabled="form.$invalid || processing" translate="nav.register">Sign up</button>
Expand Down
15 changes: 4 additions & 11 deletions app/common/common-module.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
angular.module('ushahidi.common', [
'ushahidi.common.adaptive-input',
'ushahidi.common.dropdown',
'ushahidi.common.accordion',
'ushahidi.common.offcanvas',
'ushahidi.common.modal',
'ushahidi.common.custom-on-change',
'ushahidi.common.file-upload',
'ushahidi.common.sticky-sidebar'
'ushahidi.user-profile'
])

// Authentication
Expand Down Expand Up @@ -50,9 +47,6 @@ angular.module('ushahidi.common', [
.service('ViewHelper', require('./services/view-helper.js'))
.service('Features', require('./services/features.js'))
.service('Util', require('./services/util.js'))
.service('DataRetriever', require('./services/data-retriever.js'))
.service('multiTranslate', require('./services/multi-translate.js'))
.service('GlobalFilter', require('./services/global-filter.js'))
.service('Maps', require('./services/maps.js'))
.service('Geocoding', require('./services/geocoding.js'))
.service('Languages', require('./services/languages.js'))
Expand Down Expand Up @@ -85,6 +79,8 @@ angular.module('ushahidi.common', [
.directive('filterRole', require('./directives/filter-system/filter-role.js'))
.directive('overflowToggle', require('./directives/filter-system/overflow-toggle.js'))
.directive('focus', require('./directives/focus.js'))
.directive('modeBar', require('./directives/mode-bar/mode-bar.directive.js'))
.directive('fileUpload', require('./directives/file-upload.directive.js'))

// Event actions
.constant('EVENT', {
Expand All @@ -108,9 +104,6 @@ angular.module('ushahidi.common', [
// Load submodules
require('./directives/adaptive-input.js');
require('./directives/dropdown.js');
require('./directives/accordion.js');
require('./directives/offcanvas.js');
require('./directives/modal.js');
require('./directives/custom-on-change.js');
require('./directives/file-upload.js');
require('./directives/sticky-sidebar.js');
require('./user-profile/user-profile-module.js');
2 changes: 1 addition & 1 deletion app/common/common-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = ['$routeProvider', '$locationProvider', function ($routeProvide
})
.when('/forbidden', {
controller: require('./auth/forbidden.controller.js'),
templateUrl: 'templates/auth/forbidden.html'
templateUrl: 'templates/common/auth/forbidden.html'
})
.when('/register', {
controller: require('./auth/register.controller.js'),
Expand Down
2 changes: 1 addition & 1 deletion app/common/configs/ui-bootstrap-template-decorators.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function (
$provide.decorator('uibPaginationDirective', ['$delegate', function ($delegate) {
//we now get an array of all the pagination directives,
//and use the first one
$delegate[0].templateUrl = 'templates/angular-ui-bootstrap/pagination/pagination.html';
$delegate[0].templateUrl = 'templates/common/configs/uib-pagination.html';
return $delegate;
}]);
}];
File renamed without changes.
166 changes: 0 additions & 166 deletions app/common/directives/accordion.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../../img/iconic-sprite.svg#grid-three-up"></use>
</svg>
<span class="button-label" translate>set.add_to_collection</span>
<ng-include src="'templates/common/collection-selector/collection-selector-modal.html'" include-replace></ng-include>
<ng-include src="'templates/common/directives/collection-selector-modal.html'" include-replace></ng-include>
</button>
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ function (
$rootScope.$emit('collectionToggle:show', selectedPostObjects);
};
},
templateUrl: 'templates/common/collection-toggle/collection-toggle-button.html'
templateUrl: 'templates/common/directives/collection-toggle/collection-toggle-button.html'
};
}];
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ function (
$rootScope.$emit('collectionToggle:show', [$scope.post]);
};
},
templateUrl: 'templates/common/collection-toggle/collection-toggle-link.html'
templateUrl: 'templates/common/directives/collection-toggle/collection-toggle-link.html'
};
}];
File renamed without changes.
Loading

0 comments on commit 7ad6c5a

Please sign in to comment.