Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
First, you will have to deal with this lone 'Rock Insect'. 'Do Do Do,…
Browse files Browse the repository at this point in the history
… De Da Da Da'. Before you go home, why don't you take a look... at what you can see if you get up from that chair...?
  • Loading branch information
raisfeld-ori committed Apr 27, 2024
1 parent 9e308fe commit d6f6471
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src-tauri/src/data/auth.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::dir;
use crate::fs::encryption::{aes_encrypt, aes_decrypt, aes_try_decrypt};
use crate::data::json;
use crate::fs::commands::{FS};
use crate::fs::fs::{FS};
use std::fs::{create_dir, read_dir, read, File};
use std::io::{Read, Write};
#[cfg(target_os = "windows")]
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/fs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod encryption;
pub mod commands;
pub mod utilities;
pub mod fs;
pub mod io;
2 changes: 1 addition & 1 deletion src-tauri/src/fs/commands.rs → src-tauri/src/fs/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
use serde_json::{Error, Value};
use std::fs::{read, write};
use crate::fs::encryption::aes_decrypt;
use crate::fs::utilities::get_user_dir;
use crate::fs::io::get_user_dir;
use crate::fs::encryption::aes_encrypt;

pub static mut FS: Home = Home::new();
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/fs/utilities.rs → src-tauri/src/fs/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub use tauri::Runtime;
use crate::data::auth::{init_dir, Encodable};
use crate::data::json::init_user_data;
use crate::fs::encryption::{aes_encrypt, aes_decrypt};
use crate::fs::commands::FS;
use crate::fs::fs::FS;


pub fn dir() -> PathBuf {data_dir().expect("failed to enter data directory").join("d_vault_data")}
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use crate::fs::utilities::*;
use crate::fs::commands::*;
use crate::fs::io::*;
use crate::fs::fs::*;
use crate::data::json::*;
use crate::data::auth::*;
mod fs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function image_viewer(file_selected: string | null) : AppInterfac
let password: string = await invoke('system_get', {key: 'password'});
let bytes = await invoke('read_file', {name, password,file: file_selected});
if (bytes == null) {return;}
let data: [string, string] = await invoke('image_to_string', {bytes: bytes});
// let data: [string, string] = await invoke('image_to_string', {bytes: bytes});
set_image(`${bytes}`);
}
useEffect(() => {console.log(image)}, [image]);
Expand Down

0 comments on commit d6f6471

Please sign in to comment.