forked from bleskes/sense_old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (143 loc) · 6.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sense - a JSON aware interface to ElasticSearch</title>
<link href="lib/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
<link href="lib/font-awesome/css/font-awesome.min.css" type="text/css" rel="stylesheet"/>
<link href="lib/jqueryui/jquery-ui-1.9.2.custom.min.css" type="text/css" rel="stylesheet"/>
<link href="sense.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<span class="brand" id="server_label">Server</span>
<form class="navbar-form pull-left">
<input id="es_server" type="text" class="span5" value="localhost:9200"/>
</form>
<button class="pull-left btn btn-link"><span id="notification" style="visibility: hidden"
class="label label-info"></span></button>
<button id="help_btn" class="btn pull-right-btn" data-toggle="modal" data-target="#help_popup">Help</button>
<button id="history_btn" class="btn pull-right-btn" data-toggle="modal" data-target="#history_popup">History
</button>
</div>
</div>
<div id="main" class="container-fluid">
<div id="editor" class="editor_position">GET _search
{
"query": { "match_all": {} }
}
</div>
<div id="output">{}</div>
<div id="editor_actions">
<div class="btn-group">
<a class="btn btn-small btn-link" id="send" href="#" data-toggle="tooltip" title="click to send request"><i
class="icon-play"></i></a>
<a class="btn btn-small btn-link" id="request_wrench" data-toggle="dropdown" href="#"><i
class="icon-wrench"></i></a>
<ul class="dropdown-menu">
<li><a id="copy_as_curl" tabindex="-1" href="#">Copy as cURL</a></li>
<li><a id="auto_indent" tabindex="-1" href="#">Auto indent</a></li>
</ul>
</div>
</div>
<ul id="autocomplete" style="left: -1000px;"></ul>
</div>
<div id="help_popup" class="modal hide fade" data-keyboard="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Help</h3>
</div>
<div class="modal-body">
<h4>Request format</h4>
<div id="help_requests">
You can type one or more requests in the white editor. Sense understands requests in a compact format:
<div id="example_editor_container">
</div>
</div>
<h4>Keyboard tips</h4>
<dl class="dl-horizontal">
<dt></dt>
<dd><strong>General editing</strong></dd>
<dt>Ctrl/Cmd + I</dt>
<dd>Auto indent current request</dd>
<dt>Ctrl + Space</dt>
<dd>Open Auto complete (even if not typing)</dd>
<dt>Ctrl/Cmd + Enter</dt>
<dd>Submit request</dd>
<dt>Ctrl/Cmd + Shift + C</dt>
<dd>Copy request in cURL format</dd>
<dt>Ctrl/Cmd + Up/Down</dt>
<dd>Jump to the previous/next request start or end.</dd>
<dt>Ctrl/Cmd + Alt + L</dt>
<dd>Collapse/expand current scope.</dd>
</dl>
<dl class="dl-horizontal">
<dt></dt>
<dd><strong>When auto-complete is visible</strong></dd>
<dt>Down arrow</dt>
<dd>Switch focus to auto-complete menu. Use arrows to further select a term</dd>
<dt>Enter/Tab</dt>
<dd>Select the currently selected or the top most term in auto-complete menu</dd>
<dt>Esc</dt>
<dd>Close auto-complete menu</dd>
</dl>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Got it</a>
</div>
</div>
<div id="history_popup" class="modal hide fade" data-keyboard="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>History</h3>
</div>
<div class="modal-body">
<ul class="nav nav-list">
<!--<li><a href="#"><i class="icon-chevron-right"></i><span></span></a></li>-->
</ul>
</div>
<div class="modal-footer">
<a href="#" class="btn pull-left" id="hist_clear">Clear</a>
<a href="#" class="btn" data-dismiss="modal">Cancel</a>
<a href="#" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Select</a>
</div>
</div>
<div id="welcome_popup" class="modal hide fade" data-keyboard="true" data-remote="welcome.html">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Welcome to Sense</h3>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<a href="#" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Get to work</a>
</div>
</div>
<textarea class="out_of_screen" id="clipboardStaging"> </textarea>
</body>
<script src="lib/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="lib/jqueryui/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
<script src="lib/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="lib/moment.min.js" type="text/javascript"></script>
<script src="lib/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="src/utils.js" type="text/javascript" charset="utf-8"></script>
<script src="src/kb.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/aliases.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/cluster.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/filter.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/facets.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/globals.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/indices.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/query.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/search.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/settings.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/templates.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/warmers.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/mappings.js" type="text/javascript" charset="utf-8"></script>
<script src="kb/misc.js" type="text/javascript" charset="utf-8"></script>
<script src="src/curl.js" type="text/javascript" charset="utf-8"></script>
<script src="src/base.js" type="text/javascript" charset="utf-8"></script>
<script src="src/mappings.js" type="text/javascript" charset="utf-8"></script>
<script src="src/history.js" type="text/javascript" charset="utf-8"></script>
<script src="src/autocomplete.js" type="text/javascript" charset="utf-8"></script>
</html>