-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
settings.html
320 lines (316 loc) · 15.9 KB
/
settings.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="description" content="Passky is a simple, modern, lightweight, open-source and secure password manager." />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#0D1117" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>Passky</title>
<link rel="shortcut icon" type="image/png" href="images/logo.png"/>
<link rel="stylesheet" href="css/tailwind.min.css">
<link rel="stylesheet" href="css/settings.css">
<link id="css-theme" type="text/css" rel="stylesheet" href="css/themes/dark.css">
<script src="js/lang.js"></script>
<script src="js/header.js"></script>
<script src="js/XChaCha20.min.js"></script>
</head>
<body class="primaryBackgroundColor">
<nav class="secondaryBackgroundColor shadow">
<div class="max-w-7xl mx-auto px-2 sm:px-4 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex px-2 lg:px-0">
<div class="flex-shrink-0 flex items-center">
<img id="logo" class="h-8 w-auto animate-[spin_0.7s_ease-in-out]" src="images/logo.png" alt="Passky">
</div>
<div class="hidden lg:ml-6 lg:flex lg:space-x-8">
<a id="passwords-link" href="passwords.html" class="mainMenuLink border-transparent inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
Passwords
</a>
<a id="import-export-link" href="export.html" class="mainMenuLink border-transparent inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
Import & Export
</a>
<a id="settings-link" href="#" class="mainMenuLinkSelected inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
Settings
</a>
<span id="signout-link" role="button" class="mainMenuLink border-transparent inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
Sign out
</span>
</div>
</div>
<div class="flex items-center lg:hidden">
<button id="main-menu-toggle-btn" type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none" aria-controls="mobile-menu" aria-expanded="false">
<span class="sr-only">Open main menu</span>
<svg id="mobile-menu-icon" xmlns="http://www.w3.org/2000/svg" class="block h-6 w-6" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<line x1="4" y1="6" x2="20" y2="6" />
<line x1="4" y1="12" x2="20" y2="12" />
<line x1="4" y1="18" x2="20" y2="18" />
</svg>
</button>
</div>
</div>
</div>
<div class="lg:hidden">
<div id="mobile-menu" class="hidden pt-2 pb-3 space-y-1">
<a id="passwords-link-mobile" href="passwords.html" class="mainMenuMobileLink border-transparent block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Passwords</a>
<a id="import-export-link-mobile" href="export.html" class="mainMenuMobileLink border-transparent block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Import & Export</a>
<a id="settings-link-mobile" href="#" class="mainMenuMobileLinkSelected block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Settings</a>
<span id="signout-link-mobile" role="button" class="mainMenuMobileLink border-transparent block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Sign out</span>
</div>
</div>
</nav>
<div class="flex flex-col m-8 max-w-7xl mx-auto px-2 sm:px-4 lg:px-8">
<ul class="space-y-3">
<!-- Languages -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<label id="label-language" class="secondaryColor block text-sm font-medium sm:mt-px sm:pt-2">
Language
</label>
<div class="mt-1 sm:mt-0 sm:col-span-2">
<select id="settings-lang" class="mainMenuMobileLink border-transparent w-full block pl-3 pr-4 py-2 text-base focus:outline-none font-medium">
<option value="af">Afrikaans</option>
<!-- <option value="ar">Arabic</option> -->
<option value="bs">Bosnian</option>
<option value="zh-CN">Chinese (Simplified)</option>
<option value="zh-TW">Chinese (Traditional)</option>
<option value="cs">Czech</option>
<option value="nl">Dutch</option>
<option value="en">English</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="el">Greek</option>
<option value="hi">Hindi</option>
<option value="hu">Hungarian</option>
<option value="id">Indonesian</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="no">Norwegian</option>
<!-- <option value="fa">Persian</option> -->
<option value="pl">Polish</option>
<option value="pt-PT">Portuguese</option>
<option value="pt-BR">Portuguese (Brazilian)</option>
<option value="ro">Romanian</option>
<option value="ru">Russian</option>
<option value="sl">Slovenian</option>
<option value="es-ES">Spanish</option>
<option value="sv-SE">Swedish</option>
<option value="tr">Turkish</option>
<option value="uk">Ukrainian</option>
<option value="vi">Vietnamese</option>
</select>
</div>
<label id="info-language" class="secondaryColor block text-sm font-medium mt-px pt-2">
Missing language? Translate it on <a class="primaryColor" href="https://crowdin.com/project/passky" target="_blank">Crowdin</a>.
</label>
</div>
</li>
<!-- Themes -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<label id="label-theme" class="secondaryColor block text-sm font-medium sm:mt-px sm:pt-2">
Theme
</label>
<div class="mt-1 sm:mt-0 sm:col-span-2">
<select id="settings-theme" class="mainMenuMobileLink border-transparent w-full block pl-3 pr-4 py-2 text-base focus:outline-none font-medium">
<option value="dark">Dark</option>
<option value="solarizedDark">Solarized Dark</option>
<option value="tokyoNight">Tokyo Night</option>
<option value="dracula">Dracula</option>
<option value="monokai">Monokai</option>
<option value="blue">Blue</option>
<option value="nord">Nord</option>
<option value="gray">Gray</option>
<option value="light">Light</option>
</select>
</div>
</div>
</li>
<!-- Session duration -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<label id="label-session-duration" class="secondaryColor block text-sm font-medium sm:mt-px sm:pt-2">
Session Duration
</label>
<div class="mt-1 sm:mt-0 sm:col-span-2">
<select id="settings-session" class="mainMenuMobileLink border-transparent w-full block pl-3 pr-4 py-2 text-base focus:outline-none font-medium">
<option class="addMinutes" value="5">5</option>
<option class="addMinutes" value="10">10</option>
<option class="addMinutes" value="15">15</option>
<option class="addMinutes" value="20">20</option>
<option class="addMinutes" value="30">30</option>
<option class="addMinutes" value="60">60</option>
</select>
</div>
</div>
</li>
<!-- Website Icons -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<label id="label-website-icons" class="secondaryColor block text-sm font-medium sm:mt-px sm:pt-2">
Website Icons
</label>
<div class="mt-5">
<button id="toggle-website-icons" type="button" class="successButton font-bold inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md focus:outline-none sm:text-sm">
Enable
</button>
</div>
<label id="info-website-icons" class="secondaryColor block text-sm font-medium mt-px pt-2">
Enabling website icons might reduce your privacy.
</label>
</div>
</li>
<!-- Auto Search -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<label id="label-auto-search" class="secondaryColor block text-sm font-medium sm:mt-px sm:pt-2">
Auto Search
</label>
<div class="mt-5">
<button id="toggle-auto-search" type="button" class="successButton font-bold inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md focus:outline-none sm:text-sm">
Enable
</button>
</div>
<label id="info-auto-search" class="secondaryColor block text-sm font-medium mt-px pt-2">
Only available in the browser extension.
</label>
</div>
</li>
<!-- 2FA -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<label id="label-2fa" class="secondaryColor block text-sm font-medium sm:mt-px sm:pt-2">
Two-Factor Authentication (2FA)
</label>
<div class="mt-5">
<button id="toggle-2fa-btn" type="button" class="successButton font-bold inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md focus:outline-none sm:text-sm">
Enable
</button>
</div>
</div>
</li>
<!-- Yubico OTP -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<label id="label-2fa" class="secondaryColor block text-sm font-medium sm:mt-px sm:pt-2">
Yubico One-Time Password (Yubico OTP)
</label>
<div class="mt-5">
<ul id="yubico-list" role="list" class="divide-y"></ul>
<button id="add-yubico-btn" type="button" class="successButton font-bold inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md focus:outline-none sm:text-sm">
Add
</button>
<button id="remove-yubico-btn" type="button" class="dangerButton font-bold inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md focus:outline-none sm:text-sm">
Remove
</button>
</div>
</div>
</li>
<!-- Upgrade Account -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<label id="label-upgrade-account" class="secondaryColor block text-sm font-medium sm:mt-px sm:pt-2">
Upgrade Account
</label>
<div class="mt-5 flex items-center">
<div class="flex-initial w-80">
<div class="relative rounded-md shadow-sm">
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 secondaryColor" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<circle cx="8" cy="15" r="4"></circle>
<line x1="10.85" y1="12.15" x2="19" y2="4"></line>
<line x1="18" y1="5" x2="20" y2="7"></line>
<line x1="15" y1="8" x2="17" y2="10"></line>
</svg>
</div>
<input id="license-key" name="license-key" type="text" autocomplete="off" required class="tertiaryBackgroundColor tertiaryColor appearance-none rounded-l-md block w-full pl-10 px-4 py-2 focus:outline-none focus:z-10 sm:text-sm" placeholder="License Key">
</div>
</div>
<button id="validate-license-btn" type="button" class="successButton relative inline-flex items-center px-2 py-2 shadow-sm rounded-r-md sm:text-sm focus:outline-none">
Validate
</button>
</div>
<label id="info-upgrade-account" class="secondaryColor block text-sm font-medium mt-px pt-2">
<ul>
<li id="account-type">Account: <b>Free</b></li>
<li id="account-expiration">Expiration: <b>Never</b></li>
</ul>
</label>
</div>
</li>
<!-- Delete passwords -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<h3 id="delete-passwords-title" class="tertiaryColor text-lg leading-6 font-medium">
Delete passwords
</h3>
<div class="secondaryColor mt-2 max-w-xl text-sm">
<p id="delete-passwords-text">
Deleted passwords can not be recovered.
</p>
</div>
<div class="mt-5">
<button id="delete-passwords-btn" type="button" class="dangerButton font-bold inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md focus:outline-none sm:text-sm">
Delete passwords
</button>
</div>
</div>
</li>
<!-- Delete account -->
<li class="secondaryBackgroundColor shadow overflow-hidden rounded-md px-6 py-4">
<div>
<h3 id="delete-account-title" class="tertiaryColor text-lg leading-6 font-medium">
Delete account
</h3>
<div class="secondaryColor mt-2 max-w-xl text-sm">
<p id="delete-account-text">
Once you delete your account, you will lose all data associated with it.
</p>
</div>
<div class="mt-5">
<button id="delete-account-btn" type="button" class="dangerButton font-bold inline-flex items-center justify-center px-4 py-2 border border-transparent font-medium rounded-md focus:outline-none sm:text-sm">
Delete account
</button>
</div>
</div>
</li>
</ul>
</div>
<div id="dialog" class="h-screen w-full fixed left-0 top-0 flex justify-center items-center z-10 inset-0 overflow-y-auto invisible" aria-labelledby="dialog-title" role="dialog" aria-modal="true">
<div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true"></div>
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>
<div class="secondaryBackgroundColor inline-block align-bottom rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all m-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6">
<div class="sm:flex sm:items-start">
<div id="dialog-icon" class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10">
<svg class="h-6 w-6 text-red-600" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>
</div>
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<h3 class="tertiaryColor text-lg leading-6 font-medium" id="dialog-title"></h3>
<div class="mt-2">
<p class="secondaryColor text-sm" id="dialog-text"></p>
</div>
</div>
</div>
<div class="mt-5 sm:mt-4 sm:ml-10 sm:pl-4 sm:flex">
<button id="dialog-button" type="button" class="dangerButton inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium focus:outline-none sm:w-auto sm:text-sm">
Okay
</button>
<button id="dialog-button-cancel" type="button" class="cancelButton mt-2 w-full inline-flex justify-center rounded-md border px-4 py-2 text-base font-medium shadow-sm focus:outline-none sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
Cancel
</button>
</div>
</div>
</div>
<script src="js/default-functions.js"></script>
<script src="js/qrcode.js"></script>
<script src="js/PasskyAPI.js"></script>
<script src="js/settings.js"></script>
</body>
</html>