mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-08 18:53:52 +00:00
66 lines
3.0 KiB
HTML
66 lines
3.0 KiB
HTML
<md-content layout="row" flex layout-padding ng-if="!load && submenuNavItem == 'decoders'" ng-controller="decodersController">
|
|
<md-virtual-repeat-container ng-if="!load" flex layout="column" layout-padding>
|
|
|
|
<div flex id="content" layout="row" layout-align="space-between center">
|
|
|
|
<span layout="row" style="padding-left: 0px;" flex layout-align="space-between center">
|
|
<md-autocomplete ng-disabled="typeFilter != 'all'" flex md-no-cache="true" md-selected-item="_file" md-selected-item-change="decoderFileFilter(_file.split('/').slice(-1)[0])" md-search-text="search"
|
|
md-items="item in fileSearch(search)" md-item-text="item" md-min-length="0" md-no-asterisk="true" md-menu-class="autocomplete-custom-agents-bar" md-search-text-change="decoderSearchFilter(search)"
|
|
placeholder="Search file">
|
|
<md-item-template>
|
|
<span class="item-title">
|
|
<span><strong md-highlight-text="search" md-highlight-flags="i"> {{item}} </strong></span>
|
|
</span>
|
|
</md-item-template>
|
|
<md-not-found>
|
|
No results matching "{{search}}" were found.
|
|
</md-not-found>
|
|
</md-autocomplete>
|
|
</span>
|
|
|
|
<md-input-container flex="15" style="margin-left: 20px; padding: 5px; margin-right: 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-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>
|
|
<md-list-item ng-click=" showDetails[decoder.name] = ! showDetails[decoder.name]; ">
|
|
<span flex="70">{{decoder.name}}</span>
|
|
<span flex="30">{{decoder.file}}</span>
|
|
</md-list-item>
|
|
</md-list>
|
|
<md-list ng-if="showDetails[decoder.name]">
|
|
<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> |