Improve jshint task and fix errors
Change-Id: I1b9c7d4a7040e3fee66388b9744b553a6fb1da6e
This commit is contained in:
parent
5726557baf
commit
63f3ad58d6
@ -74,7 +74,6 @@ module.exports = function (grunt) {
|
||||
globals: {
|
||||
document: true,
|
||||
angular: true,
|
||||
jQuery: true,
|
||||
$: true,
|
||||
describe: true,
|
||||
it: true,
|
||||
|
@ -1,5 +1,6 @@
|
||||
'use strict';
|
||||
/*global jQuery */
|
||||
|
||||
'use strict';
|
||||
|
||||
angular.module('bansho.config', [])
|
||||
|
||||
|
@ -29,11 +29,9 @@ angular.module('bansho.host', ['bansho.live',
|
||||
if (service.service_description === "cpu") {
|
||||
$scope.host.cpuService = service;
|
||||
$scope.host.services.splice(i, 1);
|
||||
console.log(i)
|
||||
} else if (service.service_description === "load") {
|
||||
$scope.host.loadService = service;
|
||||
$scope.host.services.splice(i, 1);
|
||||
console.log(i)
|
||||
} else {
|
||||
++i;
|
||||
}
|
||||
|
@ -1,3 +1,5 @@
|
||||
/*global jQuery */
|
||||
|
||||
'use strict';
|
||||
|
||||
angular.module('bansho.live', [])
|
||||
|
@ -1,3 +1,5 @@
|
||||
/*global PNotify */
|
||||
|
||||
'use strict';
|
||||
|
||||
angular.module('bansho.notifications', [])
|
||||
|
@ -19,7 +19,7 @@ angular.module('bansho.table.state_icon', [])
|
||||
$scope.stateClass = 'state--error';
|
||||
}
|
||||
}]
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
.directive('banshoServiceStateIcon', function () {
|
||||
@ -40,5 +40,5 @@ angular.module('bansho.table.state_icon', [])
|
||||
$scope.stateClass = 'state--error';
|
||||
}
|
||||
}]
|
||||
}
|
||||
};
|
||||
});
|
||||
|
@ -1,3 +1,5 @@
|
||||
/*global jQuery */
|
||||
|
||||
'use strict';
|
||||
|
||||
angular.module('bansho.view', ['ngRoute',
|
||||
|
@ -1,3 +1,5 @@
|
||||
/*global jQuery */
|
||||
|
||||
'use strict';
|
||||
|
||||
angular.module('bansho.view.dashboard', ['ngRoute',
|
||||
|
@ -1,3 +1,5 @@
|
||||
/*global jQuery */
|
||||
|
||||
'use strict';
|
||||
|
||||
angular.module('bansho.view.singleTable', ['ngRoute',
|
||||
|
Loading…
x
Reference in New Issue
Block a user