mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-08 10:43:51 +00:00
91 lines
4.8 KiB
HTML
91 lines
4.8 KiB
HTML
<md-content layout="row" flex layout-padding ng-if="!load && $parent.submenuNavItem2 == 'decoders'" ng-controller="decodersController">
|
|
<md-virtual-repeat-container ng-if="!load" flex layout="column" layout-padding auto-size-container ng-style="autoSizeStyle">
|
|
|
|
<div flex id="content" layout="row" layout-align="center start">
|
|
|
|
<span layout="row" style="padding-left: 0px;margin-top: 6px;margin-right: 5px; " flex layout-align="space-between center">
|
|
<md-autocomplete ng-hide="$parent.typeFilter != 'all'" flex md-no-cache="true" md-selected-item="_filter" md-selected-item-change="decodersApplyFilter(_filter)" md-search-text="$parent.search"
|
|
md-items="item in filtersSearch($parent.search)" md-item-text="item.value" md-min-length="0" md-select-on-match="true" md-no-asterisk="false" md-menu-class="autocomplete-custom-agents-bar"
|
|
placeholder="Search file">
|
|
<md-item-template>
|
|
<span class="item-title">
|
|
<span><strong md-highlight-text="search" md-highlight-flags="i"> {{item.value}} </strong></span>
|
|
</span>
|
|
<span class="item-metadata">
|
|
<span class="item-metastat"> {{item.type}} </span>
|
|
</span>
|
|
</md-item-template>
|
|
<md-not-found>
|
|
No results matching "{{search}}" were found.
|
|
</md-not-found>
|
|
</md-autocomplete>
|
|
</span>
|
|
|
|
|
|
<md-button style="padding: 2px;" flex="10" ng-class="(submenuNavItem2 == 'rules') ? 'button-active' : 'button-disabled'" ng-class="button-disabled" ng-click="setRulesTab('rules')"
|
|
class="md-primary">
|
|
Rules
|
|
</md-button>
|
|
<md-button style="padding: 2px;" flex="10" ng-class="(submenuNavItem2 == 'decoders') ? 'button-active' : 'button-disabled'"
|
|
ng-class="button-disabled" ng-click="setRulesTab('decoders')" class="md-primary">
|
|
Decoders
|
|
</md-button>
|
|
|
|
|
|
<md-input-container flex="20" style="margin-top: 6px;margin-bottom: 0;border-radius: 3px;margin-left: 10px;"
|
|
class="md-whiteframe-z1">
|
|
<md-select ng-model="typeFilter" ng-change="decoderTypeFilter(typeFilter)" aria-label="Filter by type">
|
|
<md-option value="all">All</md-option>
|
|
<md-option value="parents">Parents only</md-option>
|
|
</md-select>
|
|
</md-input-container>
|
|
</div>
|
|
|
|
<md-chips readonly="true" ng-show="decodersHasFilter('search') || decodersHasFilter('file')">
|
|
<md-chip md-colors="::{background: 'primary-100', color: 'background-900'}" ng-click="decodersUnset('search')" ng-if="decodersHasFilter('search')">
|
|
<span class="bold">Search: {{decodersGetFilter('search')}} <i class="fa fa-times" aria-hidden="true"></i></span>
|
|
</md-chip>
|
|
<md-chip md-colors="::{background: 'primary-100', color: 'background-900'}" ng-click="decodersUnset('file')" ng-if="decodersHasFilter('file');">
|
|
<span class="bold">File: {{decodersGetFilter('file')}} <i class="fa fa-times" aria-hidden="true"></i></span>
|
|
</md-chip>
|
|
</md-chips>
|
|
|
|
<md-toolbar layout="row">
|
|
<div class="md-toolbar-tools">
|
|
<span flex="70">Name</span>
|
|
<span flex="30">File</span>
|
|
</div>
|
|
</md-toolbar>
|
|
<div md-virtual-repeat="decoder in decodersObj" md-on-demand flex layout="column" layout-align="start stretch">
|
|
<md-list ng-class="showDetails[decoder.name] ? 'ruleset_rules_row_active' : ''">
|
|
<md-list-item ng-click=" showDetails[decoder.name] = ! showDetails[decoder.name]; " ng-class="showDetails[decoder.name] ? 'ruleset_rules_row_active' : ''">
|
|
<span flex="70">{{decoder.name}}</span>
|
|
<md-button md-no-ink class="invisibleButton" flex="30" ng-if="$parent.typeFilter == 'all'" ng-click="decodersApplyFilter({type: 'file', value: decoder.file}); $event.stopPropagation();">{{decoder.file}}</md-button>
|
|
<span flex="30" ng-if="$parent.typeFilter != 'all'">{{decoder.file}}</span>
|
|
</md-list-item>
|
|
</md-list>
|
|
<md-list ng-if="showDetails[decoder.name]" ng-class="showDetails[decoder.name] ? 'ruleset_rules_row_active' : ''">
|
|
<md-list-item>
|
|
<span style="font-weight: bold" flex="15">Full path</span>
|
|
<span flex="35">{{decoder.full_path}}</span>
|
|
<span style="font-weight: bold" flex="15">Position</span>
|
|
<span flex="35">{{decoder.position}}</span>
|
|
</md-list-item>
|
|
<md-list-item ng-if="decoder.details.parent">
|
|
<span style="font-weight: bold" flex="15">Parent</span>
|
|
<span flex="35">{{decoder.details.parent}}</span>
|
|
</md-list-item>
|
|
<md-list-item ng-repeat="(detailk, detailv) in decoder.details" ng-if="detailk != 'parent'">
|
|
<span style="font-weight: bold" flex="15">{{detailk}}</span>
|
|
<span ng-if="(detailk !== 'regex') && (detailk !== 'order')" flex="35">{{detailv}}</span>
|
|
<span ng-if="(detailk === 'regex')" ng-bind-html="colorRegex(detailv)" flex="35">{{colorRegex(detailv)}}</span>
|
|
<span ng-if="(detailk === 'order')" ng-bind-html="colorOrder(detailv)" flex="35">{{colorOrder(detailv)}}</span>
|
|
</md-list-item>
|
|
</md-list>
|
|
<md-divider></md-divider>
|
|
</div>
|
|
|
|
</md-virtual-repeat-container>
|
|
|
|
|
|
</md-content> |