添加收藏和下载队列

This commit is contained in:
柚子
2025-02-06 16:43:09 +08:00
parent b2f458f3b8
commit 56fa6a8a2d
29 changed files with 1284 additions and 19 deletions

View File

@@ -7,6 +7,7 @@ pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_clipboard_manager::init())
.manage(handlers::download::DownloadQueue::default())
.invoke_handler(tauri::generate_handler![
handlers::category::get_all_categories,
handlers::category::get_category_apps,
@@ -19,6 +20,13 @@ pub fn run() {
handlers::home::get_home_links,
handlers::home::get_home_lists,
handlers::home::get_home_list_apps,
handlers::file::read_text_file,
handlers::file::save_text_file,
handlers::download::get_downloads,
handlers::download::add_download,
handlers::download::pause_download,
handlers::download::resume_download,
handlers::download::cancel_download,
utils::get_user_agent,
])
.run(tauri::generate_context!())