cdafffaa70
Côté JS : décompose main.js en modules ES6 (state, services, ui, router) pour séparer les responsabilités et faciliter la maintenance. Côté Rust : ajoute 7 tests sur is_relevant_path (notify_watcher) pour couvrir les cas cachés/non-md ; couverture totale 77 % > seuil 60 %. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
298 B
JavaScript
12 lines
298 B
JavaScript
export function startWatch(path) {
|
|
return window.__TAURI__.core.invoke('start_watch', { path });
|
|
}
|
|
|
|
export function stopWatch() {
|
|
return window.__TAURI__.core.invoke('stop_watch');
|
|
}
|
|
|
|
export function onFileChanged(callback) {
|
|
return window.__TAURI__.event.listen('file-changed', callback);
|
|
}
|