Lowercase name, key icon
This commit is contained in:
1 parent
df3554542c
commit
b98739ca84
8 files changed
+61
-15
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
# BugPass
|
# bugpass
|
||||||
|
|
||||||
LessPass-compatible password generator for Firefox/LibreWolf. Passwords are
|
LessPass-compatible password generator for Firefox/LibreWolf. Passwords are
|
||||||
derived, never stored; a native messaging host stores only site profiles
|
derived, never stored; a native messaging host stores only site profiles
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ in {
|
|||||||
install -Dm755 ${pkgs.writeScript "bugpass-host" "#!${pkgs.python3}/bin/python3\n${builtins.readFile ./host.py}"} $out/bin/bugpass-host
|
install -Dm755 ${pkgs.writeScript "bugpass-host" "#!${pkgs.python3}/bin/python3\n${builtins.readFile ./host.py}"} $out/bin/bugpass-host
|
||||||
mkdir -p $out/lib/mozilla/native-messaging-hosts
|
mkdir -p $out/lib/mozilla/native-messaging-hosts
|
||||||
cat > $out/lib/mozilla/native-messaging-hosts/bugpass.json <<EOF
|
cat > $out/lib/mozilla/native-messaging-hosts/bugpass.json <<EOF
|
||||||
{"name":"bugpass","description":"BugPass profile storage","path":"$out/bin/bugpass-host","type":"stdio","allowed_extensions":["bugpass@local"]}
|
{"name":"bugpass","description":"bugpass profile storage","path":"$out/bin/bugpass-host","type":"stdio","allowed_extensions":["bugpass@local"]}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# self-test: framed round trip
|
# self-test: framed round trip
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const handlers = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export async function onMessage(m, sender) {
|
export async function onMessage(m, sender) {
|
||||||
if (!isExt(sender)) throw new Error("BugPass: forbidden");
|
if (!isExt(sender)) throw new Error("bugpass: forbidden");
|
||||||
const r = await handlers[m.type](m, sender);
|
const r = await handlers[m.type](m, sender);
|
||||||
if (master) touch(); // auto-lock after 30 min without use
|
if (master) touch(); // auto-lock after 30 min without use
|
||||||
return r;
|
return r;
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ if (/^(https?|file):$/.test(location.protocol)) {
|
|||||||
if (user && m.username) set(user, m.username);
|
if (user && m.username) set(user, m.username);
|
||||||
for (const el of pws) set(el, m.password); // incl. "confirm password"
|
for (const el of pws) set(el, m.password); // incl. "confirm password"
|
||||||
close();
|
close();
|
||||||
if (m.toast) toast("Saved to BugPass");
|
if (m.toast) toast("Saved to bugpass");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!frame || m.id !== String(id)) return;
|
if (!frame || m.id !== String(id)) return;
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#15141a" d="M10.5 1a4.5 4.5 0 0 0-4.27 5.92L1 12.15V15h3v-1.5h1.5V12H7l1.08-1.08A4.5 4.5 0 1 0 10.5 1m1 2.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5"/></svg>
|
||||||
|
After Width: | Height: | Size: 233 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#fbfbfe" d="M10.5 1a4.5 4.5 0 0 0-4.27 5.92L1 12.15V15h3v-1.5h1.5V12H7l1.08-1.08A4.5 4.5 0 1 0 10.5 1m1 2.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5"/></svg>
|
||||||
|
After Width: | Height: | Size: 233 B |
@@ -2,13 +2,13 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>BugPass</title>
|
<title>bugpass</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
<script type="module" src="manager.js"></script>
|
<script type="module" src="manager.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="manager">
|
<body class="manager">
|
||||||
<header class="row topbar">
|
<header class="row topbar">
|
||||||
<b class="grow">BugPass</b>
|
<b class="grow">bugpass</b>
|
||||||
<span id="state" class="dim"></span>
|
<span id="state" class="dim"></span>
|
||||||
<button id="lock"></button>
|
<button id="lock"></button>
|
||||||
</header>
|
</header>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<dialog id="dlg">
|
<dialog id="dlg">
|
||||||
<form id="prompt">
|
<form id="prompt">
|
||||||
<b>Unlock BugPass</b>
|
<b>Unlock bugpass</b>
|
||||||
<div class="row master">
|
<div class="row master">
|
||||||
<input name="master" type="password" placeholder="Master password" autocomplete="off">
|
<input name="master" type="password" placeholder="Master password" autocomplete="off">
|
||||||
<span class="fp"></span>
|
<span class="fp"></span>
|
||||||
|
|||||||
+52
-8
@@ -1,12 +1,56 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "BugPass",
|
"name": "bugpass",
|
||||||
"version": "2.1",
|
"version": "2.2",
|
||||||
"description": "Stateless LessPass-compatible password manager",
|
"description": "Stateless LessPass-compatible password manager",
|
||||||
"browser_specific_settings": { "gecko": { "id": "bugpass@local" } },
|
"browser_specific_settings": {
|
||||||
"permissions": ["nativeMessaging", "tabs", "clipboardRead", "clipboardWrite", "theme"],
|
"gecko": {
|
||||||
"background": { "page": "background.html" },
|
"id": "bugpass@local"
|
||||||
"browser_action": { "default_title": "BugPass", "default_popup": "popup.html" },
|
}
|
||||||
"content_scripts": [{ "matches": ["<all_urls>"], "js": ["content.js"], "run_at": "document_idle" }],
|
},
|
||||||
"web_accessible_resources": ["autofill.html"]
|
"permissions": [
|
||||||
|
"nativeMessaging",
|
||||||
|
"tabs",
|
||||||
|
"clipboardRead",
|
||||||
|
"clipboardWrite",
|
||||||
|
"theme"
|
||||||
|
],
|
||||||
|
"background": {
|
||||||
|
"page": "background.html"
|
||||||
|
},
|
||||||
|
"browser_action": {
|
||||||
|
"default_title": "bugpass",
|
||||||
|
"default_popup": "popup.html",
|
||||||
|
"default_icon": "key-dark.svg",
|
||||||
|
"theme_icons": [
|
||||||
|
{
|
||||||
|
"light": "key-light.svg",
|
||||||
|
"dark": "key-dark.svg",
|
||||||
|
"size": 16
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"light": "key-light.svg",
|
||||||
|
"dark": "key-dark.svg",
|
||||||
|
"size": 32
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"content_scripts": [
|
||||||
|
{
|
||||||
|
"matches": [
|
||||||
|
"<all_urls>"
|
||||||
|
],
|
||||||
|
"js": [
|
||||||
|
"content.js"
|
||||||
|
],
|
||||||
|
"run_at": "document_idle"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"web_accessible_resources": [
|
||||||
|
"autofill.html"
|
||||||
|
],
|
||||||
|
"icons": {
|
||||||
|
"48": "key-dark.svg",
|
||||||
|
"96": "key-dark.svg"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user