Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Olerinskaia committed Oct 21, 2024
1 parent 832c062 commit 155ffb8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/ControlPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ const ControlPanel = observer(function ControlPanel() {
</li>}
{user?.id && <li className="nav-item d-lg-none">
<a className="nav-link bitquery-links"
href={`${user?.graphql_admin_url}/auth/logout`}>Logout</a>
href={`${user?.graphql_admin_url}/auth/logout?redirect_to=${window.location.href}`}>Logout</a>
</li>}
</ul>
<ProfileComponent/>
Expand Down
6 changes: 3 additions & 3 deletions src/components/ProfileComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const [toastLink, setToastLink] = useState(window.location.href)
<a className='bitquery-ico'
href={`https://account.bitquery.io/auth/login?redirect_to=${toastLink}`}> log
in </a> or
<a className='bitquery-ico' href="https://account.bitquery.io/auth/signup"> register </a>
<a className='bitquery-ico' href={`https://account.bitquery.io/auth/signup?redirect_to=${toastLink}`}> register </a>
Logging in will allow you to access all the features and keep track of your activities.
</div>
), {autoClose: 2000});
), {autoClose: 3000});
setToastShown(true)
}
}, 2000);
Expand Down Expand Up @@ -70,7 +70,7 @@ const [toastLink, setToastLink] = useState(window.location.href)
<NavDropdown.Item className="bitquery-links" href={`${user?.graphql_admin_url}/user/api_key`}>API
key</NavDropdown.Item>
<NavDropdown.Item className="bitquery-links"
href={`${user?.graphql_admin_url}/auth/logout`}>Logout</NavDropdown.Item>
href={`${user?.graphql_admin_url}/auth/logout?redirect_to=${window.location.href}`}>Logout</NavDropdown.Item>
</NavDropdown>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions src/components/bitqueditor/components/WidgetView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions src/server/endPoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/store/queriesStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class User {
// <a className='bitquery-ico'
// href={`https://account.bitquery.io/auth/login?redirect_to=${window.location.href}`}> log
// in </a> or
// <a className='bitquery-ico' href="https://account.bitquery.io/auth/signup"> register </a>
// <a className='bitquery-ico' href={`https://account.bitquery.io/auth/signup?redirect_to=${window.location.href}`}> register </a>
// Logging in will allow you to access all the features and keep track of your activities.
// </div>
// ), {autoClose: 2000})
Expand Down

0 comments on commit 155ffb8

Please sign in to comment.