- Structure du projet Cargo avec dépendances (clap, axum, reqwest, rusqlite, arboard, tray-icon) - CLI avec sous-commandes start, serve, stop, status, config, install, uninstall, logs - Module config: parsing TOML, chemins Windows/Linux - Module dedup: dédoublonnage SHA-256 avec cache SQLite - Module imago_client: client HTTP pour API Imago (upload, search, get) - Module watcher: boucle de polling stub - Module server: serveur web axum avec routes API REST stub - Platform-specific: clipboard, tray, service, window_info (Windows) - Frontend placeholder HTML - Config par défaut (imagod.toml) - README.md, LICENSE (MIT), .gitignore
31 lines
607 B
TOML
31 lines
607 B
TOML
[imago]
|
|
# URL du serveur Imago
|
|
url = "http://imago.dracodev.net:8000"
|
|
# Clé API client Imago (à configurer)
|
|
api_key = "CHANGE_ME"
|
|
|
|
[watcher]
|
|
capture_images = true
|
|
poll_interval_ms = 500
|
|
|
|
[watcher.filters]
|
|
# Applications à capturer (vide = tout)
|
|
only_apps = []
|
|
# Applications à exclure
|
|
exclude_apps = ["mstsc"]
|
|
|
|
[dedup]
|
|
# Méthode de dédoublonnage : sha256 | perceptual_hash
|
|
method = "sha256"
|
|
# Nombre de hashes en cache
|
|
cache_size = 10000
|
|
|
|
[ui]
|
|
show_notifications = true
|
|
show_tray_icon = true
|
|
notification_timeout_sec = 3
|
|
|
|
[logging]
|
|
# Niveau de log : trace | debug | info | warn | error
|
|
level = "info"
|