techrail / devta

DEVeloper tools that are supposed to help you.
https://devta.techrail.in/
MIT License
23 stars 25 forks source link

Shareable LMID URL #137

Closed vaibhav-kaushal closed 11 months ago

vaibhav-kaushal commented 11 months ago

The LMID page is awesome. However, people who use it might want to save their settings in one way or the other. For example, someone might want to have BASE64 with 100000 as the delta and prefers not to display the log levels. Another person might want BASE36 only but with 0 delta and wants to always display the log levels.

The easiest way to achieve that would be to create bookmarkable (or shareable) URLs. The page can read from the options in the URL and set the values accordingly. For example:

  1. https://devta.techrail.in/lmid?mode=base64&delta=100000&showLogLevels=false could fulfill the first need whereas
  2. https://devta.techrail.in/lmid?mode=base36&showLogLevels=true could fulfill the second need.

We can easily support this in the preloading code. We should also provide a button to copy the URL on the interface.