-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
320 lines (317 loc) · 11.4 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
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>changelog-maker</title>
<script src="./changelog.js"></script>
<link rel="stylesheet" href="changelog.css" />
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<body onload="localStorageManager(true)">
<header>
<i>
Made with <a href="https://github.com/JaavLex/changelog-maker" target="_blank">changelog-maker</a> - <span
id="version"></span>
</i>
</header>
<center>
<h1>📃 changelog-maker 📃</h1>
</center>
<div id="form-box">
<center>
<h2>✏️ Input parameters</h2>
<table>
<form name="params" action="#" onsubmit="sortCommits()"></form>
<tr>
<td>
Repository Location/URL
</td>
<td>
<input id="urlhtml" type="text" onchange="localStorageManager(false)"
placeholder="JaavLex/changelog-maker" />
</td>
</tr>
<tr>
<td>
API token
</td>
<td>
<input id="apitoken" type="text" onchange="localStorageManager(false)" placeholder="ghp_ABCD1234" /> <i><a
href="https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token"
target="_blank" id="tutoriallink">
🔗 How to generate one ?</a></i>
</td>
</tr>
<tr>
<td>
Commits before
</td>
<td>
<input id="beforedate" type="datetime-local" onchange="localStorageManager(false)" /> <button
onclick="clearDateField(1)" class="removebutton">❌ Clear</button>
</td>
</tr>
<tr>
<td>
Commits after
</td>
<td>
<input id="afterdate" type="datetime-local" onchange="localStorageManager(false)" /> <button
onclick="clearDateField(2)" class="removebutton">❌ Clear</button>
</td>
</tr>
<tr>
<td>
Show balises
</td>
<td onclick="localStorageManager(false)">
<input type="radio" name="yesnobalises" value="true">Yes</input> <input type="radio" name="yesnobalises"
value="false">No</input>
</td>
</tr>
<tr>
<td>
Show balises on others
</td>
<td onclick="localStorageManager(false)">
<input type="radio" name="yesnobalisesothers" value="true">Yes</input> <input type="radio"
name="yesnobalisesothers" value="false">No</input>
</td>
</tr>
<tr>
<td>
Include Merges
</td>
<td onclick="localStorageManager(false)">
<input type="radio" name="yesnomerges" value="true">Yes</input> <input type="radio" name="yesnomerges"
value="false">No</input>
</td>
</tr>
<tr>
<td>
Show commit hashes
</td>
<td onclick="localStorageManager(false)">
<input type="radio" name="yesnohashes" value="true">Yes</input> <input type="radio" name="yesnohashes"
value="false">No</input>
</td>
</tr>
<tr>
<td>
Generate Markdown or HTML
</td>
<td onclick="localStorageManager(false)">
<input type="radio" name="mdorhtml" value="true">Markdown</input> <input type="radio" name="mdorhtml"
value="false">HTML</input>
</td>
</tr>
</form>
</table>
<div class="form-buttons">
<button onclick="clearFields()" class="clearall-button">❌ Clear every fields</button> <button
onclick="sortCommits()" class="generation-button">✅ Generate changelog</button> <button
onclick="urlParamsActions(true)" class="copylink-button">🔗 Copy parameters link</button>
</div>
<button type="button" class="collapsible" onclick="openCloseCollapsible()">🔧 See keyword lists <b
id="collarrow">⇐</b></button>
</center>
<div id="collapsiblecontent">
<center>
<h3>Commit categories keyword lists</h3>
<div class="lists-container">
<div id="feat-table" class="list-table">
<h4>Features keyword list</h4>
<table>
<tr>
<td>
Feature category title
</td>
<td>
<input name="feattitle" id="feattitle" type="text" onchange="localStorageManager(false)"
placeholder="✨ New features" />
</td>
</tr>
<tr>
<td>
<button onclick="keywordAdder(1)" class="addbutton">➕ Add</button>
</td>
<td>
<input name="featkwinput" id="featkwinput" type="text" placeholder="functionality" />
</td>
</tr>
<tr>
<td>
<button onclick="keywordRemover(1)" class="removebutton">❌ Remove</button>
</td>
<td>
<input name="featkwremove" id="featkwremove" type="text" placeholder="feat:" />
</td>
</tr>
<tr>
<td>
<div id="featurekwhtml" class="html-list"></div>
</td>
</tr>
</table>
<button onclick="keywordClearer(1)" class="listdefbutton">❌ Set list to default</button>
</div>
<div id="fix-table" class="list-table">
<h4>Fixes keyword list</h4>
<table>
<tr>
<td>
Fix category title
</td>
<td>
<input name="fixtitle" id="fixtitle" type="text" onchange="localStorageManager(false)"
placeholder="🐛 Bug fixes" />
</td>
</tr>
<tr>
<td>
<button onclick="keywordAdder(2)" class="addbutton">➕ Add</button>
</td>
<td><input id="fixkwinput" type="text" placeholder="bugfix" /></td>
</tr>
<tr>
<td>
<button onclick="keywordRemover(2)" class="removebutton">❌ Remove</button>
</td>
<td><input name="fixkwremove" id="fixkwremove" type="text" placeholder="fix:" /></td>
</tr>
<tr>
<td>
<div id="fixkwhtml" class="html-list"></div>
</td>
</tr>
<tr>
</table>
<button onclick="keywordClearer(2)" class="listdefbutton">❌ Set list to default</button>
</div>
<div id="ref-table" class="list-table">
<h4>Refactor keyword list</h4>
<table>
<tr>
<td>
Refactor category title
</td>
<td>
<input name="reftitle" id="reftitle" type="text" onchange="localStorageManager(false)"
placeholder="♻️ Code Refactor" />
</td>
</tr>
<tr>
<td>
<button onclick="keywordAdder(3)" class="addbutton" class="addbutton">➕ Add</button>
</td>
<td><input id="refkwinput" type="text" placeholder="refactoring" /></td>
</tr>
<tr>
<td>
<button onclick="keywordRemover(3)" class="removebutton">❌ Remove</button>
</td>
<td><input name="refkwremove" id="refkwremove" type="text" placeholder="ref:" /></td>
</tr>
<tr>
<td>
<div id="refkwhtml" class="html-list"></div>
</td>
</tr>
</table>
<button onclick="keywordClearer(3)" class="listdefbutton">❌ Set list to default</button>
</div>
<div id="cst1-table" class="list-table">
<h4>Custom keyword list 1</h4>
<table>
<tr>
<td>
Custom category title 1
</td>
<td>
<input name="cst1title" id="cst1title" type="text" onchange="localStorageManager(false)"
placeholder="📘 Custom category 1" />
</td>
</tr>
<tr>
<td>
<button onclick="keywordAdder(4)" class="addbutton">➕ Add</button>
</td>
<td><input id="cst1kwinput" type="text" placeholder="refactoring" /></td>
</tr>
<tr>
<td>
<button onclick="keywordRemover(4)" class="removebutton">❌ Remove</button>
</td>
<td><input name="cst1kwremove" id="cst1kwremove" type="text" placeholder="ref:" /></td>
</tr>
<tr>
<td>
<div id="cst1kwhtml" class="html-list"></div>
</td>
</tr>
</table>
<button onclick="keywordClearer(4)" class="listdefbutton">❌ Set list to default</button>
</div>
<div id="cst2-table" class="list-table">
<h4>Custom keyword list 2</h4>
<table>
<tr>
<td>
Custom category title 2
</td>
<td>
<input name="cst2title" id="cst2title" type="text" onchange="localStorageManager(false)"
placeholder="📙 Custom category 2" />
</td>
</tr>
<tr>
<td>
<button onclick="keywordAdder(5)" class="addbutton">➕ Add</button>
</td>
<td><input id="cst2kwinput" type="text" placeholder="refactoring" /></td>
</tr>
<tr>
<td>
<button onclick="keywordRemover(5)" class="removebutton">❌ Remove</button>
</td>
<td><input name="cst2kwremove" id="cst2kwremove" type="text" placeholder="ref:" /></td>
</tr>
<tr>
<td>
<div id="cst2kwhtml" class="html-list"></div>
</td>
</tr>
</table>
<button onclick="keywordClearer(5)" class="listdefbutton">❌ Set list to default</button>
</div>
<div id="other-table" class="list-table">
<h4>Others keyword list</h4>
<table>
<tr>
<td>
Others category title
</td>
<td>
<input name="othertitle" id="othertitle" type="text" onchange="localStorageManager(false)"
placeholder="📚 Other commits" />
</td>
</tr>
</table>
<button onclick="keywordClearer(6)" class="listdefbutton">❌ Set title to default</button>
</div>
</div>
</center>
</div>
</div>
<div class="row">
<div class="column">
<base target="_blank">
<div id="loader"></div>
<div id="bodyhtml"></div>
</base>
</div>
</div>
</div>
</body>
</html>