47951a615b
- domain/trilium.rs: Runtime-Download (gepinnt 0.104.0), Instanz pro Projekt auf 127.0.0.1 mit FNV-Port, ETAPI (archive_note, search_notes), Token im Keyring - Setup bis aufs Passwort automatisiert: trilium_connect macht new-document (skipDemoDb), set-password und ETAPI-Login; Modul-Flag erst nach Token-Erfolg - write_panel legt direkt eine Trilium-Notiz an (text|path, folder/description/tags); noteopen-Kanal, das Terminal-Fenster öffnet die Notiz (ersetzt archive_panel) - MD-Altbestand raus: archive*/wiki*, archiveHome samt Permissions, panel_set/panel_load/ wiki_open, panel_archive*/archive_docs/*_archive_home, reveal_path, spellcheck - Dokument-Tab raus: Panel = ToDo/Befehle/Suche + Archiv-Knopf (trilium_open); panel-view/archive-form gelöscht, Markup/CSS/Messages bereinigt - Lösch-Stufe Archiv: Instanz stoppen, Trilium-Datadir und Keyring-Token löschen
68 lines
1.8 KiB
Rust
68 lines
1.8 KiB
Rust
fn main() {
|
|
// App-ACL-Manifest: erzeugt pro Command allow-/deny-Permissions. Sobald das
|
|
// Manifest existiert, gilt deny-by-default — jedes Command muss in einer
|
|
// Capability einem Fenster zugeteilt sein (capabilities/*.json), sonst
|
|
// lehnt Tauri den Aufruf ab. Neue Commands hier UND in der passenden
|
|
// Capability eintragen.
|
|
tauri_build::try_build(
|
|
tauri_build::Attributes::new().app_manifest(tauri_build::AppManifest::new().commands(&[
|
|
"list_projects",
|
|
"create_project_full",
|
|
"add_project",
|
|
"delete_preview",
|
|
"delete_project_scoped",
|
|
"project_work_dirs",
|
|
"set_project_dir",
|
|
"add_work_dir",
|
|
"remove_work_dir",
|
|
"list_pools",
|
|
"create_oauth_pool",
|
|
"create_apikey_pool",
|
|
"create_reference_pool",
|
|
"default_config_dir",
|
|
"rename_pool",
|
|
"delete_pool",
|
|
"assign_pool",
|
|
"unassign_pool",
|
|
"set_terminal_config",
|
|
"project_icon",
|
|
"pool_label",
|
|
"usage_stats",
|
|
"stop_project",
|
|
"restart_project",
|
|
"start_or_focus_cmd",
|
|
"open_main_window",
|
|
"quit_app",
|
|
"sync_setting",
|
|
"set_sync_setting",
|
|
"terminal_font_size",
|
|
"set_terminal_font_size",
|
|
"link_pool_runtime",
|
|
"oauth_login",
|
|
"keychain_status",
|
|
"set_apikey",
|
|
"trilium_status",
|
|
"trilium_setup",
|
|
"trilium_connect",
|
|
"trilium_open",
|
|
"trilium_disable",
|
|
"open_terminal",
|
|
"term_start",
|
|
"term_log",
|
|
"term_write",
|
|
"term_resize",
|
|
"buffer_read",
|
|
"enabled_modules",
|
|
"module_registry",
|
|
"set_module",
|
|
"commands_delete",
|
|
"todos_delete",
|
|
"todos_add",
|
|
"todos_update",
|
|
"search_run",
|
|
"open_panel_window",
|
|
])),
|
|
)
|
|
.expect("tauri-build");
|
|
}
|