tarashia / PokeFarmQoL

PokéFarm QoL
2 stars 3 forks source link

Feature: Back up and restore settings #18

Open tarashia opened 1 year ago

tarashia commented 1 year ago

Allow users to save a base-64 encoded set of their current options, so they can share it across devices or restore it if they need to clear their cookies etc.

Exporting settings is easy, already mostly done, it's importing them again that could be tricky.

At minimum, need to be able to detect truncated input. I believe the entire decoded block should be valid JSON, and then the contents of each top level key should also be valid JSON. Checking both of those might be good enough, to prevent mistaken bad formatting. Then will just need a way to input the encoded text, and maybe an auto-copy button for the export step.