forked from osmdroid/osmdroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
406 lines (316 loc) · 13.1 KB
/
template.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
403
404
405
406
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia at 2016-02-23
| Rendered using Apache Maven Fluido Skin 1.4
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="Date-Creation-yyyymmdd" content="${pom.inceptionYear}0101"/>
<meta name="Date-Revision-yyyymmdd" content="${currentYYYYMMDD}"/>
<meta http-equiv="Content-Language" content="en"/>
<title> ${site.name}</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4.min.css"/>
<link rel="stylesheet" href="./css/site.css"/>
<link rel="stylesheet" href="./css/print.css" media="print"/>
<link rel="stylesheet" type="text/css" href="./css/bootstrap-sortable.css">
<script type="text/javascript" src="./js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="./js/apache-maven-fluido-1.4.min.js"></script>
<script type="text/javascript" src="./js/bootstrap-sortable.js"></script>
<script type="text/javascript" src="./js/moment.min.js"></script>
</head>
<body class="topBarDisabled">
${forkMeOnGitHub}
<div class="container-fluid">
<div id="banner">
<div class="pull-left">
<div id="bannerLeft">
<h2> ${site.name}</h2>
</div>
</div>
<div class="pull-right">
<div id="bannerRight">
<!-- override this with your own logo-->
<img src="./img/logo.png"/>
</div>
</div>
<div class="clear">
<hr/>
</div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li class="">
<a href="${pom.organization.url}" class="externalLink" title="${pom.organization.name}">
${pom.organization.name}</a>
<span class="divider">/</span>
</li>
<li class="">
<a href="${pom.url}" class="externalLink" title="${site.name}">
${site.name}</a>
</li>
<li id="publishDate" class="pull-right"><span class="divider">|</span> Last Published:
${currentYYYY-MM-DD}
</li>
<li id="projectVersion" class="pull-right">
${pom.version}
</li>
</ul>
</div>
<div class="row-fluid">
<div id="leftColumn" class="span2">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Overview</li>
<li >
<a href="index.html"><span class="none"></span>Introduction</a>
</li>
<!-- user generated menu goes here, basically any additional html or markdown files
from src/site are auto linked here-->
${generatedMenu}
<li class="nav-header">Project Documentation</li>
<li>
<a href="project-info.html" title="Project Information">
<span class="icon-chevron-down"></span>
Project Information</a>
<ul class="nav nav-list">
<li>
<a href="team-list.html" title="Project Team">
<span class="none"></span>
Project Team</a>
</li>
<li>
<a href="${pom.scm.developerConnection}" title="Source Repository">
<span class="none"></span>
Source Repository</a>
</li>
<li>
<a href="${pom.issueManagement.url}" title="Issue Tracking">
<span class="none"></span>
Issue Tracking</a>
</li>
<li>
<a href="project-license.html" title="Project License">
<span class="none"></span>
Project License</a>
</li>
<li>
<a href="dependency-repos.html" title="Dependency Repositories">
<span class="none"></span>
Dependency Repositories</a>
</li>
<li>
<a href="dependencyReport.html" title="Dependency Convergence">
<span class="none"></span>
Dependency Convergence</a>
</li>
<!-- maybe in the future
<li>
<a href="mail-lists.html" title="Mailing Lists">
<span class="none"></span>
Mailing Lists</a>
</li>
<li>
<a href="dependency-management.html" title="Dependency Management">
<span class="none"></span>
Dependency Management</a>
</li>
-->
<li>
<a href="${pom.ciManagement.url}" title="Continuous Integration">
<span class="none"></span>
Continuous Integration</a>
</li>
<!--
<li>
<a href="plugins.html" title="Project Plugins">
<span class="none"></span>
Project Plugins</a>
</li>
-->
<li>
<a href="${pom.distributionManagement.site.url}"
title="Distribution Management">
<span class="none"></span>
Distribution Management</a>
</li>
<li>
<a href="javadoc.html" title="Project Reports">
<span class="none"></span>
Javadocs</a>
</li>
<li>
<a href="reports.html" title="Project Reports">
<span class="none"></span>
Project Reports</a>
</li>
</ul>
</li>
</ul>
<hr/>
</div>
</div>
<div id="bodyColumn" class="span10">
<a name="topOfPage"></a>
${body}
</div>
<div id="iframenav" style="visibility:hidden">
<center><h3><a name="iframeAnchor"></a><a href="#topOfPage"> -- Top --</a></h3>
<a href="javascript:popout();">Load in a new window</a>
</center>
</div>
<iframe id="frame1" width="100%" height="75%" style="display:none"></iframe>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<!-- footer -->
</div>
</div>
</footer>
<div class="modal hide fade" id="modal1">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Artifact Details</h3>
</div>
<div class="modal-body">
<h3>Gradle</h3>
<pre id="gradleDep">
</pre>
<h3>Maven</h3>
<pre id="mavenDep">
</pre>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" >Close</a>
</div>
</div>
<script type="text/javascript">
/**
* opens the current iframe url in a new window or tab
*/
function popout(){
var destination = $("#frame1").attr('src');
var win = window.open(destination, '_blank');
win.focus();
}
/**
* displays a report and shows the iframe
*/
function showReport(url){
$("#iframenav").css('visibility','');
$("#frame1").show();
$("#frame1").attr('src', url);
$("#frame1").attr('height', window.innerHeight);
window.location.assign("#iframeAnchor");
}
/**
* shows our maven/gradle helper modal
type is the file extension
*/
function showModal(group, artifact, version,type, classifier){
/**
if classifier and types
foreach classifier
foreach types
else if classifier
foreach classifier
else if type
foreah type
else
just output it
*/
//string outputs
var maventxt ="";
var gradle="";
var hasClassifiers = classifier !== "" && classifier !== undefined;
var hasTypes = type !== "" && type !== undefined;
if (hasClassifiers && hasTypes){
type = type.trim();
var types = type.split(" ");
classifier = classifier.trim();
var classifiers = classifier.split(" ");
for (var i = 0; i < types.length; i++) {
if (types[i].trim().length==0)
continue;
for (var k = 0; k < classifiers.length; k++) {
if (classifiers[k].trim().length==0)
continue;
maventxt+= "<dependency>\n\t<groupId>" + group + "</groupId>\n\t<artifactId>" + artifact+
"</artifactId>\n\t";
maventxt += "<type>" + types[i].trim() + "</type>\n\t";
maventxt += "<classifier>" + classifiers[k].trim() + "</classifier>\n\t";
maventxt +="<version>" + version + "</version>\n</dependency>\n";
gradle += "compile '" + group + ":" + artifact + ":" + version;
gradle += ":" + classifiers[k].trim();
gradle += "@" + types[i];
gradle += "'\n";
}
}
} else if (hasClassifiers) {
classifier = classifier.trim();
var types = classifier.split(" ");
for (var i = 0; i < types.length; i++) {
if (types[i].trim().length==0)
continue;
maventxt+= "<dependency>\n\t<groupId>" + group + "</groupId>\n\t<artifactId>" + artifact+
"</artifactId>\n\t";
maventxt += "<classifier>" + types[i].trim() + "</classifier>\n\t";
maventxt +="<version>" + version + "</version>\n</dependency>\n";
gradle += "compile '" + group + ":" + artifact + ":" + version;
gradle += ":" + types[i];
gradle += "'\n";
}
} else if (hasTypes) {
type = type.trim();
var types = type.split(" ");
for (var i = 0; i < types.length; i++) {
if (types[i].trim().length==0)
continue;
maventxt+= "<dependency>\n\t<groupId>" + group + "</groupId>\n\t<artifactId>" + artifact+
"</artifactId>\n\t";
maventxt += "<type>" + types[i].trim() + "</type>\n\t";
maventxt +="<version>" + version + "</version>\n</dependency>\n";
gradle += "compile '" + group + ":" + artifact + ":" + version;
gradle += "@" + types[i];
gradle += "'\n";
}
} else {
//no type or classifiers
maventxt+= "<dependency>\n\t<groupId>" + group + "</groupId>\n\t<artifactId>" + artifact+
"</artifactId>\n\t";
maventxt +="<version>" + version + "</version>\n</dependency>\n";
gradle += "compile '" + group + ":" + artifact + ":" + version;
gradle += "'\n";
}
$("#mavenDep").text(maventxt);
$("#gradleDep").text(gradle);
$('#modal1').modal()
}
$("table").addClass("table table-striped sortable");
$(function () {
setNavigation();
});
/**
* this sets the "active" bit on the left hand side naviation menu
*/
function setNavigation() {
var path = window.location.pathname;
path = path.replace(/\/$/, "");
path = decodeURIComponent(path);
var idx=path.toString().lastIndexOf("/");
if (idx >= 0)
path=path.substring(idx+1, path.length);
$(".nav a").each(function () {
var href = $(this).attr('href');
if (path.substring(0, href.length) === href) {
$(this).closest('li').addClass('active');
}
});
}
</script>
</body>
</html>