vasanthv / jsonbox

HTTP-based JSON storage.
https://jsonbox.io
MIT License
2.49k stars 173 forks source link

Test jsonbox from homepage #38

Closed iambenkay closed 4 years ago

iambenkay commented 4 years ago

Thought of creating a way for people to test jsonbox from the homepage before leaving

Screenshot from 2019-10-18 07-15-57 Screenshot from 2019-10-18 07-16-20

vasanthv commented 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?

iambenkay commented 4 years ago

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

vasanthv commented 4 years ago

@iambenkay we can have a dashboard button in the homepage to open the specific box in the dashboard.

vasanthv commented 4 years ago

@iambenkay You can pass the id as URL param itself.

iambenkay commented 4 years ago

I'll get to work on this right away 🏃🏃

iambenkay commented 4 years ago

@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.

vasanthv commented 4 years ago

@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

iambenkay commented 4 years ago

Moved the Jsonbox API client to dashboard.html ! @vasanthv thanks for the tip on how to pass the query parameters from page to page image image

vasanthv commented 4 years ago

@iambenkay added some changes to the Dashboard UI. Let me know if you have any feedback on that.