mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 11:35:52 +00:00
remove tabs (#689)
This commit is contained in:
parent
d3309fb4f5
commit
fd5472caaf
1 changed files with 81 additions and 81 deletions
|
@ -261,88 +261,88 @@ const templateContent = `
|
|||
}.bind(this));
|
||||
return (
|
||||
<div>
|
||||
<nav className="panel">
|
||||
<div className="panel-heading">Filters</div>
|
||||
<div className="panel-block">
|
||||
<div className="field is-horizontal">
|
||||
<div className="field-label is-normal">
|
||||
<label className="label is-pulled-left">Severity</label>
|
||||
</div>
|
||||
<div className="field-body">
|
||||
<LevelSelector selected={ this.props.severity } available={ this.props.allSeverities } onChange={ this.updateSeverity } />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="panel-block">
|
||||
<div className="field is-horizontal">
|
||||
<div className="field-label is-normal">
|
||||
<label className="label is-pulled-left">Confidence</label>
|
||||
</div>
|
||||
<div className="field-body">
|
||||
<LevelSelector selected={ this.props.confidence } available={ this.props.allConfidences } onChange={ this.updateConfidence } />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="panel-block">
|
||||
<div className="field is-horizontal">
|
||||
<div className="field-label is-normal">
|
||||
<label className="label is-pulled-left">Issue type</label>
|
||||
</div>
|
||||
<div className="field-body">
|
||||
<div className="field">
|
||||
<div className="control">
|
||||
<div className="select is-fullwidth">
|
||||
<select onChange={ this.updateIssueType }>
|
||||
<option value="all" selected={ !this.props.issueType }>
|
||||
(all)
|
||||
</option>
|
||||
{ issueTypes }
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<nav className="panel">
|
||||
<div className="panel-heading">Filters</div>
|
||||
<div className="panel-block">
|
||||
<div className="field is-horizontal">
|
||||
<div className="field-label is-normal">
|
||||
<label className="label is-pulled-left">Severity</label>
|
||||
</div>
|
||||
<div className="field-body">
|
||||
<LevelSelector selected={ this.props.severity } available={ this.props.allSeverities } onChange={ this.updateSeverity } />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="panel-block">
|
||||
<div className="field is-horizontal">
|
||||
<div className="field-label is-normal">
|
||||
<label className="label is-pulled-left">Confidence</label>
|
||||
</div>
|
||||
<div className="field-body">
|
||||
<LevelSelector selected={ this.props.confidence } available={ this.props.allConfidences } onChange={ this.updateConfidence } />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="panel-block">
|
||||
<div className="field is-horizontal">
|
||||
<div className="field-label is-normal">
|
||||
<label className="label is-pulled-left">Issue type</label>
|
||||
</div>
|
||||
<div className="field-body">
|
||||
<div className="field">
|
||||
<div className="control">
|
||||
<div className="select is-fullwidth">
|
||||
<select onChange={ this.updateIssueType }>
|
||||
<option value="all" selected={ !this.props.issueType }>
|
||||
(all)
|
||||
</option>
|
||||
{ issueTypes }
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<nav className="panel">
|
||||
<div className="panel-heading">Summary</div>
|
||||
<div className="panel-block">
|
||||
<div className="columns is-multiline">
|
||||
<div className="column is-half summary-first">
|
||||
<label className="label is-pulled-left">Gosec: </label>
|
||||
</div>
|
||||
<div className="column is-half summary-first">
|
||||
{this.props.data.GosecVersion}
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
<label className="label is-pulled-left">Files: </label>
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
{this.props.data.Stats.files.toLocaleString()}
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
<label className="label is-pulled-left">Lines: </label>
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
{this.props.data.Stats.lines.toLocaleString()}
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
<label className="label is-pulled-left">Nosec: </label>
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
{this.props.data.Stats.nosec.toLocaleString()}
|
||||
</div>
|
||||
<div className="column is-half summary-last">
|
||||
<label className="label is-pulled-left">Issues: </label>
|
||||
</div>
|
||||
<div className="column is-half summary-last">
|
||||
{this.props.data.Stats.found.toLocaleString()}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
<nav className="panel">
|
||||
<div className="panel-heading">Summary</div>
|
||||
<div className="panel-block">
|
||||
<div className="columns is-multiline">
|
||||
<div className="column is-half summary-first">
|
||||
<label className="label is-pulled-left">Gosec: </label>
|
||||
</div>
|
||||
<div className="column is-half summary-first">
|
||||
{this.props.data.GosecVersion}
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
<label className="label is-pulled-left">Files: </label>
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
{this.props.data.Stats.files.toLocaleString()}
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
<label className="label is-pulled-left">Lines: </label>
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
{this.props.data.Stats.lines.toLocaleString()}
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
<label className="label is-pulled-left">Nosec: </label>
|
||||
</div>
|
||||
<div className="column is-half summary">
|
||||
{this.props.data.Stats.nosec.toLocaleString()}
|
||||
</div>
|
||||
<div className="column is-half summary-last">
|
||||
<label className="label is-pulled-left">Issues: </label>
|
||||
</div>
|
||||
<div className="column is-half summary-last">
|
||||
{this.props.data.Stats.found.toLocaleString()}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue