mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 09:03:02 +00:00
feat: add core tools
This commit is contained in:
10
resources/error.html.mustache
Normal file
10
resources/error.html.mustache
Normal file
@@ -0,0 +1,10 @@
|
||||
<tr>
|
||||
<td><h3>{{idx}}</h3></td>
|
||||
<td>
|
||||
<div class="alert {{status}}">{{message}}</div>
|
||||
<pre style="max-width: 600px;">{{property}} = {{instance}}</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre>{{schema}}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
15
resources/file.html.mustache
Normal file
15
resources/file.html.mustache
Normal file
@@ -0,0 +1,15 @@
|
||||
<h2>Errors in <code>{{testFile}}</code></h2>
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Error</th>
|
||||
<th>Schema</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
{{&errors}}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
28
resources/report.html.mustache
Normal file
28
resources/report.html.mustache
Normal file
@@ -0,0 +1,28 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Report</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"
|
||||
integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container-fluid">
|
||||
|
||||
<h1>Validation result</h1>
|
||||
|
||||
<p>Timestamp: {{timestamp}}</p>
|
||||
|
||||
{{&report}}
|
||||
|
||||
</div>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" crossorigin="anonymous"
|
||||
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" crossorigin="anonymous"
|
||||
integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" crossorigin="anonymous"
|
||||
integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user