-
Notifications
You must be signed in to change notification settings - Fork 24
/
help.html
240 lines (228 loc) · 8.73 KB
/
help.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
<!DOCTYPE html>
<html>
<head>
<title>Github-Omnibox help page</title>
<script src="lib/angular.min.js" ng-csp></script>
<script src="help.js"></script>
<link rel="stylesheet" href="lib/bootstrap.min.css" />
<link rel="stylesheet" href="lib/octicons/octicons.css" />
<style>
.ng-hide {
display: none;
}
.render .octicon, .render .octicon img {
-webkit-filter: grayscale(100%);
opacity: 0.6;
height: 16px;
width: 16px;
margin-right: 4px;
margin-bottom: 1px;
transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
-webkit-backface-visibility: hidden;
}
a.render:hover .octicon, a.render:hover .octicon img {
opacity: 1;
}
</style>
</head>
<body ng-app="Help" ng-controller="Options" class="container">
<h1>Github Omnibox</h1>
<p>
<a class="btn btn-default" ng-click="login()"><i class="octicon octicon-mark-github"></i> Github Login</a>
<a class="btn btn-default" ng-click="logout()"><i class="octicon octicon-mark-github"></i> Github Logout</a>
<a class="btn btn-default" ng-click="resetCache()">Reset Cache</a>
</p>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h1 ng-click="menuItems=!menuItems" class="panel-title">
<i class="pull-right octicon octicon-chevron-{{menuItems?'up':'down'}}"></i>
Status Badges
<span style="color:green" ng-show="saved">SAVED!</span>
</h1>
</div>
<div class="panel-collapse collapse " ng-class="{in:menuItems}">
<div class="panel-body">
<form class="well">
<a class="btn btn-default pull-right btn-xs" href="http://shields.io/">Discover New Badges!</a>
<p>You can use <code>:owner</code> and <code>:repo</code> tokens.</p>
<p>Icon and badge URLs must be <code>https</code>.</p>
<p>Badges that don't load will be hidden.</p>
<div class="row">
<p class="form-group col-sm-6">
<label class="control-label">
Name
</label>
<input class="form-control" ng-model="formItem.name" placeholder="Example">
</p>
<p class="form-group col-sm-6">
<label class="control-label">
URL (when menu item is clicked)
</label>
<input class="form-control" ng-model="formItem.url" placeholder="http://example.com/:owner/:repo">
</p>
</div>
<div class="row">
<p class="form-group col-sm-6">
<label class="control-label">
Icon (URL)
</label>
<input class="form-control" ng-model="formItem.icon" placeholder="https://example.com/favicon.ico">
</p>
<p class="form-group col-sm-6">
<label class="control-label">
Badge (name will be used if left empty)
</label>
<input class="form-control" ng-model="formItem.badge"
placeholder="https://badges.example.com/:owner/:repo.svg">
</p>
</div>
<p class="form-group">
<span class="btn-group pull-right">
<button class="btn btn-default" ng-click="reset()">Cancel</button>
<button class="btn btn-primary" ng-click="save()">{{isNumber(editingIndex)&&'Update Existing'||'Save New'}} Menu Item</button>
</span>
<strong>Preview: </strong>
<span>
<a target="_blank" class="render" ng-href="{{formItem.url | test : test.owner : test.repo}}">
<i class="octicon octicon-{{formItem.icon}}">
<img ng-if="formItem.icon.indexOf('https:') == 0" ng-src="{{formItem.icon | test : test.owner : test.repo}}" />
</i>
<img ng-if="formItem.badge" ng-src="{{formItem.badge | test : test.owner : test.repo}}" />
{{formItem.name | test : test.owner : test.repo}}
</a>
</span>
</p>
</form>
<p class="input-group">
<label class="input-group-addon">
<span class="octicon octicon-repo text-muted"></span>
Test Repo:
</label>
<input class="form-control" ng-model="test.owner" placeholder="Owner">
<span class="input-group-addon">/</span>
<input class="form-control" ng-model="test.repo" placeholder="Repo">
</p>
<ul class="list-group">
<li ng-repeat="item in items track by $index" class="list-group-item">
<div class="pull-right media-right">
<span class="btn-group">
<button class="btn btn-default btn-xs" ng-click="up($index)" ng-disabled="$first"><i class="octicon octicon-arrow-up"></i></button>
<button class="btn btn-default btn-xs" ng-click="remove($index)"><i class="octicon octicon-trashcan"></i></button>
<button class="btn btn-default btn-xs" ng-click="edit($index)"><i class="octicon octicon-pencil"></i></button>
<button class="btn btn-default btn-xs" ng-disabled="$last" ng-click="down($index)"><i class="octicon octicon-arrow-down"></i></button>
</span>
</div>
<a target="_blank" class="render" ng-href="{{item.url | test : test.owner : test.repo}}">
<i class="octicon octicon-{{item.icon}}">
<img ng-if="item.icon.indexOf('https:') == 0" ng-src="{{item.icon | test : test.owner : test.repo}}" />
</i>
<img ng-if="item.badge" ng-src="{{item.badge | test : test.owner : test.repo}}" />
{{item.name | test : test.owner : test.repo}}</a>
</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h1 ng-click="commands=!commands" class="panel-title">
<i class="pull-right octicon octicon-chevron-{{commands?'up':'down'}}"></i>
Omnibox Commands List
</h1>
</div>
<div class="panel-collapse collapse " ng-class="{in:commands}">
<div class="panel-body">
<pre>
my auth
my unauth
my reset
my issues
my dash
my pulls
my stars
my starred
my settings
my followers
my following
my repositories
my activities
new
new issue
new repo
user/repo
user/repo io
user/repo pages
user/repo pulls
user/repo network
user/repo pulse
user/repo settings
user/repo issues
user/repo contributors
user/repo compare
user/repo wiki
user/repo graphs
user/repo #issue
user/repo new issue
user/repo new pull
user/repo clone
user/repo travis
user/repo @branch /path
user/repo @branch
user/repo /path
/repo
/repo io
/repo pages
/repo pulls
/repo network
/repo pulse
/repo settings
/repo issues
/repo contributors
/repo compare
/repo wiki
/repo graphs
/repo #issue
/repo new issue
/repo new pull
/repo clone
/repo travis
/repo @branch /path
/repo @branch
/repo /path
!io
!pages
!pulls
!network
!pulse
!settings
!issues
!contributors
!compare
!wiki
!graphs
!#issue
!new issue
!new pull
!clone
!travis
!@branch
!@branch /path
!/path
@user/
@user/ followers
@user/ following
@user/ starred
@user/ repositories
@user/ activities
gist
gist id
gist user
gist user/id</pre>
</div>
</div>
</div>
</div>
</body>
</html>