mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
Removed D3 SCA charts, fix SCA for autocomplete
This commit is contained in:
parent
2794923f1b
commit
2d4e3d18f5
@ -24,7 +24,6 @@ import {
|
||||
|
||||
import { ConfigurationHandler } from '../../utils/config-handler';
|
||||
import { timefilter } from 'ui/timefilter';
|
||||
import { renderScaPie } from '../../utils/d3-chart';
|
||||
|
||||
export class AgentsController {
|
||||
/**
|
||||
@ -398,10 +397,7 @@ export class AgentsController {
|
||||
|
||||
this.$scope.loadScaChecks = policy =>
|
||||
(this.$scope.lookingSca = { ...policy, id: policy.policy_id });
|
||||
this.$scope.closeScaChecks = () => {
|
||||
this.$scope.lookingSca = false;
|
||||
this.renderScaCharts();
|
||||
};
|
||||
this.$scope.closeScaChecks = () => this.$scope.lookingSca = false;
|
||||
|
||||
this.$scope.confirmAddGroup = group => {
|
||||
this.groupHandler
|
||||
@ -484,13 +480,7 @@ export class AgentsController {
|
||||
const localChange =
|
||||
subtab === 'panels' && this.$scope.tabView === 'discover' && sameTab;
|
||||
this.$scope.tabView = subtab;
|
||||
if (
|
||||
subtab === 'panels' &&
|
||||
this.$scope.tab === 'sca' &&
|
||||
(this.$scope.policies || []).length
|
||||
) {
|
||||
this.renderScaCharts();
|
||||
}
|
||||
|
||||
if (
|
||||
(subtab === 'panels' ||
|
||||
(this.targetLocation &&
|
||||
@ -525,40 +515,13 @@ export class AgentsController {
|
||||
}
|
||||
}
|
||||
|
||||
renderScaCharts() {
|
||||
try {
|
||||
renderScaPie(
|
||||
[
|
||||
{
|
||||
name: 'Pass',
|
||||
value: this.$scope.policies.reduce((a, { pass }) => a + pass, 0)
|
||||
},
|
||||
{
|
||||
name: 'Fail',
|
||||
value: this.$scope.policies.reduce((a, { fail }) => a + fail, 0)
|
||||
}
|
||||
],
|
||||
`sca_chart_pass_vs_fail`
|
||||
);
|
||||
|
||||
for (const policy of this.$scope.policies) {
|
||||
const dataset = [];
|
||||
policy.pass && dataset.push({ name: 'Pass', value: policy.pass });
|
||||
policy.fail && dataset.push({ name: 'Fail', value: policy.fail });
|
||||
renderScaPie(dataset, `sca_chart_${policy.policy_id}`);
|
||||
}
|
||||
} catch (error) {
|
||||
this.errorHandler.handle(error);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Switch tab
|
||||
* @param {*} tab
|
||||
* @param {*} force
|
||||
*/
|
||||
async switchTab(tab, force = false) {
|
||||
this.$scope.lookingSca = false;
|
||||
this.falseAllExpand();
|
||||
if (this.ignoredTabs.includes(tab)) {
|
||||
this.commonData.setRefreshInterval(timefilter.getRefreshInterval());
|
||||
@ -579,7 +542,7 @@ export class AgentsController {
|
||||
(((agentInfo || {}).data || {}).data || {}).status ||
|
||||
this.$scope.agent.status;
|
||||
}
|
||||
} catch (error) {} // eslint-disable-line
|
||||
} catch (error) { } // eslint-disable-line
|
||||
|
||||
try {
|
||||
this.$scope.showSyscheckFiles = false;
|
||||
@ -615,7 +578,7 @@ export class AgentsController {
|
||||
if (tab === 'syscollector')
|
||||
try {
|
||||
await this.loadSyscollector(this.$scope.agent.id);
|
||||
} catch (error) {} // eslint-disable-line
|
||||
} catch (error) { } // eslint-disable-line
|
||||
if (tab === 'configuration') {
|
||||
this.$scope.switchConfigurationTab('welcome');
|
||||
} else {
|
||||
@ -625,13 +588,9 @@ export class AgentsController {
|
||||
if (this.tabHistory.length > 2)
|
||||
this.tabHistory = this.tabHistory.slice(-2);
|
||||
this.tabVisualizations.setTab(tab);
|
||||
if (this.$scope.tab === tab && !force) {
|
||||
if (tab === 'sca') {
|
||||
this.renderScaCharts();
|
||||
this.$scope.$applyAsync();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.$scope.tab === tab && !force) return;
|
||||
|
||||
const onlyAgent = this.$scope.tab === tab && force;
|
||||
const sameTab = this.$scope.tab === tab;
|
||||
this.$location.search('tab', tab);
|
||||
@ -743,7 +702,7 @@ export class AgentsController {
|
||||
{}
|
||||
);
|
||||
netifaceResponse = ((resultNetiface || {}).data || {}).data || false;
|
||||
} catch (error) {} // eslint-disable-line
|
||||
} catch (error) { } // eslint-disable-line
|
||||
|
||||
// This API call may fail so we put it out of Promise.all
|
||||
let netaddrResponse = false;
|
||||
@ -755,7 +714,7 @@ export class AgentsController {
|
||||
);
|
||||
netaddrResponse =
|
||||
((resultNetaddrResponse || {}).data || {}).data || false;
|
||||
} catch (error) {} // eslint-disable-line
|
||||
} catch (error) { } // eslint-disable-line
|
||||
|
||||
// Before proceeding, syscollector data is an empty object
|
||||
this.$scope.syscollector = {};
|
||||
@ -814,7 +773,7 @@ export class AgentsController {
|
||||
|
||||
try {
|
||||
data[0] = await this.apiReq.request('GET', `/agents/${id}`, {});
|
||||
} catch (error) {} //eslint-disable-line
|
||||
} catch (error) { } //eslint-disable-line
|
||||
|
||||
try {
|
||||
data[1] = await this.apiReq.request(
|
||||
@ -822,7 +781,7 @@ export class AgentsController {
|
||||
`/syscheck/${id}/last_scan`,
|
||||
{}
|
||||
);
|
||||
} catch (error) {} //eslint-disable-line
|
||||
} catch (error) { } //eslint-disable-line
|
||||
|
||||
try {
|
||||
data[2] = await this.apiReq.request(
|
||||
@ -830,7 +789,7 @@ export class AgentsController {
|
||||
`/rootcheck/${id}/last_scan`,
|
||||
{}
|
||||
);
|
||||
} catch (error) {} //eslint-disable-line
|
||||
} catch (error) { } //eslint-disable-line
|
||||
|
||||
const result = data.map(item => ((item || {}).data || {}).data || false);
|
||||
|
||||
@ -947,6 +906,7 @@ export class AgentsController {
|
||||
async analyzeAgents(searchTerm) {
|
||||
try {
|
||||
if (searchTerm) {
|
||||
this.$scope.lookingSca = false;
|
||||
const reqData = await this.apiReq.request('GET', '/agents', {
|
||||
search: searchTerm
|
||||
});
|
||||
|
@ -7,7 +7,8 @@
|
||||
</div>
|
||||
<div ng-if="customColumns" layout="row" ng-show="!error && !wazuh_table_loading && items.length" class="columns-bar"
|
||||
ng-class="{'columns-bar-active': showColumns}" ng-style="!showColumns && {'margin-bottom': '-35px'}">
|
||||
<div ng-if="showColumns" class="euiCheckbox wz-margin-right-8" ng-repeat="key in originalkeys" ng-click="updateColumns(key)">
|
||||
<div ng-if="showColumns" class="euiCheckbox wz-margin-right-8" ng-repeat="key in originalkeys"
|
||||
ng-click="updateColumns(key)">
|
||||
<input class="euiCheckbox__input" type="checkbox" aria-label="Select all rows" ng-checked="exists(key)">
|
||||
<div class="euiCheckbox__square"></div>
|
||||
<span class="euiCheckbox__label">{{ keyEquivalence[key.key.value || key.key] }}</span>
|
||||
@ -18,15 +19,17 @@
|
||||
</div>
|
||||
|
||||
<div ng-if="!wazuh_table_loading && !isPolicyMonitoring() && !isSyscheck()" ng-show="!error && items.length">
|
||||
<table class="table table-striped table-condensed table-hover no-margin-bottom" ng-class="customColumns ? 'table-resizable' : ''"
|
||||
style="table-layout: fixed !important" id="table{{scapepath}}">
|
||||
<table class="table table-striped table-condensed table-hover no-margin-bottom"
|
||||
ng-class="customColumns ? 'table-resizable' : ''" style="table-layout: fixed !important"
|
||||
id="table{{scapepath}}">
|
||||
<thead class="wz-text-bold">
|
||||
<th ng-repeat="key in keys" class="wz-text-left" ng-style="key.width && {'width':key.width}">
|
||||
<span ng-class="{ 'cursor-pointer' : !key.nosortable}" ng-click="!key.nosortable && sort(key)">
|
||||
{{ path === '/agents/groups' && (key.value || key) === 'count' ? 'Agents' :
|
||||
keyEquivalence[key.value ||
|
||||
key] || key.value || key }}
|
||||
<i ng-if="!key.nosortable" class="fa wz-theader-sort-icon" ng-class="sortValue === (key.value || key) ? (sortDir ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'"
|
||||
<i ng-if="!key.nosortable" class="fa wz-theader-sort-icon"
|
||||
ng-class="sortValue === (key.value || key) ? (sortDir ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'"
|
||||
aria-hidden="true"></i>
|
||||
</span>
|
||||
</th>
|
||||
@ -37,9 +40,10 @@
|
||||
</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-class="allowClick ? 'cursor-pointer' : ''" class="wz-word-wrap" ng-repeat="item in pagedItems[currentPage] | filter:{item:'!'}"
|
||||
ng-click="clickAction(item)">
|
||||
<td ng-repeat="key in keys" id="td-{{$parent.$index}}-{{$index}}" ng-mouseover="showTooltip($parent.$index, $index, item)">
|
||||
<tr ng-class="allowClick ? 'cursor-pointer' : ''" class="wz-word-wrap"
|
||||
ng-repeat="item in pagedItems[currentPage] | filter:{item:'!'}" ng-click="clickAction(item)">
|
||||
<td ng-repeat="key in keys" id="td-{{$parent.$index}}-{{$index}}"
|
||||
ng-mouseover="showTooltip($parent.$index, $index, item)">
|
||||
<div class="wz-text-truncatable">
|
||||
<span>
|
||||
{{
|
||||
@ -52,45 +56,55 @@
|
||||
</div>
|
||||
</td>
|
||||
<td ng-if="path === '/agents'" ng-click="$event.stopPropagation()" class="cursor-default action-btn-td">
|
||||
<span ng-click="clickAction(item, 'discover'); $event.stopPropagation()" class="wz-margin-left-8 cursor-pointer"
|
||||
tooltip="Open Discover panel for this agent" tooltip-placement="left" aria-hidden="true">
|
||||
<svg class="euiIcon euiIcon--medium" focusable="false" xmlns="http://www.w3.org/2000/svg" width="32"
|
||||
height="32" viewBox="0 0 32 32">
|
||||
<path class="euiIcon__fillSecondary" d="M8.33 23.67l4.79-10.55 10.55-4.79-4.79 10.55-10.55 4.79zm6.3-9l-2.28 5 5-2.28 2.28-5-5 2.28z">
|
||||
<span ng-click="clickAction(item, 'discover'); $event.stopPropagation()"
|
||||
class="wz-margin-left-8 cursor-pointer" tooltip="Open Discover panel for this agent"
|
||||
tooltip-placement="left" aria-hidden="true">
|
||||
<svg class="euiIcon euiIcon--medium" focusable="false" xmlns="http://www.w3.org/2000/svg"
|
||||
width="32" height="32" viewBox="0 0 32 32">
|
||||
<path class="euiIcon__fillSecondary"
|
||||
d="M8.33 23.67l4.79-10.55 10.55-4.79-4.79 10.55-10.55 4.79zm6.3-9l-2.28 5 5-2.28 2.28-5-5 2.28z">
|
||||
</path>
|
||||
<path d="M16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16A16 16 0 0 0 16 0zm1 29.95V28h-2v1.95A14 14 0 0 1 2.05 17H4v-2H2.05A14 14 0 0 1 15 2.05V4h2V2.05A14 14 0 0 1 29.95 15H28v2h1.95A14 14 0 0 1 17 29.95z">
|
||||
<path
|
||||
d="M16 0C7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16A16 16 0 0 0 16 0zm1 29.95V28h-2v1.95A14 14 0 0 1 2.05 17H4v-2H2.05A14 14 0 0 1 15 2.05V4h2V2.05A14 14 0 0 1 29.95 15H28v2h1.95A14 14 0 0 1 17 29.95z">
|
||||
</path>
|
||||
</svg>
|
||||
</span>
|
||||
<span ng-click="clickAction(item, 'configuration'); $event.stopPropagation()" class="cursor-pointer"
|
||||
tooltip="Open configuration for this agent" tooltip-placement="left" aria-hidden="true">
|
||||
|
||||
<svg class="euiIcon euiIcon--medium" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16"
|
||||
height="16" viewBox="0 0 16 16">
|
||||
<path d="M6.918 9.746l4.537 4.537a2 2 0 1 0 2.828-2.829l-3.157-3.156a.5.5 0 0 1 .708-.708l3.156 3.157a3 3 0 1 1-4.243 4.243l-4.949-4.95a5.001 5.001 0 0 1-5.22-7.106.5.5 0 0 1 .805-.138L3.676 5.09a1 1 0 1 0 1.415-1.414L2.797 1.382a.5.5 0 0 1 .138-.805 5.001 5.001 0 1 1 3.983 9.169zM1.226 4.054a4.002 4.002 0 0 0 6.693 3.865 4 4 0 0 0-3.865-6.693l1.744 1.743a2 2 0 1 1-2.829 2.828L1.226 4.054zm10.229 8.814a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414z">
|
||||
<svg class="euiIcon euiIcon--medium" focusable="false" xmlns="http://www.w3.org/2000/svg"
|
||||
width="16" height="16" viewBox="0 0 16 16">
|
||||
<path
|
||||
d="M6.918 9.746l4.537 4.537a2 2 0 1 0 2.828-2.829l-3.157-3.156a.5.5 0 0 1 .708-.708l3.156 3.157a3 3 0 1 1-4.243 4.243l-4.949-4.95a5.001 5.001 0 0 1-5.22-7.106.5.5 0 0 1 .805-.138L3.676 5.09a1 1 0 1 0 1.415-1.414L2.797 1.382a.5.5 0 0 1 .138-.805 5.001 5.001 0 1 1 3.983 9.169zM1.226 4.054a4.002 4.002 0 0 0 6.693 3.865 4 4 0 0 0-3.865-6.693l1.744 1.743a2 2 0 1 1-2.829 2.828L1.226 4.054zm10.229 8.814a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414z">
|
||||
</path>
|
||||
</svg>
|
||||
</span>
|
||||
</td>
|
||||
<td ng-if="path === '/agents/groups' && adminMode" ng-click="$event.stopPropagation()" class="cursor-default action-btn-td">
|
||||
<span ng-if="removingGroup !== item.name && item.name !== 'default'" ng-click="showConfirmRemoveGroup($event, item); $event.stopPropagation()"
|
||||
ng-class="{'wz-margin-left-8': item.name !== 'default'}" class="cursor-pointer" tooltip="Remove this group"
|
||||
tooltip-placement="left" aria-hidden="true">
|
||||
<svg class="euiIcon euiIcon--medium euiButton__icon" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
||||
<td ng-if="path === '/agents/groups' && adminMode" ng-click="$event.stopPropagation()"
|
||||
class="cursor-default action-btn-td">
|
||||
<span ng-if="removingGroup !== item.name && item.name !== 'default'"
|
||||
ng-click="showConfirmRemoveGroup($event, item); $event.stopPropagation()"
|
||||
ng-class="{'wz-margin-left-8': item.name !== 'default'}" class="cursor-pointer"
|
||||
tooltip="Remove this group" tooltip-placement="left" aria-hidden="true">
|
||||
<svg class="euiIcon euiIcon--medium euiButton__icon" focusable="false" aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16"
|
||||
height="16" viewBox="0 0 16 16">
|
||||
<defs>
|
||||
<path id="trash-a" d="M11 3h5v1H0V3h5V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2zm-7.056 8H7v1H4.1l.392 2.519c.042.269.254.458.493.458h6.03c.239 0 .451-.189.493-.458l1.498-9.576H14l-1.504 9.73c-.116.747-.74 1.304-1.481 1.304h-6.03c-.741 0-1.365-.557-1.481-1.304l-1.511-9.73H9V5.95H3.157L3.476 8H8v1H3.632l.312 2zM6 3h4V1H6v2z">
|
||||
<path id="trash-a"
|
||||
d="M11 3h5v1H0V3h5V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2zm-7.056 8H7v1H4.1l.392 2.519c.042.269.254.458.493.458h6.03c.239 0 .451-.189.493-.458l1.498-9.576H14l-1.504 9.73c-.116.747-.74 1.304-1.481 1.304h-6.03c-.741 0-1.365-.557-1.481-1.304l-1.511-9.73H9V5.95H3.157L3.476 8H8v1H3.632l.312 2zM6 3h4V1H6v2z">
|
||||
</path>
|
||||
</defs>
|
||||
<use xlink:href="#trash-a"></use>
|
||||
</svg></span>
|
||||
<span ng-if="removingGroup !== item.name" ng-click="editGroup(item); $event.stopPropagation()"
|
||||
tooltip="Edit this group configuration" tooltip-placement="left" ng-class="{'wz-margin-left-8': item.name === 'default'}">
|
||||
tooltip="Edit this group configuration" tooltip-placement="left"
|
||||
ng-class="{'wz-margin-left-8': item.name === 'default'}">
|
||||
<svg class="cursor-pointer euiIcon euiIcon--medium euiButtonIcon__icon" focusable="false"
|
||||
aria-hidden="true" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="16" height="16" viewBox="0 0 16 16">
|
||||
aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
||||
<defs>
|
||||
<path id="pencil-a" d="M12.148 3.148L11 2l-9 9v3h3l9-9-1.144-1.144-8.002 7.998a.502.502 0 0 1-.708 0 .502.502 0 0 1 0-.708l8.002-7.998zM11 1c.256 0 .512.098.707.293l3 3a.999.999 0 0 1 0 1.414l-9 9A.997.997 0 0 1 5 15H2a1 1 0 0 1-1-1v-3c0-.265.105-.52.293-.707l9-9A.997.997 0 0 1 11 1zM5 14H2v-3l3 3z">
|
||||
<path id="pencil-a"
|
||||
d="M12.148 3.148L11 2l-9 9v3h3l9-9-1.144-1.144-8.002 7.998a.502.502 0 0 1-.708 0 .502.502 0 0 1 0-.708l8.002-7.998zM11 1c.256 0 .512.098.707.293l3 3a.999.999 0 0 1 0 1.414l-9 9A.997.997 0 0 1 5 15H2a1 1 0 0 1-1-1v-3c0-.265.105-.52.293-.707l9-9A.997.997 0 0 1 11 1zM5 14H2v-3l3 3z">
|
||||
</path>
|
||||
</defs>
|
||||
<use xlink:href="#pencil-a"></use>
|
||||
@ -103,21 +117,26 @@
|
||||
removed</span>
|
||||
</div>
|
||||
<div layout="row">
|
||||
<md-button class="cancelBtn" type="button" ng-click="cancelRemoveGroup()"><i aria-hidden='true'
|
||||
class='fa fa-fw fa-close'></i> Cancel</md-button>
|
||||
<md-button class="agreeBtn wz-button" type="button" ng-click="confirmRemoveGroup(item.name)"><i
|
||||
aria-hidden='true' class='fa fa-fw fa-check'></i> Confirm</md-button>
|
||||
<md-button class="cancelBtn" type="button" ng-click="cancelRemoveGroup()"><i
|
||||
aria-hidden='true' class='fa fa-fw fa-close'></i> Cancel</md-button>
|
||||
<md-button class="agreeBtn wz-button" type="button"
|
||||
ng-click="confirmRemoveGroup(item.name)"><i aria-hidden='true'
|
||||
class='fa fa-fw fa-check'></i> Confirm</md-button>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td ng-if="isLookingGroup() && adminMode" ng-click="$event.stopPropagation()" class="cursor-default action-btn-td">
|
||||
<span ng-if="removingAgent !== item.id && adminMode" ng-click="showConfirmRemoveAgentFromGroup($event, item); $event.stopPropagation()"
|
||||
<td ng-if="isLookingGroup() && adminMode" ng-click="$event.stopPropagation()"
|
||||
class="cursor-default action-btn-td">
|
||||
<span ng-if="removingAgent !== item.id && adminMode"
|
||||
ng-click="showConfirmRemoveAgentFromGroup($event, item); $event.stopPropagation()"
|
||||
class="wz-margin-left-8 cursor-pointer" tooltip="Remove this agent from the group"
|
||||
tooltip-placement="left" aria-hidden="true">
|
||||
<svg class="euiIcon euiIcon--medium euiButton__icon" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
||||
<svg class="euiIcon euiIcon--medium euiButton__icon" focusable="false" aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16"
|
||||
height="16" viewBox="0 0 16 16">
|
||||
<defs>
|
||||
<path id="trash-a" d="M11 3h5v1H0V3h5V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2zm-7.056 8H7v1H4.1l.392 2.519c.042.269.254.458.493.458h6.03c.239 0 .451-.189.493-.458l1.498-9.576H14l-1.504 9.73c-.116.747-.74 1.304-1.481 1.304h-6.03c-.741 0-1.365-.557-1.481-1.304l-1.511-9.73H9V5.95H3.157L3.476 8H8v1H3.632l.312 2zM6 3h4V1H6v2z">
|
||||
<path id="trash-a"
|
||||
d="M11 3h5v1H0V3h5V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2zm-7.056 8H7v1H4.1l.392 2.519c.042.269.254.458.493.458h6.03c.239 0 .451-.189.493-.458l1.498-9.576H14l-1.504 9.73c-.116.747-.74 1.304-1.481 1.304h-6.03c-.741 0-1.365-.557-1.481-1.304l-1.511-9.73H9V5.95H3.157L3.476 8H8v1H3.632l.312 2zM6 3h4V1H6v2z">
|
||||
</path>
|
||||
</defs>
|
||||
<use xlink:href="#trash-a"></use>
|
||||
@ -130,37 +149,43 @@
|
||||
this group</span>
|
||||
</div>
|
||||
<div layout="row">
|
||||
<md-button class="cancelBtn" type="button" ng-click="cancelRemoveAgent()"><i aria-hidden='true'
|
||||
class='fa fa-fw fa-close'></i> Cancel</md-button>
|
||||
<md-button class="cancelBtn" type="button" ng-click="cancelRemoveAgent()"><i
|
||||
aria-hidden='true' class='fa fa-fw fa-close'></i> Cancel</md-button>
|
||||
<md-button class="agreeBtn wz-button" type="button" ng-click="confirmRemoveAgent(item.id)">
|
||||
<i aria-hidden='true' class='fa fa-fw fa-check'></i> Confirm</md-button>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td ng-if="path === '/rules/files' || path === '/decoders/files' || path === '/lists/files'" ng-click="$event.stopPropagation()"
|
||||
class="cursor-default action-btn-td">
|
||||
<span ng-if="((item.name && removingFile !== item.name) || (item.file && removingFile !== item.file)) && adminMode && path !== '/lists/files'"
|
||||
ng-click="editFile(item, path); $event.stopPropagation()" class="wz-margin-left-8 cursor-pointer"
|
||||
tooltip="Edit this file" tooltip-placement="left" aria-hidden="true">
|
||||
<td ng-if="path === '/rules/files' || path === '/decoders/files' || path === '/lists/files'"
|
||||
ng-click="$event.stopPropagation()" class="cursor-default action-btn-td">
|
||||
<span
|
||||
ng-if="((item.name && removingFile !== item.name) || (item.file && removingFile !== item.file)) && adminMode && path !== '/lists/files'"
|
||||
ng-click="editFile(item, path); $event.stopPropagation()"
|
||||
class="wz-margin-left-8 cursor-pointer" tooltip="Edit this file" tooltip-placement="left"
|
||||
aria-hidden="true">
|
||||
|
||||
<svg class="euiIcon euiIcon--medium euiButtonIcon__icon" focusable="false" aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16"
|
||||
height="16" viewBox="0 0 16 16">
|
||||
<defs>
|
||||
<path id="pencil-a" d="M12.148 3.148L11 2l-9 9v3h3l9-9-1.144-1.144-8.002 7.998a.502.502 0 0 1-.708 0 .502.502 0 0 1 0-.708l8.002-7.998zM11 1c.256 0 .512.098.707.293l3 3a.999.999 0 0 1 0 1.414l-9 9A.997.997 0 0 1 5 15H2a1 1 0 0 1-1-1v-3c0-.265.105-.52.293-.707l9-9A.997.997 0 0 1 11 1zM5 14H2v-3l3 3z">
|
||||
<path id="pencil-a"
|
||||
d="M12.148 3.148L11 2l-9 9v3h3l9-9-1.144-1.144-8.002 7.998a.502.502 0 0 1-.708 0 .502.502 0 0 1 0-.708l8.002-7.998zM11 1c.256 0 .512.098.707.293l3 3a.999.999 0 0 1 0 1.414l-9 9A.997.997 0 0 1 5 15H2a1 1 0 0 1-1-1v-3c0-.265.105-.52.293-.707l9-9A.997.997 0 0 1 11 1zM5 14H2v-3l3 3z">
|
||||
</path>
|
||||
</defs>
|
||||
<use xlink:href="#pencil-a"></use>
|
||||
</svg>
|
||||
</span>
|
||||
<span ng-if="((item.name && removingFile !== item.name) || (item.file && removingFile !== item.file)) && adminMode"
|
||||
ng-click="showConfirmRemoveFile($event, item, path); $event.stopPropagation()" class="cursor-pointer"
|
||||
ng-class="{'wz-margin-left-8': path === '/lists/files'}" tooltip="Delete this file"
|
||||
tooltip-placement="right" aria-hidden="true">
|
||||
<svg class="euiIcon euiIcon--medium euiButton__icon" focusable="false" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
||||
<span
|
||||
ng-if="((item.name && removingFile !== item.name) || (item.file && removingFile !== item.file)) && adminMode"
|
||||
ng-click="showConfirmRemoveFile($event, item, path); $event.stopPropagation()"
|
||||
class="cursor-pointer" ng-class="{'wz-margin-left-8': path === '/lists/files'}"
|
||||
tooltip="Delete this file" tooltip-placement="right" aria-hidden="true">
|
||||
<svg class="euiIcon euiIcon--medium euiButton__icon" focusable="false" aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16"
|
||||
height="16" viewBox="0 0 16 16">
|
||||
<defs>
|
||||
<path id="trash-a" d="M11 3h5v1H0V3h5V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2zm-7.056 8H7v1H4.1l.392 2.519c.042.269.254.458.493.458h6.03c.239 0 .451-.189.493-.458l1.498-9.576H14l-1.504 9.73c-.116.747-.74 1.304-1.481 1.304h-6.03c-.741 0-1.365-.557-1.481-1.304l-1.511-9.73H9V5.95H3.157L3.476 8H8v1H3.632l.312 2zM6 3h4V1H6v2z">
|
||||
<path id="trash-a"
|
||||
d="M11 3h5v1H0V3h5V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2zm-7.056 8H7v1H4.1l.392 2.519c.042.269.254.458.493.458h6.03c.239 0 .451-.189.493-.458l1.498-9.576H14l-1.504 9.73c-.116.747-.74 1.304-1.481 1.304h-6.03c-.741 0-1.365-.557-1.481-1.304l-1.511-9.73H9V5.95H3.157L3.476 8H8v1H3.632l.312 2zM6 3h4V1H6v2z">
|
||||
</path>
|
||||
</defs>
|
||||
<use xlink:href="#trash-a"></use>
|
||||
@ -174,17 +199,19 @@
|
||||
: item.file}}</b> will be deleted</span>
|
||||
</div>
|
||||
<div layout="row">
|
||||
<md-button class="cancelBtn" type="button" ng-click="cancelRemoveFile()"><i aria-hidden='true'
|
||||
class='fa fa-fw fa-close'></i> Cancel</md-button>
|
||||
<md-button class="agreeBtn wz-button" type="button" ng-click="confirmRemoveFile(item, path)"><i
|
||||
aria-hidden='true' class='fa fa-fw fa-check'></i> Confirm</md-button>
|
||||
<md-button class="cancelBtn" type="button" ng-click="cancelRemoveFile()"><i
|
||||
aria-hidden='true' class='fa fa-fw fa-close'></i> Cancel</md-button>
|
||||
<md-button class="agreeBtn wz-button" type="button"
|
||||
ng-click="confirmRemoveFile(item, path)"><i aria-hidden='true'
|
||||
class='fa fa-fw fa-check'></i> Confirm</md-button>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<td colspan="{{ (path === '/agents' || (path === '/agents/groups' && adminMode) || (isLookingGroup() && adminMode) ||
|
||||
<td
|
||||
colspan="{{ (path === '/agents' || (path === '/agents/groups' && adminMode) || (isLookingGroup() && adminMode) ||
|
||||
path === '/rules/files' || path === '/decoders/files' || path === '/lists/files') ? keys.length + 1 : keys.length}}">
|
||||
<span ng-show="!wazuh_table_loading" class="color-grey">{{ totalItems }} items ({{time | number: 2}}
|
||||
seconds)</span>
|
||||
@ -194,8 +221,8 @@
|
||||
<a href ng-click="prevPage()">« Prev</a>
|
||||
</li>
|
||||
|
||||
<li ng-repeat="n in range(pagedItems.length, currentPage, currentPage + gap) " ng-class="{'wz-text-active': n == currentPage}"
|
||||
ng-click="setPage()" class="md-padding">
|
||||
<li ng-repeat="n in range(pagedItems.length, currentPage, currentPage + gap) "
|
||||
ng-class="{'wz-text-active': n == currentPage}" ng-click="setPage()" class="md-padding">
|
||||
<a href ng-bind="n + 1">1</a>
|
||||
</li>
|
||||
|
||||
@ -210,24 +237,28 @@
|
||||
</div>
|
||||
|
||||
<div ng-if="!wazuh_table_loading && isPolicyMonitoring()" ng-show="!error && items.length">
|
||||
<table class="table table-striped table-striped-duo table-condensed table-hover no-margin-bottom" ng-class="customColumns ? 'table-resizable' : ''"
|
||||
style="table-layout: fixed !important" id="table{{scapepath}}">
|
||||
<table class="table table-striped table-striped-duo table-condensed table-hover no-margin-bottom"
|
||||
ng-class="customColumns ? 'table-resizable' : ''" style="table-layout: fixed !important"
|
||||
id="table{{scapepath}}">
|
||||
<thead class="wz-text-bold">
|
||||
<th ng-repeat="key in keys" class="wz-text-left" ng-style="key.width && {'width':key.width}">
|
||||
<span ng-class="{ 'cursor-pointer' : !key.nosortable }" ng-click="!key.nosortable && sort(key)">
|
||||
{{ keyEquivalence[key.value || key] || key.value || key }}
|
||||
<i ng-if="!key.nosortable" class="fa wz-theader-sort-icon" ng-class="sortValue === (key.value || key) ? (sortDir ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'"
|
||||
<i ng-if="!key.nosortable" class="fa wz-theader-sort-icon"
|
||||
ng-class="sortValue === (key.value || key) ? (sortDir ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'"
|
||||
aria-hidden="true"></i>
|
||||
</span>
|
||||
</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="wz-word-wrap cursor-pointer" ng-repeat-start="item in pagedItems[currentPage] | filter:{item:'!'}"
|
||||
ng-click="expandTableRow(item)" ng-class="{'selected': item.expanded}">
|
||||
<td ng-repeat="key in keys" id="td-{{$parent.$index}}-{{$index}}" ng-mouseover="showTooltip($parent.$index, $index, item)">
|
||||
<tr class="wz-word-wrap cursor-pointer"
|
||||
ng-repeat-start="item in pagedItems[currentPage] | filter:{item:'!'}" ng-click="expandTableRow(item)"
|
||||
ng-class="{'selected': item.expanded}">
|
||||
<td ng-repeat="key in keys" id="td-{{$parent.$index}}-{{$index}}"
|
||||
ng-mouseover="showTooltip($parent.$index, $index, item)">
|
||||
<div class="wz-text-truncatable">
|
||||
<span>
|
||||
<span ng-show="key === 'result'" class="no-wrap">
|
||||
<span ng-show="(key.value || key ) === 'result'" class="no-wrap">
|
||||
<p class="round status little" ng-class="(item.result === 'passed') ? 'teal' : 'red'">
|
||||
</p>
|
||||
</span>
|
||||
@ -242,7 +273,8 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr ng-if="item.rationale || item.remediation || item.directory || (item.compliance && item.compliance.length)"
|
||||
class="wz-word-wrap cursor-pointer selected" ng-show="item.expanded" ng-repeat-end="" ng-click="expandTableRow(item)">
|
||||
class="wz-word-wrap cursor-pointer selected" ng-show="item.expanded" ng-repeat-end=""
|
||||
ng-click="expandTableRow(item)">
|
||||
<td colspan="{{keys.length}}" style="border-top: none">
|
||||
<div layout="row" layout-padding="" class="layout-padding layout-row">
|
||||
<md-card flex="" class="wz-md-card wz-padding-top-0 wz-padding-bottom-0 wz-no-margin _md flex">
|
||||
@ -250,7 +282,8 @@
|
||||
<div>
|
||||
<div class="euiFlexItem euiFlexItem--flexGrowZero" ng-if="item.rationale">
|
||||
<div class="euiStat euiStat--leftAligned">
|
||||
<p class="euiTitle euiTitle--small euiStat__title ng-binding" style="font-size: 1.15rem;">Rationale</p>
|
||||
<p class="euiTitle euiTitle--small euiStat__title ng-binding"
|
||||
style="font-size: 1.15rem;">Rationale</p>
|
||||
<div class="euiText euiText--small euiStat__description wz-text-gray">
|
||||
<p>{{item.rationale}}</p>
|
||||
</div>
|
||||
@ -259,7 +292,8 @@
|
||||
</div>
|
||||
<div class="euiFlexItem euiFlexItem--flexGrowZero" ng-if="item.remediation">
|
||||
<div class="euiStat euiStat--leftAligned">
|
||||
<p class="euiTitle euiTitle--small euiStat__title ng-binding" style="font-size: 1.15rem;">Remediation</p>
|
||||
<p class="euiTitle euiTitle--small euiStat__title ng-binding"
|
||||
style="font-size: 1.15rem;">Remediation</p>
|
||||
<div class="euiText euiText--small euiStat__description wz-text-gray">
|
||||
<p>{{item.remediation}}</p>
|
||||
</div>
|
||||
@ -268,18 +302,22 @@
|
||||
</div>
|
||||
<div class="euiFlexItem euiFlexItem--flexGrowZero" ng-if="item.directory">
|
||||
<div class="euiStat euiStat--leftAligned">
|
||||
<p class="euiTitle euiTitle--small euiStat__title ng-binding" style="font-size: 1.15rem;">Path(s)</p>
|
||||
<p class="euiTitle euiTitle--small euiStat__title ng-binding"
|
||||
style="font-size: 1.15rem;">Path(s)</p>
|
||||
<div class="euiText euiText--small euiStat__description wz-text-gray">
|
||||
<p>{{item.directory}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div layout="column" class="wz-margin-bottom-10"></div>
|
||||
</div>
|
||||
<div class="euiFlexItem euiFlexItem--flexGrowZero" ng-if="item.compliance && item.compliance.length">
|
||||
<div class="euiFlexItem euiFlexItem--flexGrowZero"
|
||||
ng-if="item.compliance && item.compliance.length">
|
||||
<div class="euiStat euiStat--leftAligned">
|
||||
<p class="euiTitle euiTitle--small euiStat__title ng-binding" style="font-size: 1.15rem;">Compliance</p>
|
||||
<p class="euiTitle euiTitle--small euiStat__title ng-binding"
|
||||
style="font-size: 1.15rem;">Compliance</p>
|
||||
<div class="euiText euiText--small euiStat__description wz-text-gray">
|
||||
<p><span class="wz-padding-right-8" ng-repeat="c in item.compliance">{{c.key}}/{{c.value}}</span>
|
||||
<p><span class="wz-padding-right-8"
|
||||
ng-repeat="c in item.compliance">{{c.key}}/{{c.value}}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@ -302,8 +340,8 @@
|
||||
<a href ng-click="prevPage()">« Prev</a>
|
||||
</li>
|
||||
|
||||
<li ng-repeat="n in range(pagedItems.length, currentPage, currentPage + gap) " ng-class="{'wz-text-active': n == currentPage}"
|
||||
ng-click="setPage()" class="md-padding">
|
||||
<li ng-repeat="n in range(pagedItems.length, currentPage, currentPage + gap) "
|
||||
ng-class="{'wz-text-active': n == currentPage}" ng-click="setPage()" class="md-padding">
|
||||
<a href ng-bind="n + 1">1</a>
|
||||
</li>
|
||||
|
||||
@ -318,21 +356,25 @@
|
||||
</div>
|
||||
|
||||
<div ng-if="!wazuh_table_loading && isSyscheck()" ng-show="!error && items.length">
|
||||
<table class="table table-striped table-striped-duo table-condensed table-hover no-margin-bottom" ng-class="customColumns ? 'table-resizable' : ''"
|
||||
style="table-layout: fixed !important" id="table{{scapepath}}">
|
||||
<table class="table table-striped table-striped-duo table-condensed table-hover no-margin-bottom"
|
||||
ng-class="customColumns ? 'table-resizable' : ''" style="table-layout: fixed !important"
|
||||
id="table{{scapepath}}">
|
||||
<thead class="wz-text-bold">
|
||||
<th ng-repeat="key in keys" class="wz-text-left" ng-style="key.width && {'width':key.width}">
|
||||
<span ng-class="{ 'cursor-pointer' : !key.nosortable }" ng-click="!key.nosortable && sort(key)">{{
|
||||
keyEquivalence[key.value || key] || key.value || key }}
|
||||
<i ng-if="!key.nosortable" class="fa wz-theader-sort-icon" ng-class="sortValue === (key.value || key) ? (sortDir ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'"
|
||||
<i ng-if="!key.nosortable" class="fa wz-theader-sort-icon"
|
||||
ng-class="sortValue === (key.value || key) ? (sortDir ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'"
|
||||
aria-hidden="true"></i>
|
||||
</span>
|
||||
</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="wz-word-wrap cursor-pointer" ng-repeat-start="item in pagedItems[currentPage] | filter:{item:'!'}"
|
||||
ng-click="expandTableRow(item)" ng-class="{'selected': item.expanded}">
|
||||
<td ng-repeat="key in keys" id="td-{{$parent.$index}}-{{$index}}" ng-mouseover="showTooltip($parent.$index, $index, item)">
|
||||
<tr class="wz-word-wrap cursor-pointer"
|
||||
ng-repeat-start="item in pagedItems[currentPage] | filter:{item:'!'}" ng-click="expandTableRow(item)"
|
||||
ng-class="{'selected': item.expanded}">
|
||||
<td ng-repeat="key in keys" id="td-{{$parent.$index}}-{{$index}}"
|
||||
ng-mouseover="showTooltip($parent.$index, $index, item)">
|
||||
<div class="wz-text-truncatable">
|
||||
<span>
|
||||
{{
|
||||
@ -345,7 +387,8 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="wz-word-wrap cursor-pointer selected" ng-show="item.expanded" ng-repeat-end="" ng-click="expandTableRow(item)">
|
||||
<tr class="wz-word-wrap cursor-pointer selected" ng-show="item.expanded" ng-repeat-end=""
|
||||
ng-click="expandTableRow(item)">
|
||||
<td colspan="{{keys.length}}" style="border-top: none">
|
||||
<div layout="row" layout-padding="" class="layout-padding layout-row" ng-if="item.expanded">
|
||||
<md-card flex="" class="wz-md-card wz-padding-top-0 wz-padding-bottom-0 wz-no-margin _md flex">
|
||||
@ -353,7 +396,8 @@
|
||||
<div layout="row" class="wz-padding-top-10">
|
||||
<table class="table table-striped table-condensed">
|
||||
<tbody>
|
||||
<tr ng-repeat="(key, value) in item" ng-if="key !== 'expanded' && key !== 'showTooltip'"
|
||||
<tr ng-repeat="(key, value) in item"
|
||||
ng-if="key !== 'expanded' && key !== 'showTooltip'"
|
||||
ng-show="!isWindows() || (key !== 'inode' && key !== 'gid' && key !== 'gname')"
|
||||
class="no-duo">
|
||||
<td class="wz-word-break-rule">{{key}}</td>
|
||||
@ -381,8 +425,8 @@
|
||||
<a href ng-click="prevPage()">« Prev</a>
|
||||
</li>
|
||||
|
||||
<li ng-repeat="n in range(pagedItems.length, currentPage, currentPage + gap) " ng-class="{'wz-text-active': n == currentPage}"
|
||||
ng-click="setPage()" class="md-padding">
|
||||
<li ng-repeat="n in range(pagedItems.length, currentPage, currentPage + gap) "
|
||||
ng-class="{'wz-text-active': n == currentPage}" ng-click="setPage()" class="md-padding">
|
||||
<a href ng-bind="n + 1">1</a>
|
||||
</li>
|
||||
|
||||
@ -399,10 +443,12 @@
|
||||
<div layout="row" ng-if="!error && !wazuh_table_loading && !totalItems">
|
||||
<div flex class="euiCallOut euiCallOut--warning">
|
||||
<div class="euiCallOutHeader">
|
||||
<svg class="euiIcon euiIcon--medium euiCallOutHeader__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
||||
<svg class="euiIcon euiIcon--medium euiCallOutHeader__icon" aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"
|
||||
viewBox="0 0 16 16">
|
||||
<defs>
|
||||
<path id="help-a" d="M13.6 12.186l-1.357-1.358c-.025-.025-.058-.034-.084-.056.53-.794.84-1.746.84-2.773a4.977 4.977 0 0 0-.84-2.772c.026-.02.059-.03.084-.056L13.6 3.813a6.96 6.96 0 0 1 0 8.373zM8 15A6.956 6.956 0 0 1 3.814 13.6l1.358-1.358c.025-.025.034-.057.055-.084C6.02 12.688 6.974 13 8 13a4.978 4.978 0 0 0 2.773-.84c.02.026.03.058.056.083l1.357 1.358A6.956 6.956 0 0 1 8 15zm-5.601-2.813a6.963 6.963 0 0 1 0-8.373l1.359 1.358c.024.025.057.035.084.056A4.97 4.97 0 0 0 3 8c0 1.027.31 1.98.842 2.773-.027.022-.06.031-.084.056l-1.36 1.358zm5.6-.187A4 4 0 1 1 8 4a4 4 0 0 1 0 8zM8 1c1.573 0 3.019.525 4.187 1.4l-1.357 1.358c-.025.025-.035.057-.056.084A4.979 4.979 0 0 0 8 3a4.979 4.979 0 0 0-2.773.842c-.021-.027-.03-.059-.055-.084L3.814 2.4A6.957 6.957 0 0 1 8 1zm0-1a8.001 8.001 0 1 0 .003 16.002A8.001 8.001 0 0 0 8 0z">
|
||||
<path id="help-a"
|
||||
d="M13.6 12.186l-1.357-1.358c-.025-.025-.058-.034-.084-.056.53-.794.84-1.746.84-2.773a4.977 4.977 0 0 0-.84-2.772c.026-.02.059-.03.084-.056L13.6 3.813a6.96 6.96 0 0 1 0 8.373zM8 15A6.956 6.956 0 0 1 3.814 13.6l1.358-1.358c.025-.025.034-.057.055-.084C6.02 12.688 6.974 13 8 13a4.978 4.978 0 0 0 2.773-.84c.02.026.03.058.056.083l1.357 1.358A6.956 6.956 0 0 1 8 15zm-5.601-2.813a6.963 6.963 0 0 1 0-8.373l1.359 1.358c.024.025.057.035.084.056A4.97 4.97 0 0 0 3 8c0 1.027.31 1.98.842 2.773-.027.022-.06.031-.084.056l-1.36 1.358zm5.6-.187A4 4 0 1 1 8 4a4 4 0 0 1 0 8zM8 1c1.573 0 3.019.525 4.187 1.4l-1.357 1.358c-.025.025-.035.057-.056.084A4.979 4.979 0 0 0 8 3a4.979 4.979 0 0 0-2.773.842c-.021-.027-.03-.059-.055-.084L3.814 2.4A6.957 6.957 0 0 1 8 1zm0-1a8.001 8.001 0 1 0 .003 16.002A8.001 8.001 0 0 0 8 0z">
|
||||
</path>
|
||||
</defs>
|
||||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#help-a" fill-rule="evenodd"></use>
|
||||
@ -415,10 +461,12 @@
|
||||
<div layout="row" ng-if="error" class="wz-margin-bottom-45">
|
||||
<div flex class="euiCallOut euiCallOut--warning">
|
||||
<div class="euiCallOutHeader">
|
||||
<svg class="euiIcon euiIcon--medium euiCallOutHeader__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16">
|
||||
<svg class="euiIcon euiIcon--medium euiCallOutHeader__icon" aria-hidden="true"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"
|
||||
viewBox="0 0 16 16">
|
||||
<defs>
|
||||
<path id="help-a" d="M13.6 12.186l-1.357-1.358c-.025-.025-.058-.034-.084-.056.53-.794.84-1.746.84-2.773a4.977 4.977 0 0 0-.84-2.772c.026-.02.059-.03.084-.056L13.6 3.813a6.96 6.96 0 0 1 0 8.373zM8 15A6.956 6.956 0 0 1 3.814 13.6l1.358-1.358c.025-.025.034-.057.055-.084C6.02 12.688 6.974 13 8 13a4.978 4.978 0 0 0 2.773-.84c.02.026.03.058.056.083l1.357 1.358A6.956 6.956 0 0 1 8 15zm-5.601-2.813a6.963 6.963 0 0 1 0-8.373l1.359 1.358c.024.025.057.035.084.056A4.97 4.97 0 0 0 3 8c0 1.027.31 1.98.842 2.773-.027.022-.06.031-.084.056l-1.36 1.358zm5.6-.187A4 4 0 1 1 8 4a4 4 0 0 1 0 8zM8 1c1.573 0 3.019.525 4.187 1.4l-1.357 1.358c-.025.025-.035.057-.056.084A4.979 4.979 0 0 0 8 3a4.979 4.979 0 0 0-2.773.842c-.021-.027-.03-.059-.055-.084L3.814 2.4A6.957 6.957 0 0 1 8 1zm0-1a8.001 8.001 0 1 0 .003 16.002A8.001 8.001 0 0 0 8 0z">
|
||||
<path id="help-a"
|
||||
d="M13.6 12.186l-1.357-1.358c-.025-.025-.058-.034-.084-.056.53-.794.84-1.746.84-2.773a4.977 4.977 0 0 0-.84-2.772c.026-.02.059-.03.084-.056L13.6 3.813a6.96 6.96 0 0 1 0 8.373zM8 15A6.956 6.956 0 0 1 3.814 13.6l1.358-1.358c.025-.025.034-.057.055-.084C6.02 12.688 6.974 13 8 13a4.978 4.978 0 0 0 2.773-.84c.02.026.03.058.056.083l1.357 1.358A6.956 6.956 0 0 1 8 15zm-5.601-2.813a6.963 6.963 0 0 1 0-8.373l1.359 1.358c.024.025.057.035.084.056A4.97 4.97 0 0 0 3 8c0 1.027.31 1.98.842 2.773-.027.022-.06.031-.084.056l-1.36 1.358zm5.6-.187A4 4 0 1 1 8 4a4 4 0 0 1 0 8zM8 1c1.573 0 3.019.525 4.187 1.4l-1.357 1.358c-.025.025-.035.057-.056.084A4.979 4.979 0 0 0 8 3a4.979 4.979 0 0 0-2.773.842c-.021-.027-.03-.059-.055-.084L3.814 2.4A6.957 6.957 0 0 1 8 1zm0-1a8.001 8.001 0 1 0 .003 16.002A8.001 8.001 0 0 0 8 0z">
|
||||
</path>
|
||||
</defs>
|
||||
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#help-a" fill-rule="evenodd"></use>
|
||||
|
@ -87,27 +87,6 @@
|
||||
<span flex><i class="fa fa-fw fa-warning"></i> No scans available.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div layout="row" class="md-padding layout-align-center" ng-if="!load && !lookingSca && policies.length">
|
||||
<md-card class="wz-md-card">
|
||||
<md-card-actions layout="row" class="wz-card-actions wz-card-actions-top"
|
||||
style="padding-top:14px !important">
|
||||
<span class="wz-headline-title">Total</span>
|
||||
</md-card-actions>
|
||||
<md-card-content>
|
||||
<div id="sca_chart_pass_vs_fail" class="sca-chart"></div>
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
<md-card class="wz-md-card" ng-repeat="policy in policies">
|
||||
<md-card-actions layout="row" class="wz-card-actions wz-card-actions-top"
|
||||
style="padding-top:14px !important">
|
||||
<span class="wz-headline-title">{{policy.name}}</span>
|
||||
</md-card-actions>
|
||||
<md-card-content>
|
||||
<div id="sca_chart_{{policy.policy_id}}" class="sca-chart"></div>
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
|
||||
</div>
|
||||
|
||||
<div layout="row" class="wz-margin-top-10" ng-if="agent && agent.os && lookingSca">
|
||||
<md-card flex class="wz-md-card">
|
||||
@ -134,12 +113,11 @@
|
||||
<div layout="row" class="wz-margin-top-16 wz-margin-bottom-40-inv">
|
||||
<wz-table custom-columns="true" flex path="'/sca/' + agent.id + '/checks/' + lookingSca.id"
|
||||
row-sizes="[16,14,12]" extra-limit="100"
|
||||
keys="[{value: 'id', width: '75px'},'title', 'file', 'result']">
|
||||
keys="[{value: 'id', width: '75px'},'title', {value:'file', width:'250px'}, {value: 'result', width: '200px'}]">
|
||||
</wz-table>
|
||||
</div>
|
||||
</md-card-content>
|
||||
<md-card-actions layout="row" layout-align="end center"
|
||||
class="layout-align-end-center layout-row">
|
||||
<md-card-actions layout="row" layout-align="end center" class="layout-align-end-center layout-row">
|
||||
<button type="button"
|
||||
ng-click="downloadCsv('/sca/' + agent.id + '/checks/' + lookingSca.id, lookingSca.id + '.csv')"
|
||||
class="euiButtonEmpty euiButtonEmpty--primary euiButtonEmpty--small">
|
||||
|
Loading…
Reference in New Issue
Block a user