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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add debug functions for backing up and restoring data #146

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

libook
Copy link

@libook libook commented Jul 12, 2021

为了调试的时候方便备份和恢复数据,所以在设置界面的Debug区域添加了备份和导入数据的功能。

另外不连接player-be的时候也可以用这个方法来备份和迁移数据。

目前看核心配置信息和歌单完整信息都在localStorage里,所以就只备份了这块;
部分登录信息在Cookies中,处于实用性和安全方面考虑暂未包含这部分的备份。

导入数据的功能不会删除现有数据,仅会覆盖备份文件中提供的字段。

@libook
Copy link
Author

libook commented Jul 14, 2021

增加了一个备份文件版本号的判断功能,避免导入不可用的数据格式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant