Commit Graph

4 Commits

Author SHA1 Message Date
Warren c28acd0512 feat: integrate CoreDoc documentation system
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
- Add CoreDoc maintenance documentation (8 files)
- Create route module for documentation serving
- Set up static file structure with symbolic links
- Support dual documentation systems (Legacy WASM + New Modular)

Documentation includes:
- README.md: System overview
- DIRECTORY_STRUCTURE.md: Complete directory mapping
- ARCHITECTURE.md: System design and data flow
- MAINTENANCE_GUIDE.md: Daily maintenance procedures
- INTEGRATION_GUIDE.md: Integration details
- API_REFERENCE.md: All API endpoints
- INTEGRATION_REPORT.md: Complete integration report
- QUICK_START.md: Quick reference for team

Route module: markbase-core/src/api/docs.rs
- /docs/legacy/* → Legacy WASM system
- /docs/api/* → API documentation
- /docs/cli/* → CLI documentation

Static files:
- static/docs/legacy -> momentry_core/docs_v1.0/doc_wasm/
- static/docs/api -> momentry_core/docs_v1.0/API_WORKSPACE/
- static/docs/cli -> momentry_core/docs_v1.0/CLI_WORKSPACE/

Pending: Manual route addition to server.rs
Team: Markbase team to complete integration
2026-10-25 23:17:56 +08:00
Warren 4fa8fd8c1f Merge origin SMB fixes with local Phase 21-22 features
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
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 d94cb2df4c Fix code quality: trailing whitespace, unused imports, clippy warnings
- Fix trailing whitespace in kex.rs and s3.rs
- Add missing KexProposal import in kex_complete.rs
- Auto-fix clippy warnings across all crates
- All 153 tests pass
2026-06-19 05:21:38 +08:00
Warren 499efed099 模組化重構 Phase 1-2完成:CLI架构分离 + API模块结构建立
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
Phase 1:CLI架构重构
- main.rs: 509行 → 21行(简化96%)
- 新增cli模块:框架命令与应用命令分离
  - cli/framework.rs (394行): Display/Render/Config/Scan/Hash/WebDAV/iSCSI
  - cli/apps/download_center.rs (59行): ImportMarkdown/SshServer/Sftp
- 编译成功,CLI命令正确识别(11个命令)

Phase 2:API模块结构创建
- 新增api模块目录结构:api/handlers/
- 为未来handler模块预留空间:
  - tree.rs: FileTree CRUD
  - file.rs: 文件流/渲染
  - upload.rs: 上传处理
  - auth.rs: 认证
  - config.rs: 配置管理
  - system.rs: 系统健康检查
  - view.rs: 分类/系列视图
  - static.rs: 静态页面
- server.rs保持稳定(2409行),降低重构风险

架构优势:
- 清晰的框架/应用分离
- 降低耦合度,便于后续维护
- 为新功能提供清晰的模块空间
- 保持现有功能稳定运行
2026-06-12 20:59:22 +08:00