Warren
|
4fa8fd8c1f
|
Merge origin SMB fixes with local Phase 21-22 features
Origin changes merged:
- SMB performance optimization (pread/pwrite, tokio Mutex)
- macOS SMB mount fix (AAPL caps, credit grant)
- Compound request integration tests
- CTDB architecture analysis
Local changes preserved:
- upload_path config (deployed, tested stable)
- delete_file + preview_file routes (MyFiles UI)
- SSH async I/O (cipher.rs, packet.rs, server.rs)
- auth.sqlite (86016 bytes, important user data)
- Admin WebDAV + CorsLayer
- api/admin.rs + api/config.rs (new endpoints)
Conflicts resolved:
- myfiles.rs: kept upload_path + OnceLock static
- auth.sqlite: preserved local version (important data)
Test results: 393 passed, 5 auth tests failed
- PG tests require external PostgreSQL
- Auth tests expect specific password hashes
- auth.sqlite preserved with actual user credentials
|
2026-06-30 07:25:04 +08:00 |
|
Warren
|
082eea1a86
|
Phase 2完成:Tauri管理工具开发 + Phase 1双虚拟目录实现
Test / build (push) Has been cancelled
Test / test (push) Has been cancelled
Phase 1成果:
- 数据库准备:demo.sqlite(117文件,5.07GB)
- 双虚拟Tree:demo_library_zh + demo_library_en
- 文件分类映射:258个节点(自动分类)
Phase 2成果:
- Tauri项目初始化:完整项目结构
- 7个管理模块:安装/配置/诊断/管理/健康/监控/文件浏览
- 7个Rust Commands:完整后端逻辑(约3000行)
- 7个Vue页面:完整前端UI(约2000行)
- Vite build修复:Rolldown外部化配置成功
- 前端构建成功:dist目录生成
总体进度:90%完成(约5000行代码)
|
2026-06-13 14:34:45 +08:00 |
|
Warren
|
05f89ea1ac
|
feat: Add file scan and async hash system
Features:
1. scan command - Fast import without hash (skip_hash=true)
- Scans directory structure
- Generates deterministic UUIDs (SHA256(path|name|mac|mtime))
- Stores full path in aliases.json
- Inserts nodes in batches
- Performance: 14243 nodes/sec (11857 files in 0.89s)
2. hash command - Async hash calculation
- Multi-threaded (default: 4 threads)
- Reads paths from aliases.json
- Updates database with SHA256 hashes
- Performance: 28 files/sec (11857 files in 417.58s)
Design:
- Import first, hash later (user can view tree immediately)
- Hash runs in background (non-blocking)
- Path stored in aliases.json (temporary solution)
- Deterministic UUIDs (same file = same UUID)
Performance breakdown:
- Scanning: 0.10s (11%)
- ID generation: 0.57s (64%)
- DB insertion: 0.21s (24%)
- Hash: 417.58s (async, background)
Files:
- src/scan.rs (new, 499 lines)
- src/main.rs (scan/hash commands)
- src/lib.rs (scan module)
Test result:
- warren user: 12658 nodes imported
- 11857 hashes calculated successfully
|
2026-05-17 03:20:35 +08:00 |
|
Warren
|
e3d6b60825
|
feat: MarkBase initial version
Phase 1 (Infrastructure):
- Docs: README.md, AGENTS.md, CHANGELOG.md
- Tests: 26 tests (modes_test, filetree_api_test)
- Examples: examples/sample.md, sample.json
- CI/CD: .gitea/workflows/test.yml, release.yml
- Runner: configuration scripts and guides
Phase 2 (Quality):
- Code quality: rustfmt/clippy config
- Security: environment variables
- Test coverage: 62 tests (+36)
- Documentation: CONTRIBUTING.md, docs/api.yaml
- Showcase: demo_features.md, developer_quickstart.md
Test coverage: 75%
Test pass rate: 100%
|
2026-05-16 15:37:37 +08:00 |
|