forked from aperezdc/ngx-fancyindex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.h
79 lines (78 loc) · 2.45 KB
/
template.h
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
/* Automagically generated, do not edit! */
static const u_char t01_head1[] = ""
"<!DOCTYPE html>"
"<html lang=\"ja\">"
"<head>"
"<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">"
"<meta name=\"viewport\" content=\"width=device-width\">"
"<script type=\"text/javascript\" src=\"https://repo2.akirin.xyz/assets/js/loading.js\"></script>"
"<link type=\"text/css\" rel=\"stylesheet\" href=\"https://repo2.akirin.xyz/assets/css/style.css\" media=\"screen,projection\">"
"<link type=\"text/css\" rel=\"stylesheet\" href=\"https://repo2.akirin.xyz/assets/css/loading.css\" media=\"screen,projection\">"
"<script type=\"text/javascript\" src=\"https://repo2.akirin.xyz/assets/js/materialize.min.js\"></script>"
"<link type=\"text/css\" rel=\"stylesheet\" href=\"https://repo2.akirin.xyz/assets/css/materialize.css\" media=\"screen,projection\">"
/* TODO: リンク変更 */
"<link type=\"text/css\" rel=\"stylesheet\" href=\"https://oocp.dip.jp/launcher/css/style.css\">"
"\n"
;
static const u_char t02_head2[] = ""
"\n"
"<title>Index of "
;
static const u_char t03_head3[] = ""
"</title>"
"\n"
"</head>"
;
static const u_char t04_body1[] = ""
"<body>"
"<div id=\"loading\">"
"</div>"
"<div class=\"row center\">"
"<h5 class=\"header col s12 light\">ファイル一覧: "
;
static const u_char t05_body2[] = ""
"</h1>"
"</div>"
"\n"
;
static const u_char t06_list1[] = ""
"<div class=\"container\">"
"<table id=\"list\">"
"<thead>"
"<tr>"
"<th style=\"width:55%\"><a href=\"?C=N&O=A\">File Name</a> <a href=\"?C=N&O=D\"> ↓ </a></th>"
"<th style=\"width:20%\"><a href=\"?C=S&O=A\">File Size</a> <a href=\"?C=S&O=D\"> ↓ </a></th>"
"<th style=\"width:25%\"><a href=\"?C=M&O=A\">Date</a> <a href=\"?C=M&O=D\"> ↓ </a></th>"
"</tr>"
"</thead>"
"\n"
"<tbody>"
;
static const u_char t_parentdir_entry[] = ""
"<tr>"
"<td class=\"link\"><a href=\"../?C=N&O=A\">Parent directory/</a></td>"
"<td class=\"size\">-</td>"
"<td class=\"date\">-</td>"
"</tr>"
"\n"
;
static const u_char t07_list2[] = ""
"</tbody>"
"</table>"
"</div>"
;
static const u_char t08_foot1[] = ""
"</body>"
"</html>"
;
#define NFI_TEMPLATE_SIZE (0 \
+ nfi_sizeof_ssz(t01_head1) \
+ nfi_sizeof_ssz(t02_head2) \
+ nfi_sizeof_ssz(t03_head3) \
+ nfi_sizeof_ssz(t04_body1) \
+ nfi_sizeof_ssz(t05_body2) \
+ nfi_sizeof_ssz(t06_list1) \
+ nfi_sizeof_ssz(t_parentdir_entry) \
+ nfi_sizeof_ssz(t07_list2) \
+ nfi_sizeof_ssz(t08_foot1) \
)