myems-admin/js/angular/angular-resource.js
Function ResourceProvider
has 273 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
provider('$resource', function ResourceProvider() {
var PROTOCOL_AND_IPV6_REGEX = /^https?:\/\/\[[^\]]*][^/]*/;
var provider = this;
Function $get
has 259 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.$get = ['$http', '$log', '$q', '$timeout', function($http, $log, $q, $timeout) {
var noop = angular.noop,
forEach = angular.forEach,
extend = angular.extend,
Function resourceFactory
has 181 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resourceFactory(url, paramDefaults, actions, options) {
var route = new Route(url, options);
actions = extend({}, provider.defaults.actions, actions);
Function name
has 131 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Resource[name] = function(a1, a2, a3, a4) {
var params = {}, data, onSuccess, onError;
switch (arguments.length) {
case 4:
File angular-resource.js
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* @license AngularJS v1.8.3
* (c) 2010-2020 Google LLC. http://angularjs.org
* License: MIT
*/
Function setUrlParams
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setUrlParams: function(config, params, actionUrl) {
var self = this,
url = actionUrl || self.template,
val,
encodedVal,