Started work on database
This commit is contained in:
parent
db031bc8a8
commit
c14cd954a2
7 changed files with 687 additions and 6 deletions
|
|
@ -1,13 +1,14 @@
|
|||
mod database;
|
||||
mod file_tree;
|
||||
mod markdown_parser;
|
||||
mod search;
|
||||
use std::env;
|
||||
use tauri_plugin_fs::FsExt;
|
||||
|
||||
use search::search_files;
|
||||
use database::initialize_database;
|
||||
use file_tree::dir_tree_html;
|
||||
use markdown_parser::parse_markdown;
|
||||
|
||||
use search::search_files;
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
|
|
@ -22,7 +23,12 @@ pub fn run() {
|
|||
|
||||
Ok(())
|
||||
})
|
||||
.invoke_handler(tauri::generate_handler![dir_tree_html, parse_markdown, search_files])
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
initialize_database,
|
||||
dir_tree_html,
|
||||
parse_markdown,
|
||||
search_files
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue