Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stats: Use Plotly.js as a module.
Anders Kaseorg584d6bfa4126
diff --git a/.eslintrc.json b/.eslintrc.jsonindex f5c9352e91d..912bb7114f1 100644--- a/.eslintrc.json+++ b/.eslintrc.json@@ -104,7 +104,6 @@"ListCursor": false,"MessageListData": false,"MessageListView": false,- "Plotly": false,"UserSearch": false,"activity": false,"admin": false,diff --git a/static/js/stats/stats.js b/static/js/stats/stats.jsindex 7d827faf3ec..17dd0c42abb 100644--- a/static/js/stats/stats.js+++ b/static/js/stats/stats.js@@ -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,diff --git a/tools/webpack.assets.json b/tools/webpack.assets.jsonindex 90346c87382..d199fd4aa8a 100644--- a/tools/webpack.assets.json+++ b/tools/webpack.assets.json@@ -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"]