Commit 9835dbe3ed9cd206d661a1fe2be29fa34a6bad8e
1 parent
988ec12e44
Exists in
master
module name changes
Showing
20 changed files
with
28 additions
and
33 deletions
Show diff stats
app/index.html
1 | <!-- | ||
2 | * INSPINIA - Responsive Admin Theme | ||
3 | * Version 2.7 | ||
4 | * | ||
5 | --> | ||
6 | 1 | ||
7 | <!DOCTYPE html> | 2 | <!DOCTYPE html> |
8 | <html ng-app="inspinia"> | 3 | <html ng-app="acuefuel"> |
9 | 4 | ||
10 | <head> | 5 | <head> |
11 | 6 | ||
12 | <meta charset="utf-8"> | 7 | <meta charset="utf-8"> |
13 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 8 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
14 | 9 | ||
15 | <!-- Page title set in pageTitle directive --> | 10 | <!-- Page title set in pageTitle directive --> |
16 | <title page-title></title> | 11 | <title page-title></title> |
17 | 12 | ||
18 | <!-- Google Open Sans --> | 13 | <!-- Google Open Sans --> |
19 | <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'> | 14 | <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'> |
20 | 15 | ||
21 | <!-- build:css(.) styles/vendor.css --> | 16 | <!-- build:css(.) styles/vendor.css --> |
22 | <!-- bower:css --> | 17 | <!-- bower:css --> |
23 | <!-- Font awesome --> | 18 | <!-- Font awesome --> |
24 | <link href="bower_components/fontawesome/css/font-awesome.min.css" rel="stylesheet"> | 19 | <link href="bower_components/fontawesome/css/font-awesome.min.css" rel="stylesheet"> |
25 | 20 | ||
26 | <!-- Bootstrap --> | 21 | <!-- Bootstrap --> |
27 | <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> | 22 | <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> |
28 | <link href="styles/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"> | 23 | <link href="styles/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"> |
29 | <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet"> | 24 | <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet"> |
30 | <link rel="stylesheet" href="bower_components/angular-loading-bar/build/loading-bar.min.css" type="text/css"> | 25 | <link rel="stylesheet" href="bower_components/angular-loading-bar/build/loading-bar.min.css" type="text/css"> |
31 | 26 | ||
32 | <!-- Toastr --> | 27 | <!-- Toastr --> |
33 | <link href="bower_components/toastr/toastr.min.css" rel="stylesheet"> | 28 | <link href="bower_components/toastr/toastr.min.css" rel="stylesheet"> |
34 | 29 | ||
35 | <!-- Main Inspinia CSS files --> | 30 | <!-- Main Acuefuel CSS files --> |
36 | <!-- endbower --> | 31 | <!-- endbower --> |
37 | <!-- endbuild --> | 32 | <!-- endbuild --> |
38 | 33 | ||
39 | <!-- build:css({.tmp,app}) styles/style.css --> | 34 | <!-- build:css({.tmp,app}) styles/style.css --> |
40 | <link href="styles/animate.css" rel="stylesheet"> | 35 | <link href="styles/animate.css" rel="stylesheet"> |
41 | <link href="styles/style.css" rel="stylesheet"> | 36 | <link href="styles/style.css" rel="stylesheet"> |
42 | <link rel="stylesheet" type="text/css" href="plugins/iCheck/custom.css"> | 37 | <link rel="stylesheet" type="text/css" href="plugins/iCheck/custom.css"> |
43 | <link rel="stylesheet" type="text/css" href="plugins/dataTables/datatables.min.css"> | 38 | <link rel="stylesheet" type="text/css" href="plugins/dataTables/datatables.min.css"> |
44 | <!-- endbuild --> | 39 | <!-- endbuild --> |
45 | 40 | ||
46 | 41 | ||
47 | 42 | ||
48 | </head> | 43 | </head> |
49 | 44 | ||
50 | <!-- ControllerAs syntax --> | 45 | <!-- ControllerAs syntax --> |
51 | <!-- Main controller with serveral data used in Inspinia theme on diferent view --> | 46 | <!-- Main controller with serveral data used in Acuefuel theme on diferent view --> |
52 | <body> | 47 | <body> |
53 | 48 | ||
54 | <!-- Main view --> | 49 | <!-- Main view --> |
55 | <div ui-view></div> | 50 | <div ui-view></div> |
56 | 51 | ||
57 | 52 | ||
58 | <!-- build:js(.) scripts/vendor.js --> | 53 | <!-- build:js(.) scripts/vendor.js --> |
59 | 54 | ||
60 | <!-- jQuery and Bootstrap --> | 55 | <!-- jQuery and Bootstrap --> |
61 | <script src="bower_components/jquery/dist/jquery.min.js"></script> | 56 | <script src="bower_components/jquery/dist/jquery.min.js"></script> |
62 | <script src="bower_components/jquery-ui/jquery-ui.min.js"></script> | 57 | <script src="bower_components/jquery-ui/jquery-ui.min.js"></script> |
63 | <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> | 58 | <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> |
64 | 59 | ||
65 | <!-- MetsiMenu --> | 60 | <!-- MetsiMenu --> |
66 | <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script> | 61 | <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script> |
67 | 62 | ||
68 | <!-- SlimScroll --> | 63 | <!-- SlimScroll --> |
69 | <script src="bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script> | 64 | <script src="bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script> |
70 | 65 | ||
71 | <!-- inspinia --> | 66 | <!-- inspinia --> |
72 | <script src="scripts/inspinia.js"></script> | 67 | <script src="scripts/inspinia.js"></script> |
73 | 68 | ||
74 | <!-- Peace JS --> | 69 | <!-- Peace JS --> |
75 | <script src="bower_components/pace/pace.min.js"></script> | 70 | <script src="bower_components/pace/pace.min.js"></script> |
76 | 71 | ||
77 | <!-- Angular scripts--> | 72 | <!-- Angular scripts--> |
78 | <script src="bower_components/angular/angular.min.js"></script> | 73 | <script src="bower_components/angular/angular.min.js"></script> |
79 | <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script> | 74 | <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script> |
80 | <script src="bower_components/angular-cookies/angular-cookies.min.js"></script> | 75 | <script src="bower_components/angular-cookies/angular-cookies.min.js"></script> |
81 | <script src="bower_components/angular-resource/angular-resource.min.js"></script> | 76 | <script src="bower_components/angular-resource/angular-resource.min.js"></script> |
82 | <script src="bower_components/angular-animate/angular-animate.min.js"></script> | 77 | <script src="bower_components/angular-animate/angular-animate.min.js"></script> |
83 | <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> | 78 | <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> |
84 | <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script> | 79 | <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script> |
85 | <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script> | 80 | <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script> |
86 | <script src="bower_components/ng-file-upload/ng-file-upload-shim.min.js"></script> | 81 | <script src="bower_components/ng-file-upload/ng-file-upload-shim.min.js"></script> |
87 | <script src="bower_components/ng-file-upload/ng-file-upload.min.js"></script> | 82 | <script src="bower_components/ng-file-upload/ng-file-upload.min.js"></script> |
88 | <script src="bower_components/angular-loading-bar/build/loading-bar.min.js"></script> | 83 | <script src="bower_components/angular-loading-bar/build/loading-bar.min.js"></script> |
89 | 84 | ||
90 | 85 | ||
91 | <!-- Toastr scripts--> | 86 | <!-- Toastr scripts--> |
92 | <script src="bower_components/toastr/toastr.min.js"></script> | 87 | <script src="bower_components/toastr/toastr.min.js"></script> |
93 | 88 | ||
94 | <!-- Angular Dependiences --> | 89 | <!-- Angular Dependiences --> |
95 | <!-- --> | 90 | <!-- --> |
96 | <!-- --> | 91 | <!-- --> |
97 | <!-- --> | 92 | <!-- --> |
98 | 93 | ||
99 | <!-- endbuild --> | 94 | <!-- endbuild --> |
100 | 95 | ||
101 | <!-- build:js({.tmp,app}) scripts/scripts.js --> | 96 | <!-- build:js({.tmp,app}) scripts/scripts.js --> |
102 | <!-- Custom and plugin javascript --> | 97 | <!-- Custom and plugin javascript --> |
103 | 98 | ||
104 | <script src="plugins/iCheck/icheck.min.js"></script> | 99 | <script src="plugins/iCheck/icheck.min.js"></script> |
105 | <script src="plugins/dataTables/datatables.min.js"></script> | 100 | <script src="plugins/dataTables/datatables.min.js"></script> |
106 | 101 | ||
107 | <!-- Anglar App Script --> | 102 | <!-- Anglar App Script --> |
108 | <script src="scripts/app.js"></script> | 103 | <script src="scripts/app.js"></script> |
109 | <script src="scripts/constant.js"></script> | 104 | <script src="scripts/constant.js"></script> |
110 | <script src="scripts/config.js"></script> | 105 | <script src="scripts/config.js"></script> |
111 | <script src="scripts/directives.js"></script> | 106 | <script src="scripts/directives.js"></script> |
112 | <script src="scripts/controllers.js"></script> | 107 | <script src="scripts/controllers.js"></script> |
113 | <script src="views/fbo-admin/dashboard.controller.js"></script> | 108 | <script src="views/fbo-admin/dashboard.controller.js"></script> |
114 | <script src="views/fbo-admin/dashboard.service.js"></script> | 109 | <script src="views/fbo-admin/dashboard.service.js"></script> |
115 | <script src="views/fbo-flight/flightDept.controller.js"></script> | 110 | <script src="views/fbo-flight/flightDept.controller.js"></script> |
116 | <script src="views/fbo-flight/flightDeptService.js"></script> | 111 | <script src="views/fbo-flight/flightDeptService.js"></script> |
117 | <script src="views/update-airports/updateAirportController.js"></script> | 112 | <script src="views/update-airports/updateAirportController.js"></script> |
118 | <script src="views/update-airports/updateAirportService.js"></script> | 113 | <script src="views/update-airports/updateAirportService.js"></script> |
119 | <script src="views/login/login.service.js"></script> | 114 | <script src="views/login/login.service.js"></script> |
120 | <script src="views/login/login.controller.js"></script> | 115 | <script src="views/login/login.controller.js"></script> |
121 | <script src="views/updateAllFBO/updateAllFBO.controller.js"></script> | 116 | <script src="views/updateAllFBO/updateAllFBO.controller.js"></script> |
122 | <script src="views/updateAllFBO/updateAllFBO.service.js"></script> | 117 | <script src="views/updateAllFBO/updateAllFBO.service.js"></script> |
123 | <script src="views/fbo-Clients/fboClient.controller.js"></script> | 118 | <script src="views/fbo-Clients/fboClient.controller.js"></script> |
124 | <script src="views/fbo-Clients/fboClient.service.js"></script> | 119 | <script src="views/fbo-Clients/fboClient.service.js"></script> |
125 | <!-- endbuild --> | 120 | <!-- endbuild --> |
126 | 121 | ||
127 | </body> | 122 | </body> |
128 | </html> | 123 | </html> |
129 | 124 |
app/scripts/app.js
1 | /** | 1 | /** |
2 | * INSPINIA - Responsive Admin Theme | 2 | * acuefuel - Responsive Admin Theme |
3 | * | 3 | * |
4 | */ | 4 | */ |
5 | (function () { | 5 | (function () { |
6 | angular.module('inspinia', [ | 6 | angular.module('acuefuel', [ |
7 | 'ngCookies', // angular-cookies | 7 | 'ngCookies', // angular-cookies |
8 | 'ngResource', //angular resouce | 8 | 'ngResource', //angular resouce |
9 | 'ngAnimate', // angular animate | 9 | 'ngAnimate', // angular animate |
10 | 'ui.router', // Routing | 10 | 'ui.router', // Routing |
11 | 'ui.bootstrap', // Bootstrap | 11 | 'ui.bootstrap', // Bootstrap |
12 | 'ngFileUpload', // File Upload | 12 | 'ngFileUpload', // File Upload |
13 | 'angular-loading-bar' //angular loading bar | 13 | 'angular-loading-bar' //angular loading bar |
14 | 14 | ||
15 | ]) | 15 | ]) |
16 | 16 | ||
17 | .config(['$httpProvider', function($httpProvider) { | 17 | .config(['$httpProvider', function($httpProvider) { |
18 | $httpProvider.defaults.withCredentials = true; | 18 | $httpProvider.defaults.withCredentials = true; |
19 | $httpProvider.interceptors.push('myCSRF'); | 19 | $httpProvider.interceptors.push('myCSRF'); |
20 | $httpProvider.interceptors.push('httpRequestInterceptor'); | 20 | $httpProvider.interceptors.push('httpRequestInterceptor'); |
21 | }]) | 21 | }]) |
22 | 22 | ||
23 | 23 | ||
24 | .factory('httpRequestInterceptor', ['$q', '$rootScope', '$location', function($q, $rootScope, $location) { | 24 | .factory('httpRequestInterceptor', ['$q', '$rootScope', '$location', function($q, $rootScope, $location) { |
25 | return { | 25 | return { |
26 | request: function($config) { | 26 | request: function($config) { |
27 | return $config; | 27 | return $config; |
28 | }, | 28 | }, |
29 | responseError: function(rejection) { | 29 | responseError: function(rejection) { |
30 | if (rejection.status === 401) { | 30 | if (rejection.status === 401) { |
31 | if($location.path() != "/login"){ | 31 | if($location.path() != "/login"){ |
32 | localStorage.clear(); | 32 | localStorage.clear(); |
33 | window.location.reload(); | 33 | window.location.reload(); |
34 | } | 34 | } |
35 | } | 35 | } |
36 | return $q.reject(rejection); | 36 | return $q.reject(rejection); |
37 | } | 37 | } |
38 | } | 38 | } |
39 | }]) | 39 | }]) |
40 | 40 | ||
41 | 41 | ||
42 | // .run(function($rootScope, $window, $state, $location, LoginService) { | 42 | // .run(function($rootScope, $window, $state, $location, LoginService) { |
43 | // $rootScope.$on('$stateChangeStart', function(event, next, nextParams, fromState) { | 43 | // $rootScope.$on('$stateChangeStart', function(event, next, nextParams, fromState) { |
44 | // var loginStatus = localStorage.getItem("loginStatus"); | 44 | // var loginStatus = localStorage.getItem("loginStatus"); |
45 | // if (loginStatus == null) { | 45 | // if (loginStatus == null) { |
46 | // if (next.url == "/login" || next.url == "/signup" || next.url == "/forgot-password") { | 46 | // if (next.url == "/login" || next.url == "/signup" || next.url == "/forgot-password") { |
47 | // // if route already going to #login, no redirect needed | 47 | // // if route already going to #login, no redirect needed |
48 | // } else { | 48 | // } else { |
49 | // // another route, we should redirect now | 49 | // // another route, we should redirect now |
50 | // $window.location.href = '#/login'; | 50 | // $window.location.href = '#/login'; |
51 | // event.preventDefault(); | 51 | // event.preventDefault(); |
52 | // } | 52 | // } |
53 | // } else { | 53 | // } else { |
54 | // if (next.name == 'login') { | 54 | // if (next.name == 'login') { |
55 | // event.preventDefault(); | 55 | // event.preventDefault(); |
56 | // if ($state.current.name.length == 0) { | 56 | // if ($state.current.name.length == 0) { |
57 | // $state.go('app.upload'); | 57 | // $state.go('app.upload'); |
58 | // } else { | 58 | // } else { |
59 | // $state.go($state.current, {}, {reload: true}); | 59 | // $state.go($state.current, {}, {reload: true}); |
60 | // } | 60 | // } |
61 | // } | 61 | // } |
62 | // } | 62 | // } |
63 | // }); | 63 | // }); |
64 | // }) | 64 | // }) |
65 | 65 | ||
66 | .provider('myCSRF',[function(){ | 66 | .provider('myCSRF',[function(){ |
67 | var headerName = 'X-CSRFToken'; | 67 | var headerName = 'X-CSRFToken'; |
68 | var cookieName = 'csrftoken'; | 68 | var cookieName = 'csrftoken'; |
69 | var allowedMethods = ['GET']; | 69 | var allowedMethods = ['GET']; |
70 | 70 | ||
71 | this.setHeaderName = function(n) { | 71 | this.setHeaderName = function(n) { |
72 | headerName = n; | 72 | headerName = n; |
73 | } | 73 | } |
74 | this.setCookieName = function(n) { | 74 | this.setCookieName = function(n) { |
75 | cookieName = n; | 75 | cookieName = n; |
76 | } | 76 | } |
77 | this.setAllowedMethods = function(n) { | 77 | this.setAllowedMethods = function(n) { |
78 | allowedMethods = n; | 78 | allowedMethods = n; |
79 | } | 79 | } |
80 | this.$get = ['$cookies', function($cookies){ | 80 | this.$get = ['$cookies', function($cookies){ |
81 | return { | 81 | return { |
82 | 'request': function(config) { | 82 | 'request': function(config) { |
83 | if(allowedMethods.indexOf(config.method) === -1) { | 83 | if(allowedMethods.indexOf(config.method) === -1) { |
84 | // do something on success | 84 | // do something on success |
85 | config.headers[headerName] = $cookies[cookieName]; | 85 | config.headers[headerName] = $cookies[cookieName]; |
86 | } | 86 | } |
87 | return config; | 87 | return config; |
88 | } | 88 | } |
89 | } | 89 | } |
90 | }]; | 90 | }]; |
91 | }]) | 91 | }]) |
92 | 92 | ||
93 | .directive('icheck', ['$timeout', '$parse', function($timeout, $parse) { | 93 | .directive('icheck', ['$timeout', '$parse', function($timeout, $parse) { |
94 | return { | 94 | return { |
95 | restrict: 'A', | 95 | restrict: 'A', |
96 | require: '?ngModel', | 96 | require: '?ngModel', |
97 | link: function(scope, element, attr, ngModel) { | 97 | link: function(scope, element, attr, ngModel) { |
98 | $timeout(function() { | 98 | $timeout(function() { |
99 | var value = attr.value; | 99 | var value = attr.value; |
100 | 100 | ||
101 | function update(checked) { | 101 | function update(checked) { |
102 | if(attr.type==='radio') { | 102 | if(attr.type==='radio') { |
103 | ngModel.$setViewValue(value); | 103 | ngModel.$setViewValue(value); |
104 | } else { | 104 | } else { |
105 | ngModel.$setViewValue(checked); | 105 | ngModel.$setViewValue(checked); |
106 | } | 106 | } |
107 | } | 107 | } |
108 | 108 | ||
109 | $(element).iCheck({ | 109 | $(element).iCheck({ |
110 | checkboxClass: attr.checkboxClass || 'icheckbox_square-green', | 110 | checkboxClass: attr.checkboxClass || 'icheckbox_square-green', |
111 | radioClass: attr.radioClass || 'iradio_square-green' | 111 | radioClass: attr.radioClass || 'iradio_square-green' |
112 | }).on('ifChanged', function(e) { | 112 | }).on('ifChanged', function(e) { |
113 | scope.$apply(function() { | 113 | scope.$apply(function() { |
114 | update(e.target.checked); | 114 | update(e.target.checked); |
115 | }); | 115 | }); |
116 | }); | 116 | }); |
117 | 117 | ||
118 | scope.$watch(attr.ngChecked, function(checked) { | 118 | scope.$watch(attr.ngChecked, function(checked) { |
119 | if(typeof checked === 'undefined') checked = !!ngModel.$viewValue; | 119 | if(typeof checked === 'undefined') checked = !!ngModel.$viewValue; |
120 | update(checked) | 120 | update(checked) |
121 | }, true); | 121 | }, true); |
122 | 122 | ||
123 | scope.$watch(attr.ngModel, function(model) { | 123 | scope.$watch(attr.ngModel, function(model) { |
124 | $(element).iCheck('update'); | 124 | $(element).iCheck('update'); |
125 | }, true); | 125 | }, true); |
126 | 126 | ||
127 | }) | 127 | }) |
128 | } | 128 | } |
129 | } | 129 | } |
130 | }]) | 130 | }]) |
131 | })(); | 131 | })(); |
app/scripts/config.js
1 | /** | 1 | /** |
2 | * INSPINIA - Responsive Admin Theme | 2 | * Acuefuel - Responsive Admin Theme |
3 | * | 3 | * |
4 | * Inspinia theme use AngularUI Router to manage routing and views | 4 | * Acuefuel theme use AngularUI Router to manage routing and views |
5 | * Each view are defined as state. | 5 | * Each view are defined as state. |
6 | * Initial there are written stat for all view in theme. | 6 | * Initial there are written stat for all view in theme. |
7 | * | 7 | * |
8 | */ | 8 | */ |
9 | function config($stateProvider, $urlRouterProvider) { | 9 | function config($stateProvider, $urlRouterProvider) { |
10 | $urlRouterProvider.otherwise("/login"); | 10 | $urlRouterProvider.otherwise("/login"); |
11 | 11 | ||
12 | $stateProvider | 12 | $stateProvider |
13 | 13 | ||
14 | .state('login', { | 14 | .state('login', { |
15 | //abstract: true, | 15 | //abstract: true, |
16 | url: "/login", | 16 | url: "/login", |
17 | templateUrl: "views/login/login.html", | 17 | templateUrl: "views/login/login.html", |
18 | controller: 'LoginController' | 18 | controller: 'LoginController' |
19 | }) | 19 | }) |
20 | 20 | ||
21 | .state('index', { | 21 | .state('index', { |
22 | abstract: true, | 22 | abstract: true, |
23 | url: "/index", | 23 | url: "/index", |
24 | templateUrl: "views/common/content.html", | 24 | templateUrl: "views/common/content.html", |
25 | }) | 25 | }) |
26 | .state('index.dashboard', { | 26 | .state('index.dashboard', { |
27 | url: "/dashboard", | 27 | url: "/dashboard", |
28 | templateUrl: "views/fbo-admin/dashboard.html", | 28 | templateUrl: "views/fbo-admin/dashboard.html", |
29 | controller: 'DashboardController' | 29 | controller: 'DashboardController' |
30 | }) | 30 | }) |
31 | .state('index.flight', { | 31 | .state('index.flight', { |
32 | url: "/flight", | 32 | url: "/flight", |
33 | templateUrl: "views/fbo-flight/flight.html", | 33 | templateUrl: "views/fbo-flight/flight.html", |
34 | controller: 'FlightDeptController' | 34 | controller: 'FlightDeptController' |
35 | }) | 35 | }) |
36 | .state('index.updateAirports', { | 36 | .state('index.updateAirports', { |
37 | url: "/updateAirports", | 37 | url: "/updateAirports", |
38 | templateUrl: "views/update-airports/update-airports.html", | 38 | templateUrl: "views/update-airports/update-airports.html", |
39 | controller: 'updateAirportController' | 39 | controller: 'updateAirportController' |
40 | }) | 40 | }) |
41 | .state('index.minor', { | 41 | .state('index.minor', { |
42 | url: "/minor", | 42 | url: "/minor", |
43 | templateUrl: "views/minor.html", | 43 | templateUrl: "views/minor.html", |
44 | data: { pageTitle: 'Example view' } | 44 | data: { pageTitle: 'Example view' } |
45 | }) | 45 | }) |
46 | .state('index.updateFBO', { | 46 | .state('index.updateFBO', { |
47 | url: "/updateFBO/:id", | 47 | url: "/updateFBO/:id", |
48 | templateUrl: "views/updateAllFBO/updateAllFBO.html", | 48 | templateUrl: "views/updateAllFBO/updateAllFBO.html", |
49 | controller: 'updateAllFBOController' | 49 | controller: 'updateAllFBOController' |
50 | }) | 50 | }) |
51 | .state('index.fboClients', { | 51 | .state('index.fboClients', { |
52 | url: "/fboClients", | 52 | url: "/fboClients", |
53 | templateUrl: "views/fbo-Clients/fboClients.html", | 53 | templateUrl: "views/fbo-Clients/fboClients.html", |
54 | controller: 'fboClientsController' | 54 | controller: 'fboClientsController' |
55 | }) | 55 | }) |
56 | } | 56 | } |
57 | angular | 57 | angular |
58 | .module('inspinia') | 58 | .module('acuefuel') |
59 | .config(config) | 59 | .config(config) |
60 | .run(function($rootScope, $state) { | 60 | .run(function($rootScope, $state) { |
61 | $rootScope.$state = $state; | 61 | $rootScope.$state = $state; |
62 | }); | 62 | }); |
app/scripts/constant.js
1 | 1 | ||
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | 5 | ||
6 | .constant('BE', { | 6 | .constant('BE', { |
7 | url: 'http://54.149.169.33:8080/ws' | 7 | url: 'http://54.149.169.33:8080/ws' |
8 | }); | 8 | }); |
9 | 9 |
app/scripts/controllers.js
1 | /** | 1 | /** |
2 | * INSPINIA - Responsive Admin Theme | 2 | * acuefuel - Responsive Admin Theme |
3 | * | 3 | * |
4 | */ | 4 | */ |
5 | 5 | ||
6 | /** | 6 | /** |
7 | * MainCtrl - controller | 7 | * MainCtrl - controller |
8 | */ | 8 | */ |
9 | function MainCtrl($scope, $location) { | 9 | function MainCtrl($scope, $location) { |
10 | 10 | ||
11 | $scope.userName = 'Dylan Goodwin'; | 11 | $scope.userName = 'Dylan Goodwin'; |
12 | $scope.helloText = 'Welcome in SeedProject'; | 12 | $scope.helloText = 'Welcome in SeedProject'; |
13 | $scope.descriptionText = 'It is an application skeleton for a typical AngularJS web app. You can use it to quickly bootstrap your angular webapp projects and dev environment for these projects.'; | 13 | $scope.descriptionText = 'It is an application skeleton for a typical AngularJS web app. You can use it to quickly bootstrap your angular webapp projects and dev environment for these projects.'; |
14 | 14 | ||
15 | }; | 15 | }; |
16 | 16 | ||
17 | 17 | ||
18 | angular | 18 | angular |
19 | .module('inspinia') | 19 | .module('acuefuel') |
20 | .controller('MainCtrl', MainCtrl) | 20 | .controller('MainCtrl', MainCtrl) |
app/scripts/directives.js
1 | /** | 1 | /** |
2 | * INSPINIA - Responsive Admin Theme | 2 | * acuefuel - Responsive Admin Theme |
3 | * | 3 | * |
4 | */ | 4 | */ |
5 | 5 | ||
6 | 6 | ||
7 | /** | 7 | /** |
8 | * pageTitle - Directive for set Page title - mata title | 8 | * pageTitle - Directive for set Page title - mata title |
9 | */ | 9 | */ |
10 | function pageTitle($rootScope, $timeout) { | 10 | function pageTitle($rootScope, $timeout) { |
11 | return { | 11 | return { |
12 | link: function(scope, element) { | 12 | link: function(scope, element) { |
13 | var listener = function(event, toState, toParams, fromState, fromParams) { | 13 | var listener = function(event, toState, toParams, fromState, fromParams) { |
14 | // Default title - load on Dashboard 1 | 14 | // Default title - load on Dashboard 1 |
15 | var title = 'INSPINIA | Responsive Admin Theme'; | 15 | var title = 'Acuefuel'; |
16 | // Create your own title pattern | 16 | // Create your own title pattern |
17 | if (toState.data && toState.data.pageTitle) title = 'INSPINIA | ' + toState.data.pageTitle; | 17 | if (toState.data && toState.data.pageTitle) title = 'INSPINIA | ' + toState.data.pageTitle; |
18 | $timeout(function() { | 18 | $timeout(function() { |
19 | element.text(title); | 19 | element.text(title); |
20 | }); | 20 | }); |
21 | }; | 21 | }; |
22 | $rootScope.$on('$stateChangeStart', listener); | 22 | $rootScope.$on('$stateChangeStart', listener); |
23 | } | 23 | } |
24 | } | 24 | } |
25 | }; | 25 | }; |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * sideNavigation - Directive for run metsiMenu on sidebar navigation | 28 | * sideNavigation - Directive for run metsiMenu on sidebar navigation |
29 | */ | 29 | */ |
30 | function sideNavigation($timeout) { | 30 | function sideNavigation($timeout) { |
31 | return { | 31 | return { |
32 | restrict: 'A', | 32 | restrict: 'A', |
33 | link: function(scope, element) { | 33 | link: function(scope, element) { |
34 | // Call the metsiMenu plugin and plug it to sidebar navigation | 34 | // Call the metsiMenu plugin and plug it to sidebar navigation |
35 | $timeout(function(){ | 35 | $timeout(function(){ |
36 | element.metisMenu(); | 36 | element.metisMenu(); |
37 | 37 | ||
38 | }); | 38 | }); |
39 | 39 | ||
40 | // Colapse menu in mobile mode after click on element | 40 | // Colapse menu in mobile mode after click on element |
41 | var menuElement = $('#side-menu a:not([href$="\\#"])'); | 41 | var menuElement = $('#side-menu a:not([href$="\\#"])'); |
42 | menuElement.click(function(){ | 42 | menuElement.click(function(){ |
43 | if ($(window).width() < 769) { | 43 | if ($(window).width() < 769) { |
44 | $("body").toggleClass("mini-navbar"); | 44 | $("body").toggleClass("mini-navbar"); |
45 | } | 45 | } |
46 | }); | 46 | }); |
47 | 47 | ||
48 | // Enable initial fixed sidebar | 48 | // Enable initial fixed sidebar |
49 | if ($("body").hasClass('fixed-sidebar')) { | 49 | if ($("body").hasClass('fixed-sidebar')) { |
50 | var sidebar = element.parent(); | 50 | var sidebar = element.parent(); |
51 | sidebar.slimScroll({ | 51 | sidebar.slimScroll({ |
52 | height: '100%', | 52 | height: '100%', |
53 | railOpacity: 0.9 | 53 | railOpacity: 0.9 |
54 | }); | 54 | }); |
55 | } | 55 | } |
56 | } | 56 | } |
57 | }; | 57 | }; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | /** | 60 | /** |
61 | * iboxTools - Directive for iBox tools elements in right corner of ibox | 61 | * iboxTools - Directive for iBox tools elements in right corner of ibox |
62 | */ | 62 | */ |
63 | function iboxTools($timeout) { | 63 | function iboxTools($timeout) { |
64 | return { | 64 | return { |
65 | restrict: 'A', | 65 | restrict: 'A', |
66 | scope: true, | 66 | scope: true, |
67 | templateUrl: 'views/common/ibox_tools.html', | 67 | templateUrl: 'views/common/ibox_tools.html', |
68 | controller: function ($scope, $element) { | 68 | controller: function ($scope, $element) { |
69 | // Function for collapse ibox | 69 | // Function for collapse ibox |
70 | $scope.showhide = function () { | 70 | $scope.showhide = function () { |
71 | var ibox = $element.closest('div.ibox'); | 71 | var ibox = $element.closest('div.ibox'); |
72 | var icon = $element.find('i:first'); | 72 | var icon = $element.find('i:first'); |
73 | var content = ibox.children('.ibox-content'); | 73 | var content = ibox.children('.ibox-content'); |
74 | content.slideToggle(200); | 74 | content.slideToggle(200); |
75 | // Toggle icon from up to down | 75 | // Toggle icon from up to down |
76 | icon.toggleClass('fa-chevron-up').toggleClass('fa-chevron-down'); | 76 | icon.toggleClass('fa-chevron-up').toggleClass('fa-chevron-down'); |
77 | ibox.toggleClass('').toggleClass('border-bottom'); | 77 | ibox.toggleClass('').toggleClass('border-bottom'); |
78 | $timeout(function () { | 78 | $timeout(function () { |
79 | ibox.resize(); | 79 | ibox.resize(); |
80 | ibox.find('[id^=map-]').resize(); | 80 | ibox.find('[id^=map-]').resize(); |
81 | }, 50); | 81 | }, 50); |
82 | }, | 82 | }, |
83 | // Function for close ibox | 83 | // Function for close ibox |
84 | $scope.closebox = function () { | 84 | $scope.closebox = function () { |
85 | var ibox = $element.closest('div.ibox'); | 85 | var ibox = $element.closest('div.ibox'); |
86 | ibox.remove(); | 86 | ibox.remove(); |
87 | } | 87 | } |
88 | } | 88 | } |
89 | }; | 89 | }; |
90 | }; | 90 | }; |
91 | 91 | ||
92 | /** | 92 | /** |
93 | * minimalizaSidebar - Directive for minimalize sidebar | 93 | * minimalizaSidebar - Directive for minimalize sidebar |
94 | */ | 94 | */ |
95 | function minimalizaSidebar($timeout) { | 95 | function minimalizaSidebar($timeout) { |
96 | return { | 96 | return { |
97 | restrict: 'A', | 97 | restrict: 'A', |
98 | template: '<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="" ng-click="minimalize()"><i class="fa fa-bars"></i></a>', | 98 | template: '<a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="" ng-click="minimalize()"><i class="fa fa-bars"></i></a>', |
99 | controller: function ($scope, $element) { | 99 | controller: function ($scope, $element) { |
100 | $scope.minimalize = function () { | 100 | $scope.minimalize = function () { |
101 | $("body").toggleClass("mini-navbar"); | 101 | $("body").toggleClass("mini-navbar"); |
102 | if (!$('body').hasClass('mini-navbar') || $('body').hasClass('body-small')) { | 102 | if (!$('body').hasClass('mini-navbar') || $('body').hasClass('body-small')) { |
103 | // Hide menu in order to smoothly turn on when maximize menu | 103 | // Hide menu in order to smoothly turn on when maximize menu |
104 | $('#side-menu').hide(); | 104 | $('#side-menu').hide(); |
105 | // For smoothly turn on menu | 105 | // For smoothly turn on menu |
106 | setTimeout( | 106 | setTimeout( |
107 | function () { | 107 | function () { |
108 | $('#side-menu').fadeIn(400); | 108 | $('#side-menu').fadeIn(400); |
109 | }, 200); | 109 | }, 200); |
110 | } else if ($('body').hasClass('fixed-sidebar')){ | 110 | } else if ($('body').hasClass('fixed-sidebar')){ |
111 | $('#side-menu').hide(); | 111 | $('#side-menu').hide(); |
112 | setTimeout( | 112 | setTimeout( |
113 | function () { | 113 | function () { |
114 | $('#side-menu').fadeIn(400); | 114 | $('#side-menu').fadeIn(400); |
115 | }, 100); | 115 | }, 100); |
116 | } else { | 116 | } else { |
117 | // Remove all inline style from jquery fadeIn function to reset menu state | 117 | // Remove all inline style from jquery fadeIn function to reset menu state |
118 | $('#side-menu').removeAttr('style'); | 118 | $('#side-menu').removeAttr('style'); |
119 | } | 119 | } |
120 | } | 120 | } |
121 | } | 121 | } |
122 | }; | 122 | }; |
123 | }; | 123 | }; |
124 | 124 | ||
125 | /** | 125 | /** |
126 | * iboxTools with full screen - Directive for iBox tools elements in right corner of ibox with full screen option | 126 | * iboxTools with full screen - Directive for iBox tools elements in right corner of ibox with full screen option |
127 | */ | 127 | */ |
128 | function iboxToolsFullScreen($timeout) { | 128 | function iboxToolsFullScreen($timeout) { |
129 | return { | 129 | return { |
130 | restrict: 'A', | 130 | restrict: 'A', |
131 | scope: true, | 131 | scope: true, |
132 | templateUrl: 'views/common/ibox_tools_full_screen.html', | 132 | templateUrl: 'views/common/ibox_tools_full_screen.html', |
133 | controller: function ($scope, $element) { | 133 | controller: function ($scope, $element) { |
134 | // Function for collapse ibox | 134 | // Function for collapse ibox |
135 | $scope.showhide = function () { | 135 | $scope.showhide = function () { |
136 | var ibox = $element.closest('div.ibox'); | 136 | var ibox = $element.closest('div.ibox'); |
137 | var icon = $element.find('i:first'); | 137 | var icon = $element.find('i:first'); |
138 | var content = ibox.children('.ibox-content'); | 138 | var content = ibox.children('.ibox-content'); |
139 | content.slideToggle(200); | 139 | content.slideToggle(200); |
140 | // Toggle icon from up to down | 140 | // Toggle icon from up to down |
141 | icon.toggleClass('fa-chevron-up').toggleClass('fa-chevron-down'); | 141 | icon.toggleClass('fa-chevron-up').toggleClass('fa-chevron-down'); |
142 | ibox.toggleClass('').toggleClass('border-bottom'); | 142 | ibox.toggleClass('').toggleClass('border-bottom'); |
143 | $timeout(function () { | 143 | $timeout(function () { |
144 | ibox.resize(); | 144 | ibox.resize(); |
145 | ibox.find('[id^=map-]').resize(); | 145 | ibox.find('[id^=map-]').resize(); |
146 | }, 50); | 146 | }, 50); |
147 | }; | 147 | }; |
148 | // Function for close ibox | 148 | // Function for close ibox |
149 | $scope.closebox = function () { | 149 | $scope.closebox = function () { |
150 | var ibox = $element.closest('div.ibox'); | 150 | var ibox = $element.closest('div.ibox'); |
151 | ibox.remove(); | 151 | ibox.remove(); |
152 | }; | 152 | }; |
153 | // Function for full screen | 153 | // Function for full screen |
154 | $scope.fullscreen = function () { | 154 | $scope.fullscreen = function () { |
155 | var ibox = $element.closest('div.ibox'); | 155 | var ibox = $element.closest('div.ibox'); |
156 | var button = $element.find('i.fa-expand'); | 156 | var button = $element.find('i.fa-expand'); |
157 | $('body').toggleClass('fullscreen-ibox-mode'); | 157 | $('body').toggleClass('fullscreen-ibox-mode'); |
158 | button.toggleClass('fa-expand').toggleClass('fa-compress'); | 158 | button.toggleClass('fa-expand').toggleClass('fa-compress'); |
159 | ibox.toggleClass('fullscreen'); | 159 | ibox.toggleClass('fullscreen'); |
160 | setTimeout(function() { | 160 | setTimeout(function() { |
161 | $(window).trigger('resize'); | 161 | $(window).trigger('resize'); |
162 | }, 100); | 162 | }, 100); |
163 | } | 163 | } |
164 | } | 164 | } |
165 | }; | 165 | }; |
166 | } | 166 | } |
167 | 167 | ||
168 | 168 | ||
169 | 169 | ||
170 | /** | 170 | /** |
171 | * | 171 | * |
172 | * Pass all functions into module | 172 | * Pass all functions into module |
173 | */ | 173 | */ |
174 | angular | 174 | angular |
175 | .module('inspinia') | 175 | .module('acuefuel') |
176 | .directive('pageTitle', pageTitle) | 176 | .directive('pageTitle', pageTitle) |
177 | .directive('sideNavigation', sideNavigation) | 177 | .directive('sideNavigation', sideNavigation) |
178 | .directive('iboxTools', iboxTools) | 178 | .directive('iboxTools', iboxTools) |
179 | .directive('minimalizaSidebar', minimalizaSidebar) | 179 | .directive('minimalizaSidebar', minimalizaSidebar) |
180 | .directive('iboxToolsFullScreen', iboxToolsFullScreen); | 180 | .directive('iboxToolsFullScreen', iboxToolsFullScreen); |
181 | 181 |
app/scripts/inspinia.js
1 | /** | 1 | /** |
2 | * INSPINIA - Responsive Admin Theme | 2 | * Acuefuel - Responsive Admin Theme |
3 | * 2.7 | 3 | * 2.7 |
4 | * | 4 | * |
5 | * Custom scripts | 5 | * Custom scripts |
6 | */ | 6 | */ |
7 | 7 | ||
8 | $(document).ready(function () { | 8 | $(document).ready(function () { |
9 | 9 | ||
10 | 10 | ||
11 | // Full height of sidebar | 11 | // Full height of sidebar |
12 | function fix_height() { | 12 | function fix_height() { |
13 | var heightWithoutNavbar = $("body > #wrapper").height() - 61; | 13 | var heightWithoutNavbar = $("body > #wrapper").height() - 61; |
14 | $(".sidebar-panel").css("min-height", heightWithoutNavbar + "px"); | 14 | $(".sidebar-panel").css("min-height", heightWithoutNavbar + "px"); |
15 | 15 | ||
16 | var navbarHeight = $('nav.navbar-default').height(); | 16 | var navbarHeight = $('nav.navbar-default').height(); |
17 | var wrapperHeigh = $('#page-wrapper').height(); | 17 | var wrapperHeigh = $('#page-wrapper').height(); |
18 | 18 | ||
19 | if(navbarHeight > wrapperHeigh){ | 19 | if(navbarHeight > wrapperHeigh){ |
20 | $('#page-wrapper').css("min-height", navbarHeight + "px"); | 20 | $('#page-wrapper').css("min-height", navbarHeight + "px"); |
21 | } | 21 | } |
22 | 22 | ||
23 | if(navbarHeight < wrapperHeigh){ | 23 | if(navbarHeight < wrapperHeigh){ |
24 | $('#page-wrapper').css("min-height", $(window).height() + "px"); | 24 | $('#page-wrapper').css("min-height", $(window).height() + "px"); |
25 | } | 25 | } |
26 | 26 | ||
27 | if ($('body').hasClass('fixed-nav')) { | 27 | if ($('body').hasClass('fixed-nav')) { |
28 | if (navbarHeight > wrapperHeigh) { | 28 | if (navbarHeight > wrapperHeigh) { |
29 | $('#page-wrapper').css("min-height", navbarHeight + "px"); | 29 | $('#page-wrapper').css("min-height", navbarHeight + "px"); |
30 | } else { | 30 | } else { |
31 | $('#page-wrapper').css("min-height", $(window).height() - 60 + "px"); | 31 | $('#page-wrapper').css("min-height", $(window).height() - 60 + "px"); |
32 | } | 32 | } |
33 | } | 33 | } |
34 | 34 | ||
35 | } | 35 | } |
36 | 36 | ||
37 | $(window).bind("load resize scroll", function() { | 37 | $(window).bind("load resize scroll", function() { |
38 | if(!$("body").hasClass('body-small')) { | 38 | if(!$("body").hasClass('body-small')) { |
39 | fix_height(); | 39 | fix_height(); |
40 | } | 40 | } |
41 | }); | 41 | }); |
42 | 42 | ||
43 | // Move right sidebar top after scroll | 43 | // Move right sidebar top after scroll |
44 | $(window).scroll(function(){ | 44 | $(window).scroll(function(){ |
45 | if ($(window).scrollTop() > 0 && !$('body').hasClass('fixed-nav') ) { | 45 | if ($(window).scrollTop() > 0 && !$('body').hasClass('fixed-nav') ) { |
46 | $('#right-sidebar').addClass('sidebar-top'); | 46 | $('#right-sidebar').addClass('sidebar-top'); |
47 | } else { | 47 | } else { |
48 | $('#right-sidebar').removeClass('sidebar-top'); | 48 | $('#right-sidebar').removeClass('sidebar-top'); |
49 | } | 49 | } |
50 | }); | 50 | }); |
51 | 51 | ||
52 | setTimeout(function(){ | 52 | setTimeout(function(){ |
53 | fix_height(); | 53 | fix_height(); |
54 | }); | 54 | }); |
55 | 55 | ||
56 | }); | 56 | }); |
57 | 57 | ||
58 | 58 | ||
59 | // Minimalize menu when screen is less than 768px | 59 | // Minimalize menu when screen is less than 768px |
60 | $(window).bind("load resize", function () { | 60 | $(window).bind("load resize", function () { |
61 | if ($(document).width() < 769) { | 61 | if ($(document).width() < 769) { |
62 | $('body').addClass('body-small') | 62 | $('body').addClass('body-small') |
63 | } else { | 63 | } else { |
64 | $('body').removeClass('body-small') | 64 | $('body').removeClass('body-small') |
65 | } | 65 | } |
66 | }); | 66 | }); |
67 | 67 | ||
68 | 68 |
app/views/fbo-Clients/fboClient.controller.js
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | //Load controller | 3 | //Load controller |
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | 5 | ||
6 | .controller('fboClientsController', function($scope, $stateParams, FBOClient) { | 6 | .controller('fboClientsController', function($scope, $stateParams, FBOClient) { |
7 | $(document).ready(function(){ | 7 | $(document).ready(function(){ |
8 | $('.tab-pane').slimScroll({ | 8 | $('.tab-pane').slimScroll({ |
9 | height: '600px' | 9 | height: '600px' |
10 | }); | 10 | }); |
11 | }); | 11 | }); |
12 | $('#tab-2').css('display', 'none'); | 12 | $('#tab-2').css('display', 'none'); |
13 | getAllFbo(); | 13 | getAllFbo(); |
14 | function getAllFbo(){ | 14 | function getAllFbo(){ |
15 | FBOClient.getALlFBOList().then(function(result) { | 15 | FBOClient.getALlFBOList().then(function(result) { |
16 | console.log(result) | 16 | console.log(result) |
17 | $scope.fboClient = result; | 17 | $scope.fboClient = result; |
18 | $scope.clientLength = result.length; | 18 | $scope.clientLength = result.length; |
19 | }) | 19 | }) |
20 | } | 20 | } |
21 | 21 | ||
22 | 22 | ||
23 | $scope.fboAdmin = function(){ | 23 | $scope.fboAdmin = function(){ |
24 | getAllFbo(); | 24 | getAllFbo(); |
25 | $('#tab-1').css('display', 'block'); | 25 | $('#tab-1').css('display', 'block'); |
26 | $('#tab-2').css('display', 'none'); | 26 | $('#tab-2').css('display', 'none'); |
27 | $('.customTab1').addClass('active'); | 27 | $('.customTab1').addClass('active'); |
28 | $('.customTab2').removeClass('active'); | 28 | $('.customTab2').removeClass('active'); |
29 | $('.slimScrollDiv:first-child').css('display', 'block'); | 29 | $('.slimScrollDiv:first-child').css('display', 'block'); |
30 | 30 | ||
31 | } | 31 | } |
32 | 32 | ||
33 | $scope.fboDept = function(){ | 33 | $scope.fboDept = function(){ |
34 | FBOClient.getAllFlightDeptList().then(function(result) { | 34 | FBOClient.getAllFlightDeptList().then(function(result) { |
35 | console.log(result) | 35 | console.log(result) |
36 | $scope.fboDeptList = result; | 36 | $scope.fboDeptList = result; |
37 | $scope.clientLength = result.length; | 37 | $scope.clientLength = result.length; |
38 | }) | 38 | }) |
39 | $('#tab-1').css('display', 'none'); | 39 | $('#tab-1').css('display', 'none'); |
40 | $('#tab-2').css('display', 'block'); | 40 | $('#tab-2').css('display', 'block'); |
41 | $('.customTab2').addClass('active'); | 41 | $('.customTab2').addClass('active'); |
42 | $('.customTab1').removeClass('active'); | 42 | $('.customTab1').removeClass('active'); |
43 | $('.slimScrollDiv:first-child').css('display', 'none'); | 43 | $('.slimScrollDiv:first-child').css('display', 'none'); |
44 | } | 44 | } |
45 | 45 | ||
46 | }); | 46 | }); |
app/views/fbo-Clients/fboClient.service.js
1 | (function() { | 1 | (function() { |
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | .service('FBOClient', ['$rootScope', '$q', '$http', 'BE', FBOClient]) | 5 | .service('FBOClient', ['$rootScope', '$q', '$http', 'BE', FBOClient]) |
6 | 6 | ||
7 | function FBOClient($rootScope, $q, $http, BE) { | 7 | function FBOClient($rootScope, $q, $http, BE) { |
8 | 8 | ||
9 | this.getALlFBOList = function(data) { | 9 | this.getALlFBOList = function(data) { |
10 | 10 | ||
11 | var deferred = $q.defer(); | 11 | var deferred = $q.defer(); |
12 | $http({ | 12 | $http({ |
13 | method : 'GET', | 13 | method : 'GET', |
14 | url : BE.url +'/account/user/getAllFBOs', | 14 | url : BE.url +'/account/user/getAllFBOs', |
15 | headers : {'Content-Type': 'application/json'}, | 15 | headers : {'Content-Type': 'application/json'}, |
16 | }) | 16 | }) |
17 | .success(function(result) { | 17 | .success(function(result) { |
18 | deferred.resolve(result); | 18 | deferred.resolve(result); |
19 | }) | 19 | }) |
20 | return deferred.promise; | 20 | return deferred.promise; |
21 | } | 21 | } |
22 | 22 | ||
23 | this.getAllFlightDeptList = function(data) { | 23 | this.getAllFlightDeptList = function(data) { |
24 | 24 | ||
25 | var deferred = $q.defer(); | 25 | var deferred = $q.defer(); |
26 | $http({ | 26 | $http({ |
27 | method : 'GET', | 27 | method : 'GET', |
28 | url : BE.url +'/account/user/getAllFlightDept', | 28 | url : BE.url +'/account/user/getAllFlightDept', |
29 | headers : {'Content-Type': 'application/json'}, | 29 | headers : {'Content-Type': 'application/json'}, |
30 | }) | 30 | }) |
31 | .success(function(result) { | 31 | .success(function(result) { |
32 | deferred.resolve(result); | 32 | deferred.resolve(result); |
33 | }) | 33 | }) |
34 | return deferred.promise; | 34 | return deferred.promise; |
35 | } | 35 | } |
36 | 36 | ||
37 | } | 37 | } |
38 | 38 | ||
39 | })(); | 39 | })(); |
app/views/fbo-admin/dashboard.controller.js
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | //Load controller | 3 | //Load controller |
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | 5 | ||
6 | .controller('DashboardController', function($scope, FBOAdmin) { | 6 | .controller('DashboardController', function($scope, FBOAdmin) { |
7 | $(document).ready(function(){ | 7 | $(document).ready(function(){ |
8 | $('.i-checks').iCheck({ | 8 | $('.i-checks').iCheck({ |
9 | checkboxClass: 'icheckbox_square-green', | 9 | checkboxClass: 'icheckbox_square-green', |
10 | radioClass: 'iradio_square-green', | 10 | radioClass: 'iradio_square-green', |
11 | }); | 11 | }); |
12 | }); | 12 | }); |
13 | 13 | ||
14 | $scope.userName = 'Dylan Goodwin'; | 14 | $scope.userName = 'Dylan Goodwin'; |
15 | $scope.essAccountId = true; | 15 | $scope.essAccountId = true; |
16 | $("#esAccId").css({ opacity: 0.5 }); | 16 | $("#esAccId").css({ opacity: 0.5 }); |
17 | $scope.user = {}; | 17 | $scope.user = {}; |
18 | $scope.feature = {}; | 18 | $scope.feature = {}; |
19 | $scope.feature.level = 'silver'; | 19 | $scope.feature.level = 'silver'; |
20 | $scope.feature.essintaPosSystem = false; | 20 | $scope.feature.essintaPosSystem = false; |
21 | $scope.feature.acuQuote = false; | 21 | $scope.feature.acuQuote = false; |
22 | $scope.feature.acuTrack = false; | 22 | $scope.feature.acuTrack = false; |
23 | $scope.feature.fuelProgram = false; | 23 | $scope.feature.fuelProgram = false; |
24 | $scope.feature.amstatIntegration = false; | 24 | $scope.feature.amstatIntegration = false; |
25 | $scope.feature.posAccountingIntegration = false; | 25 | $scope.feature.posAccountingIntegration = false; |
26 | $scope.feature.posVeederRootIntegration = false; | 26 | $scope.feature.posVeederRootIntegration = false; |
27 | $scope.userData = function(){ | 27 | $scope.userData = function(){ |
28 | console.log("daadada", $scope.feature) | 28 | console.log("daadada", $scope.feature) |
29 | 29 | ||
30 | if($scope.status == true){ | 30 | if($scope.status == true){ |
31 | $scope.user.status = 'active'; | 31 | $scope.user.status = 'active'; |
32 | }else{ | 32 | }else{ |
33 | $scope.user.status = 'inactive'; | 33 | $scope.user.status = 'inactive'; |
34 | } | 34 | } |
35 | $scope.user.username = $scope.user.email; | 35 | $scope.user.username = $scope.user.email; |
36 | $scope.user.userType = 'fbo'; | 36 | $scope.user.userType = 'fbo'; |
37 | console.log($scope.user) | 37 | console.log($scope.user) |
38 | var formdata = "email=" + $scope.user.email + "&username=" + $scope.user.username + "&firstName=" + $scope.user.firstName + "&lastName=" + $scope.user.lastName + "&password=" + $scope.user.password + "&phone=" + $scope.user.phone + "&mobile=" + $scope.user.mobile + "&status=" + $scope.user.status + "&userType=" + $scope.user.userType + "&clientNote=" + $scope.user.clientNote; | 38 | var formdata = "email=" + $scope.user.email + "&username=" + $scope.user.username + "&firstName=" + $scope.user.firstName + "&lastName=" + $scope.user.lastName + "&password=" + $scope.user.password + "&phone=" + $scope.user.phone + "&mobile=" + $scope.user.mobile + "&status=" + $scope.user.status + "&userType=" + $scope.user.userType + "&clientNote=" + $scope.user.clientNote; |
39 | FBOAdmin.registerUser(formdata).then(function(result) { | 39 | FBOAdmin.registerUser(formdata).then(function(result) { |
40 | console.log(result) | 40 | console.log(result) |
41 | console.log(JSON.stringify(result)); | 41 | console.log(JSON.stringify(result)); |
42 | $scope.feature.accountId = result; | 42 | $scope.feature.accountId = result; |
43 | var featureControlData = "accountId=" + $scope.feature.accountId + "&level=" + $scope.feature.level + "&essintaPosSystem=" + $scope.feature.essintaPosSystem | 43 | var featureControlData = "accountId=" + $scope.feature.accountId + "&level=" + $scope.feature.level + "&essintaPosSystem=" + $scope.feature.essintaPosSystem |
44 | + "&acuQuote=" + $scope.feature.acuQuote + "&acuTrack=" + $scope.feature.acuTrack + "&fuelProgram=" + $scope.feature.fuelProgram + "&amstatIntegration=" + $scope.feature.amstatIntegration+ "&posAccountingIntegration=" | 44 | + "&acuQuote=" + $scope.feature.acuQuote + "&acuTrack=" + $scope.feature.acuTrack + "&fuelProgram=" + $scope.feature.fuelProgram + "&amstatIntegration=" + $scope.feature.amstatIntegration+ "&posAccountingIntegration=" |
45 | + $scope.feature.posAccountingIntegration + "&posVeederRootIntegration=" + $scope.feature.posVeederRootIntegration | 45 | + $scope.feature.posAccountingIntegration + "&posVeederRootIntegration=" + $scope.feature.posVeederRootIntegration |
46 | + "&essintaAccountUid=" + $scope.feature.essintaAccountUid + "&additionalLicences=" + $scope.feature.additionalLicences; | 46 | + "&essintaAccountUid=" + $scope.feature.essintaAccountUid + "&additionalLicences=" + $scope.feature.additionalLicences; |
47 | 47 | ||
48 | FBOAdmin.featureControl(featureControlData).then(function(response) { | 48 | FBOAdmin.featureControl(featureControlData).then(function(response) { |
49 | console.log(response) | 49 | console.log(response) |
50 | 50 | ||
51 | }) | 51 | }) |
52 | }) | 52 | }) |
53 | } | 53 | } |
54 | 54 | ||
55 | $scope.enableEssId = function(){ | 55 | $scope.enableEssId = function(){ |
56 | if($scope.feature.essintaPosSystem == true){ | 56 | if($scope.feature.essintaPosSystem == true){ |
57 | $scope.essAccountId = false; | 57 | $scope.essAccountId = false; |
58 | $("#esAccId").css({ opacity: 1 }); | 58 | $("#esAccId").css({ opacity: 1 }); |
59 | }else{ | 59 | }else{ |
60 | $scope.essAccountId = true; | 60 | $scope.essAccountId = true; |
61 | delete $scope.feature.essintaAccountUid; | 61 | delete $scope.feature.essintaAccountUid; |
62 | $("#esAccId").css({ opacity: 0.5 }); | 62 | $("#esAccId").css({ opacity: 0.5 }); |
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | }); | 66 | }); |
app/views/fbo-admin/dashboard.service.js
1 | (function() { | 1 | (function() { |
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | .service('FBOAdmin', ['$rootScope', '$q', '$http', 'BE', FBOAdmin]) | 5 | .service('FBOAdmin', ['$rootScope', '$q', '$http', 'BE', FBOAdmin]) |
6 | 6 | ||
7 | function FBOAdmin($rootScope, $q, $http, BE) { | 7 | function FBOAdmin($rootScope, $q, $http, BE) { |
8 | 8 | ||
9 | this.registerUser = function(data) { | 9 | this.registerUser = function(data) { |
10 | 10 | ||
11 | var deferred = $q.defer(); | 11 | var deferred = $q.defer(); |
12 | $http({ | 12 | $http({ |
13 | method : 'POST', | 13 | method : 'POST', |
14 | url : BE.url +'/account/user/registration', | 14 | url : BE.url +'/account/user/registration', |
15 | headers : {'Content-Type': 'application/x-www-form-urlencoded'}, | 15 | headers : {'Content-Type': 'application/x-www-form-urlencoded'}, |
16 | data : data | 16 | data : data |
17 | }) | 17 | }) |
18 | .success(function(result) { | 18 | .success(function(result) { |
19 | deferred.resolve(result); | 19 | deferred.resolve(result); |
20 | }) | 20 | }) |
21 | return deferred.promise; | 21 | return deferred.promise; |
22 | } | 22 | } |
23 | 23 | ||
24 | this.featureControl = function(data) { | 24 | this.featureControl = function(data) { |
25 | 25 | ||
26 | var deferred = $q.defer(); | 26 | var deferred = $q.defer(); |
27 | $http({ | 27 | $http({ |
28 | method : 'POST', | 28 | method : 'POST', |
29 | url : BE.url +'/account/user/accountFeatureControl', | 29 | url : BE.url +'/account/user/accountFeatureControl', |
30 | headers : {'Content-Type': 'application/json'}, | 30 | headers : {'Content-Type': 'application/json'}, |
31 | data : data | 31 | data : data |
32 | }) | 32 | }) |
33 | .success(function(result) { | 33 | .success(function(result) { |
34 | deferred.resolve(result); | 34 | deferred.resolve(result); |
35 | }) | 35 | }) |
36 | return deferred.promise; | 36 | return deferred.promise; |
37 | } | 37 | } |
38 | } | 38 | } |
39 | 39 | ||
40 | })(); | 40 | })(); |
app/views/fbo-flight/flightDept.controller.js
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | //Load controller | 3 | //Load controller |
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | 5 | ||
6 | .controller('FlightDeptController', function ($scope, FBOFlight) { | 6 | .controller('FlightDeptController', function ($scope, FBOFlight) { |
7 | $scope.data = {}; | 7 | $scope.data = {}; |
8 | $scope.user = {}; | 8 | $scope.user = {}; |
9 | $scope.userData = function(){ | 9 | $scope.userData = function(){ |
10 | if($scope.status == true){ | 10 | if($scope.status == true){ |
11 | $scope.user.status = 'active'; | 11 | $scope.user.status = 'active'; |
12 | }else{ | 12 | }else{ |
13 | $scope.user.status = 'inactive'; | 13 | $scope.user.status = 'inactive'; |
14 | } | 14 | } |
15 | $scope.user.username = $scope.user.email; | 15 | $scope.user.username = $scope.user.email; |
16 | $scope.user.userType = 'flightDetp'; | 16 | $scope.user.userType = 'flightDetp'; |
17 | console.log($scope.user) | 17 | console.log($scope.user) |
18 | var formdata = "email=" + $scope.user.email + "&username=" + $scope.user.username + "&firstName=" + $scope.user.firstName + "&lastName=" + $scope.user.lastName + "&password=" + $scope.user.password + "&phone=" + $scope.user.phone + "&mobile=" + $scope.user.mobile + "&status=" + $scope.user.status + "&userType=" + $scope.user.userType + "&clientNote=" + $scope.user.clientNote; | 18 | var formdata = "email=" + $scope.user.email + "&username=" + $scope.user.username + "&firstName=" + $scope.user.firstName + "&lastName=" + $scope.user.lastName + "&password=" + $scope.user.password + "&phone=" + $scope.user.phone + "&mobile=" + $scope.user.mobile + "&status=" + $scope.user.status + "&userType=" + $scope.user.userType + "&clientNote=" + $scope.user.clientNote; |
19 | FBOFlight.registerUser(formdata).then(function(result) { | 19 | FBOFlight.registerUser(formdata).then(function(result) { |
20 | $scope.registerId = result; | 20 | $scope.registerId = result; |
21 | $scope.data.accountId = $scope.registerId; | 21 | $scope.data.accountId = $scope.registerId; |
22 | 22 | ||
23 | }) | 23 | }) |
24 | } | 24 | } |
25 | 25 | ||
26 | $scope.data.cardType = 'creditCard'; | 26 | $scope.data.cardType = 'creditCard'; |
27 | var cardData = {} | 27 | var cardData = {} |
28 | cardData.paymentMethodList = []; | 28 | cardData.paymentMethodList = []; |
29 | $scope.addCard = function(){ | 29 | $scope.addCard = function(){ |
30 | cardData.paymentMethodList.push($scope.data); | 30 | cardData.paymentMethodList.push($scope.data); |
31 | console.log("cardData", cardData); | 31 | console.log("cardData", cardData); |
32 | FBOFlight.addCardInformation(cardData).then(function(result) { | 32 | FBOFlight.addCardInformation(cardData).then(function(result) { |
33 | console.log(result) | 33 | console.log(result) |
34 | 34 | ||
35 | }) | 35 | }) |
36 | } | 36 | } |
37 | 37 | ||
38 | 38 | ||
39 | }); | 39 | }); |
app/views/fbo-flight/flightDeptService.js
1 | (function() { | 1 | (function() { |
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | .service('FBOFlight', ['$rootScope', '$q', '$http', 'BE', FBOFlight]) | 5 | .service('FBOFlight', ['$rootScope', '$q', '$http', 'BE', FBOFlight]) |
6 | 6 | ||
7 | function FBOFlight($rootScope, $q, $http, BE) { | 7 | function FBOFlight($rootScope, $q, $http, BE) { |
8 | 8 | ||
9 | this.registerUser = function(data) { | 9 | this.registerUser = function(data) { |
10 | 10 | ||
11 | var deferred = $q.defer(); | 11 | var deferred = $q.defer(); |
12 | $http({ | 12 | $http({ |
13 | method : 'POST', | 13 | method : 'POST', |
14 | url : BE.url +'/account/user/registration', | 14 | url : BE.url +'/account/user/registration', |
15 | headers : {'Content-Type': 'application/x-www-form-urlencoded'}, | 15 | headers : {'Content-Type': 'application/x-www-form-urlencoded'}, |
16 | data : data | 16 | data : data |
17 | }) | 17 | }) |
18 | .success(function(result) { | 18 | .success(function(result) { |
19 | deferred.resolve(result); | 19 | deferred.resolve(result); |
20 | }) | 20 | }) |
21 | return deferred.promise; | 21 | return deferred.promise; |
22 | } | 22 | } |
23 | 23 | ||
24 | this.addCardInformation = function(data) { | 24 | this.addCardInformation = function(data) { |
25 | 25 | ||
26 | var deferred = $q.defer(); | 26 | var deferred = $q.defer(); |
27 | $http({ | 27 | $http({ |
28 | method : 'POST', | 28 | method : 'POST', |
29 | url : BE.url +'/account/user/addPaymentMethods', | 29 | url : BE.url +'/account/user/addPaymentMethods', |
30 | headers : {'Content-Type': 'application/json'}, | 30 | headers : {'Content-Type': 'application/json'}, |
31 | data : data | 31 | data : data |
32 | }) | 32 | }) |
33 | .success(function(result) { | 33 | .success(function(result) { |
34 | deferred.resolve(result); | 34 | deferred.resolve(result); |
35 | }) | 35 | }) |
36 | return deferred.promise; | 36 | return deferred.promise; |
37 | } | 37 | } |
38 | } | 38 | } |
39 | 39 | ||
40 | })(); | 40 | })(); |
app/views/login/login.controller.js
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | //Load controller | 3 | //Load controller |
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | 5 | ||
6 | .controller('LoginController', function ($scope, $state, LoginService) { | 6 | .controller('LoginController', function ($scope, $state, LoginService) { |
7 | 7 | ||
8 | $scope.user = {}; | 8 | $scope.user = {}; |
9 | $scope.userData = function(){ | 9 | $scope.userData = function(){ |
10 | 10 | ||
11 | var loginData = "username=" + $scope.user.username + "&password=" + $scope.user.password; | 11 | var loginData = "username=" + $scope.user.username + "&password=" + $scope.user.password; |
12 | LoginService.loginUser(loginData).then(function(result) { | 12 | LoginService.loginUser(loginData).then(function(result) { |
13 | console.log(result) | 13 | console.log(result) |
14 | $state.go('index.dashboard'); | 14 | $state.go('index.dashboard'); |
15 | //$state.go('index.dashboard'); | 15 | //$state.go('index.dashboard'); |
16 | // if(typeof result == 'object') { | 16 | // if(typeof result == 'object') { |
17 | // // LoginService.authenticate(); | 17 | // // LoginService.authenticate(); |
18 | // // LoginService.setAuth(true); | 18 | // // LoginService.setAuth(true); |
19 | // // $rootScope.path = true; | 19 | // // $rootScope.path = true; |
20 | // $state.go('index.dashboard'); | 20 | // $state.go('index.dashboard'); |
21 | // // var reqPwdChng = localStorage.getItem("requiredChangePwd"); | 21 | // // var reqPwdChng = localStorage.getItem("requiredChangePwd"); |
22 | // // if (reqPwdChng && reqPwdChng == "Y") { | 22 | // // if (reqPwdChng && reqPwdChng == "Y") { |
23 | // // $state.go('resetPassword'); | 23 | // // $state.go('resetPassword'); |
24 | // // } else { | 24 | // // } else { |
25 | // // $state.go('app.upload'); | 25 | // // $state.go('app.upload'); |
26 | // // } | 26 | // // } |
27 | // } else { | 27 | // } else { |
28 | // //toastr.info("Error in login. Please check login name and password"); | 28 | // //toastr.info("Error in login. Please check login name and password"); |
29 | // } | 29 | // } |
30 | }) | 30 | }) |
31 | 31 | ||
32 | } | 32 | } |
33 | 33 | ||
34 | }); | 34 | }); |
app/views/login/login.service.js
1 | (function() { | 1 | (function() { |
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | .service('LoginService', ['$rootScope', '$q', '$http', 'BE', LoginService]) | 5 | .service('LoginService', ['$rootScope', '$q', '$http', 'BE', LoginService]) |
6 | 6 | ||
7 | function LoginService($rootScope, $q, $http, BE) { | 7 | function LoginService($rootScope, $q, $http, BE) { |
8 | 8 | ||
9 | this.loginUser = function(data) { | 9 | this.loginUser = function(data) { |
10 | 10 | ||
11 | var deferred = $q.defer(); | 11 | var deferred = $q.defer(); |
12 | $http({ | 12 | $http({ |
13 | method : 'POST', | 13 | method : 'POST', |
14 | url : BE.url +'/login', | 14 | url : BE.url +'/login', |
15 | headers : {'Content-Type': 'application/x-www-form-urlencoded'}, | 15 | headers : {'Content-Type': 'application/x-www-form-urlencoded'}, |
16 | data : data | 16 | data : data |
17 | }) | 17 | }) |
18 | .success(function(result) { | 18 | .success(function(result) { |
19 | deferred.resolve(result.data); | 19 | deferred.resolve(result.data); |
20 | }) | 20 | }) |
21 | return deferred.promise; | 21 | return deferred.promise; |
22 | } | 22 | } |
23 | 23 | ||
24 | this.authenticate = function() { | 24 | this.authenticate = function() { |
25 | var deferred = $q.defer(); | 25 | var deferred = $q.defer(); |
26 | $http({ | 26 | $http({ |
27 | method : 'GET', | 27 | method : 'GET', |
28 | url : BE.url+'user/authenticate', | 28 | url : BE.url+'user/authenticate', |
29 | headers : {'Content-Type': 'application/x-www-form-urlencoded'} | 29 | headers : {'Content-Type': 'application/x-www-form-urlencoded'} |
30 | }).then(function (result){ | 30 | }).then(function (result){ |
31 | console.log(result) | 31 | console.log(result) |
32 | localStorage.setItem('userProfileId', result.data.userProfile.id); | 32 | localStorage.setItem('userProfileId', result.data.userProfile.id); |
33 | localStorage.setItem('email', result.data.userProfile.email); | 33 | localStorage.setItem('email', result.data.userProfile.email); |
34 | deferred.resolve(result.data); | 34 | deferred.resolve(result.data); |
35 | },function (result){ | 35 | },function (result){ |
36 | deferred.resolve(result.data); | 36 | deferred.resolve(result.data); |
37 | }); | 37 | }); |
38 | return deferred.promise; | 38 | return deferred.promise; |
39 | } | 39 | } |
40 | 40 | ||
41 | this.setAuth = function(data) { | 41 | this.setAuth = function(data) { |
42 | localStorage.setItem('loginStatus', data); | 42 | localStorage.setItem('loginStatus', data); |
43 | } | 43 | } |
44 | } | 44 | } |
45 | 45 | ||
46 | })(); | 46 | })(); |
app/views/update-airports/updateAirportController.js
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | angular.module('inspinia') | 3 | angular.module('acuefuel') |
4 | 4 | ||
5 | .controller('updateAirportController', function ($scope, UpdateAirportService) { | 5 | .controller('updateAirportController', function ($scope, UpdateAirportService) { |
6 | $scope.dropName = true; | 6 | $scope.dropName = true; |
7 | $scope.supplierName = true; | 7 | $scope.supplierName = true; |
8 | $scope.countryName = true; | 8 | $scope.countryName = true; |
9 | $scope.subDivisionName = true; | 9 | $scope.subDivisionName = true; |
10 | $scope.fboHandlerName = true; | 10 | $scope.fboHandlerName = true; |
11 | $scope.myLoader = false; | 11 | $scope.myLoader = false; |
12 | 12 | ||
13 | // Showing Date | 13 | // Showing Date |
14 | var today = new Date(); | 14 | var today = new Date(); |
15 | var dd = today.getDate(); | 15 | var dd = today.getDate(); |
16 | var mm = today.getMonth()+1; | 16 | var mm = today.getMonth()+1; |
17 | var yyyy = today.getFullYear(); | 17 | var yyyy = today.getFullYear(); |
18 | if(dd < 10){ | 18 | if(dd < 10){ |
19 | dd='0'+dd; | 19 | dd='0'+dd; |
20 | } | 20 | } |
21 | if(mm < 10){ | 21 | if(mm < 10){ |
22 | mm='0'+mm; | 22 | mm='0'+mm; |
23 | } | 23 | } |
24 | $scope.newDate = dd + '/' + mm + '/' + yyyy; | 24 | $scope.newDate = dd + '/' + mm + '/' + yyyy; |
25 | 25 | ||
26 | //Import Airport Data | 26 | //Import Airport Data |
27 | $scope.data = {}; | 27 | $scope.data = {}; |
28 | $scope.importAirportData = function(fileName) { | 28 | $scope.importAirportData = function(fileName) { |
29 | $scope.myLoader = true; | 29 | $scope.myLoader = true; |
30 | console.log(fileName) | 30 | console.log(fileName) |
31 | if(fileName.name != undefined){ | 31 | if(fileName.name != undefined){ |
32 | $scope.dropName = false; | 32 | $scope.dropName = false; |
33 | $scope.selectedFile = fileName; | 33 | $scope.selectedFile = fileName; |
34 | $scope.data.airportFile = $scope.selectedFile; | 34 | $scope.data.airportFile = $scope.selectedFile; |
35 | }else if(fileName instanceof Array){ | 35 | }else if(fileName instanceof Array){ |
36 | $scope.dropName = false; | 36 | $scope.dropName = false; |
37 | $scope.selectedFile = fileName[0]; | 37 | $scope.selectedFile = fileName[0]; |
38 | $scope.data.airportFile = $scope.selectedFile; | 38 | $scope.data.airportFile = $scope.selectedFile; |
39 | } | 39 | } |
40 | var fileCheck = $scope.data.airportFile.name.split('.')[1]; | 40 | var fileCheck = $scope.data.airportFile.name.split('.')[1]; |
41 | console.log(fileCheck) | 41 | console.log(fileCheck) |
42 | if(fileCheck == 'csv'){ | 42 | if(fileCheck == 'csv'){ |
43 | UpdateAirportService.updateAirportData($scope.data).then(function(result) { | 43 | UpdateAirportService.updateAirportData($scope.data).then(function(result) { |
44 | $scope.myLoader = false; | 44 | $scope.myLoader = false; |
45 | console.log(result) | 45 | console.log(result) |
46 | toastr.success('Copied', { | 46 | toastr.success('Copied', { |
47 | closeButton: true | 47 | closeButton: true |
48 | }) | 48 | }) |
49 | }) | 49 | }) |
50 | }else { | 50 | }else { |
51 | $scope.dropName = true; | 51 | $scope.dropName = true; |
52 | toastr.error('Please select only csv file', { | 52 | toastr.error('Please select only csv file', { |
53 | closeButton: true | 53 | closeButton: true |
54 | }) | 54 | }) |
55 | } | 55 | } |
56 | 56 | ||
57 | } | 57 | } |
58 | 58 | ||
59 | //Import Supplier Detail Data | 59 | //Import Supplier Detail Data |
60 | $scope.supplierData = {}; | 60 | $scope.supplierData = {}; |
61 | $scope.importSuppluerDetail = function(fileName){ | 61 | $scope.importSuppluerDetail = function(fileName){ |
62 | $scope.myLoader = true; | 62 | $scope.myLoader = true; |
63 | console.log(fileName) | 63 | console.log(fileName) |
64 | if(fileName.name != undefined){ | 64 | if(fileName.name != undefined){ |
65 | $scope.supplierName = false; | 65 | $scope.supplierName = false; |
66 | $scope.selectedSuplier = fileName; | 66 | $scope.selectedSuplier = fileName; |
67 | $scope.supplierData.supplierDetailFile = $scope.selectedSuplier; | 67 | $scope.supplierData.supplierDetailFile = $scope.selectedSuplier; |
68 | }else if(fileName instanceof Array){ | 68 | }else if(fileName instanceof Array){ |
69 | $scope.supplierName = false; | 69 | $scope.supplierName = false; |
70 | $scope.selectedSuplier = fileName[0]; | 70 | $scope.selectedSuplier = fileName[0]; |
71 | $scope.supplierData.supplierDetailFile = $scope.selectedSuplier; | 71 | $scope.supplierData.supplierDetailFile = $scope.selectedSuplier; |
72 | } | 72 | } |
73 | var fileCheck = $scope.supplierData.supplierDetailFile.name.split('.')[1]; | 73 | var fileCheck = $scope.supplierData.supplierDetailFile.name.split('.')[1]; |
74 | console.log(fileCheck) | 74 | console.log(fileCheck) |
75 | if(fileCheck == 'csv'){ | 75 | if(fileCheck == 'csv'){ |
76 | UpdateAirportService.updateSupplierDetail($scope.supplierData).then(function(result) { | 76 | UpdateAirportService.updateSupplierDetail($scope.supplierData).then(function(result) { |
77 | console.log(result) | 77 | console.log(result) |
78 | $scope.myLoader = false; | 78 | $scope.myLoader = false; |
79 | toastr.success('File Upload Successfully', { | 79 | toastr.success('File Upload Successfully', { |
80 | closeButton: true | 80 | closeButton: true |
81 | }) | 81 | }) |
82 | }) | 82 | }) |
83 | }else { | 83 | }else { |
84 | $scope.myLoader = false; | 84 | $scope.myLoader = false; |
85 | $scope.supplierName = true; | 85 | $scope.supplierName = true; |
86 | toastr.error('Please select only csv file', { | 86 | toastr.error('Please select only csv file', { |
87 | closeButton: true | 87 | closeButton: true |
88 | }) | 88 | }) |
89 | } | 89 | } |
90 | } | 90 | } |
91 | 91 | ||
92 | //Import Countries Data | 92 | //Import Countries Data |
93 | $scope.countryData = {}; | 93 | $scope.countryData = {}; |
94 | $scope.importCountryData = function(fileName){ | 94 | $scope.importCountryData = function(fileName){ |
95 | $scope.myLoader = true; | 95 | $scope.myLoader = true; |
96 | console.log(fileName) | 96 | console.log(fileName) |
97 | if(fileName.name != undefined){ | 97 | if(fileName.name != undefined){ |
98 | $scope.countryName = false; | 98 | $scope.countryName = false; |
99 | $scope.selectedCountry = fileName; | 99 | $scope.selectedCountry = fileName; |
100 | $scope.countryData.countrieFile = $scope.selectedCountry; | 100 | $scope.countryData.countrieFile = $scope.selectedCountry; |
101 | }else if(fileName instanceof Array){ | 101 | }else if(fileName instanceof Array){ |
102 | $scope.countryName = false; | 102 | $scope.countryName = false; |
103 | $scope.selectedCountry = fileName[0]; | 103 | $scope.selectedCountry = fileName[0]; |
104 | $scope.countryData.countrieFile = $scope.selectedCountry; | 104 | $scope.countryData.countrieFile = $scope.selectedCountry; |
105 | } | 105 | } |
106 | var fileCheck = $scope.countryData.countrieFile.name.split('.')[1]; | 106 | var fileCheck = $scope.countryData.countrieFile.name.split('.')[1]; |
107 | console.log(fileCheck) | 107 | console.log(fileCheck) |
108 | if(fileCheck == 'csv'){ | 108 | if(fileCheck == 'csv'){ |
109 | UpdateAirportService.updateCountries($scope.countryData).then(function(result) { | 109 | UpdateAirportService.updateCountries($scope.countryData).then(function(result) { |
110 | console.log(result) | 110 | console.log(result) |
111 | $scope.myLoader = false; | 111 | $scope.myLoader = false; |
112 | toastr.success('File Upload Successfully', { | 112 | toastr.success('File Upload Successfully', { |
113 | closeButton: true | 113 | closeButton: true |
114 | }) | 114 | }) |
115 | }) | 115 | }) |
116 | }else { | 116 | }else { |
117 | $scope.myLoader = false; | 117 | $scope.myLoader = false; |
118 | $scope.countryName = true; | 118 | $scope.countryName = true; |
119 | toastr.error('Please select only csv file', { | 119 | toastr.error('Please select only csv file', { |
120 | closeButton: true | 120 | closeButton: true |
121 | }) | 121 | }) |
122 | } | 122 | } |
123 | } | 123 | } |
124 | 124 | ||
125 | //Import Sub Divison State Data | 125 | //Import Sub Divison State Data |
126 | $scope.subDivisionData = {}; | 126 | $scope.subDivisionData = {}; |
127 | $scope.importsubDivisionData = function(fileName){ | 127 | $scope.importsubDivisionData = function(fileName){ |
128 | $scope.myLoader = true; | 128 | $scope.myLoader = true; |
129 | console.log(fileName) | 129 | console.log(fileName) |
130 | if(fileName.name != undefined){ | 130 | if(fileName.name != undefined){ |
131 | $scope.subDivisionName = false; | 131 | $scope.subDivisionName = false; |
132 | $scope.selectedState = fileName; | 132 | $scope.selectedState = fileName; |
133 | $scope.subDivisionData.subDivisionStateFile = $scope.selectedState; | 133 | $scope.subDivisionData.subDivisionStateFile = $scope.selectedState; |
134 | }else if(fileName instanceof Array){ | 134 | }else if(fileName instanceof Array){ |
135 | $scope.subDivisionName = false; | 135 | $scope.subDivisionName = false; |
136 | $scope.selectedState = fileName[0]; | 136 | $scope.selectedState = fileName[0]; |
137 | $scope.subDivisionData.subDivisionStateFile = $scope.selectedState; | 137 | $scope.subDivisionData.subDivisionStateFile = $scope.selectedState; |
138 | } | 138 | } |
139 | var fileCheck = $scope.subDivisionData.subDivisionStateFile.name.split('.')[1]; | 139 | var fileCheck = $scope.subDivisionData.subDivisionStateFile.name.split('.')[1]; |
140 | console.log(fileCheck) | 140 | console.log(fileCheck) |
141 | if(fileCheck == 'csv'){ | 141 | if(fileCheck == 'csv'){ |
142 | UpdateAirportService.updateSubDivisionState($scope.subDivisionData).then(function(result) { | 142 | UpdateAirportService.updateSubDivisionState($scope.subDivisionData).then(function(result) { |
143 | console.log(result) | 143 | console.log(result) |
144 | $scope.myLoader = false; | 144 | $scope.myLoader = false; |
145 | toastr.success('File Upload Successfully', { | 145 | toastr.success('File Upload Successfully', { |
146 | closeButton: true | 146 | closeButton: true |
147 | }) | 147 | }) |
148 | }) | 148 | }) |
149 | }else { | 149 | }else { |
150 | $scope.myLoader = false; | 150 | $scope.myLoader = false; |
151 | $scope.subDivisionName = true; | 151 | $scope.subDivisionName = true; |
152 | toastr.error('Please select only csv file', { | 152 | toastr.error('Please select only csv file', { |
153 | closeButton: true | 153 | closeButton: true |
154 | }) | 154 | }) |
155 | } | 155 | } |
156 | } | 156 | } |
157 | 157 | ||
158 | //Import FBO Handler Data | 158 | //Import FBO Handler Data |
159 | $scope.fboHandlerData = {}; | 159 | $scope.fboHandlerData = {}; |
160 | $scope.importFboHandler = function(fileName){ | 160 | $scope.importFboHandler = function(fileName){ |
161 | $scope.myLoader = true; | 161 | $scope.myLoader = true; |
162 | console.log(fileName) | 162 | console.log(fileName) |
163 | if(fileName.name != undefined){ | 163 | if(fileName.name != undefined){ |
164 | $scope.fboHandlerName = false; | 164 | $scope.fboHandlerName = false; |
165 | $scope.selectedFBO = fileName; | 165 | $scope.selectedFBO = fileName; |
166 | $scope.fboHandlerData.FBOHandlerFile = $scope.selectedFBO; | 166 | $scope.fboHandlerData.FBOHandlerFile = $scope.selectedFBO; |
167 | }else if(fileName instanceof Array){ | 167 | }else if(fileName instanceof Array){ |
168 | $scope.fboHandlerName = false; | 168 | $scope.fboHandlerName = false; |
169 | $scope.selectedFBO = fileName[0]; | 169 | $scope.selectedFBO = fileName[0]; |
170 | $scope.fboHandlerData.FBOHandlerFile = $scope.selectedFBO; | 170 | $scope.fboHandlerData.FBOHandlerFile = $scope.selectedFBO; |
171 | } | 171 | } |
172 | var fileCheck = $scope.fboHandlerData.FBOHandlerFile.name.split('.')[1]; | 172 | var fileCheck = $scope.fboHandlerData.FBOHandlerFile.name.split('.')[1]; |
173 | console.log(fileCheck) | 173 | console.log(fileCheck) |
174 | if(fileCheck == 'csv'){ | 174 | if(fileCheck == 'csv'){ |
175 | UpdateAirportService.updateFBOHandler($scope.fboHandlerData).then(function(result) { | 175 | UpdateAirportService.updateFBOHandler($scope.fboHandlerData).then(function(result) { |
176 | console.log(result) | 176 | console.log(result) |
177 | $scope.myLoader = false; | 177 | $scope.myLoader = false; |
178 | toastr.success('File Upload Successfully', { | 178 | toastr.success('File Upload Successfully', { |
179 | closeButton: true | 179 | closeButton: true |
180 | }) | 180 | }) |
181 | }) | 181 | }) |
182 | }else { | 182 | }else { |
183 | $scope.myLoader = false; | 183 | $scope.myLoader = false; |
184 | $scope.fboHandlerName = true; | 184 | $scope.fboHandlerName = true; |
185 | toastr.error('Please select only csv file', { | 185 | toastr.error('Please select only csv file', { |
186 | closeButton: true | 186 | closeButton: true |
187 | }) | 187 | }) |
188 | } | 188 | } |
189 | } | 189 | } |
190 | 190 | ||
191 | }) | 191 | }) |
app/views/update-airports/updateAirportService.js
1 | (function() { | 1 | (function() { |
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | .service('UpdateAirportService', ['$rootScope', '$q', '$http', 'BE', UpdateAirportService]) | 5 | .service('UpdateAirportService', ['$rootScope', '$q', '$http', 'BE', UpdateAirportService]) |
6 | 6 | ||
7 | function UpdateAirportService($rootScope, $q, $http, BE) { | 7 | function UpdateAirportService($rootScope, $q, $http, BE) { |
8 | 8 | ||
9 | this.updateAirportData = function(data) { | 9 | this.updateAirportData = function(data) { |
10 | 10 | ||
11 | var fd = new FormData(); | 11 | var fd = new FormData(); |
12 | 12 | ||
13 | angular.forEach(data, function(value, key) { | 13 | angular.forEach(data, function(value, key) { |
14 | fd.append(key, value); | 14 | fd.append(key, value); |
15 | }) | 15 | }) |
16 | 16 | ||
17 | var deferred = $q.defer(); | 17 | var deferred = $q.defer(); |
18 | $http({ | 18 | $http({ |
19 | method : 'POST', | 19 | method : 'POST', |
20 | transformRequest: angular.identity, | 20 | transformRequest: angular.identity, |
21 | url : BE.url +'/airport/upload/airports', | 21 | url : BE.url +'/airport/upload/airports', |
22 | headers : {'Content-Type': undefined}, | 22 | headers : {'Content-Type': undefined}, |
23 | data : fd | 23 | data : fd |
24 | }) | 24 | }) |
25 | .success(function(result) { | 25 | .success(function(result) { |
26 | deferred.resolve(result); | 26 | deferred.resolve(result); |
27 | }) | 27 | }) |
28 | return deferred.promise; | 28 | return deferred.promise; |
29 | } | 29 | } |
30 | 30 | ||
31 | this.updateSupplierDetail = function(data) { | 31 | this.updateSupplierDetail = function(data) { |
32 | 32 | ||
33 | var fd = new FormData(); | 33 | var fd = new FormData(); |
34 | 34 | ||
35 | angular.forEach(data, function(value, key) { | 35 | angular.forEach(data, function(value, key) { |
36 | fd.append(key, value); | 36 | fd.append(key, value); |
37 | }) | 37 | }) |
38 | 38 | ||
39 | var deferred = $q.defer(); | 39 | var deferred = $q.defer(); |
40 | $http({ | 40 | $http({ |
41 | method : 'POST', | 41 | method : 'POST', |
42 | transformRequest: angular.identity, | 42 | transformRequest: angular.identity, |
43 | url : BE.url +'/airport/upload/supplierDetail', | 43 | url : BE.url +'/airport/upload/supplierDetail', |
44 | headers : {'Content-Type': undefined}, | 44 | headers : {'Content-Type': undefined}, |
45 | data : fd | 45 | data : fd |
46 | }) | 46 | }) |
47 | .success(function(result) { | 47 | .success(function(result) { |
48 | deferred.resolve(result); | 48 | deferred.resolve(result); |
49 | }) | 49 | }) |
50 | return deferred.promise; | 50 | return deferred.promise; |
51 | } | 51 | } |
52 | 52 | ||
53 | this.updateCountries = function(data) { | 53 | this.updateCountries = function(data) { |
54 | 54 | ||
55 | var fd = new FormData(); | 55 | var fd = new FormData(); |
56 | 56 | ||
57 | angular.forEach(data, function(value, key) { | 57 | angular.forEach(data, function(value, key) { |
58 | fd.append(key, value); | 58 | fd.append(key, value); |
59 | }) | 59 | }) |
60 | 60 | ||
61 | var deferred = $q.defer(); | 61 | var deferred = $q.defer(); |
62 | $http({ | 62 | $http({ |
63 | method : 'POST', | 63 | method : 'POST', |
64 | transformRequest: angular.identity, | 64 | transformRequest: angular.identity, |
65 | url : BE.url +'/airport/upload/updateCountries', | 65 | url : BE.url +'/airport/upload/updateCountries', |
66 | headers : {'Content-Type': undefined}, | 66 | headers : {'Content-Type': undefined}, |
67 | data : fd | 67 | data : fd |
68 | }) | 68 | }) |
69 | .success(function(result) { | 69 | .success(function(result) { |
70 | deferred.resolve(result); | 70 | deferred.resolve(result); |
71 | }) | 71 | }) |
72 | return deferred.promise; | 72 | return deferred.promise; |
73 | } | 73 | } |
74 | 74 | ||
75 | this.updateSubDivisionState = function(data) { | 75 | this.updateSubDivisionState = function(data) { |
76 | 76 | ||
77 | var fd = new FormData(); | 77 | var fd = new FormData(); |
78 | 78 | ||
79 | angular.forEach(data, function(value, key) { | 79 | angular.forEach(data, function(value, key) { |
80 | fd.append(key, value); | 80 | fd.append(key, value); |
81 | }) | 81 | }) |
82 | 82 | ||
83 | var deferred = $q.defer(); | 83 | var deferred = $q.defer(); |
84 | $http({ | 84 | $http({ |
85 | method : 'POST', | 85 | method : 'POST', |
86 | transformRequest: angular.identity, | 86 | transformRequest: angular.identity, |
87 | url : BE.url +'/airport/upload/subDivisionState', | 87 | url : BE.url +'/airport/upload/subDivisionState', |
88 | headers : {'Content-Type': undefined}, | 88 | headers : {'Content-Type': undefined}, |
89 | data : fd | 89 | data : fd |
90 | }) | 90 | }) |
91 | .success(function(result) { | 91 | .success(function(result) { |
92 | deferred.resolve(result); | 92 | deferred.resolve(result); |
93 | }) | 93 | }) |
94 | return deferred.promise; | 94 | return deferred.promise; |
95 | } | 95 | } |
96 | 96 | ||
97 | this.updateFBOHandler = function(data) { | 97 | this.updateFBOHandler = function(data) { |
98 | 98 | ||
99 | var fd = new FormData(); | 99 | var fd = new FormData(); |
100 | 100 | ||
101 | angular.forEach(data, function(value, key) { | 101 | angular.forEach(data, function(value, key) { |
102 | fd.append(key, value); | 102 | fd.append(key, value); |
103 | }) | 103 | }) |
104 | 104 | ||
105 | var deferred = $q.defer(); | 105 | var deferred = $q.defer(); |
106 | $http({ | 106 | $http({ |
107 | method : 'POST', | 107 | method : 'POST', |
108 | transformRequest: angular.identity, | 108 | transformRequest: angular.identity, |
109 | url : BE.url +'/airport/upload/FBOHandler', | 109 | url : BE.url +'/airport/upload/FBOHandler', |
110 | headers : {'Content-Type': undefined}, | 110 | headers : {'Content-Type': undefined}, |
111 | data : fd | 111 | data : fd |
112 | }) | 112 | }) |
113 | .success(function(result) { | 113 | .success(function(result) { |
114 | deferred.resolve(result); | 114 | deferred.resolve(result); |
115 | }) | 115 | }) |
116 | return deferred.promise; | 116 | return deferred.promise; |
117 | } | 117 | } |
118 | } | 118 | } |
119 | 119 | ||
120 | })(); | 120 | })(); |
app/views/updateAllFBO/updateAllFBO.controller.js
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | //Load controller | 3 | //Load controller |
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | 5 | ||
6 | .controller('updateAllFBOController', function($scope, $stateParams, UpdateAllFBO) { | 6 | .controller('updateAllFBOController', function($scope, $stateParams, UpdateAllFBO) { |
7 | $(document).ready(function(){ | 7 | $(document).ready(function(){ |
8 | $('.i-checks').iCheck({ | 8 | $('.i-checks').iCheck({ |
9 | checkboxClass: 'icheckbox_square-green', | 9 | checkboxClass: 'icheckbox_square-green', |
10 | radioClass: 'iradio_square-green', | 10 | radioClass: 'iradio_square-green', |
11 | }); | 11 | }); |
12 | 12 | ||
13 | }); | 13 | }); |
14 | 14 | ||
15 | var userProfileID = $stateParams.id; | 15 | var userProfileID = $stateParams.id; |
16 | UpdateAllFBO.getALlFBOData(userProfileID).then(function(result) { | 16 | UpdateAllFBO.getALlFBOData(userProfileID).then(function(result) { |
17 | console.log(result) | 17 | console.log(result) |
18 | $scope.user = result; | 18 | $scope.user = result; |
19 | $scope.feature = result.accountFeatureControl; | 19 | $scope.feature = result.accountFeatureControl; |
20 | console.log($scope.feature,"dsdsdsds") | 20 | console.log($scope.feature,"dsdsdsds") |
21 | if($scope.user.account.user.status == 'ACTIVE'){ | 21 | if($scope.user.account.user.status == 'ACTIVE'){ |
22 | $scope.status = true; | 22 | $scope.status = true; |
23 | }else { | 23 | }else { |
24 | $scope.status = false; | 24 | $scope.status = false; |
25 | } | 25 | } |
26 | }) | 26 | }) |
27 | 27 | ||
28 | }); | 28 | }); |
app/views/updateAllFBO/updateAllFBO.service.js
1 | (function() { | 1 | (function() { |
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | angular.module('inspinia') | 4 | angular.module('acuefuel') |
5 | .service('UpdateAllFBO', ['$rootScope', '$q', '$http', 'BE', UpdateAllFBO]) | 5 | .service('UpdateAllFBO', ['$rootScope', '$q', '$http', 'BE', UpdateAllFBO]) |
6 | 6 | ||
7 | function UpdateAllFBO($rootScope, $q, $http, BE) { | 7 | function UpdateAllFBO($rootScope, $q, $http, BE) { |
8 | 8 | ||
9 | this.getALlFBOData = function(id) { | 9 | this.getALlFBOData = function(id) { |
10 | 10 | ||
11 | var deferred = $q.defer(); | 11 | var deferred = $q.defer(); |
12 | $http({ | 12 | $http({ |
13 | method : 'GET', | 13 | method : 'GET', |
14 | url : BE.url +'/account/user/'+id, | 14 | url : BE.url +'/account/user/'+id, |
15 | headers : {'Content-Type': 'application/json'}, | 15 | headers : {'Content-Type': 'application/json'}, |
16 | }) | 16 | }) |
17 | .success(function(result) { | 17 | .success(function(result) { |
18 | deferred.resolve(result); | 18 | deferred.resolve(result); |
19 | }) | 19 | }) |
20 | return deferred.promise; | 20 | return deferred.promise; |
21 | } | 21 | } |
22 | 22 | ||
23 | } | 23 | } |
24 | 24 | ||
25 | })(); | 25 | })(); |
package.json
1 | { | 1 | { |
2 | "name": "ADMIN ACUFUEL", | 2 | "name": "adminAcufuel", |
3 | "version": "2.7.0", | 3 | "version": "2.7.0", |
4 | "description": "ADMIN ACUFUEL DASHBOARD", | 4 | "description": "ADMIN ACUFUEL DASHBOARD", |
5 | "dependencies": { | 5 | "dependencies": { |
6 | "grunt": "^0.4.5" | 6 | "grunt": "^0.4.5" |
7 | }, | 7 | }, |
8 | "devDependencies": { | 8 | "devDependencies": { |
9 | "grunt": "^0.4.5", | 9 | "grunt": "^0.4.5", |
10 | "grunt-concurrent": "^1.0.0", | 10 | "grunt-concurrent": "^1.0.0", |
11 | "grunt-contrib-clean": "^0.6.0", | 11 | "grunt-contrib-clean": "^0.6.0", |
12 | "grunt-contrib-concat": "^0.5.0", | 12 | "grunt-contrib-concat": "^0.5.0", |
13 | "grunt-contrib-connect": "^0.8.0", | 13 | "grunt-contrib-connect": "^0.8.0", |
14 | "grunt-contrib-copy": "^0.6.0", | 14 | "grunt-contrib-copy": "^0.6.0", |
15 | "grunt-contrib-cssmin": "^0.10.0", | 15 | "grunt-contrib-cssmin": "^0.10.0", |
16 | "grunt-contrib-htmlmin": "^0.3.0", | 16 | "grunt-contrib-htmlmin": "^0.3.0", |
17 | "grunt-contrib-less": "^0.11.4", | 17 | "grunt-contrib-less": "^0.11.4", |
18 | "grunt-contrib-uglify": "^0.6.0", | 18 | "grunt-contrib-uglify": "^0.6.0", |
19 | "grunt-contrib-watch": "^0.6.1", | 19 | "grunt-contrib-watch": "^0.6.1", |
20 | "grunt-filerev": "^2.0.0", | 20 | "grunt-filerev": "^2.0.0", |
21 | "grunt-usemin": "^2.4.0", | 21 | "grunt-usemin": "^2.4.0", |
22 | "jshint-stylish": "^1.0.0", | 22 | "jshint-stylish": "^1.0.0", |
23 | "load-grunt-tasks": "^0.6.0", | 23 | "load-grunt-tasks": "^0.6.0", |
24 | "time-grunt": "^1.0.0" | 24 | "time-grunt": "^1.0.0" |
25 | } | 25 | } |
26 | } | 26 | } |
27 | 27 |