JSON viewer implemented

This commit is contained in:
Juanjo Jiménez 2018-03-12 16:14:45 +01:00 committed by Javier Castro
parent 2410fdd499
commit 205e47e8d6
2 changed files with 22 additions and 3 deletions

View File

@ -1,6 +1,5 @@
require('plugins/wazuh/less/common.less');
require('plugins/wazuh/less/heights.less');
require('plugins/wazuh/less/cleaned.less');
require('plugins/wazuh/less/media-queries.less');
import 'ui/styles/theme.less';
require('plugins/wazuh/less/cleaned.less');

View File

@ -101,7 +101,7 @@
<!-- Section title -->
<div layout="row" layout-align="start center">
<span flex="85" class="wz-headline-title"><i class="fa fa-fw fa-shield"></i> File Integrity</span>
<md-switch flex="15" ng-model="toggleRAW" class="wz-md-switch">View JSON</md-switch>
<md-switch flex="15" class="wz-md-switch" ng-model="toggleRAW">View JSON</md-switch>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
@ -213,6 +213,26 @@
</md-card>
<!-- END FILE INTEGRITY -->
<!-- FILE INTEGRITY -->
<md-card flex class="wz-md-card" ng-show="toggleRAW">
<md-card-content>
<!-- Section title -->
<div layout="row" layout-align="start center">
<span flex="85" class="wz-headline-title"><i class="fa fa-fw fa-eye"></i> JSON viewer</span>
<md-switch flex="15" class="wz-md-switch" ng-model="toggleRAW">View JSON</md-switch>
</div>
<md-divider class="wz-margin-top-10"></md-divider>
<!-- JSON viewer -->
<div flex class="wz-padding-top-10">
<pre flex class="wz-pre json-beautifier jsonbeauty2 wz-overflow-y-auto"><code wz-dynamic="rawJSON"></code></pre>
</div>
</md-card-content>
</md-card>
<!-- END FILE INTEGRITY -->
</div>
</div>