DenverCoder1 / readme-typing-svg

⚡ Dynamically generated, customizable SVG that gives the appearance of typing and deleting text for use on your profile page, repositories, or website.
https://readme-typing-svg.demolab.com
MIT License
5.4k stars 841 forks source link

Feature Request: Persistent Configuration Settings #279

Open LakshmanKishore opened 7 months ago

LakshmanKishore commented 7 months ago

Is your feature request related to a problem? The current implementation resets all configuration settings to default upon page refresh. This can be inconvenient for users who wish to retain their customized settings.

Describe the solution you'd like Implement a mechanism to persistently store user configuration settings using localStorage. This way, when users make changes to the configuration, the settings will be saved locally and loaded on page reload.

Describe alternatives you've considered The alternative is to manually set configurations every time the page is refreshed, which is not user-friendly.

Additional context

Benefits

Steps to Reproduce

  1. Visit the live preview
  2. Set custom configurations (e.g., text, color, font).
  3. Refresh the page.
  4. Observe that configurations are reset to default.
DenverCoder1 commented 1 month ago

Not exactly the same, but I just implemented in #311 a way to restore parameters from the URL, so if there is a configuration you want to retain, you can save or bookmark the permalink to it and continue working from it by opening the link later.

LakshmanKishore commented 4 days ago

I'm not sure if this is a good solution, If we cannot store it in localStorage and access it. Then we can update the URL every time some configuration has changed so that even on the page refresh, user will be able to restore the previous configuration.