From 155ffb839502dc32018b4c6a0524b30aa0c7ded8 Mon Sep 17 00:00:00 2001 From: Nadia Date: Mon, 21 Oct 2024 13:01:09 +0300 Subject: [PATCH] BIT-10257 --- src/components/ControlPanel.js | 2 +- src/components/ProfileComponent.js | 6 +++--- src/components/bitqueditor/components/WidgetView.js | 1 + src/server/endPoints.js | 1 + src/store/queriesStore.js | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/ControlPanel.js b/src/components/ControlPanel.js index 4788689..499cae2 100644 --- a/src/components/ControlPanel.js +++ b/src/components/ControlPanel.js @@ -264,7 +264,7 @@ const ControlPanel = observer(function ControlPanel() { } {user?.id &&
  • Logout + href={`${user?.graphql_admin_url}/auth/logout?redirect_to=${window.location.href}`}>Logout
  • } diff --git a/src/components/ProfileComponent.js b/src/components/ProfileComponent.js index b706322..ac18092 100644 --- a/src/components/ProfileComponent.js +++ b/src/components/ProfileComponent.js @@ -26,10 +26,10 @@ const [toastLink, setToastLink] = useState(window.location.href) log in or - register + register Logging in will allow you to access all the features and keep track of your activities. - ), {autoClose: 2000}); + ), {autoClose: 3000}); setToastShown(true) } }, 2000); @@ -70,7 +70,7 @@ const [toastLink, setToastLink] = useState(window.location.href) API key Logout + href={`${user?.graphql_admin_url}/auth/logout?redirect_to=${window.location.href}`}>Logout ); diff --git a/src/components/bitqueditor/components/WidgetView.js b/src/components/bitqueditor/components/WidgetView.js index 45af25c..536819b 100644 --- a/src/components/bitqueditor/components/WidgetView.js +++ b/src/components/bitqueditor/components/WidgetView.js @@ -27,6 +27,7 @@ const WidgetView = observer(function WidgetView({ children, widget, dataSource, if (explicitHeight) { widget = widget.replace(explicitHeight[0], '') } + console.log('widget',widget) const ChartWidget = eval(`(${widget})`) const chartWidgetInstance = new ChartWidget(refChart.current, dataSource.historyDataSource, dataSource.subscriptionDataSource) await chartWidgetInstance.init() diff --git a/src/server/endPoints.js b/src/server/endPoints.js index abbce81..b301a7a 100644 --- a/src/server/endPoints.js +++ b/src/server/endPoints.js @@ -877,6 +877,7 @@ module.exports = function (app, db, redisClient) { }) app.get('/api/getwidgetconfig/:id', async (req, res) => { const widgetConfig = await redisClient.get(req.params.id) + console.log('widgetConfig',widgetConfig) if (widgetConfig !== null) { console.log('there is some widgetconfig') res.status(200).send(JSON.parse(widgetConfig)) diff --git a/src/store/queriesStore.js b/src/store/queriesStore.js index 58df2b5..4959459 100644 --- a/src/store/queriesStore.js +++ b/src/store/queriesStore.js @@ -43,7 +43,7 @@ class User { // log // in or - // register + // register // Logging in will allow you to access all the features and keep track of your activities. // // ), {autoClose: 2000})