Skip to content

Commit

Permalink
Initial Release Online Banking App 1.3.0 (#100)
Browse files Browse the repository at this point in the history
* Fix #13, Broken gulp styles task

* Fix #15, Adds Basic travis.yml

* Fix #10, Update Login Page Style

* Update the copy

* Fix #18, Updated Nav Styles

* Fix #20, pagination issue

* Add eslint for project

* Fix login flow

Able to open pages even after auth data cleared, Access token not added
even if auth data present on page refresh

Remove duplicate authentication.html
Also fix the width of the login screen page

Added Client ID in LocalStorage for later access

* Accounts UI added

Fixed Datatable Issue

* Feat: Recent Transactions, Fix #15

Minor Fixes to recent transactions features

Fix #28, Rename recent-transaction to recent-transactions

* Fix #14, Charges Feature Added

* Fix #23, Added Transfer Option

* Added Multi Language Support

Fix #33, Refactored all views for multi lang support

* Feat: Beneficiaries Module

 Fix #31, Added Beneficiaries List

 feat: Add Beneficiary

 fix #40 Added Delete beneficiary feature

Resolved Merge Conflict on Edit Beneficiary Feature

Fix #38, Accounts UI Crashing

clear form

* Refactor Unused client list and client view

Fix #48, Added 404 page, redirecting to 404 when not found

Fix #55, refactor into accounts

* #38 Maps en locale to preferred and fallback language. Adds escape sanitization strategy.

* Updated gulp scripts to make a deployable build

Fix #70 added hashed builds

* Refactor tenant into constants file

* Added loan application form

* Fixes #42, Added Third Party Transfer Feature

* added dashboard cards

Added charts to dashboard

* Reopens #49

* updated account details

* Updated bower dependecies and updated breaking UI code

* Login error handle

Handle Login Code

* fix: Issue #45 - Values are not exceeding Boundaries

* fix: Issue#65 Prevent access to login page if user already logged in

* Fix #75 Removed redundant files from tpt directory

* Fix #68 Clear textfields on pressing Cancel

* fix: #78 added hamburger on the left side

* fix: #88 added client image info

* Added Routes for forgot and register screens

- Added Register Screen
- Added Forgot Screen

API not available on Staging

Create register and forgot api fix

* Added http interceptor

* Update Self-Service App Version
  • Loading branch information
botraunak authored Apr 28, 2018
1 parent decc1e6 commit 4011895
Show file tree
Hide file tree
Showing 97 changed files with 13,481 additions and 1,285 deletions.
17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "eslint:recommended",
"plugins": [
"angular"
],
"rules": {
"angular/controller-as": 0
},
"env": {
"browser": true,
"jasmine": true,
"jquery": true
},
"globals": {
"angular": true
}
}
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "4"
84 changes: 28 additions & 56 deletions app/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
'use strict';
//IS thsichaneg hknjseff
angular.module('selfService')

.config(function ($mdThemingProvider, $mdIconProvider, $httpProvider, BASE_URL) {
.config(function ($mdThemingProvider, $mdIconProvider, $httpProvider, $translateProvider, TENANT_IDENTIFIER) {

$mdThemingProvider
.theme('default')
.primaryPalette('blue', {
'default': '600'
})
.accentPalette('teal', {
.accentPalette('pink', {
'default': '500'
})
.warnPalette('defaultPrimary');
Expand Down Expand Up @@ -50,67 +49,40 @@

$mdIconProvider
.icon('user', 'assets/images/user.svg', 64);


//$httpProvider.interceptors.push('httpRequestInterceptor');

$httpProvider.defaults.useXDomain = true;
//Set headers
$httpProvider.defaults.headers.common['Content-Type'] = 'application/json; charset=utf-8';
// Mifos set Tenant
$httpProvider.defaults.headers.common['Fineract-Platform-TenantId'] = 'default';
$httpProvider.defaults.headers.common['Fineract-Platform-TenantId'] = TENANT_IDENTIFIER;
$httpProvider.interceptors.push('APIRequestInterceptor');

var defaultLocale = 'en';
$translateProvider
.useStaticFilesLoader({
prefix: 'global-translations/locale-',
suffix: '.json'
})
.useSanitizeValueStrategy('escape')
.preferredLanguage(defaultLocale)
.fallbackLanguage(defaultLocale);
}
)

.run(['$rootScope', function($rootScope) {
$rootScope.userDetails = {};
$rootScope.userDetails.partyDetail = {};
if(localStorage.getItem("userDetails")){
$rootScope.userDetails = JSON.parse(localStorage.getItem("userDetails"));
$rootScope.auth = localStorage.getItem("auth");
}
.run(['$rootScope', '$location', 'AuthService', function($rootScope, $location, AuthService) {
$rootScope.$on('$locationChangeStart', function (event, next, current) {
// redirect to login page if not logged in and trying to access a restricted page
var restrictedPage = $.inArray($location.path(), ['/login', '/forgot', '/register']) === -1;
var loggedIn = AuthService.isAuthenticated();
if (restrictedPage) {
if(!loggedIn) {
$location.path('/login');
}
}
else if(loggedIn) {
event.preventDefault();
}
});
}])

// .factory('httpRequestInterceptor', ['$rootScope', function($rootScope) {
// return {
// request: function($config) {
// $config.headers['Authorization'] = 'Basic ' + $rootScope.auth;
// return $config;
// }
// }
// }])

// .run(function($rootScope, $window, $state, LoginService, AUTH_EVENTS) {
// $rootScope.$on('$stateChangeStart', function (event, next, nextParams, fromState) {
// if ('data' in next && 'authorizedRoles' in next.data) {
// var authorizedRoles = next.data.authorizedRoles;
// if (!LoginService.isAuthorized(authorizedRoles)) {
// event.preventDefault();
// if($state.current.name.length == 0) {
// $state.go('login')
// } else {
// $state.go($state.current, {}, {reload: true});
// $rootScope.$broadcast(AUTH_EVENTS.notAuthorized);
// $("background").remove();
// }
// }
// }

// if (LoginService.isAuthenticated()) {
// $("background").remove();
// if (next.name == 'login') {
// event.preventDefault();
// if($state.current.name.length == 0) {
// $state.go('app.did')
// } else {
// $state.go($state.current, {}, {reload: true});
// $rootScope.$broadcast(AUTH_EVENTS.notAuthorized);
// }
// }
// }
// });

// });

})();
})();
3 changes: 2 additions & 1 deletion app/app.constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
notAuthenticated: 'auth-not-authenticated'
})

.constant("TENANT_IDENTIFIER", "default")

.constant('USER_ROLES', {
user: 'USER'
});

})();
11 changes: 5 additions & 6 deletions app/app.modules.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
(function(){
'use strict';
(function () {
'use strict';

angular.module('selfService', [

angular.module('selfService', [
'ngAnimate',
'ngCookies',
'ngSanitize',
'ngResource',
'ui.router',
'ngMaterial',
'nvd3',
'md.data.table'

'md.data.table',
'pascalprecht.translate'
])

})();
Loading

0 comments on commit 4011895

Please sign in to comment.