satisfactory-factories / application

A tool to visualise groupings of factories to create a true Modular Factory setup for the game Satisfactory.
https://satisfactory-factories.app
GNU Affero General Public License v3.0
25 stars 5 forks source link

Export / Import data #23

Open Maelstromeous opened 1 week ago

Maelstromeous commented 1 week ago

Would be nice where a user can save a copy of their data offline as a JSON file, and also import it.

samsmithnz commented 1 week ago

I'm thinking that this would be great to implement sooner than later - for tests, and debugging. I'm running into a scenario now that isn't easily sharable.

If we have this generate a json doc that is downloadable/uploadable - does that sound right?

Maelstromeous commented 1 week ago

Yep pretty much, just needs a JSON doc that literally just takes out of localStorage.getItem('factories'), converts it into a file and downloads it for the user, and the reverse for import.

Maelstromeous commented 1 week ago

I was thinking though, it might be a better thing if we create a "share" link. The share link would simply just contain a hash of the data base64 encoded, so people can create mockups of factory plans and share them with people. #71