@wwawing/debug-server 3.13.0-unstable.based-on.3.12.11.p.12 → 4.1.0-save-bug-fix.based-on.3.12.17.p.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/bin/LICENSE +307 -0
- package/bin/wwa-server.exe +0 -0
- package/lib/directory.55937809b95ca98f09c2.html +82 -0
- package/lib/icons/application_xp.9c313f71965fabe45dfe.png +0 -0
- package/lib/icons/application_xp_terminal.d667581d85520532ea40.png +0 -0
- package/lib/icons/box.5fb5662902a2ab76c0d6.png +0 -0
- package/lib/icons/cd.b9ecc3a217cb11cfbcd0.png +0 -0
- package/lib/icons/controller.a454224985e9213dd1b0.png +0 -0
- package/lib/icons/drive.61705515d91126f16df0.png +0 -0
- package/lib/icons/film.77e9b0a3cb84ed78239c.png +0 -0
- package/lib/icons/folder.daaf45fa1b12a2c0f16c.png +0 -0
- package/lib/icons/font.f5c41e5cc6853bbacb1f.png +0 -0
- package/lib/icons/image.6b6ccb8df448ba5e2853.png +0 -0
- package/lib/icons/map.39e17ba776f014d4ca20.png +0 -0
- package/lib/icons/page.9a829e4e8b12cd38d38b.png +0 -0
- package/lib/icons/page_add.3d4c85522b4e6bccaf55.png +0 -0
- package/lib/icons/page_attach.0d45efb142510a5c2bd1.png +0 -0
- package/lib/icons/page_code.82d3ce71163033ad7268.png +0 -0
- package/lib/icons/page_copy.86824d3047d844a7b906.png +0 -0
- package/lib/icons/page_delete.ed7fd666af2dcca6adcf.png +0 -0
- package/lib/icons/page_edit.55bda2670c16a072c3a4.png +0 -0
- package/lib/icons/page_error.c0a607b2b058da20311b.png +0 -0
- package/lib/icons/page_excel.616daff10277c5cbdf6f.png +0 -0
- package/lib/icons/page_find.6d917a39b4850aeffbab.png +0 -0
- package/lib/icons/page_gear.61e33e66e1eb77a0a6e9.png +0 -0
- package/lib/icons/page_go.2dab3d23ed923a210aaa.png +0 -0
- package/lib/icons/page_green.c4522cc66659ff8e83b5.png +0 -0
- package/lib/icons/page_key.0d92ac7631ce774bd7d7.png +0 -0
- package/lib/icons/page_lightning.976d56507e77c8d753ac.png +0 -0
- package/lib/icons/page_link.b438a12a48c995e64ec5.png +0 -0
- package/lib/icons/page_paintbrush.3f2adef13c8710107482.png +0 -0
- package/lib/icons/page_paste.0a428fc813439332ff3d.png +0 -0
- package/lib/icons/page_red.a9f0bd2cf3f5ecee7fcf.png +0 -0
- package/lib/icons/page_refresh.beea7b3f4541093b319a.png +0 -0
- package/lib/icons/page_save.1abaab254997b3289905.png +0 -0
- package/lib/icons/page_white.69f8ed51b3aab8a8b202.png +0 -0
- package/lib/icons/page_white_acrobat.19154f7b9211c41a1872.png +0 -0
- package/lib/icons/page_white_actionscript.cec4dd67ae284829fd95.png +0 -0
- package/lib/icons/page_white_add.8372434eef387d919714.png +0 -0
- package/lib/icons/page_white_c.d89b86db6ce0c039e323.png +0 -0
- package/lib/icons/page_white_camera.11f55ee658e7dd449203.png +0 -0
- package/lib/icons/page_white_cd.cb8101e38d3b062d23bf.png +0 -0
- package/lib/icons/page_white_code.a1b02aca35177e746dcb.png +0 -0
- package/lib/icons/page_white_code_red.5e0f6903cc4bbeb44848.png +0 -0
- package/lib/icons/page_white_coldfusion.ac72220bbd48f8d58bdd.png +0 -0
- package/lib/icons/page_white_compressed.a353e3a6fe39acf20310.png +0 -0
- package/lib/icons/page_white_copy.146d4e39bd1bdb6bca16.png +0 -0
- package/lib/icons/page_white_cplusplus.3774696a883da107ada4.png +0 -0
- package/lib/icons/page_white_csharp.0ea5829fdede1738759a.png +0 -0
- package/lib/icons/page_white_cup.dbb99e05ef0a0056161d.png +0 -0
- package/lib/icons/page_white_database.e22f3b5765825a317d32.png +0 -0
- package/lib/icons/page_white_delete.f0ac3ec38e8ea096b8b0.png +0 -0
- package/lib/icons/page_white_dvd.8fd3b6d1986b04bc3a58.png +0 -0
- package/lib/icons/page_white_edit.42f058891db28d93343b.png +0 -0
- package/lib/icons/page_white_error.190577dd667bd5e7e0f5.png +0 -0
- package/lib/icons/page_white_excel.f8c63383c3b6db3767eb.png +0 -0
- package/lib/icons/page_white_find.2da3fce29c43517a75cc.png +0 -0
- package/lib/icons/page_white_flash.a62c4b710889f2eeb8cd.png +0 -0
- package/lib/icons/page_white_freehand.1038707610ecd381c2a4.png +0 -0
- package/lib/icons/page_white_gear.c4286a08248a79088a86.png +0 -0
- package/lib/icons/page_white_get.979f3ff0bd24a879216f.png +0 -0
- package/lib/icons/page_white_go.48fdd076f413d04daec3.png +0 -0
- package/lib/icons/page_white_h.b70ecb1b02c93304e9a6.png +0 -0
- package/lib/icons/page_white_horizontal.9672920ae0d5b3d31792.png +0 -0
- package/lib/icons/page_white_key.314a181159af201e4ff4.png +0 -0
- package/lib/icons/page_white_lightning.7e604c2ee5df5f05de10.png +0 -0
- package/lib/icons/page_white_link.dc2a1a4340367cf70bd4.png +0 -0
- package/lib/icons/page_white_magnify.0afad80c309298d6f351.png +0 -0
- package/lib/icons/page_white_medal.e28a5d5931e4684f6f74.png +0 -0
- package/lib/icons/page_white_office.42fdb96a0ef111143dfb.png +0 -0
- package/lib/icons/page_white_paint.f2075efebc638ec102be.png +0 -0
- package/lib/icons/page_white_paintbrush.91aa9d7be50db2a3689b.png +0 -0
- package/lib/icons/page_white_paste.7c4817ef2aabb7d80cd2.png +0 -0
- package/lib/icons/page_white_php.48cc6dc225f6c405b72c.png +0 -0
- package/lib/icons/page_white_picture.7ef81f8ca1cc32c9507e.png +0 -0
- package/lib/icons/page_white_powerpoint.5ae494d64c8d7b1fc8da.png +0 -0
- package/lib/icons/page_white_put.2579af93d9f9133a23f5.png +0 -0
- package/lib/icons/page_white_ruby.79a593626f451f95a70b.png +0 -0
- package/lib/icons/page_white_stack.e82adeab7ec3e6ae3a0d.png +0 -0
- package/lib/icons/page_white_star.925011a9c4879c97d50e.png +0 -0
- package/lib/icons/page_white_swoosh.36842ff8bfb7a1e89575.png +0 -0
- package/lib/icons/page_white_text.f0e456fa661e04488837.png +0 -0
- package/lib/icons/page_white_text_width.50b1e22c8db3eb2d69ef.png +0 -0
- package/lib/icons/page_white_tux.593f814d3e7b8a658c7d.png +0 -0
- package/lib/icons/page_white_vector.c6b5f4afdff731b17b94.png +0 -0
- package/lib/icons/page_white_visualstudio.f2a4026f27fa0148d7ca.png +0 -0
- package/lib/icons/page_white_width.79fd06d9e7f59273c21c.png +0 -0
- package/lib/icons/page_white_word.46081404f917fd43baba.png +0 -0
- package/lib/icons/page_white_world.3b6e329f92918dddc89c.png +0 -0
- package/lib/icons/page_white_wrench.745343f789df1293111d.png +0 -0
- package/lib/icons/page_white_zip.2fda215b2e44507befab.png +0 -0
- package/lib/icons/page_word.76c4d773ed0efc26ca64.png +0 -0
- package/lib/icons/page_world.b08470395f99d01374e5.png +0 -0
- package/lib/index.js +2 -28
- package/lib/index.js.LICENSE.txt +291 -0
- package/lib/style.78a43b88ba22d572d6c6.css +257 -0
- package/package.json +26 -15
package/LICENSE
CHANGED
package/bin/LICENSE
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
// wwa-server.exe LICENSE INFORMATION
|
|
2
|
+
|
|
3
|
+
/*!
|
|
4
|
+
* Node.js
|
|
5
|
+
* Copyright Node.js contributors. All rights reserved.
|
|
6
|
+
* MIT Licensed
|
|
7
|
+
* https://raw.githubusercontent.com/nodejs/node/refs/heads/main/LICENSE
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/*!
|
|
11
|
+
* @wwawing/debug-server
|
|
12
|
+
* Copyright (c) 2018-2025 WWA Wing Team
|
|
13
|
+
* MIT Licensed
|
|
14
|
+
* https://github.com/WWAWing/WWAWing/blob/develop/packages/debug-server/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/*!
|
|
18
|
+
* Default template.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/*!
|
|
22
|
+
* Icon cache.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/*!
|
|
26
|
+
* accepts
|
|
27
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
28
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
29
|
+
* MIT Licensed
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/*!
|
|
33
|
+
* body-parser
|
|
34
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
35
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
36
|
+
* MIT Licensed
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/*!
|
|
40
|
+
* body-parser
|
|
41
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
42
|
+
* MIT Licensed
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/*!
|
|
46
|
+
* bytes
|
|
47
|
+
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
48
|
+
* Copyright(c) 2015 Jed Watson
|
|
49
|
+
* MIT Licensed
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/*!
|
|
53
|
+
* content-disposition
|
|
54
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
55
|
+
* MIT Licensed
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/*!
|
|
59
|
+
* content-type
|
|
60
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
61
|
+
* MIT Licensed
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/*!
|
|
65
|
+
* cookie
|
|
66
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
67
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
68
|
+
* MIT Licensed
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
/*!
|
|
72
|
+
* depd
|
|
73
|
+
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
74
|
+
* MIT Licensed
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
/*!
|
|
78
|
+
* depd
|
|
79
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
80
|
+
* MIT Licensed
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/*!
|
|
84
|
+
* depd
|
|
85
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
86
|
+
* MIT Licensed
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/*!
|
|
90
|
+
* depd
|
|
91
|
+
* Copyright(c) 2014-2018 Douglas Christopher Wilson
|
|
92
|
+
* MIT Licensed
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
/*!
|
|
96
|
+
* depd
|
|
97
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
98
|
+
* MIT Licensed
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/*!
|
|
102
|
+
* destroy
|
|
103
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
104
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
105
|
+
* MIT Licensed
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/*!
|
|
109
|
+
* ee-first
|
|
110
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
111
|
+
* MIT Licensed
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/*!
|
|
115
|
+
* encodeurl
|
|
116
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
117
|
+
* MIT Licensed
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
/*!
|
|
121
|
+
* escape-html
|
|
122
|
+
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
123
|
+
* Copyright(c) 2015 Andreas Lubbe
|
|
124
|
+
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
125
|
+
* MIT Licensed
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/*!
|
|
129
|
+
* etag
|
|
130
|
+
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
131
|
+
* MIT Licensed
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
/*!
|
|
135
|
+
* express
|
|
136
|
+
* Copyright(c) 2009-2013 TJ Holowaychuk
|
|
137
|
+
* Copyright(c) 2013 Roman Shtylman
|
|
138
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
139
|
+
* MIT Licensed
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
/*!
|
|
143
|
+
* express
|
|
144
|
+
* Copyright(c) 2009-2013 TJ Holowaychuk
|
|
145
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
146
|
+
* MIT Licensed
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/*!
|
|
150
|
+
* finalhandler
|
|
151
|
+
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
152
|
+
* MIT Licensed
|
|
153
|
+
*/
|
|
154
|
+
|
|
155
|
+
/*!
|
|
156
|
+
* forwarded
|
|
157
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
158
|
+
* MIT Licensed
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
/*!
|
|
162
|
+
* fresh
|
|
163
|
+
* Copyright(c) 2012 TJ Holowaychuk
|
|
164
|
+
* Copyright(c) 2016-2017 Douglas Christopher Wilson
|
|
165
|
+
* MIT Licensed
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
/*!
|
|
169
|
+
* http-errors
|
|
170
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
171
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
172
|
+
* MIT Licensed
|
|
173
|
+
*/
|
|
174
|
+
|
|
175
|
+
/*!
|
|
176
|
+
* media-typer
|
|
177
|
+
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
178
|
+
* MIT Licensed
|
|
179
|
+
*/
|
|
180
|
+
|
|
181
|
+
/*!
|
|
182
|
+
* merge-descriptors
|
|
183
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
184
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
185
|
+
* MIT Licensed
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
/*!
|
|
189
|
+
* methods
|
|
190
|
+
* Copyright(c) 2013-2014 TJ Holowaychuk
|
|
191
|
+
* Copyright(c) 2015-2016 Douglas Christopher Wilson
|
|
192
|
+
* MIT Licensed
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
/*!
|
|
196
|
+
* mime-db
|
|
197
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
198
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
199
|
+
* MIT Licensed
|
|
200
|
+
*/
|
|
201
|
+
|
|
202
|
+
/*!
|
|
203
|
+
* mime-types
|
|
204
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
205
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
206
|
+
* MIT Licensed
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
/*!
|
|
210
|
+
* negotiator
|
|
211
|
+
* Copyright(c) 2012 Federico Romero
|
|
212
|
+
* Copyright(c) 2012-2014 Isaac Z. Schlueter
|
|
213
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
214
|
+
* MIT Licensed
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
/*!
|
|
218
|
+
* on-finished
|
|
219
|
+
* Copyright(c) 2013 Jonathan Ong
|
|
220
|
+
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
221
|
+
* MIT Licensed
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/*!
|
|
225
|
+
* parseurl
|
|
226
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
227
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
228
|
+
* MIT Licensed
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/*!
|
|
232
|
+
* proxy-addr
|
|
233
|
+
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
234
|
+
* MIT Licensed
|
|
235
|
+
*/
|
|
236
|
+
|
|
237
|
+
/*!
|
|
238
|
+
* range-parser
|
|
239
|
+
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
240
|
+
* Copyright(c) 2015-2016 Douglas Christopher Wilson
|
|
241
|
+
* MIT Licensed
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
/*!
|
|
245
|
+
* raw-body
|
|
246
|
+
* Copyright(c) 2013-2014 Jonathan Ong
|
|
247
|
+
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
248
|
+
* MIT Licensed
|
|
249
|
+
*/
|
|
250
|
+
|
|
251
|
+
/*!
|
|
252
|
+
* send
|
|
253
|
+
* Copyright(c) 2012 TJ Holowaychuk
|
|
254
|
+
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
255
|
+
* MIT Licensed
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
/*!
|
|
259
|
+
* serve-index (WWA Wing Edition)
|
|
260
|
+
* Copyright(c) 2011 Sencha Inc.
|
|
261
|
+
* Copyright(c) 2011 TJ Holowaychuk
|
|
262
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
263
|
+
* Copyright(c) 2015-2025 WWA Wing Team
|
|
264
|
+
* MIT Licensed
|
|
265
|
+
*/
|
|
266
|
+
|
|
267
|
+
/*!
|
|
268
|
+
* serve-static
|
|
269
|
+
* Copyright(c) 2010 Sencha Inc.
|
|
270
|
+
* Copyright(c) 2011 TJ Holowaychuk
|
|
271
|
+
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
272
|
+
* MIT Licensed
|
|
273
|
+
*/
|
|
274
|
+
|
|
275
|
+
/*!
|
|
276
|
+
* statuses
|
|
277
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
278
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
279
|
+
* MIT Licensed
|
|
280
|
+
*/
|
|
281
|
+
|
|
282
|
+
/*!
|
|
283
|
+
* toidentifier
|
|
284
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
285
|
+
* MIT Licensed
|
|
286
|
+
*/
|
|
287
|
+
|
|
288
|
+
/*!
|
|
289
|
+
* type-is
|
|
290
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
291
|
+
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
292
|
+
* MIT Licensed
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
/*!
|
|
296
|
+
* unpipe
|
|
297
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
298
|
+
* MIT Licensed
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
/*!
|
|
302
|
+
* vary
|
|
303
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
304
|
+
* MIT Licensed
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
package/bin/wwa-server.exe
CHANGED
|
Binary file
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset='utf-8'>
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
6
|
+
<title>listing directory {directory}</title>
|
|
7
|
+
<style>{style}</style>
|
|
8
|
+
<script>
|
|
9
|
+
function $(id){
|
|
10
|
+
var el = 'string' == typeof id
|
|
11
|
+
? document.getElementById(id)
|
|
12
|
+
: id;
|
|
13
|
+
|
|
14
|
+
el.on = function(event, fn){
|
|
15
|
+
if ('content loaded' == event) {
|
|
16
|
+
event = window.attachEvent ? "load" : "DOMContentLoaded";
|
|
17
|
+
}
|
|
18
|
+
el.addEventListener
|
|
19
|
+
? el.addEventListener(event, fn, false)
|
|
20
|
+
: el.attachEvent("on" + event, fn);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
el.all = function(selector){
|
|
24
|
+
return $(el.querySelectorAll(selector));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
el.each = function(fn){
|
|
28
|
+
for (var i = 0, len = el.length; i < len; ++i) {
|
|
29
|
+
fn($(el[i]), i);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
el.getClasses = function(){
|
|
34
|
+
return this.getAttribute('class').split(/\s+/);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
el.addClass = function(name){
|
|
38
|
+
var classes = this.getAttribute('class');
|
|
39
|
+
el.setAttribute('class', classes
|
|
40
|
+
? classes + ' ' + name
|
|
41
|
+
: name);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
el.removeClass = function(name){
|
|
45
|
+
var classes = this.getClasses().filter(function(curr){
|
|
46
|
+
return curr != name;
|
|
47
|
+
});
|
|
48
|
+
this.setAttribute('class', classes.join(' '));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return el;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function search() {
|
|
55
|
+
var str = $('search').value.toLowerCase();
|
|
56
|
+
var links = $('files').all('a');
|
|
57
|
+
|
|
58
|
+
links.each(function(link){
|
|
59
|
+
var text = link.textContent.toLowerCase();
|
|
60
|
+
|
|
61
|
+
if ('..' == text) return;
|
|
62
|
+
if (str.length && ~text.indexOf(str)) {
|
|
63
|
+
link.addClass('highlight');
|
|
64
|
+
} else {
|
|
65
|
+
link.removeClass('highlight');
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
$(window).on('content loaded', function(){
|
|
71
|
+
$('search').on('keyup', search);
|
|
72
|
+
});
|
|
73
|
+
</script>
|
|
74
|
+
</head>
|
|
75
|
+
<body class="directory">
|
|
76
|
+
<input id="search" type="text" placeholder="Search" autocomplete="off" />
|
|
77
|
+
<div id="wrapper">
|
|
78
|
+
<h1><a href="/">~</a>{linked-path}</h1>
|
|
79
|
+
{files}
|
|
80
|
+
</div>
|
|
81
|
+
</body>
|
|
82
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|