mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-08 18:53:52 +00:00
113 lines
6.6 KiB
HTML
113 lines
6.6 KiB
HTML
<div flex layout="column" ng-controller="decodersController">
|
|
|
|
<md-content class="md-padding">
|
|
<md-nav-bar md-selected-nav-item="menuNavItem" nav-bar-aria-label="navigation menu">
|
|
<md-nav-item id="header_logo" md-nav-href="#/" name="wazuh" aria-label="img logo">
|
|
<img aria-label="Logo image" src="/plugins/wazuh/icon.png" height="44" weight="252"></img>
|
|
</md-nav-item>
|
|
<md-nav-item md-nav-href="#/manager" name="manager">Manager</md-nav-item>
|
|
<md-nav-item md-nav-href="#/agents" name="agents">Agents</md-nav-item>
|
|
<md-nav-item md-nav-href="#/ruleset" name="ruleset">Ruleset</md-nav-item>
|
|
<md-nav-item md-nav-href="#/fim" name="fim">File integrity</md-nav-item>
|
|
<md-nav-item md-nav-href="#/policy_monitoring" name="policy_monitoring">Policy monitoring</md-nav-item>
|
|
<md-nav-item md-nav-href="#/settings" name="settings">Settings</md-nav-item>
|
|
</md-nav-bar>
|
|
</md-content>
|
|
|
|
<md-content class="md-padding">
|
|
<md-nav-bar md-selected-nav-item="submenuNavItem" nav-bar-aria-label="navigation submenu">
|
|
<md-nav-item md-nav-href="#/ruleset" name="overview">Rules</md-nav-item>
|
|
<md-nav-item md-nav-href="#/ruleset/decoders" name="metrics">Decoders</md-nav-item>
|
|
<md-nav-item md-nav-href="#/ruleset/update" name="metrics">Update</md-nav-item>
|
|
</md-nav-bar>
|
|
</md-content>
|
|
|
|
|
|
<div ng-if="load" style="text-align: center;">
|
|
<md-progress-linear md-mode="indeterminate" ng-show="load"></md-progress-linear>
|
|
</div>
|
|
<md-content flex id="content3" layout="row" layout-padding>
|
|
<md-content flex id="content" layout="column" layout-padding>
|
|
<div id="messages" ng-show="message" class="settings-message-error" ng-bind-html="message">{{ message }}</div>
|
|
<div class="leftCol">
|
|
<div flex id="content" layout="row">
|
|
<input flex id="searchBox1" type="text" ng-model="$parent.decoder_search" ng-change="objGet('/decoders', 'decoders')" class="form-control ng-pristine ng-untouched ng-valid rulesetSearch" placeholder="Search...">
|
|
<md-button ng-class="{ active: dfType == 'all' }" ng-click="setDecodersFilter('type', 'all')" class="rulesetFilter">All decoders </md-button>
|
|
<md-button ng-class="{ active: dfType == 'parents' }" ng-click="setDecodersFilter('type', 'parents')" class="rulesetFilter">Parents </md-button>
|
|
</div>
|
|
|
|
<div class="filterActive_div" ng-if="hasDecodersFilter('file');">
|
|
<span ng-click="setDecodersFilter('file', dfFile)" ng-class="{ textFilterActive_header: isSetTabDecodersFilter('file', dfFile) }"
|
|
class="bold" tooltips tooltip-size="large" tooltip-side="left" tooltip-template="{{dfFile}}">Selected file: {{formatFile(dfFile)}} <span class="glyphicon glyphicon-remove"></span></span>
|
|
</div>
|
|
<div class="filterActive_div" ng-if="hasDecodersFilter('id');">
|
|
<span ng-click="setDecodersFilter('id', dfId)" ng-class="{ textFilterActive_header: isSetTabDecodersFilter('id', dfId) }"
|
|
class="bold">Selected parent: {{dfId}} <span class="glyphicon glyphicon-remove"></span></span>
|
|
</div>
|
|
|
|
<md-toolbar layout="row" class="md-hue-3">
|
|
<div class="md-toolbar-tools">
|
|
<span flex="80">Decoder name</span>
|
|
<span flex="20">Decoder position</span>
|
|
</div>
|
|
</md-toolbar>
|
|
<md-list ng-repeat="decoder in decoders">
|
|
<md-list-item ng-click=" showDetails = ! showDetails; ">
|
|
<span flex="80">{{decoder.name}}</span>
|
|
<span flex="20">{{decoder.position}}</span>
|
|
</md-list-item>
|
|
<md-content flex layout="column" layout-padding ng-show="showDetails">
|
|
<md-list>
|
|
<md-list-item>
|
|
<span flex="30">Name</span>
|
|
<span class="right-text">{{decoder.name}}</span>
|
|
</md-list-item>
|
|
<md-list-item ng-click="setDecodersFilter('file', decoder.file);">
|
|
<span flex="30">File</span>
|
|
<span class="right-text">{{decoder.file}}</span>
|
|
</md-list-item>
|
|
<md-list-item>
|
|
<span flex="30">Full path</span>
|
|
<span class="right-text">{{decoder.full_path}}</span>
|
|
</md-list-item>
|
|
<md-list-item>
|
|
<span flex="30">Position</span>
|
|
<span class="right-text">{{decoder.position}}</span>
|
|
</md-list-item>
|
|
<md-list-item ng-if="decoder.details.parent" ng-click="setDecodersFilter('id', decoder.details.parent);">
|
|
<span flex="30">Parent</span>
|
|
<span class="right-text">{{decoder.details.parent}}</span>
|
|
</md-list-item>
|
|
<md-list-item >
|
|
<span flex="30">Position</span>
|
|
<span class="right-text">{{decoder.position}}</span>
|
|
</md-list-item>
|
|
<md-list-item ng-repeat="(detailk, detailv) in decoder.details" ng-if="detailk != 'parent'">
|
|
<span flex="30">{{detailk}}</span>
|
|
<span ng-if="(detailk !== 'regex') && (detailk !== 'order')" class="right-text">{{detailv}}</span>
|
|
<span ng-if="(detailk === 'regex')" ng-bind-html="colorRegex(detailv)">{{colorRegex(detailv)}}</span>
|
|
<span ng-if="(detailk === 'order')" ng-bind-html="colorOrder(detailv)">{{colorOrder(detailv)}}</span>
|
|
</md-list-item>
|
|
</md-list>
|
|
</md-content>
|
|
</md-list>
|
|
<span class="glyphicon glyphicon-chevron-left" ng-click="objPrev('/decoders', 'decoders')" ng-show="objHasPrev('/decoders')"></span>
|
|
<span class="glyphicon glyphicon-chevron-right" ng-click="objNext('/decoders', 'decoders')" ng-show="objHasNext('/decoders')"></span>
|
|
</div>
|
|
|
|
</md-content>
|
|
<md-content flex="30" id="content2" layout="column" layout-padding>
|
|
<div flex>
|
|
<input flex type="text" ng-model="$parent.$parent.searchFilesDecoders" ng-change="objGet('/decoders/files', 'filesDecoders')" class="form-control ng-pristine ng-valid rulesetSearch ng-touched" placeholder="Search...">
|
|
<md-list flex>
|
|
<md-list-item ng-repeat="file in filesDecoders" ng-click="setDecodersFilter('file', formatFile(file))" ng-class="{ active: isSetDecodersFilter('file', formatFile(file)) }">
|
|
<span >{{formatFile(file)}}</span>
|
|
</md-list-item>
|
|
</md-list>
|
|
<span class="glyphicon glyphicon-chevron-left" ng-click="objPrev('/decoders/files', 'filesDecoders')" ng-show="objHasPrev('/decoders/files')"></span>
|
|
<span class="glyphicon glyphicon-chevron-right" ng-click="objNext('/decoders/files', 'filesDecoders')" ng-show="objHasNext('/decoders/files')"></span>
|
|
</div>
|
|
</md-content>
|
|
</md-content>
|
|
</div>
|