-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (71 loc) · 2.51 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Export github issues</title>
<style type="text/css">
.output {
width: 50%;
min-height: 600px;
max-height: 600px;
background-color: #F1F1F1;
overflow-y: auto;
border: 1px solid #ccc;
box-sizing: border-box;
float: left;
padding:20px;
word-wrap: break-word;
}
.issue{
width: 100%;
min-height: 100px;
height: auto;
word-wrap: break-word;
padding:10px;
box-sizing: border-box;
position: relative;
margin-bottom: 20px;
border-bottom: 1px dashed #ccc;
}
</style>
</head>
<body ng-app="myExporter" ng-controller="exportCtrl">
<div class="container">
<h2>Export github issues</h2>
<label>Github user name: </label> <input ng-model="user" placeholder="write user name"></input>
<br><br>
<label>Github repo: </label> <input ng-model="repo" placeholder="write repo"></input>
<br><br>
<label>assignee:</label>
<br><br>
<label><input type="radio" ng-model="assignee" value="all">All</label>
<label><input type="radio" ng-model="assignee" value="unassigned">Unasigned</label>
<label><input type="radio" ng-model="assignee" value="somebody">Assigned to somebody</label>
<label><input type="radio" ng-model="assignee" value="to">Assigned to:</label>
<input ng-show="assignee === 'to' " ng-model="assignedUser" placeholder="github user name"></input>
<br><br>
<button ng-click="export()">Export</button>
<br><br>
<h4 ng-show="load">Exporting...</h4>
<h4 ng-show="done">Total matching elements: {{output.length}}</h4>
<div class="output" ng-show="output">.
<h4>JSON output</h4>
{{ output | json }}
</div>
<div class="output" ng-show="output">
<h4>Simple text output</h4>
<div class="issue" ng-repeat="n in output">
<strong>{{n.title}}</strong> <span> {{n.state}}</span><br><span> {{n.created_at | date}}</span>
<br>
<span>Assigned to:</span> <span> {{ n.assignee.login || "Nobody" }}</span>
<br><br>
<span>{{n.body}}</span>
</div>
</div>
<h4 ng-show="done && output.length === 0">No matches found according to current filter conditions</h4>
</div>
</body>
<script src="scripts/jquery.min.js" type="text/javascript"></script>
<script src="scripts/angular.min.js" type="text/javascript"></script>
<script src="scripts/controller.js" type="text/javascript"></script>
</html>