This commit is contained in:
Mystikfluu 2023-04-03 12:36:07 +02:00
parent dfe2aec636
commit c09e478ffd
5 changed files with 10 additions and 15 deletions

2
src-tauri/Cargo.lock generated
View File

@ -1339,7 +1339,7 @@ dependencies = [
[[package]] [[package]]
name = "ipass-gui" name = "ipass-gui"
version = "0.1.0" version = "1.0.0"
dependencies = [ dependencies = [
"ip_lib", "ip_lib",
"open", "open",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ipass-gui" name = "ipass-gui"
version = "0.1.0" version = "1.0.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,6 +1,6 @@
#![cfg_attr( #![cfg_attr(
all(not(debug_assertions), target_os = "linux"), all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows" windows_subsystem = "windows"
)] )]
use std::fs::File; use std::fs::File;
@ -94,8 +94,8 @@ fn isync_save() {
let isync_save_future = ip_lib::isync_save(); let isync_save_future = ip_lib::isync_save();
let rt = Runtime::new().unwrap(); let rt = Runtime::new().unwrap();
let save_output = rt.block_on(isync_save_future); let _save_output = rt.block_on(isync_save_future);
println!("isync_save: {}",save_output); //println!("isync_save: {}",save_output);
} }
#[tauri::command] #[tauri::command]
@ -104,9 +104,9 @@ fn sync_isync() {
let isync_get_future = ip_lib::isync_get(); let isync_get_future = ip_lib::isync_get();
println!("going to block on isync_get"); //println!("going to block on isync_get");
let get_output = rt.block_on(isync_get_future); let _get_output = rt.block_on(isync_get_future);
println!("isync_get: {}",get_output); //println!("isync_get: {}",get_output);
} }
fn main() { fn main() {

View File

@ -8,7 +8,7 @@
}, },
"package": { "package": {
"productName": "ipass", "productName": "ipass",
"version": "0.1.0" "version": "1.0.0"
}, },
"tauri": { "tauri": {
"allowlist": { "allowlist": {

View File

@ -3,11 +3,6 @@ const { invoke } = window.__TAURI__.tauri;
let master_pw; let master_pw;
let lock_status = true; let lock_status = true;
// async function greet() {
// // Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
// greetMsgEl.textContent = await invoke("greet", { name: greetInputEl.value });
// }
window.addEventListener("DOMContentLoaded", () => { window.addEventListener("DOMContentLoaded", () => {
document.getElementById("lockImg").addEventListener("click",toggleLock); document.getElementById("lockImg").addEventListener("click",toggleLock);
startup(); startup();