-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
402 lines (388 loc) · 21.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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contributions of "Querido Diário" - OKFN Brasil</title>
<!-- SOCIAL OGP TAGS -->
<meta property="og:title" content="Contributions of " Querido Diário" - OKFN Brasil">
<meta property="og:site_name" content="OKFN Brasil">
<meta property="og:url" content="https://jreagle.github.io/qdcontributions/">
<meta property="og:description" content="">
<meta property="og:type" content="website">
<meta property="og:image" content="https://github.githubassets.com/assets/github-logo-55c5b9a1fe52.png">
<!--BOOTSTRAP -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<!--ICONS BOOTSTRAP -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<!-- JQUERY -->
<script src=" https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js "></script>
<!-- DATATABLES -->
<link rel="stylesheet" href="https://cdn.datatables.net/2.1.8/css/dataTables.dataTables.css" />
<script src="https://cdn.datatables.net/2.1.8/js/dataTables.js"></script>
<style>
table#tableCitiesOverview.dataTable tbody tr:hover,
table#tableContributorsOverview.dataTable tbody tr:hover {
--bs-bg-opacity: 0.5;
background-color: rgba(var(--bs-secondary-rgb), var(--bs-bg-opacity)) !important;
cursor: pointer;
}
table#tableCitiesOverview.dataTable tbody tr:hover>.sorting_1,
table#tableContributorsOverview.dataTable tbody tr:hover>.sorting_1 {
--bs-bg-opacity: 0.5;
background-color: rgba(var(--bs-secondary-rgb), var(--bs-bg-opacity)) !important;
cursor: pointer;
}
/* OVERRIDE => BOOTSTRAP ACCORDION STYLE */
.accordion-item {
margin-bottom: 8px;
.accordion-header {
.accordion-button {
--bs-bg-opacity: 0.5;
background-color: rgba(var(--bs-secondary-rgb), var(--bs-bg-opacity)) !important;
color: black;
font-size: large;
padding: 8px 16px;
border: gray 1px solid;
border-bottom: 0px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
&:not(.collapsed) {
color: black;
}
&:focus {
box-shadow: none
}
}
.accordion-body {
border: gray 1px solid;
border-top: 0px
}
}
</style>
</head>
<body class="d-none">
<header></header>
<main>
<!-- HOME -->
<section id="welcomeHome">
<div id="homeJumbotron" class="d-flex flex-column min-vh-100 justify-content-center align-items-center">
<h1>QD Contributions!</h1>
<p>Contributions of "Querido Diário" - OKF Project</p>
<div class="d-flex gap-4">
<button onclick="toggleShowSection('tableCities')" type="button" class="btn btn-primary">Cities
View</button>
<button onclick="toggleShowSection('tableContributors')" type="button"
class="btn btn-primary">Contributors</button>
</div>
</div>
</section>
<!-- CITIES -->
<section id="tableCities"
class="d-flex flex-column min-vh-100 justify-content-center align-items-center p-2 d-none">
<button onclick="toggleShowSection('welcomeHome')" type="button"
class="btn btn-primary btn-sm">Home</button>
<table id="tableCitiesOverview">
<thead>
<tr>
<th class="text-center">Cód.IBGE</th>
<th class="text-center">Nome do Território</th>
<th class="text-center">UF</th>
<th class="text-center">Status Diário</th>
<th class="text-center">Gazettes</th>
<th class="text-center">Contrib.</th>
<th class="text-center">SpiderBase</th>
</tr>
<tr>
<th class="text-center">
<input
onkeyup="qdTableCities.column(this.closest('th').cellIndex).search(new RegExp('^'+this.value,'i')).draw()"
type="search" name="searchIBGECode" id="searchIBGECode" size="8">
</th>
<th class="text-center">
<input
onkeyup="qdTableCities.column(this.closest('th').cellIndex).search(new RegExp('^'+this.value,'i')).draw()"
type="search" name="searchCityName" id="searchCityName">
</th>
<th class="text-center"><select
onchange="qdTableCities.column(this.closest('th').cellIndex).search(this.value).draw()"
name="selectUF" id="selectUF">
<option selected value="">TODOS</option>
</select></th>
<th class="text-center"><select class="text-center"
onchange="qdTableCities.column(this.closest('th').cellIndex).search(new RegExp('^'+this.value,'i')).draw()"
name="selectQDStatus" id="selectQDStatus">
<option selected value="">TODOS</option>
<option value="Desconhecido">Desconhecido (0)</option>
<option value="Conhecido">Conhecido (1)</option>
<option value="Coletado">Coletado (2)</option>
<option value="Disponivel">Disponível (3)</option>
<!-- ALERT: Normalize VALUE/CHAR (Remove Accents) -->
</select></th>
<th class="text-center">
<input onkeyup="searchEnums(this,qdTableCities)" type="search" name="searchCityGazettes"
id="searchCityGazettes" size="5">
</th>
<th class="text-center">
<input onkeyup="searchEnums(this,qdTableCities)" type="search" name="searchCityContrib"
id="searchCityContrib" size="5">
</th>
<th class="text-center">
<select
class="text-center"
onchange="qdTableCities.column(this.closest('th').cellIndex).search(this.value).draw()"
name="selectSpiderBase" id="selectSpiderBase">
<option selected value="">RESET</option>
<option value="-">Nenhum</option>
</select>
</th>
</tr>
</thead>
<tbody></tbody>
<tfoot></tfoot>
</table>
</section>
<section id="cityPage" class="py-2 p-4 d-none">
<div class="mb-4 text-center">
<button id="btnBackCityPage" onclick="toggleShowSection('tableCities')" type="button"
class="btn btn-primary btn-sm">Back</button>
<h2 class="mt-4" id="cityPageTitle">City Name (IBGE Code)</h2>
<span class="d-none text-secondary text-opacity-75">Última Atualização: <b
id="dtUpdate">00/00/0000</b></span>
</div>
<!-- ACCORDIONS -->
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Metadados
</button>
</div>
<div id="collapseOne" class="accordion-collapse collapse show" data-bs-parent="#accordionExample">
<div class="accordion-body">
<div>
<!-- <h5 class="ps-2 border-bottom border-secondary">Metadados</h5> -->
<ul id="cityPageInfoContainer" class="p-2 list-unstyled">
<p>Sem informações!</p>
</ul>
</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseTwo" aria-expanded="true" aria-controls="collapseTwo">
Spider: <span id="linkSpider">Wait...</span>
</button>
</div>
<div id="collapseTwo" class="accordion-collapse collapse show" data-bs-parent="#accordionExample">
<div class="accordion-body">
<div>
<h5 class="ps-2 border-bottom border-secondary">Collects</h5>
<ul id="cityPageSpiderContainerCollects" class="p-2 list-unstyled">
<li><b>Total Gazettes: </b><a href="#" target="_blank" rel="noopener noreferrer"
id="totalGazettes"
class="fs-6 badge text-bg-secondary link-underline link-underline-opacity-0">0</a>
</li>
</ul>
</div>
<div>
<h5 class="ps-2 border-bottom border-secondary">Commits (<span id="lenCommits">0</span>)
</h5>
<ul id="cityPageSpiderContainerCommits" class="px-4 py-2">
<li class="p-2 border border-secondary rounded">
<a href="#" target="_blank" rel="noopener noreferrer">Commit title</a>
(jk5g6kjg) |
<img class="rounded-circle"
src="https://avatars.githubusercontent.com/u/44185775?v=4&size=24" alt="">
<span>username</span> | <span>00/00/0000</span>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseThree" aria-expanded="true" aria-controls="collapseThree">
Contributions (<span id="lenContrib">0</span>)
</button>
</div>
<div id="collapseThree" class="accordion-collapse collapse show" data-bs-parent="#accordionExample">
<div class="accordion-body">
<div>
<h5 class="ps-2 border-bottom border-secondary">Pull Requests (<span
id="lenPulls">0</span>)</h5>
<ul id="cityPageContributionsContainerPulls" class="px-4 py-2">
<p>Sem informações!</p>
</ul>
</div>
<div>
<h5 class="ps-2 border-bottom border-secondary">Issues (<span id="lenIssues">0</span>)
</h5>
<ul id="cityPageContributionsContainerIssues" class="px-4 py-2">
<p>Sem informações!</p>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- CONTRIBUTORS -->
<section id="tableContributors"
class="d-flex flex-column min-vh-100 justify-content-center align-items-center p-2 d-none">
<button onclick="toggleShowSection('welcomeHome')" type="button"
class="btn btn-primary btn-sm">Home</button>
<table id="tableContributorsOverview">
<thead>
<tr>
<th class="text-center">Author Name</th>
<th class="text-center">Cities</th>
<th class="text-center">Commits</th>
<th class="text-center">PRs</th>
<th class="text-center">Issues</th>
<!-- <th class="text-center">SumUp</th> -->
</tr>
<tr>
<th class="text-center">
<input
onkeyup="qdTableContributors.column(this.closest('th').cellIndex).search(new RegExp('^'+this.value,'i')).draw()"
type="search" name="searchContributorLogin" id="searchContributorLogin">
</th>
<th class="text-center">
<input onkeyup="searchEnums(this,qdTableContributors)" type="search" name="searchContributorCities"
id="searchContributorCities" size="5">
</th>
<th class="text-center">
<input onkeyup="searchEnums(this,qdTableContributors)" type="search" name="searchContributorCommits"
id="searchContributorCommits" size="5">
</th>
<th class="text-center">
<input onkeyup="searchEnums(this,qdTableContributors)" type="search" name="searchContributorPRs"
id="searchContributorPRs" size="5">
</th>
<th class="text-center">
<input onkeyup="searchEnums(this,qdTableContributors)" type="search" name="searchContributorIssues"
id="searchContributorIssues" size="5">
</th>
<!-- <th class="text-center">
<input onkeyup="searchEnums(this)" type="search" name="searchContributorSumUp"
id="searchContributorSumUp" size="5">
</th> -->
</tr>
</thead>
<tbody></tbody>
<tfoot></tfoot>
</table>
</section>
<section id="contributorPage" class="py-2 p-4 d-none">
<div class="mb-4 text-center">
<button onclick="toggleShowSection('tableContributors')" type="button"
class="btn btn-primary btn-sm mb-2">Back</button>
<div>
<div class="d-inline-flex gap-4 justify-content-center p-2 border border-secondary rounded">
<img style="height: 100px;" class="rounded-circle" id="contributorPageAvatar" src="" alt="">
<div class="vr"></div>
<div class="d-flex flex-column justify-content-center align-items-center">
<span class="fs-4" id="contributorPageTitle">City Name (Parent State)</span>
<a id="contributorPageGithub" class="text-center" href="#" target="_blank"
rel="noopener noreferrer">link</a>
</div>
</div>
</div>
</div>
<!-- ACCORDIONS -->
<div class="accordion" id="accordionContributors">
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#contributorsOne" aria-expanded="true" aria-controls="contributorsOne">
Cities (<span id="lenContribCities">0</span>)
</button>
</div>
<div id="contributorsOne" class="accordion-collapse collapse show"
data-bs-parent="#accordionContributors">
<div class="accordion-body">
<div>
<h5 class="ps-2 border-bottom border-secondary"></h5>
<ul id="contributorPageContributionsContainerCities"
class="px-4 py-2 d-flex flex-column flex-wrap">
<p>Sem informações!</p>
</ul>
</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#contributorsTwo" aria-expanded="true" aria-controls="contributorsTwo">
Commits (<span id="lenContribCommits">0</span>)
</button>
</div>
<div id="contributorsTwo" class="accordion-collapse collapse show"
data-bs-parent="#accordionContributors">
<div class="accordion-body">
<div>
<h5 class="ps-2 border-bottom border-secondary"></h5>
<ul id="contributorPageContributionsContainerCommits" class="px-4 py-2">
<p>Sem informações!</p>
</ul>
</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#contributorsThree" aria-expanded="true" aria-controls="contributorsThree">
Pull Requests (<span id="lenContribPulls">0</span>)
</button>
</div>
<div id="contributorsThree" class="accordion-collapse collapse show"
data-bs-parent="#accordionContributors">
<div class="accordion-body">
<div>
<h5 class="ps-2 border-bottom border-secondary"></h5>
<ul id="contributorPageContributionsContainerPulls" class="px-4 py-2">
<p>Sem informações!</p>
</ul>
</div>
</div>
</div>
</div>
<div class="accordion-item">
<div class="accordion-header">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#contributorsFour" aria-expanded="true" aria-controls="contributorsFour">
Issues (<span id="lenContribIssues">0</span>)
</button>
</div>
<div id="contributorsFour" class="accordion-collapse collapse show"
data-bs-parent="#accordionContributors">
<div class="accordion-body">
<div>
<h5 class="ps-2 border-bottom border-secondary"></h5>
<ul id="contributorPageContributionsContainerIssues" class="px-4 py-2">
<p>Sem informações!</p>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<footer></footer>
</body>
<script src="modules/actions.js"></script>
</html>