зеркало из https://github.com/mozilla/MozDef.git
add pivot table
This commit is contained in:
Родитель
040f7895d3
Коммит
0e2720c5e3
|
@ -4,6 +4,18 @@ License, v. 2.0. If a copy of the MPL was not distributed with this
|
|||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
Copyright (c) 2014 Mozilla Corporation
|
||||
*/
|
||||
import { Meteor } from 'meteor/meteor'
|
||||
import { Template } from 'meteor/templating';
|
||||
import { moment} from 'meteor/momentjs:moment';
|
||||
import d3 from 'd3';
|
||||
import 'jquery-ui/ui/data';
|
||||
import 'jquery-ui/ui/widget';
|
||||
import 'jquery-ui/ui/scroll-parent';
|
||||
import 'jquery-ui/ui/widgets/mouse';
|
||||
import 'jquery-ui/ui/widgets/sortable';
|
||||
import pivotUI from 'pivottable';
|
||||
|
||||
import 'pivottable/dist/pivot.css';
|
||||
|
||||
if (Meteor.isClient) {
|
||||
var verisstatsResult = new Object;
|
||||
|
@ -39,18 +51,18 @@ if (Meteor.isClient) {
|
|||
|
||||
container.style.cursor='auto';
|
||||
function startPivotTable(tableData){
|
||||
$("#veris-wrapper").pivotUI(
|
||||
tableData,
|
||||
{
|
||||
cols: ["phase"],
|
||||
rows: ["tags"],
|
||||
menuLimit: 500,
|
||||
}
|
||||
);
|
||||
console.log(tableData);
|
||||
$("#veris-wrapper").pivotUI(
|
||||
tableData,
|
||||
{
|
||||
cols: ["phase"],
|
||||
rows: ["tags"],
|
||||
menuLimit: 500
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Template.incidentsveris.destroyed = function () {
|
||||
debugLog('destroyed');
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -581,6 +581,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"pivottable": {
|
||||
"version": "2.22.0",
|
||||
"resolved": "https://registry.npmjs.org/pivottable/-/pivottable-2.22.0.tgz",
|
||||
"integrity": "sha512-JaPN2aIbrZWClXTRrx6H6IEDlH4Wwm/iuVlzMMBDymitBWWBlSx7ulGmNFOkDJy8iYCkSBFPjW683IVzT8pKUA==",
|
||||
"requires": {
|
||||
"jquery": ">=1.9.0"
|
||||
}
|
||||
},
|
||||
"pnotify": {
|
||||
"version": "3.2.1",
|
||||
"resolved": "https://registry.npmjs.org/pnotify/-/pnotify-3.2.1.tgz",
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
"jquery": "^1.12.1",
|
||||
"jquery-ui": "^1.12.1",
|
||||
"meteor-node-stubs": "^0.4.1",
|
||||
"pivottable": "^2.22.0",
|
||||
"pnotify": "^3.2.1",
|
||||
"three-full": "^11.3.2",
|
||||
"uuid": "^3.3.2"
|
||||
|
|
Загрузка…
Ссылка в новой задаче