-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathoptions.html
160 lines (143 loc) · 6.89 KB
/
options.html
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!doctype html>
<html>
<head>
<title data-i18n="extName">MultiPass for HTTP basic authentication</title>
<link rel="stylesheet" type="text/css" href="css/chrome-bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body class="chrome-bootstrap">
<main class="mainview view">
<h2 data-i18n="credentials_section">Credentials</h2>
<table class="credential-table">
<thead>
<tr>
<th class="url" data-i18n="url_regexp">Url (regexp)</th>
<th class="username" data-i18n="username">Username</th>
<th class="password" data-i18n="password">Password</th>
<th class="action"> </th>
</tr>
</thead>
<tbody class="credentials">
</tbody>
<tfoot>
<form id="credential-form">
<tr>
<td class="url">
<label for="url" data-i18n="url">Url</label>
<input type="text" name="url" id="url" required="required">
</td>
<td class="username">
<label for="username" data-i18n="username">Username</label>
<input type="text" name="username" id="username" required="required">
</td>
<td class="password">
<label for="password" data-i18n="password">Password</label>
<input type="password" name="password" id="password" required="required">
</td>
<td class="priority">
<label for="priority" data-i18n="priority">Priority</label>
<input type="number" value="1" name="priority" id="priority" required="required">
</td>
<td class="action">
<button type="submit" class="credential-form-submit" data-i18n="add_credential">Add</button>
<button type="reset" class="credential-form-reset" data-i18n="clear_credential">Clear</button>
</td>
</tr>
</form>
</tfoot>
</table>
<h2 data-i18n="test_section">Test your regex</h2>
<form class="test-form">
<table class="form-table">
<tr>
<td>
<label for="test-regex" data-i18n="tested_regex_label">Your regex: </label>
</td>
<td>
<input type="text" name="test-regex" id="test-regex">
</td>
</tr>
<tr>
<td>
<label for="test-urls" data-i18n="tested_urls">URLs under test:</label>
</td>
<td>
<ul id="test-urls" contenteditable="true">
<li>http://www.example.com</li>
</ul>
</td>
</tr>
</table>
</form>
<h2 data-i18n="import_section">Import</h2>
<p data-i18n="import_description">You can import credentials into the extension. The file format is the following:</p>
<pre>
[
{"url":"some.url.com", "username":"admin", "password":"1234", "priority":"1"},
{"url":"example.com", "username":"john.doe", "password":"password", "priority":"2"}
]
</pre>
<form class="import-form">
<table class="form-table">
<tr>
<td>
<label for="import-file" data-i18n="import_file">Files to import</label>
</td>
<td>
<input type="file" id="import-file" name="import_file[]" multiple/>
</td>
</tr>
<tr>
<td>
<label for="import-json" data-i18n="import_json">JSON to import</label>
</td>
<td>
<textarea id="import-json" name="import_json"></textarea>
</td>
</tr>
<tr>
<td data-i18n="import_what">
What will be imported?
</td>
<td>
<output class="import-list" for="import" data-i18n="import_nothing">-nothing-</output>
</td>
</tr>
<tr class="actions">
<td colspan="2">
<button type="submit" class="import-submit" data-i18n="import_submit">Import</button>
</td>
</tr>
</table>
</form>
<h2 data-i18n="export_section">Export</h2>
<p><a href="#" download="multipass-credentials.json" class="export-credentials" data-i18n="export_button">Download credentials as JSON file.</a></p>
<h2 data-i18n="clear_section">Clear all credentials</h2>
<button class="clear-all" data-i18n="clear_button">Clear all credentials</button>
<div class="footer">
<p>MultiPass - © <a href="mailto:[email protected]">Gilles Crettenand</a> - <span class="multipass-version"></span></p>
<p>
<a href="http://www.wtfpl.net/">
<img src="http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-4.png" width="80" height="15" alt="WTFPL"/>
</a>
</p>
</div>
</main>
<div class="overlay" style="display: none;">
<div class="page">
<h1 class="overlay-title"></h1>
<div class="close-button"></div>
<div class="content-area overlay-content"></div>
<div class="action-area">
<div class="action-area-right">
<div class="button-strip">
<button class="modal-cancel" data-i18n="modal_cancel">Cancel</button>
<button class="modal-confirm" data-i18n="modal_yes">Yes</button>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/option.js"></script>
</body>
</html>