Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃殌] Export/Import for settings and progress #1423

Closed
bkimminich opened this issue Jul 10, 2020 · 3 comments
Closed

[馃殌] Export/Import for settings and progress #1423

bkimminich opened this issue Jul 10, 2020 · 3 comments

Comments

@bkimminich
Copy link
Member

馃殌 Feature request

Description

It would be nice to have the chance to save

  • hacking progress (continueCode cookie)
  • local settings
    • cookies language, cookieconsent_status and welcomebanner_status
    • local storage displayedChallengeCategories, showOnlyTutorialChallenges, showDisabledChallenges and displayedDifficulties

in a local file and restore from that file later on the same or a different computer.

Solution ideas

The settings/progress could be saved in a JSON object and then exported via JSON.stringify into https://www.npmjs.com/package/file-saver. Restore mechanism could be a lonal-only file upload parsing the JSON string and populating the corresponding items in cookies and local storage.

Possible alternatives

Some kind of sophisticated cloud storage and syncing like IntelliJ... 馃ぃ

@bkimminich
Copy link
Member Author

Preliminary save/restore: 00a8573

bkimminich added a commit that referenced this issue Jul 14, 2020
bkimminich added a commit that referenced this issue Jul 14, 2020
@bkimminich
Copy link
Member Author

Save and Restore is implemented, I need to add some tests and also allow the whole feature to be turned off (e.g. by default in CTF mode) because it's just too convenient to cheat with this.

@github-actions
Copy link

This thread has been automatically locked because it has not had recent activity after it was closed. 馃敀 Please open a new issue for regressions or related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant