From c09e478ffdb0feed281e914ad602b419b5497e32 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Mon, 3 Apr 2023 12:36:07 +0200 Subject: [PATCH] v1.0.0 --- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/src/main.rs | 14 +++++++------- src-tauri/tauri.conf.json | 2 +- src/main.js | 5 ----- 5 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index e8dc8d8..4ff8f33 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1339,7 +1339,7 @@ dependencies = [ [[package]] name = "ipass-gui" -version = "0.1.0" +version = "1.0.0" dependencies = [ "ip_lib", "open", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c53f998..dd7a42d 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ipass-gui" -version = "0.1.0" +version = "1.0.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 486c3f1..f6ab803 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -1,6 +1,6 @@ #![cfg_attr( - all(not(debug_assertions), target_os = "linux"), - windows_subsystem = "windows" + all(not(debug_assertions), target_os = "windows"), + windows_subsystem = "windows" )] use std::fs::File; @@ -94,8 +94,8 @@ fn isync_save() { let isync_save_future = ip_lib::isync_save(); let rt = Runtime::new().unwrap(); - let save_output = rt.block_on(isync_save_future); - println!("isync_save: {}",save_output); + let _save_output = rt.block_on(isync_save_future); + //println!("isync_save: {}",save_output); } #[tauri::command] @@ -104,9 +104,9 @@ fn sync_isync() { let isync_get_future = ip_lib::isync_get(); - println!("going to block on isync_get"); - let get_output = rt.block_on(isync_get_future); - println!("isync_get: {}",get_output); + //println!("going to block on isync_get"); + let _get_output = rt.block_on(isync_get_future); + //println!("isync_get: {}",get_output); } fn main() { diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 25566af..eff5b59 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "ipass", - "version": "0.1.0" + "version": "1.0.0" }, "tauri": { "allowlist": { diff --git a/src/main.js b/src/main.js index 36cf09f..04f7012 100644 --- a/src/main.js +++ b/src/main.js @@ -3,11 +3,6 @@ const { invoke } = window.__TAURI__.tauri; let master_pw; 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", () => { document.getElementById("lockImg").addEventListener("click",toggleLock); startup();