diff --git a/meteor/client/incidentsveris.js b/meteor/client/incidentsveris.js index 0d7da672..6c710050 100644 --- a/meteor/client/incidentsveris.js +++ b/meteor/client/incidentsveris.js @@ -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'); - }; + }; } diff --git a/meteor/package-lock.json b/meteor/package-lock.json index 8c1e45ed..95bf4ed0 100644 --- a/meteor/package-lock.json +++ b/meteor/package-lock.json @@ -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", diff --git a/meteor/package.json b/meteor/package.json index 87a2eaab..69d64d4a 100644 --- a/meteor/package.json +++ b/meteor/package.json @@ -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"