feat: add option to exclude WebDAV credentials from backup#1947
Open
maxweilun1989 wants to merge 2 commits into
Open
feat: add option to exclude WebDAV credentials from backup#1947maxweilun1989 wants to merge 2 commits into
maxweilun1989 wants to merge 2 commits into
Conversation
Add excludeWebDAV toggle (default: on) in Backup & Restore settings. When enabled, WebDAV account info (URL, username, password) is stripped from backup files before export, making it safe to share backups. Closes chen08209#1905
The material_color_utilities version bump was caused by a local dependency resolution conflict, not related to chen08209#1905.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
Closes #1905
在备份与恢复 → 选项中新增开关,支持在备份时排除 WebDAV 账号信息(URL、用户名、密码)。开关默认开启,确保分享备份文件时不会泄露 WebDAV 凭据。
改动
lib/models/config.dartAppSettingProps新增excludeWebDAV字段(默认true)lib/controller.dartdavPropslib/views/backup_and_restore.dartarb/intl_*.arbbuild_runner和intl_utils重新生成截图
新开关位于「备份与恢复 → 选项」区域,与现有的「恢复策略」选项并列。

测试
flutter build macos)lsp_diagnostics无错误true(默认排除 WebDAV)davPropsdavProps