-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add password for backups #1892
Add password for backups #1892
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/state/src/hooks/backup.ts
Outdated
link.download = `UmamiV2Backup_${downloadedDate}.json`; | ||
|
||
const currentDate = new Date().toISOString().slice(0, 10); | ||
link.href = `data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(encryptedBackup))}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo in chatset=utf-8 => charset=utf-8
packages/state/src/hooks/backup.ts
Outdated
return restoreV2BackupFile(backup, password, persistor); | ||
}; | ||
|
||
export const downloadBackupFile = async (password: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have unit tests for this function
Checked manually, everything works as expected! |
367af21
to
cb6cd30
Compare
cb6cd30
to
e8dd2cc
Compare
e8dd2cc
to
8ebf20a
Compare
8ebf20a
to
61e16a7
Compare
61e16a7
to
5628053
Compare
Proposed changes
Task link
Types of changes
Steps to reproduce
Screenshots
Add the screenshots of how the app used to look like and how it looks now
Checklist