Warren
|
562d8b32de
|
feat: add user management handlers (SQLite-based)
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
- Add CreateUserRequest, UpdateUserRequest, ChangePasswordRequest
- Implement list_users_handler, create_user_handler
- Implement delete_user_handler, update_user_handler
- Implement change_password_handler
- All handlers use SQLite (data/auth.sqlite)
- No PostgreSQL dependency
- Routes: /api/v2/admin/users/*
- Integrated from M5Max48 into M4Mini architecture
- Fix duplicate dependencies in Cargo.toml
- Resolve merge conflicts in web.rs and Cargo.lock
|
2026-10-25 21:11:09 +08:00 |
|
Warren
|
0802a47a5f
|
Remove PostgreSQL support: pure SQLite architecture
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
BREAKING CHANGE: Remove all PostgreSQL functionality
Changes:
- Remove dependencies: tokio-postgres, postgres from Cargo.toml
- Delete files: pg_client.rs (330 lines), sync.rs (370 lines), provider/pg.rs (300 lines)
- Remove modules from lib.rs: pg_client, sync
- Remove pg module from provider/mod.rs
- Remove PostgreSQL sync code from server.rs (lines 126-165)
- Remove auth_db field and with_sync() from auth.rs
- Simplify SSH server to use SqliteProvider only
- Convert sync API endpoints to return 410 Gone with error message
- Remove [postgresql] config section from markbase.toml
Rationale:
- Simplify architecture by using SQLite exclusively
- Remove complexity of PostgreSQL synchronization
- Reduce dependencies and maintenance burden
- SQLite is sufficient for MarkBase use case
Code removed: ~1000 lines
Files deleted: 3
Files modified: 8
|
2026-10-24 19:47:10 +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
|
1300a4e223
|
MarkBase架构升级:Multi-Volume Virtual Tree + Dual-View Management + Git Remote修正
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
核心功能:
- ✅ Categories/Series双视图管理(category_view.rs + import_markdown.rs)
- ✅ FUSE Multi-Volume支持(tree_type参数)
- ✅ SSH/SFTP/SCP/rsync协议完整实现(4042行)
- ✅ NFS/SMB Module Phase 1-3完成
- ✅ Archive Module Phase 1-4完成(2916行)
- ✅ Download Center API完整实现
- ✅ S3兼容API实现(560行)
Git配置修正:
- ✅ 删除错误origin(gitea.momentry.ddns.net)
- ✅ 删除m5max128(指向机器名)
- ✅ 设置origin = m5max128gitea.momentry.ddns.net/admin/markbase
- ✅ 设置m4minigitea = m4minigitea.momentry.ddns.net/warren/markbase
数据清理:
- ✅ 删除38个临时SQLite(保留accusys.sqlite、demo.sqlite)
- ✅ 删除.bak、test_*.bin、调试脚本等临时文件
- ✅ 删除临时目录(build/、download files/、raid_test/等)
- ✅ 更新.gitignore排除临时文件
架构优化:
- 52个文件修改,2434行新增,4739行删除
- Workspace成员整合(16个crate)
- 数据库状态:accusys.sqlite保留(主demo测试)
远程同步:
- ✅ 准备推送到m5max128gitea(远程Gitea)
- ✅ 准备推送到m4minigitea(本地Gitea)
|
2026-06-12 12:59:54 +08:00 |
|
Warren
|
e3901b55d3
|
feat: Add UI Settings panel with config management
- Add 3 API endpoints: GET /api/v2/config, POST /api/v2/config/edit, GET /api/v2/config/validate
- Add Settings button (⚙️) to bottom bar
- Add Settings panel with CSS styling (8 classes)
- Add JavaScript functions: toggleSettings, loadSettings, editSetting, saveSetting, validateSettings, cancelEdit, toast
- Support viewing/editing/validating all config sections (server, postgresql, authentication, test, logging)
- Update AGENTS.md with UI Settings documentation
Features:
- Real-time config editing via UI
- Input validation before save
- Toast notifications for user feedback
- Responsive design matching existing UI style
Files changed:
- src/server.rs: +70 lines (API handlers)
- src/page.html: +110 lines (UI + JS)
- AGENTS.md: +40 lines (documentation)
Tested: All API endpoints verified, UI elements present in HTML
|
2026-05-16 20:30:39 +08:00 |
|