Repository navigation
feat: add WebDAV cloud sync (pull from Clash Verge backups) - #790
Open
muzi-xiaoren wants to merge 3 commits into
Open
muzi-xiaoren wants to merge 3 commits into
muzi-xiaoren wants to merge 3 commits into
Conversation
Add a "WebDAV Sync" settings screen that connects to the same WebDAV server Clash Verge backs up to, downloads the latest backup zip and applies its subscription profiles, like a restore in Clash Verge. - WebDavClient: PROPFIND list + GET download (OkHttp, Basic auth) against the fixed `clash-verge-rev-backup/` directory Clash Verge uses. - VergeBackup: unzip + parse profiles.yaml (SnakeYAML); remote (subscription) profiles are applied, local/enhancement profiles are skipped. - Sync mirrors Verge's restore, which replaces the whole profile list: the local list ends up holding exactly the backup's subscriptions and the profile Verge had selected becomes active. Existing subscriptions (matched by Verge uid, then URL, then name) are updated in place so their uuid and proxy selections survive; other local profiles are deleted. An empty backup is ignored. - A dialog shows progress and a per-subscription log while syncing. - Credentials stored in UiStore, EN/zh strings, SnakeYAML R8 keep rules. Pull-only (no upload), so it never changes desktop state. Co-Authored-By: Claude Opus 5.5 <[email protected]>
muzi-xiaoren
force-pushed
the
feat/webdav-sync
branch
from
October 9, 2026 08:05
5cfb8c2 to
69a77af
Compare
…bscriptions - "Test connection" lists the backup directory and reports the backup count and latest file, or an auth or network error. - The sync dialog's cancel button stops after the current subscription; a cancelled sync skips deleting and switching profiles. - When subscriptions fail, the dialog offers "Retry failed (N)", which re-applies only those subscriptions in the same dialog. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Summary
Add a "WebDAV Sync" settings screen that pulls the latest Clash Verge backup from the same WebDAV server and applies its subscriptions, like a restore in Clash Verge. Pull-only, so it never changes desktop state.
Changed
WebDavClient: PROPFIND list + GET download (OkHttp, Basic auth) against Clash Verge's fixedclash-verge-rev-backup/directoryVergeBackup: unzip + parseprofiles.yaml(SnakeYAML); remote (subscription) profiles are applied, local/enhancement profiles are skippedUiStore, EN/zh strings, SnakeYAML R8 keep rulesTesting