Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Import/Export Templates #11
Allow users to import/export both official and user-generated templates. JSON is probably the safest option but investigation is required as to whether or not Chrome allows file uploads or if copy-paste system should be used. Regardless, the system must allow multiple templates to be imported/exported at one time. Also, it is vital that the system is future-proof and is probably wise to include the extension version from the beginning should it be required further down the line.
When importing care should be taken to ensure name conflicts are resolved if/when they occur, always favoring the existing template. This could be done by attempting to append a number (starting from
Full validation should be carried out on the imported templates once completed. Imports should not be persisted automatically and should only be if/when the user clicks the "Save & Close" button.
This has been implemented in my last commit but still requires intensive testing and the code needs cleaned up (as does a lot of code in
Over time I will determine whether or not the Save As... setup is workable and safe.
This has now been implemented and I'm happy with it so far. I'm sure any/all bugs will be picked up by users with normal use. May test offline Save As... functionality is triggered as expected (when there's no internet connection) so really just need to test