-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
269 lines (269 loc) · 17.8 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
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
<html>
<head>
<title>Btrfs File Recovery App</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet"/>
<style>
body {
font-family: 'Roboto', sans-serif;
}
</style>
</head>
<body class="bg-gray-900 text-white">
<div class="container mx-auto p-4">
<h1 class="text-3xl font-bold mb-6">Btrfs File Recovery App</h1>
<div class="flex space-x-6">
<div class="bg-gray-800 p-6 rounded-lg shadow-lg w-1/3">
<h2 class="text-2xl font-bold mb-4">Input Details</h2>
<form>
<div class="mb-4">
<label class="block text-sm font-medium mb-2" for="disk-location">Disk Location</label>
<input class="w-full p-2 bg-gray-700 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" id="disk-location" name="disk-location" type="text"/>
</div>
<div class="mb-4 flex items-center">
<div class="w-full">
<label class="block text-sm font-medium mb-2" for="file-name">File Name</label>
<input class="w-full p-2 bg-gray-700 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" id="file-name" name="file-name" type="text"/>
</div>
<div class="ml-4">
<label class="block text-sm font-medium mb-2" for="all-files">All Files</label>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer">
<div class="w-11 h-6 bg-gray-200 rounded-full peer peer-focus:ring-4 peer-focus:ring-green-300 peer-checked:bg-green-600"></div>
<span class="absolute left-1 top-1 w-4 h-4 bg-white rounded-full transition-transform peer-checked:translate-x-5"></span>
</label>
</div>
</div>
<div class="mb-4 flex items-center">
<div class="w-full">
<label class="block text-sm font-medium mb-2" for="directory">Directory</label>
<input class="w-full p-2 bg-gray-700 border border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" id="directory" name="directory" type="text"/>
</div>
<div class="ml-4">
<label class="block text-sm font-medium mb-2" for="all-directories">All Directories</label>
<label class="relative inline-flex items-center cursor-pointer">
<input type="checkbox" class="sr-only peer">
<div class="w-11 h-6 bg-gray-200 rounded-full peer peer-focus:ring-4 peer-focus:ring-green-300 peer-checked:bg-green-600"></div>
<span class="absolute left-1 top-1 w-4 h-4 bg-white rounded-full transition-transform peer-checked:translate-x-5"></span>
</label>
</div>
</div>
<button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg" type="submit">Recover Files</button>
<div class="mt-4">
<div class="h-2 bg-gray-700 rounded-full">
<div class="h-2 bg-blue-600 rounded-full" style="width: 50%;"></div>
</div>
<p class="text-sm mt-2">50% completed</p>
</div>
</form>
</div>
<div class="bg-gray-800 p-6 rounded-lg shadow-lg w-2/3 overflow-y-auto h-screen">
<h2 class="text-2xl font-bold mb-4">Recovered Files <span class="text-sm text-gray-400">(15 files)</span></h2>
<table class="w-full table-auto">
<thead>
<tr>
<th class="px-4 py-2">Name</th>
<th class="px-4 py-2">Date</th>
<th class="px-4 py-2">Size</th>
<th class="px-4 py-2">Type</th>
<th class="px-4 py-2">Action</th>
</tr>
</thead>
<tbody>
<tr class="bg-gray-700">
<td class="border px-4 py-2 flex items-center">
<img alt="Text file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/VcT5HZZp5fXGFqJCD6AIXHHN2tyLCpBKAz8mJUVbqVe1eornA.jpg"/>
file1.txt
</td>
<td class="border px-4 py-2">2023-10-01</td>
<td class="border px-4 py-2">15 KB</td>
<td class="border px-4 py-2">Text File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-600">
<td class="border px-4 py-2 flex items-center">
<img alt="Image file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/K5U7SdqdZBoDL5SL3ENCCnb0lYvQs4MsO7llPBeSCe4teornA.jpg"/>
image1.png
</td>
<td class="border px-4 py-2">2023-10-02</td>
<td class="border px-4 py-2">150 KB</td>
<td class="border px-4 py-2">Image File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-700">
<td class="border px-4 py-2 flex items-center">
<img alt="PDF file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/9ZfH0Y3B6c0fAUJhi8orKRDqXtflsAEHEnjufwJYHBly6RXPB.jpg"/>
document1.pdf
</td>
<td class="border px-4 py-2">2023-10-03</td>
<td class="border px-4 py-2">1.2 MB</td>
<td class="border px-4 py-2">PDF File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-600">
<td class="border px-4 py-2 flex items-center">
<img alt="Video file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/Tgt3JHCnMCY9HtIls7hF1dBF27njrflamT4WUyxztqzVP66JA.jpg"/>
video1.mp4
</td>
<td class="border px-4 py-2">2023-10-04</td>
<td class="border px-4 py-2">20 MB</td>
<td class="border px-4 py-2">Video File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-700">
<td class="border px-4 py-2 flex items-center">
<img alt="Audio file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/p8uoNfcqhXySFqKQ1PDdI6cpqPsnE8UU6eQih0FKRvft9ornA.jpg"/>
audio1.mp3
</td>
<td class="border px-4 py-2">2023-10-05</td>
<td class="border px-4 py-2">3 MB</td>
<td class="border px-4 py-2">Audio File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-600">
<td class="border px-4 py-2 flex items-center">
<img alt="Archive file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/QcIRXEDdWHKEOJYC5iJEyHCPIXaMbBv6HSMMQgjAyfFcP66JA.jpg"/>
archive1.zip
</td>
<td class="border px-4 py-2">2023-10-06</td>
<td class="border px-4 py-2">5 MB</td>
<td class="border px-4 py-2">Archive File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-700">
<td class="border px-4 py-2 flex items-center">
<img alt="Spreadsheet file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/MKC9SeV6XH0PBKshNY976G5xNXjUSuYXDwLKxrHznWddP66JA.jpg"/>
spreadsheet1.xlsx
</td>
<td class="border px-4 py-2">2023-10-07</td>
<td class="border px-4 py-2">500 KB</td>
<td class="border px-4 py-2">Spreadsheet File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-600">
<td class="border px-4 py-2 flex items-center">
<img alt="Presentation file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/J0yUEeJp3SSwQC23IgUntHkQSYjz88hgJFBm02v279jYP66JA.jpg"/>
presentation1.pptx
</td>
<td class="border px-4 py-2">2023-10-08</td>
<td class="border px-4 py-2">2 MB</td>
<td class="border px-4 py-2">Presentation File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-700">
<td class="border px-4 py-2 flex items-center">
<img alt="JavaScript file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/fq0NKUwpH217MyjwHQ1GecfHSwlttMrOAF8pezVSfVl51jueE.jpg"/>
script1.js
</td>
<td class="border px-4 py-2">2023-10-09</td>
<td class="border px-4 py-2">50 KB</td>
<td class="border px-4 py-2">JavaScript File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-600">
<td class="border px-4 py-2 flex items-center">
<img alt="CSS file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/XTwe3ejV2nqrsEP9KrDYL4ARTexKEepEKOTXNMVMCQdP7RXPB.jpg"/>
style1.css
</td>
<td class="border px-4 py-2">2023-10-10</td>
<td class="border px-4 py-2">20 KB</td>
<td class="border px-4 py-2">CSS File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-700">
<td class="border px-4 py-2 flex items-center">
<img alt="JSON file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/oI1YFpstUhqDOVepc6WEXQT1xB65yI7dQWqdOeceQDfk7RXPB.jpg"/>
config1.json
</td>
<td class="border px-4 py-2">2023-10-11</td>
<td class="border px-4 py-2">10 KB</td>
<td class="border px-4 py-2">JSON File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-600">
<td class="border px-4 py-2 flex items-center">
<img alt="Log file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/ZvzeYq98wGXkGqn17KWSOh2SG9sWZ6hTJoXMtk8hgvUYP66JA.jpg"/>
log1.log
</td>
<td class="border px-4 py-2">2023-10-12</td>
<td class="border px-4 py-2">5 KB</td>
<td class="border px-4 py-2">Log File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-700">
<td class="border px-4 py-2 flex items-center">
<img alt="Database file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/O3uH3kTf6m1se0YSRaQk9tBzMdb4D2LUUdsp8ELpdSupeornA.jpg"/>
database1.db
</td>
<td class="border px-4 py-2">2023-10-13</td>
<td class="border px-4 py-2">10 MB</td>
<td class="border px-4 py-2">Database File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr>
<tr class="bg-gray-600">
<td class="border px-4 py-2 flex items-center">
<img alt="Backup file icon" class="w-8 h-8 mr-2" src="https://storage.googleapis.com/a1aa/image/is3nUQF4ivbEGV7GP0yMMC79f9eT3QUCXoFDk9rPp2Y3eornA.jpg"/>
backup1.bak
</td>
<td class="border px-4 py-2">2023-10-14</td>
<td class="border px-4 py-2">50 MB</td>
<td class="border px-4 py-2">Backup File</td>
<td class="border px-4 py-2">
<button class="bg-green-600 hover:bg-green-700 text-white font-bold py-1 px-2 rounded">
<i class="fas fa-download"></i> Download
</button>
</td>
</tr