@szegedsw/lib-node
Version:
A little framework published by Szeged Software Zrt. in order to enhance api endpoint security and create reuseable code. Email module, Logging system, and much more. Further improvements are expected.
128 lines (114 loc) • 3.29 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.testhtml = void 0;
exports.testhtml = `
<html>
<head>
<title>Teszt</title>
<style>
thead th {
font-size: 25px;
padding: 15px;
border: black 5px solid;
border-left:0px;
background-color: lavender;
margin: 0;
}
.type {
font-style: italic;
}
table {
border-spacing: 0px;
}
.prop {
font-size: 20px
}
.prop > td {
border-left: 1px gray dashed;
border-bottom: 1px gray dashed;
}
.prop > th:last-of-type{
border-bottom: 1px gray dashed;
}
.invalid {
color: red;
font-weight: bold;
}
.valid {
color: green;
}
.validators > td {
text-align: center;
font-size: 17px;
border-bottom: black 5px solid;
}
.prop > td:nth-of-type(4), .validators > td:last-child {
border-right: black 5px solid;
}
.prop > td:nth-of-type(5){
border-right: black 5px solid;
border-bottom: black 5px solid;
text-align: center;
vertical-align: middle;
}
td {
padding: 10px;
}
.inner {
border: 0px;
}
.grouped {
border: black 5px solid;
border-top: 0px;
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<th style="border-left: 5px black solid;">Group</th>
<th>Property name</th>
<th>Property type</th>
<th>Property value</th>
<th>Min?</th>
<th>Max?</th>
<th>Additional fields</th>
</tr>
</thead>
<tbody>
<% for(var i=0; i < groups.length; i++) { %>
<% for(var j=0; j < groups[i].properties.length; j++) {%>
<% let prop=groups[i].properties[j]; %>
<tr class="prop">
<% if (j === 0) { %>
<th class="grouped" rowspan="<%=2*groups[i].properties.length%>"><%=(i+1)%></th>
<%} %>
<th class="propname <%=(prop.exists?'valid':'invalid')%>"><%=prop.name%></th>
<td class="type <%=(prop.typecheck?'valid':'invalid')%>"><%=prop.type%></td>
<td><%=prop.value%></td>
<td class="<%=(prop.min?'valid':'invalid')%>"><%=prop.minVal %></td>
<td class="<%=(prop.max?'valid':'invalid')%>"><%=prop.maxVal %></td>
<% if (j === 0) { %>
<td class="invalid" rowspan="<%=2*groups[i].properties.length%>"><%=(groups[i].additional.length>0?groups[i].additional.join(', '):' ') %></td>
<%} %>
</tr>
<tr class="validators">
<td colspan="5">
<table style="width:100%;" class="inner">
<% for(var k=0; k < prop.validators.length; k++){ %>
<tr>
<td class="<%=(prop.validators[k].result?'valid':'invalid')%>"><%=prop.validators[k].helpmsg%></td>
</tr>
<% } %>
</table>
</td>
</tr>
<% } %>
<% } %>
</tbody>
</table>
</body>
</html>
`;
//# sourceMappingURL=test.html.js.map