aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Simplify error handling in vault setup魏曹先生2025-09-261-2/+1
| | | | Replace std::io::Error::new with std::io::Error::other for cleaner code
* feat: Automatically create host member and ref sheet during vault setup魏曹先生2025-09-264-20/+60
| | | | | | | - Add VAULT_HOST_NAME constant for 'host' member - Modify setup_vault to automatically register host member and create ref sheet - Update test assertions to account for the additional ref sheet - Fix code formatting in sheets.rs
* Fixed by clippy魏曹先生2025-09-262-8/+6
|
* test: add comprehensive sheet management test suite魏曹先生2025-09-262-0/+263
| | | | | | | | | | | | | | | | - Add test_sheet_creation_management_and_persistence with 3 test functions: - Main test covering sheet creation, input/mapping management, persistence, and deletion - Error condition testing for invalid operations - Serialization testing through vault operations - Test coverage includes: - Sheet creation with member validation - Input package addition and removal - Mapping entry management - File persistence and reloading - Safe deletion to trash and restoration - Permanent deletion - Error handling for invalid operations - Follows existing test patterns and uses proper getter methods for private fields
* refactor: convert InputPackage from tuple to named struct魏曹先生2025-09-262-8/+18
| | | | | | | | - Replace tuple-based InputPackage with named struct for better type safety - Add proper field names and documentation - Fix typo in InputRelativePathBuf type name - Update add_input and remove_input methods to work with new struct - Maintain serialization compatibility with derive attributes
* feat: add sheet management system for vaults魏曹先生2025-09-2611-9/+379
| | | | | | | | | | | | | | - Add Sheet struct with holder, inputs, and mapping functionality - Implement SheetData with serialization support - Add sheets.rs with vault sheet management methods: - Load all sheets in vault - Search for sheet names - Read individual sheets - Create new sheets with validation - Delete sheets (both permanently and safely to trash) - Restore sheets from trash - Update data module to include sheet submodule - Minor fixes and improvements to related modules
* Update test_virtual_file_creation_and_update.rs魏曹先生2025-09-251-1/+1
|
* Update test_vault_setup_and_member_register.rs魏曹先生2025-09-251-1/+1
|
* Update lib.rs魏曹先生2025-09-251-0/+3
|
* Rename workspace to data魏曹先生2025-09-251-1/+1
|
* Rename some constants魏曹先生2025-09-251-1/+1
|
* Add tests魏曹先生2025-09-251-0/+248
|
* Move `workspace` mod to `data`魏曹先生2025-09-2512-16/+238
|
* Fix clippy warnings in test files魏曹先生2025-09-256-213/+191
| | | | | | | - Convert manual async functions to async fn syntax - Replace assert_eq!(true/false, ...) with assert!(...) and assert!(!...) - Fix useless vec warning by using array directly - All tests continue to pass after optimizations
* Fix clippy warnings and optimize code魏曹先生2025-09-255-19/+13
| | | | | | | - Rename from_str to from_address_str in tcp_connection to avoid trait conflict - Use ? operator instead of let...else patterns in local and vault initialization - Replace manual string slicing with strip_prefix in virtual_file.rs - All tests continue to pass after optimizations
* Fixed by Clippy魏曹先生2025-09-257-39/+31
|
* Update virtual_file.rs魏曹先生2025-09-251-3/+7
|
* Rename `env` to `vcs`魏曹先生2025-09-255-36/+80
|
* Rename `env` to `vcs`魏曹先生2025-09-2518-4/+5
|
* Update local.rs魏曹先生2025-09-241-1/+106
|
* Update member.rs魏曹先生2025-09-241-10/+10
|
* Add empty dir check before create vault魏曹先生2025-09-241-8/+16
|
* Update virtual_file.rs 1. Rename `vitrual_file.rs (WTF)` to魏曹先生2025-09-241-58/+165
| | | | | `virtual_file.rs` 2. Add functions to VirtualFile 3. Add functions to VirtualFileMeta
* Rename manage.rs to accounts.rs魏曹先生2025-09-241-0/+0
|
* Update env_test魏曹先生2025-09-242-8/+8
|
* Update local::config魏曹先生2025-09-241-5/+21
|
* Add function `current_doc_dir`魏曹先生2025-09-241-0/+5
|
* Update constants.rs魏曹先生2025-09-241-5/+6
|
* Add crate `dirs` for env魏曹先生2025-09-241-0/+3
|
* Removed unused imports魏曹先生2025-09-221-4/+1
|
* Completed tests of MemberManager and VirtualFileManager魏曹先生2025-09-223-17/+58
|
* Remove redundant Sync bound from process future魏曹先生2025-09-224-20/+8
|
* Editing `test_virtual_file_creation_and_update`魏曹先生2025-09-221-0/+128
|
* Add test for `env`魏曹先生2025-09-223-2/+31
|
* Add test `test_vault_setup_and_member_register`魏曹先生2025-09-221-0/+69
|
* Add test for crate `env`魏曹先生2025-09-222-0/+8
|
* Add default vault_name魏曹先生2025-09-221-1/+10
|
* Update vault.rs魏曹先生2025-09-221-2/+22
|
* Update vault.rs 1. Fix indentation issues in automatically generated魏曹先生2025-09-221-14/+14
| | | | documents.
* Update constants.rs魏曹先生2025-09-221-11/+22
|
* Modify the file structure and add a virtual file management module.魏曹先生2025-09-221-3/+2
|
* Add tokio for `env` crate魏曹先生2025-09-221-0/+7
|
* Add a virtual file management module.魏曹先生2025-09-221-0/+315
|
* Modify the file structure魏曹先生2025-09-2211-128/+242
|
* Fixed some tests魏曹先生2025-09-223-4/+77
|
* Add test `test_file_transfer`魏曹先生2025-09-221-0/+101
|
* Add new resources for test魏曹先生2025-09-224-0/+116
|
* Remove `test_key`魏曹先生2025-09-222-64/+0
|
* Update lib.rs of `tcp_connection`魏曹先生2025-09-221-5/+0
|
* Fixed function `write` and `read`魏曹先生2025-09-221-18/+52
|