- 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
39 lines
929 B
TOML
39 lines
929 B
TOML
[package]
|
|
name = "markbase"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Momentry Display Engine"
|
|
|
|
[[bin]]
|
|
name = "markbase"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
clap = { version = "4", features = ["derive"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
pulldown-cmark = "0.13"
|
|
axum = "0.7"
|
|
axum-extra = { version = "0.9", features = ["multipart"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-util = { version = "0.7", features = ["io"] }
|
|
mime_guess = "2"
|
|
tower = "0.5"
|
|
anyhow = "1"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
async-trait = "0.1"
|
|
once_cell = "1"
|
|
sha2 = "0.10"
|
|
jsonwebtoken = "9"
|
|
bcrypt = "0.15"
|
|
tokio-postgres = "0.7"
|
|
postgres-types = { version = "0.2", features = ["with-chrono-0_4"] }
|
|
log = "0.4"
|
|
toml = "0.8"
|
|
|
|
[dev-dependencies]
|
|
axum-test = "14"
|
|
tokio-test = "0.4"
|