mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 18:28:55 +00:00
101 lines
5.3 KiB
HTML
101 lines
5.3 KiB
HTML
<!-- This section contains the main content and the right sidenav -->
|
|
<div flex="auto" layout="row" ng-if="!load && configurationSubTab === 'commands'">
|
|
|
|
<!-- No configuration section -->
|
|
<wz-no-config
|
|
flex
|
|
error="currentConfig['analysis-command']"
|
|
ng-if="currentConfig['analysis-command'] && isString(currentConfig['analysis-command'])"></wz-no-config>
|
|
<wz-no-config
|
|
flex
|
|
error="'not-present'"
|
|
ng-if="currentConfig['analysis-command'] && !isString(currentConfig['analysis-command']) && currentConfig['analysis-command'].command && !currentConfig['analysis-command'].command.length"></wz-no-config>
|
|
<!-- End no configuration section -->
|
|
|
|
<!-- This section is the main content -->
|
|
<div flex layout="column" ng-if="currentConfig['analysis-command'] && !isString(currentConfig['analysis-command']) && currentConfig['analysis-command'].command && currentConfig['analysis-command'].command.length">
|
|
|
|
<!-- The main card will all the settings -->
|
|
<md-card flex="auto" class="wz-md-card" ng-if="!JSONContent && !XMLContent">
|
|
<md-card-content flex layout="column">
|
|
<div layout="row" layout-align="start center">
|
|
<div>
|
|
<span class="font-size-16">Command definitions</span>
|
|
<div class="wz-margin-top-10">
|
|
<span class="md-subheader small">Find here all the currently defined commands used for Active response</span>
|
|
</div>
|
|
</div>
|
|
<span flex></span>
|
|
<span ng-class="JSONContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getJSON()">JSON</span>
|
|
<span class="small"> · </span>
|
|
<span ng-class="XMLContent ? 'wz-text-active' : ''" class="wz-text-link small" ng-click="getXML()">XML</span>
|
|
</div>
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
|
|
<!-- The container for both list and detail -->
|
|
<div flex="auto" layout="row" class="wz-margin-top-10">
|
|
|
|
<!-- List container -->
|
|
<div flex="30" layout="column">
|
|
|
|
<md-list flex="auto" class="wz-item-list">
|
|
<md-list-item class="wz-text-link" ng-click="updateSelectedItem($index)" ng-repeat="item in currentConfig['analysis-command'].command">{{item.name}}</md-list-item>
|
|
</md-list>
|
|
|
|
</div>
|
|
<!-- End list container -->
|
|
|
|
<!-- Detail container -->
|
|
<div flex layout="column" ng-if="currentConfig['analysis-command'].command.length">
|
|
|
|
<div flex="auto" class="wz-item-detail">
|
|
<wz-config-item
|
|
label="Command name"
|
|
value="currentConfig['analysis-command'].command[selectedItem].name">
|
|
</wz-config-item>
|
|
<wz-config-item
|
|
label="Name of executable file"
|
|
value="currentConfig['analysis-command'].command[selectedItem].executable">
|
|
</wz-config-item>
|
|
<wz-config-item
|
|
label="List of expected fields"
|
|
value="currentConfig['analysis-command'].command[selectedItem].expect">
|
|
</wz-config-item>
|
|
<wz-config-item
|
|
label="Extra arguments"
|
|
value="currentConfig['analysis-command'].command[selectedItem].extra_args">
|
|
</wz-config-item>
|
|
<wz-config-item
|
|
label="Allow this command to be reverted"
|
|
value="currentConfig['analysis-command'].command[selectedItem].timeout_allowed ? 'yes' : 'no'">
|
|
</wz-config-item>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- End detail container -->
|
|
</div>
|
|
<!-- End container for both list and detail -->
|
|
</md-card-content>
|
|
</md-card>
|
|
<!-- End main card with all the settings -->
|
|
|
|
<wz-config-viewer flex getjson="getJSON()" getxml="getXML()" jsoncontent="JSONContent" xmlcontent="XMLContent" />
|
|
|
|
</div>
|
|
<!-- End main content section -->
|
|
|
|
<!-- This section is the right sidenav content -->
|
|
<md-sidenav
|
|
class="md-sidenav-right"
|
|
md-is-locked-open="true">
|
|
<md-list>
|
|
<md-subheader>More info about this section</md-subheader>
|
|
<md-list-item target="_blank" class="wz-text-link" ng-href="https://documentation.wazuh.com/current/user-manual/capabilities/active-response/index.html">Active response documentation</md-list-item>
|
|
<md-list-item target="_blank" class="wz-text-link" ng-href="https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/commands.html">Commands reference</md-list-item>
|
|
</md-list>
|
|
</md-sidenav>
|
|
<!-- End right sidenav section -->
|
|
|
|
</div>
|
|
<!-- End main content and right sidenav section -->
|