Lowercase name, key icon

This commit is contained in:
bug committed 2026-10-18 02:30:57 -05:00
1 parent df3554542c
commit b98739ca84
8 files changed
+61 -15

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
# BugPass
# bugpass
LessPass-compatible password generator for Firefox/LibreWolf. Passwords are
derived, never stored; a native messaging host stores only site profiles
+1 -1
View File
@@ -37,7 +37,7 @@ in {
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
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
# self-test: framed round trip
+1 -1
View File
@@ -69,7 +69,7 @@ const handlers = {
};
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);
if (master) touch(); // auto-lock after 30 min without use
return r;
+1 -1
View File
@@ -78,7 +78,7 @@ if (/^(https?|file):$/.test(location.protocol)) {
if (user && m.username) set(user, m.username);
for (const el of pws) set(el, m.password); // incl. "confirm password"
close();
if (m.toast) toast("Saved to BugPass");
if (m.toast) toast("Saved to bugpass");
return;
}
if (!frame || m.id !== String(id)) return;
+1
View File
@@ -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

+1
View File
@@ -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

+3 -3
View File
@@ -2,13 +2,13 @@
<html>
<head>
<meta charset="utf-8">
<title>BugPass</title>
<title>bugpass</title>
<link rel="stylesheet" href="style.css">
<script type="module" src="manager.js"></script>
</head>
<body class="manager">
<header class="row topbar">
<b class="grow">BugPass</b>
<b class="grow">bugpass</b>
<span id="state" class="dim"></span>
<button id="lock"></button>
</header>
@@ -52,7 +52,7 @@
<dialog id="dlg">
<form id="prompt">
<b>Unlock BugPass</b>
<b>Unlock bugpass</b>
<div class="row master">
<input name="master" type="password" placeholder="Master password" autocomplete="off">
<span class="fp"></span>
+52 -8
View File
@@ -1,12 +1,56 @@
{
"manifest_version": 2,
"name": "BugPass",
"version": "2.1",
"name": "bugpass",
"version": "2.2",
"description": "Stateless LessPass-compatible password manager",
"browser_specific_settings": { "gecko": { "id": "bugpass@local" } },
"permissions": ["nativeMessaging", "tabs", "clipboardRead", "clipboardWrite", "theme"],
"background": { "page": "background.html" },
"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"]
"browser_specific_settings": {
"gecko": {
"id": "bugpass@local"
}
},
"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"
}
}