-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathyoda-kanban.html
254 lines (215 loc) · 9.19 KB
/
yoda-kanban.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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Yoda. GitHub lightweight extention for Agile Project Management using GitHub issues. Kanban Tool.">
<!--
Copyright 2018-2023 Hewlett Packard Enterprise Development LP
Copyright 2024- Jens Vedel Markussen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<title>Github Kanban</title>
<link rel="icon" href="kanban-icon-32.png" type="image/png" />
<script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.3/jquery-ui.min.js"></script>
<script type='text/javascript' src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/js/select2.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.3/themes/base/jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css">
<link rel="stylesheet" type="text/css" href="yoda.css">
<style>
.cardcolumn {
float: left;
color: rgb(36, 41, 46);
min-height: auto;
overflow-wrap: break-word;
position: relative;
width: 300px;
word-wrap: break-word;
border: 0px none rgb(36, 41, 46);
font: normal normal 400 normal 14px / 21px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
padding: 3px;
}
.columnheader {
color: white;
overflow-wrap: break-word;
position: relative;
text-size-adjust: 100%;
background: var(--main-bg-color);
border: 2px solid rgb(225, 228, 232);
border-radius: 3px 3px 3px 3px;
font: normal normal 400 normal 14px / 21px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
margin: 0px 0px 8px;
padding: 8px 8px 8px 12px;
z-index: 5;
position: sticky !important;
top: 0;
}
.columnheader button {
background: none!important;
border: none;
margin: 0 0 0 0;
padding: 0!important;
font: normal normal 400 normal 14px / 21px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
color: #ffffff;
text-decoration: underline;
cursor: pointer;
}
.card {
color: rgb(36, 41, 46);
cursor: move;
overflow-wrap: break-word;
position: relative;
text-size-adjust: 100%;
word-wrap: break-word;
background: rgb(255, 255, 255) none repeat scroll 0% 0% / auto padding-box border-box;
border: 2px solid rgb(225, 228, 232);
font: normal normal 400 normal 14px / 21px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
margin: 0px 0px 8px;
padding: 8px 8px 8px 12px;
}
.cardlink {
color: rgb(3, 102, 214);
display: block;
overflow-wrap: break-word;
text-decoration: none solid rgb(3, 102, 214);
word-wrap: break-word;
border: 0px none rgb(3, 102, 214);
font: normal normal 600 normal 14px / 17.5px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
margin: 0px 0px 4px 0px;
}
.cardlabels {
color: rgb(36, 41, 46);
cursor: move;
display: block;
overflow-wrap: break-word;
position: relative;
word-wrap: break-word;
border: 0px none rgb(36, 41, 46);
font: normal normal 400 normal 14px / 21px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
padding: 0px 0px 0px;
}
.cardlabel {
color: rgb(51, 32, 32);
cursor: move;
display: inline-block;
overflow-wrap: break-word;
position: relative;
text-overflow: ellipsis;
vertical-align: middle;
white-space: nowrap;
word-wrap: break-word;
background: rgb(233, 150, 149) none repeat scroll 0% 0% / auto padding-box border-box;
font: normal normal 600 normal 12px / 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
margin: 2px 2px 2px;
padding: 4px 4px;
}
.dragging {
transform: rotate(-5deg);
opacity: 0.6;
}
</style>
</head>
<body>
<div class="frame">
<div class="dropdown">
<img id="hamburger" src="threebars.png" class="dropimg">
<div id="yodamenu" class="dropdown-content"></div>
</div>
<div class="field">
<label>Owner</label>
<input type="text" id="owner" size="15" onchange="updateRepos();">
<span class="tooltip">GitHub organisation or user</span>
</div>
<div class="field" style="display: none;">
<label>Github user</label>
<input type="text" size="20" id="user" value="">
<span class="tooltip">Your GitHub user-id</span>
</div>
<div class="field" style="display: none;">
<label>Github token</label>
<input type="password" size="20" id="token" value="">
<span class="tooltip">GitHub personal token</span>
</div>
<div class="field">
<label>Columns</label>
<select id="columns" style="width: 455px" class="select2">
<option selected>[Urgent]open:S1 - Urgent,[High]open:S2 - High,[Medium]open:S3 - Medium,[Low]open:S4 - Low,[Other]open:*,[Closed]closed:*</option>
<option>[Defect]open:T1 - Defect,[Enhancement]open:T2 - Enhancement,[Task]open:T3 - Task,[Other]open:*,[Closed]closed:*</option>
<option>[Bug]open:bug,[Enhancement]open:enhancement,[Question]open:question,[Other]open:*,[Closed]closed:*</option>
<option>[Sprint Backlog]open:*,[Tentative]open:P - Tentative,[In progress]open:Q - In Progress,[Done]closed:*</option>
</select>
<span class="tooltip">Column definitions. Comma sep. list of [<i>Title</i>]open|closed:<i>label</i>|*</span>
</div>
<div class="field">
<label>Closed milestones</label>
<input type="checkbox" id="closedmilestones" onchange="updateMilestones()">
<span class="tooltip">Show closed milestones</span>
</div>
<div class="field">
<label>Closed issues</label>
<input type="checkbox" id="closedissues" onchange="updateIssues()" checked>
<span class="tooltip">Include closed issues</span>
</div>
<div class="field">
<label>Locked</label>
<input type="checkbox" id="locked" onchange="enableDisableSortable();" checked>
<span class="tooltip">Editing locked</span>
</div>
<div class="field">
<label>Estimates</label><div id="estimateradio">
<label><input type="radio" name="estimate" value="noissues" onclick="estimateClick(this)"># issues</label>
<label><input type="radio" name="estimate" value="inbody" checked="checked" onclick="estimateClick(this)">In body</label>
<label><input type="radio" name="estimate" value="inlabels" onclick="estimateClick(this)">In Labels</label>
</div>
<span class="tooltip">Where to get estimates</span>
</div>
</div>
<div class="frame">
<div class="field">
<label>Repositories</label>
<select id="repolist" style="width: 350px" class="select2" multiple></select>
<span class="tooltip">Repositories to show</span>
</div>
<div class="field">
<label>Milestones (filter)</label>
<select id="milestonelist" style="width: 350px" class="select2" multiple></select>
<span class="tooltip">Milestones to show</span>
</div>
<div class="field">
<label>Labels (AND)</label>
<select id="labellist" style="width: 350px" class="select2" multiple></select>
<span class="tooltip">Label filter (AND)</span>
</div>
<div class="field">
<label>Labels (OR)</label>
<select id="labellistor" style="width: 350px" class="select2" multiple></select>
<span class="tooltip">Label filter (OR)</span>
</div>
<div class="field">
<label>Assignees</label>
<select id="assigneelist" style="width: 350px" class="select2" multiple></select>
<span class="tooltip">Assignee filter (OR)</span>
</div>
</div>
<div id="kanban" class="kanbanboard">
</div>
<div id="snackbar">Message goes here</div>
<script type="module">
import * as functions from './yoda-kanban.js';
Object.keys(functions).forEach((f) => { window[f] = functions[f]; }); // small hack
functions.init();
</script>
</body>
</html>