-
-
Notifications
You must be signed in to change notification settings - Fork 716
/
index.html.ftl
59 lines (59 loc) · 2.05 KB
/
index.html.ftl
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
<#-- @ftlvariable name="faviconUrl" type="java.lang.String" -->
<#-- @ftlvariable name="stylesUrls" type="java.lang.String[]" -->
<#-- @ftlvariable name="jsUrls" type="java.lang.String[]" -->
<#-- @ftlvariable name="reportDataFiles" type="java.util.Map<java.lang.String,java.lang.String>" -->
<#-- @ftlvariable name="analyticsDisable" type="boolean" -->
<#-- @ftlvariable name="allureVersion" type="java.lang.String" -->
<#-- @ftlvariable name="reportUuid" type="java.lang.String" -->
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<title>Allure Report</title>
<link rel="favicon" href="${faviconUrl}">
<#list stylesUrls as styleUrl>
<link rel="stylesheet" type="text/css" href="${styleUrl}">
</#list>
</head>
<body>
<div id="alert"></div>
<div id="content">
<span class="spinner">
<span class="spinner__circle"></span>
</span>
</div>
<div id="popup"></div>
<#list jsUrls as jsUrl>
<script src="${jsUrl}"></script>
</#list>
<#if analyticsDisable == false>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FVWC4GKEYS"></script>
</#if>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FVWC4GKEYS', {
'allureVersion': '${allureVersion}',
'reportUuid': '${reportUuid}',
'single_file': ${reportDataFiles?has_content?string}
});
</script>
<#if reportDataFiles?has_content>
<script async>
window.reportDataReady = false;
window.reportData = window.reportData || {};
function d(name, value){
return new Promise(function (resolve) {console.log(name);window.reportData[name] = value;resolve(true)});
}
</script>
<script defer>
Promise.allSettled([
<#list reportDataFiles as name, value>
d('${name}','${value}'),
</#list>
]).then(function(){window.reportDataReady = true;})
</script>
</#if>
</body>
</html>