-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into gosecMapperRework
- Loading branch information
Showing
56 changed files
with
8,300 additions
and
731 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
907 changes: 907 additions & 0 deletions
907
apps/frontend/public/static/samples/small_overrides_hdf.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<template> | ||
<v-row> | ||
<v-col v-if="severityOverrideProps.number" cols="12"> | ||
<v-card | ||
:color="severityOverrideProps.color" | ||
class="d-flex flex-no-wrap justify-space-between" | ||
elevation="12" | ||
> | ||
<div> | ||
<v-card-title> | ||
<v-icon class="pr-3" large> | ||
mdi-{{ severityOverrideProps.icon }} | ||
</v-icon> | ||
<span class="title">{{ | ||
`${severityOverrideProps.title}: ${severityOverrideProps.number}` | ||
}}</span> | ||
</v-card-title> | ||
<v-card-text>{{ severityOverrideProps.subtitle }}</v-card-text> | ||
</div> | ||
<v-card-actions> | ||
<v-btn | ||
:disabled=" | ||
filter.tagFilter && | ||
filter.tagFilter.indexOf('severityoverride') !== -1 | ||
" | ||
@click="$emit('show-severity-overrides')" | ||
> | ||
Filter to Severity Overrides | ||
</v-btn> | ||
</v-card-actions> | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import {Filter, FilteredDataModule} from '@/store/data_filters'; | ||
import Vue from 'vue'; | ||
import Component from 'vue-class-component'; | ||
import {Prop} from 'vue-property-decorator'; | ||
interface CardProps { | ||
icon: string; | ||
title: string; | ||
number: number; | ||
subtitle: string; | ||
color: string; | ||
} | ||
@Component | ||
export default class InfoCardRow extends Vue { | ||
@Prop({type: Object, required: true}) readonly filter!: Filter; | ||
get severityOverrideProps(): CardProps { | ||
const filter = { | ||
...this.filter, | ||
tagFilter: ['severityoverride'] | ||
}; | ||
return { | ||
icon: 'delta', | ||
title: 'Severity Overrides', | ||
subtitle: 'Some controls have overridden severities', | ||
color: 'cyan', | ||
number: FilteredDataModule.controls(filter).length | ||
}; | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.