forked from Dmitry1987/vault-chrome-extension
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathaddKey.html
More file actions
119 lines (110 loc) · 3.36 KB
/
addKey.html
File metadata and controls
119 lines (110 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!doctype html>
<html>
<head>
<title>Add Key - VaultPass</title>
<meta charset="utf-8" />
<script
type="application/javascript"
src="browser-polyfill.min.js"
></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header class="header">
<div class="header__container">
<h1 class="h1 title">Add Key</h1>
<nav role="navigation" class="menu" aria-label="Main Menu">
<div class="tabs">
<a href="/popup.html" class="tab" data-page="keys">Keys</a>
<a href="/options.html" class="tab" data-page="options">Options</a>
</div>
</nav>
</div>
</header>
<main class="main">
<div role="alert" id="notify" aria-live="assertive"></div>
<form id="addKeyForm">
<div class="form-group">
<label for="secretPath" class="label">
Secret Path:
<span class="text-secondary" style="font-weight: normal">
Select where to store this key
</span>
</label>
<select
id="secretPath"
name="secretPath"
required
aria-required="true"
>
<option value="">-- Select a path --</option>
</select>
</div>
<div class="form-group">
<label for="urlRegex" class="label">
URL Pattern (regex):
<span class="text-secondary" style="font-weight: normal">
e.g., ^example\.com.* (used as KV object name)
</span>
</label>
<input
type="text"
id="urlRegex"
name="urlRegex"
placeholder="^example\.com.*"
required
aria-required="true"
/>
</div>
<div class="form-group">
<label for="username" class="label">Username:</label>
<input
type="text"
id="username"
name="username"
placeholder="Enter username"
required
aria-required="true"
/>
</div>
<div class="form-group">
<div class="password-row">
<label for="password" class="label">Password:</label>
<button type="button" id="generatePasswordButton" class="button">
Generate
</button>
</div>
<input
type="password"
id="password"
name="password"
placeholder="Enter password"
required
aria-required="true"
/>
</div>
<div class="form-group">
<label for="title" class="label">
Title (optional):
<span class="text-secondary" style="font-weight: normal">
A friendly name for this key
</span>
</label>
<input
type="text"
id="title"
name="title"
placeholder="e.g., Example Site Login"
/>
</div>
<div class="flex justify-between" style="gap: 1rem">
<button type="button" id="cancelButton" class="button">Cancel</button>
<button type="submit" class="button button--primary">Save Key</button>
</div>
</form>
</main>
<script src="Notify.js"></script>
<script src="common.js"></script>
<script src="addKey.js"></script>
</body>
</html>