Closed iambenkay closed 4 years ago
@iambenkay This is really nice work. Can we move this to a separate page like a dashboard.html
or something?
@harlev any suggestions?
I only left it there to keep the users on the main page. If we're using a dashboard page then we have to persist the box ID to the dashboard npage. Any ideas on how to do that? @vasanthv
@iambenkay we can have a dashboard button in the homepage to open the specific box in the dashboard.
@iambenkay You can pass the id as URL param itself.
I'll get to work on this right away 🏃🏃
@vasanthv any ideas on how to retrieve these query params in dashboard.html? Would have made it server-side but the "/*" wildcard for matching box IDs kind of a turn off.
@iambenkay If you are passing the box id as this /dashboard.html?boxid=box_ajgdfkhadkfhadkfh
then you can get the URL params as window.location.search
. Then you can parse the string to get the box_id. This link can be helpful.
https://stackoverflow.com/questions/8648892/convert-url-parameters-to-a-javascript-object
Moved the Jsonbox API client to dashboard.html ! @vasanthv thanks for the tip on how to pass the query parameters from page to page
@iambenkay added some changes to the Dashboard UI. Let me know if you have any feedback on that.
Thought of creating a way for people to test jsonbox from the homepage before leaving