work on file saving
This commit is contained in:
parent
11bd003298
commit
be1ab58bd5
4 changed files with 46 additions and 28 deletions
|
|
@ -8,6 +8,7 @@ mod search;
|
|||
|
||||
use config::{get_basepath, load_config, set_basepath, Config};
|
||||
use database::initialize_database;
|
||||
use file_handler::{load_file, save_file};
|
||||
use file_tree::dir_tree_html;
|
||||
use markdown_parser::parse_markdown;
|
||||
use search::search_files;
|
||||
|
|
@ -15,7 +16,6 @@ use std::env;
|
|||
use std::sync::Mutex;
|
||||
use tauri::Manager;
|
||||
use tauri_plugin_fs::FsExt;
|
||||
use file_handler::load;
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
|
|
@ -41,7 +41,8 @@ pub fn run() {
|
|||
search_files,
|
||||
get_basepath,
|
||||
set_basepath,
|
||||
load
|
||||
load_file,
|
||||
save_file
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue