forked from postsai/postsai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
219 lines (200 loc) · 8.2 KB
/
search.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src *">
<title>Postsai Search</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="resources/postsai.css">
<link rel="icon" href="resources/postsai-64.png">
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Postsai</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="search.html">Search <span class="sr-only">(current)</span></a></li>
<li><a class="action-add-querystring" href="query.html">Result</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="content">
<form class="form-horizontal" method="GET" action="query.html">
<div class="form-group">
<label for="description" class="col-sm-2 control-label">Description</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="description" id="description" pattern="...+">
<label class="radio-inline">
<input type="radio" name="descriptiontype" id="descriptiontype" value="search" checked> Search words
</label>
<label class="radio-inline">
<input type="radio" name="descriptiontype" id="descriptionregexp" value="regexp"> Regular Expression
</label>
<label class="radio-inline">
<input type="radio" name="descriptiontype" id="descriptionnotregexp" value="notregexp"> Not Regular Expression
</label>
</div>
</div>
<div class="form-group">
<label for="repository" class="col-sm-2 control-label">Repository</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="repository" id="repository" list="repositorylist">
<datalist id="repositorylist">
</datalist>
<label class="radio-inline">
<input type="radio" name="repositorytype" id="repositorymatch" value="match" checked> Match
</label>
<label class="radio-inline">
<input type="radio" name="repositorytype" id="repositoryregexp" value="regexp"> Regular Expression
</label>
<label class="radio-inline">
<input type="radio" name="repositorytype" id="repositorynotregexp" value="notregexp"> Not Regular Expression
</label>
</div>
</div>
<div class="form-group">
<label for="branch" class="col-sm-2 control-label">Branch</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="branch" id="branch">
<label class="radio-inline">
<input type="radio" name="branchtype" id="branchmatch" value="match" checked> Match
</label>
<label class="radio-inline">
<input type="radio" name="branchtype" id="branchregexp" value="regexp"> Regular Expression
</label>
<label class="radio-inline">
<input type="radio" name="branchtype" id="branchnotregexp" value="notregexp"> Not Regular Expression
</label>
</div>
</div>
<div class="form-group">
<label for="dir" class="col-sm-2 control-label">Directory</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="dir" id="dir">
<label class="radio-inline">
<input type="radio" name="dirtype" id="dirmatch" value="match" checked> Match
</label>
<label class="radio-inline">
<input type="radio" name="dirtype" id="dirregexp" value="regexp"> Regular Expression
</label>
<label class="radio-inline">
<input type="radio" name="dirtype" id="dirnotregexp" value="notregexp"> Not Regular Expression
</label>
</div>
</div>
<div class="form-group">
<label for="file" class="col-sm-2 control-label">File</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="file" id="file">
<label class="radio-inline">
<input type="radio" name="filetype" id="filetype" value="match" checked> Match
</label>
<label class="radio-inline">
<input type="radio" name="filetype" id="fileregexp" value="regexp"> Regular Expression
</label>
<label class="radio-inline">
<input type="radio" name="filetype" id="filenotregexp" value="notregexp"> Not Regular Expression
</label>
</div>
</div>
<div class="form-group">
<label for="who" class="col-sm-2 control-label">Who</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="who" id="who">
<label class="radio-inline">
<input type="radio" name="whotype" id="whotype" value="match" checked> Match
</label>
<label class="radio-inline">
<input type="radio" name="whotype" id="whoregexp" value="regexp"> Regular Expression
</label>
<label class="radio-inline">
<input type="radio" name="whotype" id="whonotregexp" value="notregexp"> Not Regular Expression
</label>
</div>
</div>
<div class="form-group">
<label for="commit" class="col-sm-2 control-label">Commit</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="commit" id="commit">
<datalist id="repositorylist">
</datalist>
<label class="radio-inline">
<input type="radio" name="committype" id="commitmatch" value="match" checked> Match
</label>
<label class="radio-inline">
<input type="radio" name="committype" id="commitregexp" value="regexp"> Regular Expression
</label>
<label class="radio-inline">
<input type="radio" name="committype" id="commitnotregexp" value="notregexp"> Not Regular Expression
</label>
</div>
</div>
<div class="form-group">
<label for="datehours" class="col-sm-2 control-label">Date</label>
<div class="col-sm-9">
<div class="radio form-inline">
<label>
<input type="radio" name="date" id="datehours" value="hours">
In the last <input type="text" class="form-control" id="hours" name="hours"> hours
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="date" id="dateday" value="day" checked>
In the last day
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="date" id="dateweek" value="week">
In the last week
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="date" id="datemonth" value="month">
In the last month
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="date" id="datemonth" value="all">
Since the beginning of time
</label>
</div>
<div class="radio form-inline">
<label>
<input type="radio" name="date" id="dateexplicit" value="explicit">
Between <input type="text" class="form-control" id="mindate" name="mindate" placeholder="yyyy-mm-dd hh:mm:ss">
and <input type="text" class="form-control" id="maxdate" name="maxdate" placeholder="yyyy-mm-dd hh:mm:ss">
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-9">
<button type="submit" class="btn btn-default">Search</button>
</div>
</div>
</form>
<br>
<div class="footer">Rendered by <a href="https://postsai.github.io">Postsai</a></div>
</div>
<script type="text/javascript" src="resources/postsai.js"></script>
</body>
</html>