Display of online state for nodes and hostname for monitoring info in admin panel.
This commit is contained in:
parent
c0ae97e298
commit
cd746a41ea
9 changed files with 168 additions and 56 deletions
server/utils
12
server/utils/databaseUtil.js
Normal file
12
server/utils/databaseUtil.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('ffffng').factory('DatabaseUtil', function (_) {
|
||||
return {
|
||||
inCondition: function (field, list) {
|
||||
return {
|
||||
query: '(' + field + ' IN (' + _.join(_.times(list.length, _.constant('?')), ', ') + '))',
|
||||
params: list
|
||||
};
|
||||
}
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue