mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
stats: Use Plotly.js as a module.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
eb09c137cf
commit
584d6bfa41
@@ -104,7 +104,6 @@
|
||||
"ListCursor": false,
|
||||
"MessageListData": false,
|
||||
"MessageListView": false,
|
||||
"Plotly": false,
|
||||
"UserSearch": false,
|
||||
"activity": false,
|
||||
"admin": false,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user