mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 16:27:42 -02:30
jshint fixes
This commit is contained in:
@@ -17,11 +17,11 @@ if ($basePath) {
|
||||
urlPrefix = $basePath;
|
||||
}
|
||||
|
||||
import * as Helpers from 'tower/helpers';
|
||||
import * as Forms from 'tower/forms';
|
||||
import * as Lists from 'tower/lists';
|
||||
import * as Widgets from 'tower/widgets';
|
||||
import * as Help from 'tower/help';
|
||||
import 'tower/helpers';
|
||||
import 'tower/forms';
|
||||
import 'tower/lists';
|
||||
import 'tower/widgets';
|
||||
import 'tower/help';
|
||||
import {Home, HomeGroups, HomeHosts} from 'tower/controllers/Home';
|
||||
import {SocketsController} from 'tower/controllers/Sockets';
|
||||
import {Authenticate} from 'tower/controllers/Authentication';
|
||||
@@ -56,7 +56,7 @@ var tower = angular.module('Tower', [
|
||||
dashboardGraphs.name,
|
||||
'AuthService',
|
||||
'Utilities',
|
||||
Helpers.License.name,
|
||||
'License',
|
||||
'OrganizationFormDefinition',
|
||||
'UserFormDefinition',
|
||||
'FormGenerator',
|
||||
|
||||
@@ -55,4 +55,4 @@ export
|
||||
SurveyQuestion,
|
||||
Teams,
|
||||
Users
|
||||
}
|
||||
};
|
||||
|
||||
@@ -8,4 +8,4 @@ export
|
||||
FirefoxSocketHelp,
|
||||
InventoryGroups,
|
||||
SafariSocketHelp
|
||||
}
|
||||
};
|
||||
|
||||
@@ -79,4 +79,4 @@ export
|
||||
RelatedSearch,
|
||||
Search,
|
||||
Teams
|
||||
}
|
||||
};
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* @ngdoc function
|
||||
* @name helpers.function:JobTemplatesHelper
|
||||
* @description Routines shared by job related controllers
|
||||
*/
|
||||
* @ngdoc function
|
||||
* @name helpers.function:JobTemplatesHelper
|
||||
* @description Routines shared by job related controllers
|
||||
*/
|
||||
|
||||
export default
|
||||
angular.module('JobTemplatesHelper', ['Utilities'])
|
||||
|
||||
@@ -58,4 +58,4 @@ export
|
||||
Streams,
|
||||
Teams,
|
||||
Users
|
||||
}
|
||||
};
|
||||
|
||||
@@ -86,4 +86,4 @@ export default function() {
|
||||
|
||||
chartModel.update();
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
HostCountGraphData.$inject =
|
||||
export default
|
||||
[ "Rest",
|
||||
"GetBasePath",
|
||||
"ProcessErrors",
|
||||
"$q"
|
||||
]
|
||||
"$q",
|
||||
HostCountGraphData
|
||||
];
|
||||
|
||||
export default
|
||||
function HostCountGraphData(Rest, getBasePath, processErrors, $q) {
|
||||
function HostCountGraphData(Rest, getBasePath, processErrors, $q) {
|
||||
|
||||
function pluck(property, promise) {
|
||||
return promise.then(function(value) {
|
||||
@@ -40,9 +40,8 @@ export default
|
||||
processErrors(null, response.data, response.status, null, { hdr: 'Error!',
|
||||
msg: errorMessage
|
||||
});
|
||||
return response;
|
||||
return $q.reject(response);
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ export default
|
||||
"$q",
|
||||
JobStatusGraphData];
|
||||
|
||||
function JobStatusGraphData(Rest, getBasePath, processErrors, $rootScope, $q) {
|
||||
function JobStatusGraphData(Rest, getBasePath, processErrors, $rootScope, $q) {
|
||||
|
||||
function pluck(property, promise) {
|
||||
return promise.then(function(value) {
|
||||
@@ -56,4 +56,4 @@ export default
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,4 @@ export
|
||||
PortalJobs,
|
||||
SCMSyncStatus,
|
||||
Stream
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user