-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
202 lines (172 loc) · 6.88 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Repo Health Check</title>
<link href="favicon.ico" rel="shortcut icon">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', { 'packages': ['corechart'] })
</script>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.min.css" />
<!--[if lt IE 9]>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.1.1/gh-fork-ribbon.ie.min.css" />
<![endif]-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"
integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href='https://fonts.googleapis.com/css?family=Schoolbell|Roboto+Condensed:400,300,700'>
<link rel="stylesheet" href="lib/app.css">
</head>
<body>
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a href="https://github.com/dogweather/repo-health-check">Fork me on GitHub</a>
</div>
</div>
<div class=container>
<!-- Page header -->
<div class="row">
<div class="col-sm-12">
<div class="page-header">
<h1>
<span class=red-cross>✚</span> Repo Health Check
<br>
<small>
Is it
<span class="effective-copy">super effective</span>… or
<span class="dejected-copy">somewhat dejected?</span>
</small>
</h1>
</div>
</div>
</div>
<!-- Main page -->
<div class="row">
<!-- Left column -->
<div class="col-sm-7">
<!-- Repo form -->
<div class="form-horizontal">
<div class="form-group">
<label for="github-repo" class="col-sm-2 control-label">GitHub</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="github-repo" id="github-repo"
placeholder="URL or account/repo" autofocus>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-3">
<button id=analyze class="btn btn-primary" disabled="disabled">Analyze</button>
</div>
</div>
</div>
<!-- Error display -->
<div id=error-alert class="alert alert-warning" role="alert">
<strong>Whoops!</strong>
<span id=error-text></span>
</div>
<!-- Results display -->
<div id=results>
<h2>
<!-- Repo Name -->
</h2>
<!-- Summary -->
<div id=progress-display class=progress>
<div class="progress-bar progress-bar-striped active" role="progressbar" style="width: 5%"></div>
</div>
<div class=results-display>
<h3>
Effectiveness:
<!-- Effectiveness Summary -->
<i id=effectiveness-icon class="fa fa-ambulance icon"></i>
<span id=effectiveness-desc class=data></span>
(<span class='data effectiveness'></span>/10)
</h3>
</div>
<div id="trend-chart"></div>
<div class=results-display>
<!-- Effectiveness Breakdown -->
<h4>Break-down</h4>
<ol>
<li>
In the past month, the repo maintainers closed
<span class="data closed-prs"></span>
pull requests, while
<span class="data open-prs"></span> new PR's remain open. We then normalize the ratio
<span class="data closed-prs"></span>:<span class="data open-prs"></span>
to a scale of 0–10 to arrive at PR Effectiveness
<span class='data pr-effectiveness'></span>.
</li>
<li>
In the same time period, there were
<span class="data closed-issues"></span>
issues closed vs.
<span class='data open-issues'></span> new ones submitted. This results in a scaled Issue Effectiveness
of
<span class='data issue-effectiveness'></span>/10.
</li>
<li>
Finally, we calculate Total Effectiveness
(<span class='data effectiveness'></span>) from a weighted average of PR Effectiveness
(<span class='data pr-effectiveness'></span>) @ 66% + Issue Effectiveness
(<span class='data issue-effectiveness'></span>) @ 34%.
</li>
</ol>
</div>
</div>
<!-- End of results display -->
</div>
<!-- End left column -->
<!-- Right column -->
<div class="col-sm-5">
<table id=log class=table>
<thead>
<th>
Repo
</th>
<th>
Effectiveness
</th>
<th>
Activity
</th>
</thead>
<tbody></tbody>
<tfoot>
<td>Average:</td>
<td id=avg-effectiveness class=data>
Nothing to see! Analyze a few repositories.
</td>
<td>(tbd)</td>
</tfoot>
</table>
</div>
<!-- End right column -->
<div class="row">
<div class="col-sm-12">
<footer>
<a href="https://dogsnog.blog">by Robb</a>
</footer>
</div>
</div>
</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src='bower_components/underscore/underscore.js'></script>
<script src="bower_components/sprintf/src/sprintf.js"></script>
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> -->
<script src="bower_components/octokat/dist/octokat.js"></script>
<script src="lib/core.js"></script>
<script src="src/octokat-ext.js"></script>
<script src="lib/metrics.js"></script>
<script src="lib/github.js"></script>
<script src="lib/repo.js"></script>
<script src="lib/ui.js"></script>
<script src="lib/chart.js"></script>
<script src="lib/app.js"></script>
</body>
</html>