fix: remove nonexistent capture module, library_extract_palette, and history::record_visit call
Browse files- src-tauri/src/lib.rs +0 -20
src-tauri/src/lib.rs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
mod adblock;
|
| 2 |
mod browser;
|
| 3 |
-
mod capture;
|
| 4 |
mod credentials;
|
| 5 |
mod library;
|
| 6 |
mod board;
|
|
@@ -16,22 +15,6 @@ use crate::state::AppState;
|
|
| 16 |
use tauri::Manager;
|
| 17 |
use tauri_plugin_sql::{Migration, MigrationKind};
|
| 18 |
|
| 19 |
-
fn percent_decode(s: &str) -> String {
|
| 20 |
-
let bytes = s.as_bytes();
|
| 21 |
-
let mut out = Vec::with_capacity(bytes.len());
|
| 22 |
-
let mut i = 0;
|
| 23 |
-
while i < bytes.len() {
|
| 24 |
-
if bytes[i] == b'%' && i + 2 < bytes.len() {
|
| 25 |
-
if let Ok(hex) = std::str::from_utf8(&bytes[i+1..i+3]) {
|
| 26 |
-
if let Ok(v) = u8::from_str_radix(hex, 16) { out.push(v); i += 3; continue; }
|
| 27 |
-
}
|
| 28 |
-
}
|
| 29 |
-
out.push(if bytes[i] == b'+' { b' ' } else { bytes[i] });
|
| 30 |
-
i += 1;
|
| 31 |
-
}
|
| 32 |
-
String::from_utf8_lossy(&out).to_string()
|
| 33 |
-
}
|
| 34 |
-
|
| 35 |
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
| 36 |
pub fn run() {
|
| 37 |
tauri::Builder::default()
|
|
@@ -88,7 +71,6 @@ pub fn run() {
|
|
| 88 |
library::library_search,
|
| 89 |
library::library_remove_item,
|
| 90 |
library::library_add_tag,
|
| 91 |
-
library::library_extract_palette,
|
| 92 |
// Board
|
| 93 |
board::board_list,
|
| 94 |
board::board_current,
|
|
@@ -104,8 +86,6 @@ pub fn run() {
|
|
| 104 |
board::board_add_palette_from_item,
|
| 105 |
board::board_update_item,
|
| 106 |
board::board_delete_item,
|
| 107 |
-
// Screen capture
|
| 108 |
-
capture::capture_screen_region,
|
| 109 |
// Sessions
|
| 110 |
sessions::sessions_save,
|
| 111 |
sessions::sessions_load,
|
|
|
|
| 1 |
mod adblock;
|
| 2 |
mod browser;
|
|
|
|
| 3 |
mod credentials;
|
| 4 |
mod library;
|
| 5 |
mod board;
|
|
|
|
| 15 |
use tauri::Manager;
|
| 16 |
use tauri_plugin_sql::{Migration, MigrationKind};
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
| 19 |
pub fn run() {
|
| 20 |
tauri::Builder::default()
|
|
|
|
| 71 |
library::library_search,
|
| 72 |
library::library_remove_item,
|
| 73 |
library::library_add_tag,
|
|
|
|
| 74 |
// Board
|
| 75 |
board::board_list,
|
| 76 |
board::board_current,
|
|
|
|
| 86 |
board::board_add_palette_from_item,
|
| 87 |
board::board_update_item,
|
| 88 |
board::board_delete_item,
|
|
|
|
|
|
|
| 89 |
// Sessions
|
| 90 |
sessions::sessions_save,
|
| 91 |
sessions::sessions_load,
|