fix: console output
parent
bc2164a008
commit
5fa7c10296
|
@ -1,7 +1,7 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Driftctl scan report</title>
|
<title>driftctl scan report</title>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
<link rel="shortcut icon"
|
<link rel="shortcut icon"
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="heading d-flex justify-space-between align-center">
|
<div class="heading d-flex justify-space-between align-center">
|
||||||
<div>
|
<div>
|
||||||
<h1 class="heading-title mb-1">Driftctl scan report</h1>
|
<h1 class="heading-title mb-1">driftctl scan report</h1>
|
||||||
<span class="heading-subtitle">Coverage {{.Coverage}}%</span>
|
<span class="heading-subtitle">Coverage {{.Coverage}}%</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="text--right">
|
<div class="text--right">
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
{{ if (lt .Coverage 100) }}
|
{{ if (lt .Coverage 100) }}
|
||||||
<div class="d-flex justify-center mb-2">
|
<div class="d-flex justify-center mb-2">
|
||||||
<form id="filter-form" action="#">
|
<div>
|
||||||
<input type="text" name="resource-id-filter" placeholder="Search resources..." onkeyup="refreshState()">
|
<input type="text" name="resource-id-filter" placeholder="Search resources..." onkeyup="refreshState()">
|
||||||
<select name="resource-type-filter" onchange="refreshState()">
|
<select name="resource-type-filter" onchange="refreshState()">
|
||||||
<option value="">Resource type</option>
|
<option value="">Resource type</option>
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</select>
|
</select>
|
||||||
<button type="button" onclick="resetFilters()" class="reset-filter-btn">Reset filters</button>
|
<button type="button" onclick="resetFilters()" class="reset-filter-btn">Reset filters</button>
|
||||||
</form>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tabs-wrapper">
|
<div class="tabs-wrapper">
|
||||||
|
|
|
@ -255,6 +255,7 @@ h2 {
|
||||||
color: #747578;
|
color: #747578;
|
||||||
transition: background-color 200ms;
|
transition: background-color 200ms;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
font-size: 19px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab:hover {
|
.tab:hover {
|
||||||
|
|
|
@ -55,10 +55,10 @@ func GetOutput(config OutputConfig, quiet bool) Output {
|
||||||
switch config.Key {
|
switch config.Key {
|
||||||
case JSONOutputType:
|
case JSONOutputType:
|
||||||
return NewJSON(config.Options["path"])
|
return NewJSON(config.Options["path"])
|
||||||
case ConsoleOutputType:
|
|
||||||
fallthrough
|
|
||||||
case HTMLOutputType:
|
case HTMLOutputType:
|
||||||
return NewHTML(config.Options["path"])
|
return NewHTML(config.Options["path"])
|
||||||
|
case ConsoleOutputType:
|
||||||
|
fallthrough
|
||||||
default:
|
default:
|
||||||
return NewConsole()
|
return NewConsole()
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Driftctl scan report</title>
|
<title>driftctl scan report</title>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
<link rel="shortcut icon"
|
<link rel="shortcut icon"
|
||||||
|
@ -352,7 +352,7 @@ span.code-box-line-delete {
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="heading d-flex justify-space-between align-center">
|
<div class="heading d-flex justify-space-between align-center">
|
||||||
<div>
|
<div>
|
||||||
<h1 class="heading-title mb-1">Driftctl scan report</h1>
|
<h1 class="heading-title mb-1">driftctl scan report</h1>
|
||||||
<span class="heading-subtitle">Coverage 15%</span>
|
<span class="heading-subtitle">Coverage 15%</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="text--right">
|
<div class="text--right">
|
||||||
|
@ -370,7 +370,7 @@ span.code-box-line-delete {
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
|
||||||
<div class="d-flex justify-center mb-2">
|
<div class="d-flex justify-center mb-2">
|
||||||
<form id="filter-form" action="#">
|
<div>
|
||||||
<input type="text" name="resource-id-filter" placeholder="Search resources..." onkeyup="refreshState()">
|
<input type="text" name="resource-id-filter" placeholder="Search resources..." onkeyup="refreshState()">
|
||||||
<select name="resource-type-filter" onchange="refreshState()">
|
<select name="resource-type-filter" onchange="refreshState()">
|
||||||
<option value="">Resource type</option>
|
<option value="">Resource type</option>
|
||||||
|
@ -383,7 +383,7 @@ span.code-box-line-delete {
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<button type="button" onclick="resetFilters()" class="reset-filter-btn">Reset filters</button>
|
<button type="button" onclick="resetFilters()" class="reset-filter-btn">Reset filters</button>
|
||||||
</form>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tabs-wrapper">
|
<div class="tabs-wrapper">
|
||||||
|
|
|
@ -370,14 +370,14 @@ span.code-box-line-delete {
|
||||||
<div class="app-content">
|
<div class="app-content">
|
||||||
|
|
||||||
<div class="d-flex justify-center mb-2">
|
<div class="d-flex justify-center mb-2">
|
||||||
<form id="filter-form" action="#">
|
<div>
|
||||||
<input type="text" name="resource-id-filter" placeholder="Search resources..." onkeyup="refreshState()">
|
<input type="text" name="resource-id-filter" placeholder="Search resources..." onkeyup="refreshState()">
|
||||||
<select name="resource-type-filter" onchange="refreshState()">
|
<select name="resource-type-filter" onchange="refreshState()">
|
||||||
<option value="">Resource type</option>
|
<option value="">Resource type</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<button type="button" onclick="resetFilters()" class="reset-filter-btn">Reset filters</button>
|
<button type="button" onclick="resetFilters()" class="reset-filter-btn">Reset filters</button>
|
||||||
</form>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tabs-wrapper">
|
<div class="tabs-wrapper">
|
||||||
|
|
Loading…
Reference in New Issue