Skip to content

Commit

Permalink
fix: dependencies + auto fill works better
Browse files Browse the repository at this point in the history
  • Loading branch information
taturosati committed Jun 15, 2024
1 parent 399787f commit fd57699
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 123 deletions.
4 changes: 2 additions & 2 deletions api/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions common/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rand = "0.8.5"
anyhow = "1.0.71"
reqwest = { version = "0.12.4", features = ["json"] }
wasm-bindgen = "0.2.92"
js-sys = "0.3.60"
js-sys = "0.3.69"
rsa = { version = "0.9.6", features = ["pem"] }
pkcs8 = { version = "0.10.2", features = ["encryption", "pem"] }
rand_chacha = { version = "0.3.1" }
Expand Down
3 changes: 1 addition & 2 deletions common/src/crypto/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pub mod asymmetric;
pub mod common;
pub mod symmetric;
pub mod common;
79 changes: 0 additions & 79 deletions common/src/crypto/symmetric.rs

This file was deleted.

64 changes: 37 additions & 27 deletions extension/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions extension/background-script/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
gloo-console = "0.2.3"
gloo-timers = { version = "0.2.4", features = ["futures"] }
gloo-utils = "0.1.5"
gloo-console = "0.3.0"
gloo-timers = { version = "0.3.0", features = ["futures"] }
gloo-utils = "0.2.0"
js-sys = "0.3.60"
messages = "=0.1.0"
serde = { version = "1.0.147", features = ["derive"] }
thiserror = "1.0.37"
wasm-bindgen = "0.2.83"
wasm-bindgen-futures = "0.4.33"
wasm-bindgen = "0.2.92"
wasm-bindgen-futures = "0.4.42"
web-extensions-sys = "0.4.1"
passphrasex_common = { version = "0.2.0", path = "../../common" }
hex = "0.4.3"
Expand Down
11 changes: 9 additions & 2 deletions extension/foreground-script/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ function start() {
const { username, password } = msg.payload.Credential;

if (username_input) {
username_input.value = username;
typeValue(username_input, username);
}

if (password_input) {
password_input.value = password;
typeValue(password_input, password);
}
}
});
Expand Down Expand Up @@ -95,6 +95,13 @@ function connect() {
return chrome.runtime.connect(null, connect_info);
}

function typeValue(input, value) {
input.focus();
input.value = value;
input.dispatchEvent(new Event("input", { bubbles: true }));
input.dispatchEvent(new Event("change", { bubbles: true }));
}

function getCredential(port, site) {
console.debug("Getting credential");
const payload = {
Expand Down
2 changes: 1 addition & 1 deletion extension/messages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ edition = "2021"
publish = false

[dependencies]
serde = { version = "1.0.147", features = ["derive"] }
serde = { version = "1.0.203", features = ["derive"] }

0 comments on commit fd57699

Please sign in to comment.