From e99e71f7fdbeac5a4161274ca86d4a98bb8f2438 Mon Sep 17 00:00:00 2001 From: hjoaquim Date: Thu, 25 Jan 2024 15:12:28 +0000 Subject: [PATCH] removing api key --- .../charting/openbb_charting/core/plotly.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbb_platform/obbject_extensions/charting/openbb_charting/core/plotly.html b/openbb_platform/obbject_extensions/charting/openbb_charting/core/plotly.html index bc7e9e50cad..0968c0a6998 100644 --- a/openbb_platform/obbject_extensions/charting/openbb_charting/core/plotly.html +++ b/openbb_platform/obbject_extensions/charting/openbb_charting/core/plotly.html @@ -4077,7 +4077,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }); const Ce = $5(w.data); P({ ...w, data: Ce }), A(!0), j(!0) } }, [n]), Xr("div", { className: "relative h-full", children: [p && hr("div", { className: "absolute inset-0 flex items-center justify-center z-[100]", children: Xr("svg", { className: "animate-spin h-20 w-20 text-white", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [hr("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), hr("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8v8z" })] }) }), Xr("div", { id: "loading", className: "saving", children: [hr("div", { id: "loading_text", className: "loading_text" }), hr("div", { id: "loader", className: "loader" })] }), hr(P9, { title: (Me = s == null ? void 0 : s.data) == null ? void 0 : Me.title, content: (he = s == null ? void 0 : s.data) == null ? void 0 : he.content, open: s.name === "alertDialog", close: ce }), hr(R9, { addOverlay: fe => { console.log(fe), C.layout.showlegend = !0, P(fe), a(!1) }, plotlyData: C, setLoading: c, open: s.name === "overlayChart", close: ce }), hr(F9, { updateTitle: fe => t(fe), updateAxesTitles: fe => r(fe), defaultTitle: l, plotlyData: C, open: s.name === "titleDialog", close: ce }), hr(D9, { popupData: s.name === "textDialog" ? s == null ? void 0 : s.data : null, open: s.name === "textDialog", close: ce, addAnnotation: fe => me(fe), deleteAnnotation: fe => de(fe) }), hr(X7, { open: ie, onColorChange: _e }), hr(O9, { open: s.name === "downloadFinished", close: ce }), Xr("div", { className: "relative h-full", id: "MainChart", children: [Xr("div", { className: "_header relative gap-4 py-2 text-center text-xs flex items-center justify-between px-4 text-white", children: [hr("div", { className: "w-1/3", children: hr("svg", { xmlns: "http://www.w3.org/2000/svg", width: "64", height: "40", fill: "none", viewBox: "0 0 64 40", children: hr("path", { fill: "#fff", d: "M61.283 3.965H33.608v27.757h25.699V19.826H37.561v-3.965H63.26V3.965h-1.977zM39.538 23.792h15.815v3.965H37.561v-3.965h1.977zM59.306 9.913v1.983H37.561V7.931h21.745v1.982zM33.606 0h-3.954v3.965H33.606V0zM25.7 3.966H0V15.86h25.7v3.965H3.953v11.896h25.7V3.966h-3.955zm0 21.808v1.983H7.907v-3.965h17.791v1.982zm0-15.86v1.982H3.953V7.931h21.745v1.982zM37.039 35.693v2.952l-.246-.246-.245-.245-.245-.247-.245-.246-.246-.246-.245-.245-.245-.247-.247-.246-.245-.246-.245-.246-.245-.246-.246-.246h-.49v3.936h.49v-3.198l.246.246.245.246.245.246.245.246.246.246.246.246.245.247.246.245.245.246.245.247.245.246.246.245.245.246h.245v-3.936h-.49zM44.938 37.17h-.491v-1.477h-2.944v3.937h3.93v-2.46h-.495zm-2.944-.246v-.739h1.962v.984h-1.962v-.245zm2.944.984v1.23h-2.944V37.66h2.944v.247zM52.835 37.17h-.49v-1.477h-2.946v3.937h3.925v-2.46h-.489zm-2.944-.246v-.739h1.963v.984h-1.965l.002-.245zm2.944.984v1.23H49.89V37.66h2.946v.247zM29.174 35.693H25.739v3.936H29.663v-.491H26.229v-.984h2.943v-.493H26.229v-1.476h3.434v-.492h-.489zM13.37 35.693H9.934v3.937h3.925v-3.937h-.49zm0 .738v2.709h-2.945v-2.955h2.943l.001.246zM21.276 35.693h-3.435v3.937h.491v-1.476h3.434v-2.461h-.49zm0 .738v1.23h-2.944v-1.476h2.944v.246z" }) }) }), hr("p", { className: "font-bold w-1/3 flex flex-col gap-0.5 items-center", children: l }), Xr("p", { className: "w-1/3 text-right text-xs", children: [new Intl.DateTimeFormat("en-GB", { dateStyle: "full", timeStyle: "long" }).format(I).replace(/:\d\d /, " "), hr("br", {}), hr("span", { className: "text-grey-400", children: $ })] })] }), hr("div", { className: O7("w-full sm:pb-12", { "h-[calc(100%-10px)]": m, "h-[calc(100%-50px)]": !m }), children: hr(eM, { onInitialized: () => { if (!b) { const fe = document.getElementById("plotlyChart"); console.log("plot", fe), fe && g(fe), fe.globals = Pe } n || a(!0) }, className: "w-full h-full", divId: "plotlyChart", data: C.data, layout: C.layout, config: J9({ setModal: u, changeTheme: Y, autoScaling: j, Loading: c, changeColor: Z, downloadFinished: d }) }) })] })] }) - } function nM() { const [L, I] = In.useState(null), [$, se] = In.useState({}); In.useEffect(() => { { const E = setInterval(() => { if (window.json_data) { const e = window.json_data; console.log(e), I(e), clearInterval(E) } }, 100); return () => clearInterval(E) } }, []); const R = (E => { var y, h, l, t; if (!E) return null; const e = { added_traces: [], csv_yaxis_id: null, cmd_src_idx: null, cmd_idx: null, cmd_src: "", old_margin: null, title: "" }, w = (h = (y = E.layout) == null ? void 0 : y.title) == null ? void 0 : h.text.replace(/ -/g, "").replace(/-/g, "").replace(/|<\/b>/g, "").replace(/ /g, "_"), k = new Date().toISOString().slice(0, 10).replace(/-/g, ""), i = new Date().toISOString().slice(11, 19).replace(/:/g, ""); window.title = `openbb_${w}_${k}_${i}`.replace(/_{2,}/g, "_"), E.layout.annotations !== void 0 && E.layout.annotations.forEach(function (o) { if (o.text !== void 0 && o.text[0] === "/") { e.cmd_src = o.text, e.cmd_idx = E.layout.annotations.indexOf(o), o.text = ""; const r = E.layout.margin; e.old_margin = { ...r }, r.t !== void 0 && r.t > 40 && (r.t = 40), E.cmd === "/stocks/candle" && (r.r -= 50) } }), E.data.forEach(function (o) { if (o.name !== void 0) { const r = o.name.length; o.name = `${o.name} `, o.hoverlabel = { namelength: r } } }); const _ = ((t = (l = E.layout) == null ? void 0 : l.title) == null ? void 0 : t.text) || "Interactive Chart"; return e.title = _, { data: E, date: new Date, globals: e, cmd: E.command_location, posthog: E.posthog, python_version: E.python_version, pywry_version: E.pywry_version, platform_version: E.platform_version, theme: E.theme, title: _ } })(L); if (R) { R.posthog.collect_logs && !$ && se({ api_host: "https://app.posthog.com", autocapture: { css_selector_allowlist: [".ph-capture"] }, capture_pageview: !1, loaded: function (k) { const i = (R == null ? void 0 : R.log_id) || ""; i !== "" && i !== "REPLACE_ME" && k.identify(i), k.onFeatureFlags(function () { k.isFeatureEnabled("record-pywry", { send_event: !1 }) || k.stopSessionRecording(), k.isFeatureEnabled("collect-logs-pywry", { send_event: !1 }) ? k.has_opted_out_capturing() && k.opt_in_capturing() : k.opt_out_capturing() }) } }); const E = { INFO: { command: R.cmd, title: R.title, date: R.date, python_version: R.python_version, pywry_version: R.pywry_version, platform_version: R.platform_version } }, e = hr(tM, { json: R.data, date: R.date, cmd: R.cmd, title: R.title, globals: R.globals, theme: R.theme, info: E }); return R.posthog.collect_logs && $ ? hr(L7, { apiKey: "phc_6FXLqu4uW9yxfyN8DpPdgzCdlYXOmIWdMGh6GnBgJLX", options: $, children: e }) : e } else return hr("div", { className: "absolute inset-0 flex items-center justify-center z-[100]", children: Xr("svg", { className: "animate-spin h-20 w-20 text-white", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [hr("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), hr("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8v8z" })] }) }) } const rM = document.getElementById("root"); Hw(rM).render(hr(B_.StrictMode, { children: hr(nM, {}) })); + } function nM() { const [L, I] = In.useState(null), [$, se] = In.useState({}); In.useEffect(() => { { const E = setInterval(() => { if (window.json_data) { const e = window.json_data; console.log(e), I(e), clearInterval(E) } }, 100); return () => clearInterval(E) } }, []); const R = (E => { var y, h, l, t; if (!E) return null; const e = { added_traces: [], csv_yaxis_id: null, cmd_src_idx: null, cmd_idx: null, cmd_src: "", old_margin: null, title: "" }, w = (h = (y = E.layout) == null ? void 0 : y.title) == null ? void 0 : h.text.replace(/ -/g, "").replace(/-/g, "").replace(/|<\/b>/g, "").replace(/ /g, "_"), k = new Date().toISOString().slice(0, 10).replace(/-/g, ""), i = new Date().toISOString().slice(11, 19).replace(/:/g, ""); window.title = `openbb_${w}_${k}_${i}`.replace(/_{2,}/g, "_"), E.layout.annotations !== void 0 && E.layout.annotations.forEach(function (o) { if (o.text !== void 0 && o.text[0] === "/") { e.cmd_src = o.text, e.cmd_idx = E.layout.annotations.indexOf(o), o.text = ""; const r = E.layout.margin; e.old_margin = { ...r }, r.t !== void 0 && r.t > 40 && (r.t = 40), E.cmd === "/stocks/candle" && (r.r -= 50) } }), E.data.forEach(function (o) { if (o.name !== void 0) { const r = o.name.length; o.name = `${o.name} `, o.hoverlabel = { namelength: r } } }); const _ = ((t = (l = E.layout) == null ? void 0 : l.title) == null ? void 0 : t.text) || "Interactive Chart"; return e.title = _, { data: E, date: new Date, globals: e, cmd: E.command_location, posthog: E.posthog, python_version: E.python_version, pywry_version: E.pywry_version, platform_version: E.platform_version, theme: E.theme, title: _ } })(L); if (R) { R.posthog.collect_logs && !$ && se({ api_host: "https://app.posthog.com", autocapture: { css_selector_allowlist: [".ph-capture"] }, capture_pageview: !1, loaded: function (k) { const i = (R == null ? void 0 : R.log_id) || ""; i !== "" && i !== "REPLACE_ME" && k.identify(i), k.onFeatureFlags(function () { k.isFeatureEnabled("record-pywry", { send_event: !1 }) || k.stopSessionRecording(), k.isFeatureEnabled("collect-logs-pywry", { send_event: !1 }) ? k.has_opted_out_capturing() && k.opt_in_capturing() : k.opt_out_capturing() }) } }); const E = { INFO: { command: R.cmd, title: R.title, date: R.date, python_version: R.python_version, pywry_version: R.pywry_version, platform_version: R.platform_version } }, e = hr(tM, { json: R.data, date: R.date, cmd: R.cmd, title: R.title, globals: R.globals, theme: R.theme, info: E }); return R.posthog.collect_logs && $ ? hr(L7, { apiKey: "", options: $, children: e }) : e } else return hr("div", { className: "absolute inset-0 flex items-center justify-center z-[100]", children: Xr("svg", { className: "animate-spin h-20 w-20 text-white", xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [hr("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), hr("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8v8z" })] }) }) } const rM = document.getElementById("root"); Hw(rM).render(hr(B_.StrictMode, { children: hr(nM, {}) }));