66 lines
2.5 KiB
HTML
66 lines
2.5 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<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>
|
|
<span id="state" class="dim"></span>
|
|
<button id="lock"></button>
|
|
</header>
|
|
<main>
|
|
<aside>
|
|
<input id="search" type="search" placeholder="Search accounts" autofocus>
|
|
<button id="new" class="primary">New account</button>
|
|
<ul id="list" class="items"></ul>
|
|
</aside>
|
|
|
|
<section id="view" hidden>
|
|
<h2 id="title"></h2>
|
|
<label>Website</label>
|
|
<a id="site" target="_blank" rel="noopener"></a>
|
|
<label>Username</label>
|
|
<div class="row"><span id="login" class="grow"></span><button id="copyLogin">Copy</button></div>
|
|
<label>Password</label>
|
|
<div class="row"><span id="pw" class="grow mono">••••••••</span><button id="reveal" title="Reveal">👁</button><button id="copyPw">Copy</button></div>
|
|
<div class="row"><button id="edit">Edit</button><button id="remove">Remove</button></div>
|
|
<output id="out"></output>
|
|
</section>
|
|
|
|
<form id="editor" hidden>
|
|
<h2 id="etitle"></h2>
|
|
<label>Website <input name="site" placeholder="example.org" required></label>
|
|
<label>Username <input name="login" placeholder="Username"></label>
|
|
<div class="row opts">
|
|
<label><input type="checkbox" name="lowercase">a-z</label>
|
|
<label><input type="checkbox" name="uppercase">A-Z</label>
|
|
<label><input type="checkbox" name="digits">0-9</label>
|
|
<label><input type="checkbox" name="symbols">%!@</label>
|
|
</div>
|
|
<div class="row">
|
|
<label>Length <input type="number" name="len" min="5" max="35"></label>
|
|
<label>Counter <input type="number" name="counter" min="1"></label>
|
|
</div>
|
|
<div class="row"><button class="primary">Save</button><button type="button" id="cancel">Cancel</button></div>
|
|
<output class="err"></output>
|
|
</form>
|
|
</main>
|
|
|
|
<dialog id="dlg">
|
|
<form id="prompt">
|
|
<b>Unlock BugPass</b>
|
|
<div class="row master">
|
|
<input name="master" type="password" placeholder="Master password" autocomplete="off">
|
|
<span class="fp"></span>
|
|
</div>
|
|
<div class="row"><button class="primary">Unlock</button><button type="button" id="dlgCancel">Cancel</button></div>
|
|
<output class="err"></output>
|
|
</form>
|
|
</dialog>
|
|
</body>
|
|
</html>
|