Files
clash-proxy/src/components
Slinetrac c234d1dc16 fix(groups-editor): persist deletions/restorations and normalize YAML
Prevent state resets while editing groups so deletions/restorations persist instead of being overwritten.
Ensure YAML is normalized and the latest visual state is saved.

- Add `normalizeDeleteSeq` to handle legacy `{name: ...}` entries and `buildGroupsYaml` for consistent serialization.
- Guard reassigning `deleteSeq` unless normalized value changes to avoid effect loops.
- Normalize proxy deletions and deduplicate policy names without extra backend writes.
- Split “on open” effect from proxy-policy refresh; toggling delete no longer triggers `fetchContent()`.
- Write composed YAML in `handleSave`, keep `currData`/`prevData` aligned, and provide accurate payloads to `onSave`.
c234d1dc16 · 2025-10-27 16:20:47 +08:00
History
..
2025-10-14 21:13:10 +08:00
2025-10-14 21:22:48 +08:00
2025-10-15 18:57:44 +08:00
2025-10-14 22:13:14 +08:00
2025-10-15 18:57:44 +08:00
2025-03-16 12:15:35 +08:00