-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
173 lines (133 loc) · 4.7 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>TOTP</title>
<link rel="stylesheet" href="style.css" />
<!-- <link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"
rel="stylesheet"
/> -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0"
/>
</head>
<body>
<div id="toolbar">
<button id="add-secret">
<span class="material-symbols-outlined">add</span>
</button>
<button id="settings" class="right">
<span class="material-symbols-outlined">settings</span>
</button>
<span class="sep right"></span>
<button id="btn-list" class="right">
<span class="material-symbols-outlined">view_list</span>
</button>
<button id="btn-grid" class="right">
<span class="material-symbols-outlined">grid_view</span>
</button>
</div>
<div id="content">
<div id="view-list">
<!-- <div class="header"></div> -->
<div class="items"></div>
</div>
<div id="view-grid" class="grid"></div>
</div>
<div id="add-secret-modal" class="modal" tabindex="0">
<div class="header">
<p class="title">Add Secret</p>
<button class="close">
<span class="material-symbols-outlined">close</span>
</button>
</div>
<div class="content">
<div id="label-control" class="control">
<label for="label-input">Label</label>
<input type="text" id="label-input" />
</div>
<div id="secret-control" class="control">
<label for="secret-input">Secret</label>
<input type="text" id="secret-input" />
</div>
</div>
<div class="footer">
<button id="add-key-modal-btn-add">Add</button>
</div>
</div>
<div id="settings-modal" class="modal" tabindex="0">
<div class="header">
<p class="title">Settings</p>
<button class="close">
<span class="material-symbols-outlined">close</span>
</button>
</div>
<div class="content">
<button id="btn-import">Import Secrets</button>
<button id="btn-export">Export Secrets</button>
<button id="btn-clear">Clear Secrets</button>
</div>
</div>
<div id="import-modal" class="modal" tabindex="0">
<div class="header">
<p class="title">Import Secrets</p>
<button class="close">
<span class="material-symbols-outlined">close</span>
</button>
</div>
<div class="content">
<div id="file-control" class="control">
<label for="file-input">File</label>
<input type="file" id="file-input" />
</div>
<span class="hsep"></span>
<div id="data-control" class="control">
<label for="data-input">Data (JSON; base64)</label>
<textarea id="data-input" rows="5"></textarea>
<button id="import-modal-btn-from-clipboard">From Clipboard</button>
</div>
</div>
<div class="footer">
<button id="import-modal-btn-merge">Merge</button>
<span class="sep right"></span>
<button id="import-modal-btn-overwrite">Overwrite</button>
</div>
</div>
<div id="export-modal" class="modal" tabindex="0">
<div class="header">
<p class="title">Export Secrets</p>
<button class="close">
<span class="material-symbols-outlined">close</span>
</button>
</div>
<div class="content">
<div id="format-control" class="control">
<label for="format-select">Format</label>
<select id="format-select">
<option value="json">JSON</option>
<option value="json-pretty">JSON (pretty)</option>
<option value="json-b64">JSON (base64)</option>
<option value="json-pretty-b64">JSON (pretty, base64)</option>
<option value="json-encrypted-b64" selected>
JSON (encrypted, base64)
</option>
</select>
</div>
<div id="secrets-control" class="control">
<label for="secrets-select">Secrets</label>
<select id="secrets-select" size="10" multiple></select>
<button id="export-modal-btn-select-all">Select All</button>
</div>
</div>
<div class="footer">
<button id="export-modal-btn-export">Export</button>
<span class="sep right"></span>
<button id="export-modal-btn-copy">Copy</button>
</div>
</div>
<div id="modal-bg"></div>
<script type="module" src="app.js"></script>
</body>
</html>