mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-08 10:43:51 +00:00
83 lines
3.9 KiB
HTML
83 lines
3.9 KiB
HTML
<md-content flex ng-controller="settingsController" layout="column" style="background-color: white">
|
|
|
|
<md-content ng-init="menuNavItem = 'settings'" style="height: 75px;">
|
|
<md-nav-bar class="wazuhMenuNav" md-selected-nav-item="menuNavItem" nav-bar-aria-label="navigation menu">
|
|
<md-nav-item id="header_logo" md-nav-href="#/" name="logo" aria-hidden="true">
|
|
<img aria-hidden="true" src="/plugins/wazuh/img/logo_white.png" height="44" weight="252"></img>
|
|
</md-nav-item>
|
|
<md-nav-item md-nav-href="#/overview" name="overview">Overview</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="#/discover" name="discover">Discover</md-nav-item>
|
|
<md-nav-item md-nav-href="#/dashboards" name="dashboards">Dashboards</md-nav-item>
|
|
<a href="#/settings"><button id="settingButtonTop" class="md-primary md-button ng-scope md-ink-ripple" type="button">
|
|
<i class="fa fa-cog ng-scope" aria-hidden="true" style="font-size: 18px;"></i>
|
|
</button>
|
|
</a>
|
|
</md-nav-bar>
|
|
</md-content>
|
|
|
|
<div layout="column" layout-align="start stretch" flex="50">
|
|
|
|
<md-card layout-padding>
|
|
|
|
<h1 flex><span class="glyphicon glyphicon-floppy-save"></span> Wazuh API settings</h1>
|
|
|
|
<span layout="row" layout-align="start start">
|
|
<p flex="40" style="font-weight: bold;">API URL</p>
|
|
<p flex="20" style="font-weight: bold;">API Port</p>
|
|
<p flex="20" style="font-weight: bold;">User</p>
|
|
<p flex="20" style="font-weight: bold;">Actions</p>
|
|
|
|
|
|
</span>
|
|
|
|
<div ng-repeat="entry in apiEntries">
|
|
<span layout="row" layout-align="space-between center">
|
|
<p flex="40" ><i tooltip="Set as default Manager" class="fa fa-star" aria-hidden="true" style="color: #f39c12; font-size: 18px;"></i> {{entry._source.url}}</p>
|
|
<p flex="20" >{{entry._source.api_port}}</p>
|
|
<p flex="20" >{{entry._source.api_user}}</p>
|
|
<p flex="20" >
|
|
<i tooltip="Set as default Manager" class="fa fa-star" aria-hidden="true" style="font-size: 18px;"></i>
|
|
<i tooltip="Edit settings" class="fa fa-pencil" aria-hidden="true" style="margin-left: 7px; font-size: 18px;"></i>
|
|
<i ng-click="removeManager(entry)" tooltip="Remove manager" class="fa fa-trash" aria-hidden="true" style="margin-left: 7px;font-size: 18px;"></i>
|
|
</p>
|
|
</span>
|
|
|
|
<md-divider></md-divider>
|
|
</div>
|
|
|
|
<md-button ng-click="addManagerContainer = !addManagerContainer" type="submit" class="buttonBlueLight md-raised md-primary"><i class="fa fa-plus-circle" aria-hidden="true" style="font-size: 15px;"></i> Add new manager</md-button>
|
|
|
|
<form flex ng-submit="processForm()" layout="column" ng-show="addManagerContainer" style="margin-top: 30px; ">
|
|
<md-input-container flex>
|
|
<label flex>API Username</label>
|
|
<input flex placeholder="foo" type="text" ng-model="formData.user" aria-label="username" required></input>
|
|
</md-input-container>
|
|
<md-input-container>
|
|
<label>API Password</label>
|
|
<input placeholder="bar" type="password" ng-model="formData.password" aria-label="password" required></input>
|
|
</md-input-container>
|
|
<md-input-container>
|
|
<label>API URL</label>
|
|
<input placeholder="https://10.0.0.3" ng-model="formData.url" type="url" aria-label="full url" required></input>
|
|
</md-input-container>
|
|
<md-input-container>
|
|
<label>API Port</label>
|
|
<input placeholder="55000" ng-model="formData.port" type="text" aria-label="port" required></input>
|
|
</md-input-container>
|
|
<md-button type="submit" class="buttonBlueLight md-raised md-primary"><i class="fa fa-plus-circle" aria-hidden="true" style="font-size: 13px; margin-right: 5px; "></i>SAVE</md-button>
|
|
|
|
</form>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
<div layout="column" layout-align="center center">
|
|
<p flex style="color: green;">Wazuh RESTful API settings are configured and working. The application is ready to be used.</p>
|
|
</div>
|
|
|
|
<div flex></div>
|
|
|
|
</md-content> |