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: {
|
globals: {
|
||||||
document: true,
|
document: true,
|
||||||
angular: true,
|
angular: true,
|
||||||
jQuery: true,
|
|
||||||
$: true,
|
$: true,
|
||||||
describe: true,
|
describe: true,
|
||||||
it: true,
|
it: true,
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
'use strict';
|
/*global jQuery */
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
angular.module('bansho.config', [])
|
angular.module('bansho.config', [])
|
||||||
|
|
||||||
|
@ -29,11 +29,9 @@ angular.module('bansho.host', ['bansho.live',
|
|||||||
if (service.service_description === "cpu") {
|
if (service.service_description === "cpu") {
|
||||||
$scope.host.cpuService = service;
|
$scope.host.cpuService = service;
|
||||||
$scope.host.services.splice(i, 1);
|
$scope.host.services.splice(i, 1);
|
||||||
console.log(i)
|
|
||||||
} else if (service.service_description === "load") {
|
} else if (service.service_description === "load") {
|
||||||
$scope.host.loadService = service;
|
$scope.host.loadService = service;
|
||||||
$scope.host.services.splice(i, 1);
|
$scope.host.services.splice(i, 1);
|
||||||
console.log(i)
|
|
||||||
} else {
|
} else {
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/*global jQuery */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('bansho.live', [])
|
angular.module('bansho.live', [])
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/*global PNotify */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('bansho.notifications', [])
|
angular.module('bansho.notifications', [])
|
||||||
|
@ -19,7 +19,7 @@ angular.module('bansho.table.state_icon', [])
|
|||||||
$scope.stateClass = 'state--error';
|
$scope.stateClass = 'state--error';
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
.directive('banshoServiceStateIcon', function () {
|
.directive('banshoServiceStateIcon', function () {
|
||||||
@ -40,5 +40,5 @@ angular.module('bansho.table.state_icon', [])
|
|||||||
$scope.stateClass = 'state--error';
|
$scope.stateClass = 'state--error';
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
};
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/*global jQuery */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('bansho.view', ['ngRoute',
|
angular.module('bansho.view', ['ngRoute',
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/*global jQuery */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('bansho.view.dashboard', ['ngRoute',
|
angular.module('bansho.view.dashboard', ['ngRoute',
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/*global jQuery */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('bansho.view.singleTable', ['ngRoute',
|
angular.module('bansho.view.singleTable', ['ngRoute',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user