stats: Use Plotly.js as a module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-07-27 16:04:01 -07:00
committed by Tim Abbott
parent eb09c137cf
commit 584d6bfa41
3 changed files with 5 additions and 3 deletions

View File

@@ -104,7 +104,6 @@
"ListCursor": false,
"MessageListData": false,
"MessageListView": false,
"Plotly": false,
"UserSearch": false,
"activity": false,
"admin": false,

View File

@@ -1,3 +1,7 @@
const Plotly = require("plotly.js/lib/core");
Plotly.register([require("plotly.js/lib/bar"), require("plotly.js/lib/pie")]);
const font_14pt = {
family: "Source Sans Pro",
size: 14,

View File

@@ -114,8 +114,7 @@
"stats": [
"./static/js/bundles/portico.js",
"./static/styles/portico/stats.scss",
"./static/js/stats/stats.js",
"plotly.js/dist/plotly-basic.min.js"
"./static/js/stats/stats.js"
],
"app": ["./static/js/bundles/app.js", "katex/dist/katex.min.js"],
"digest": ["./static/js/bundles/portico.js"]