feat: add tags table, CRUD commands, and Pinia store

This commit is contained in:
Your Name
2026-02-18 02:01:04 +02:00
parent afa8bce2c9
commit 26f1b19dde
4 changed files with 280 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ use tauri::Manager;
mod database;
mod commands;
mod os_detection;
pub struct AppState {
pub db: Mutex<Connection>,
@@ -59,6 +60,18 @@ pub fn run() {
commands::update_settings,
commands::export_data,
commands::clear_all_data,
commands::get_idle_seconds,
commands::get_visible_windows,
commands::get_running_processes,
commands::get_tracked_apps,
commands::add_tracked_app,
commands::remove_tracked_app,
commands::get_tags,
commands::create_tag,
commands::update_tag,
commands::delete_tag,
commands::get_entry_tags,
commands::set_entry_tags,
])
.setup(|app| {
#[cfg(desktop)]