aboutsummaryrefslogtreecommitdiff
path: root/crates/vcs_data/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in module name from "dada_sort" to "data_sort"魏曹先生2026-01-081-1/+1
| | | | | | The module was accidentally named "dada_sort" instead of "data_sort". :)
* Use different config directory name on non-Linux systems魏曹先生2026-01-081-2/+8
|
* Add RejectAll mode for share merging and fix share ID trimming魏曹先生2026-01-051-19/+29
| | | | | | | - Add ShareMergeMode::RejectAll variant to reject all incoming shares - Trim server suffix from share IDs when updating local sheet info - Sign vault as modified after successful share mapping merge - Fix get_current_sheet_name call to use correct parameter value
* Add file_histories method to LatestFileData魏曹先生2026-01-041-0/+8
|
* Change default config format from JSON to Bincode魏曹先生2026-01-032-18/+42
| | | | | | | Update file extensions for sheet, share, member, and virtual file metadata to use new custom extensions (.st, .sre, .json, .vf) instead of .bcfg. Also update client-side file extensions for latest info and local sheets.
* Include file histories in latest info updates魏曹先生2026-01-031-4/+16
|
* Replace hardcoded file extension with constant魏曹先生2026-01-032-2/+8
| | | | | Use SERVER_SUFFIX_MEMBER_INFO_NO_DOT constant instead of literal "toml" string for member info file extension check
* Change SETUP.txt to SETUP.md for todo list魏曹先生2026-01-031-1/+1
|
* Refactor config loading to read files after format detection魏曹先生2026-01-031-13/+13
|
* Rename vault admin to host and add serde renames魏曹先生2026-01-029-15/+56
| | | | | | | | - Rename `vault_admin_list` to `vault_host_list` in config and actions - Add `#[serde(rename)]` attributes to all data structures for shorter JSON keys - Update field renames in LocalConfig, LatestFileData, LatestInfo, LocalSheetData, Member, SheetData, Share, and VirtualFileMeta
* Add ref sheet VFS mapping to LatestInfo魏曹先生2026-01-021-2/+8
| | | | | | This adds a reverse mapping from virtual file IDs to their actual paths in reference sheets, which is needed for proper file resolution during operations that reference files by ID.
* Add host mode and update sheet visibility model魏曹先生2026-01-022-5/+34
| | | | | | | | | - Add `using_host_mode` field to LocalConfig with getter/setter - Replace `my_sheets`/`other_sheets` with `visible_sheets`/`invisible_sheets` - Add `reference_sheets` set for host-owned sheets - Add `shares_in_my_sheets` map to track external merge requests - Update `use_sheet` to check `visible_sheets` instead of `my_sheets`
* Fix share name generation by removing file suffix魏曹先生2025-12-261-9/+3
| | | | | The share ID generation no longer includes the sheet file suffix. This simplifies share names to just "sharer@random" format.
* Add sheet sharing functionality魏曹先生2025-12-254-1/+421
| | | | | | | - Add `rand` dependency for generating share IDs - Update share path to include sheet name subdirectory - Add mutable accessor for sheet ID mapping - Add sheet_share module to vault data structures
* Remove legacy import/export mechanism魏曹先生2025-12-242-197/+0
| | | | | | | | | | - Delete InputPackage struct and related types - Remove inputs field from SheetData - Remove input management methods (add_input, deny_input, accept_import) - Remove export functionality (output_mappings, find_longest_common_prefix) - Update tests to remove input-related assertions - Clean up unused imports and dependencies
* Refactor vault and local workspace file storage structure魏曹先生2025-12-242-13/+18
|
* Replace tokio::Instant with std::time::SystemTime for update timestampsWeicao-CatilGrass2025-12-161-44/+3
|
* Remove unnecessary edit rights check in sheet mapping魏曹先生2025-12-151-35/+11
| | | | | | | The permission check for virtual file edit rights when adding a sheet mapping was meaningless since the mapping operation doesn't actually modify the virtual file content. The mapping can now be added regardless of the member's edit rights to the virtual file.
* Add getter and setter for last_modifiy_check_hash and remove_mapping魏曹先生2025-12-151-0/+25
| | | | method
* Rename AlignTasksName type to AlignTaskName魏曹先生2025-12-151-5/+5
|
* Prevent lost file classification for erased directories魏曹先生2025-12-151-12/+13
| | | | | The lost files calculation now filters out paths that are already marked as erased, avoiding duplicate classification.
* Rename `file_status` to `workspace_analyzer`魏曹先生2025-12-153-2/+2
|
* Add edit mapping action for sheet operations魏曹先生2025-12-153-0/+28
|
* Add constant for VF meta file name魏曹先生2025-12-111-0/+1
|
* Match moved files using latest hash instead of initial hash魏曹先生2025-12-112-9/+31
|
* Change add_mapping to accept path by reference魏曹先生2025-12-041-1/+1
|
* Add fallback defaults for optional config fields魏曹先生2025-12-021-14/+31
| | | | | | Make server config fields optional and provide default values when missing. This ensures backward compatibility and graceful handling of partial configuration.
* Update vault.rs魏曹先生2025-12-012-1/+5
|
* Change default vault auth mode from password to key魏曹先生2025-12-011-1/+1
|
* Refactor vault config to use template-based generation魏曹先生2025-12-012-44/+112
| | | | | | | | | - Replace direct serialization with template-based config file generation - Add new dependencies: whoami, redox_syscall, wasite, web-sys - Update VaultConfig structure with new enum types and serialization attributes - Modify setup_vault to accept vault_name parameter and use template - Update all test calls to include vault_name parameter
* Add logger configuration to VaultServerConfig魏曹先生2025-12-011-0/+14
|
* Update func `current_doc_dir` to `current_cfg_dir`魏曹先生2025-12-011-1/+1
|
* Update current.rs魏曹先生2025-12-012-4/+4
|
* Update gitignore patterns for cached data魏曹先生2025-11-261-2/+2
| | | | | Change from ignoring "cached" directory and "members" file to ignoring "/cache/" directory and ".vault_modified" file
* Migrate client configuration and cache files to TOML/YAML formats魏曹先生2025-11-241-8/+8
|
* Implement file synchronization in track file action魏曹先生2025-11-241-0/+1
| | | | | | | - Add sync task processing for both local and remote operations - Use temp files for secure download operations - Update file metadata after successful synchronization - Add proper error handling and cleanup for sync operations - Display sync progress with appropriate status symbols
* Remove return value from `sign_vault_modified` function魏曹先生2025-11-241-6/+3
|
* Add vault modification tracking魏曹先生2025-11-233-5/+40
| | | | | | | - Record vault state changes in sheet operations - Track modifications when creating, dropping, or updating sheets - Mark vault as unmodified after syncing with upstream - Add vault_modified module with check and sign functions
* Apply clippy suggestions魏曹先生2025-11-238-76/+49
|
* Strip workspace prefix from new paths in moved file detection魏曹先生2025-11-221-0/+5
|
* Add align module for sorting file analysis results魏曹先生2025-11-222-0/+108
|
* Update local workspace initialization files魏曹先生2025-11-222-4/+18
| | | | | | - Change SETUP.md to SETUP.txt for the todo list - Add .gitignore file to ignore cached data and members - Use constant for workspace root folder name
* fix: Update constants and path references魏曹先生2025-11-203-15/+25
| | | | Rename CLIENT_FILE_MEMBER_HELD to CLIENT_FILE_LATEST_DATA, update all related path references and method names.
* update: Improve file update task processing魏曹先生2025-11-201-19/+31
| | | | Implement complete update task processing for both local and remote operations, add version validation and conflict detection.
* feat: Enhance version tracking in LatestFileData魏曹先生2025-11-202-9/+23
| | | | Extend LatestFileData to track file versions alongside holding status, update method signatures to include version information.
* feat: Add file update verification system魏曹先生2025-11-201-3/+3
| | | | Add comprehensive file update verification with detailed failure reasons including version mismatch, file not held, and missing descriptions.
* Rename MemberHeld to LatestFileData and add version tracking魏曹先生2025-11-201-5/+11
| | | | | The struct now tracks both file holding status and latest file versions for permission validation and update checks.
* Change function signatures to use references魏曹先生2025-11-191-1/+4
|
* Derive Clone for LocalConfig and fix mapping_mut signature魏曹先生2025-11-192-3/+3
| | | | | The mapping_mut method now returns a mutable reference to allow modifying the mapping HashMap directly.
* Add mutable mapping accessor methods to Sheet and SheetData魏曹先生2025-11-191-0/+10
|