wazuh-kibana-app/public/templates/discover/discover.html

177 lines
7.7 KiB
HTML
Raw Normal View History

<discover-app-w class="app-container">
<!-- Local nav. -->
<wz-kbn-top-nav name="discover" config="topNavMenu">
<!-- Transcluded elements. -->
<div data-transclude-slots>
<!-- Breadcrumbs. -->
<div data-transclude-slot="topLeftCorner" class="kuiLocalBreadcrumbs">
<h1 tabindex="0" id="kui_local_breadcrumb" class="kuiLocalBreadcrumb">
<span ng-show="opts.savedSearch.id" class="kuiLocalBreadcrumb__emphasis">
<span data-test-subj="discoverCurrentQuery" ng-bind="opts.savedSearch.lastSavedTitle"></span>
2017-12-14 12:28:31 +00:00
<span
id="reload_saved_search"
aria-label="Reload Saved Search"
tooltip="Reload Saved Search"
ng-click="resetQuery()"
kbn-accessible-click
class="kuiIcon fa-undo small"
></span>&nbsp;
</span>
<span data-test-subj="discoverQueryHits" class="kuiLocalBreadcrumb__emphasis">{{(hits || 0) | number:0}}</span>
<ng-pluralize count="hits" when="{'1':'hit', 'other':'hits'}"></ng-pluralize>
</h1>
</div>
2016-09-20 19:09:50 +00:00
<!-- Search. -->
<div data-transclude-slot="bottomRow" class="fullWidth">
<query-bar
query="state.query"
app-name="'discover'"
on-submit="updateQueryAndFetch($query)"
2018-06-15 09:09:28 +00:00
index-patterns="[indexPattern]"
>
</query-bar>
</div>
</div>
</wz-kbn-top-nav>
2016-09-23 08:24:49 +00:00
<main class="container-fluid">
<div class="row">
2018-06-15 09:09:28 +00:00
<filter-bar
state="state"
index-patterns="[indexPattern]"
2018-06-15 09:09:28 +00:00
></filter-bar>
</div>
<div class="row">
<div class="col-md-2 sidebar-container collapsible-sidebar" id="discover-sidebar">
<disc-field-chooser
columns="state.columns"
hits="rows"
field-counts="fieldCounts"
index-pattern="searchSource.get('index')"
index-pattern-list="opts.indexPatternList"
state="state"
on-add-field="addColumn"
on-add-filter="filterQuery"
on-remove-field="removeColumn"
>
</disc-field-chooser>
</div>
<div class="discover-wrapper col-md-10">
<div class="discover-content">
2018-06-20 13:16:16 +00:00
<div layout="row" class="wz-margin-top-10" ng-if="resultState === 'none'">
<div flex class="euiCallOut euiCallOut--warning" data-test-subj="discoverNoResults">
<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"><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></defs><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#help-a" fill-rule="evenodd"></use></svg>
<span class="euiCallOutHeader__title">No results match your search criteria</span>
</div>
</div>
</div>
<!-- loading -->
<div ng-show="resultState === 'loading'">
2018-06-15 09:09:28 +00:00
<discover-fetch-error
ng-show="fetchError"
fetch-error="fetchError"
></discover-fetch-error>
<div
ng-hide="fetchError"
class="discover-overlay"
>
<div class="euiTitle" >
<h2>Searching</h2>
</div>
<div class="euiSpacer euiSpacer--m"></div>
<div ng-show="fetchStatus">{{fetchStatus.complete}}/{{fetchStatus.total}}</div>
</div>
</div>
<!-- result -->
<div class="results" ng-show="resultState === 'ready'">
<button
class="kuiButton kuiButton--basic kuiButton--iconText discover-skip-button"
ng-click="showAllRows(); scrollToBottom()"
>
<span class="kuiButton__inner">
<span aria-hidden="true" class="kuiButton__icon kuiIcon fa-chevron-down"></span>
<span>Skip to bottom</span>
</span>
</button>
2017-12-14 12:28:31 +00:00
<section aria-label="Histogram of found documents" class="discover-timechart" ng-if="opts.timefield">
<header>
<center class="small">
<span tooltip="To change the time, click the clock icon in the navigation bar">{{timeRange.from | moment}} - {{timeRange.to | moment}}</span>
&mdash;
<span class="results-interval form-inline">
<select
class="form-control"
ng-model="state.interval"
ng-options="interval.val as interval.display for interval in intervalOptions | filter: intervalEnabled"
ng-blur="toggleInterval()"
data-test-subj="discoverIntervalSelect"
>
</select>
2018-06-15 09:09:28 +00:00
<span ng-if="bucketInterval.scaled">
<icon-tip
content="getBucketIntervalToolTipText()"
position="'top'"
></icon-tip>
Scaled to {{ bucketInterval.description }}
</span>
</span>
</center>
</header>
<visualization
ng-if="vis && rows.length != 0"
vis="vis"
ui-state="uiState"
vis-data="visData"
show-spy-panel="true"
search-source="searchSource"
style="height: 200px"
>
</visualization>
2017-12-14 12:28:31 +00:00
</section>
2017-12-14 12:28:31 +00:00
<section class="discover-table" fixed-scroll aria-label="Documents">
<doc-table
hits="rows"
index-pattern="indexPattern"
sorting="state.sort"
columns="state.columns"
infinite-scroll="true"
filter="filterQuery"
filters="state.filters"
data-shared-item
data-title="{{opts.savedSearch.lastSavedTitle}}"
data-description="{{opts.savedSearch.description}}"
minimum-visible-rows="minimumVisibleRows"
render-complete
on-add-column="addColumn"
on-change-sort-order="setSortOrder"
on-move-column="moveColumn"
on-remove-column="removeColumn"
></doc-table>
<a tabindex="0" id="discoverBottomMarker"></a>
<div ng-if="rows.length == opts.sampleSize" class="discover-table-footer">
These are the first {{opts.sampleSize}} documents matching
your search, refine your search to see others.
<a kbn-accessible-click ng-click="scrollToTop()">Back to top.</a>
</div>
2017-12-14 12:28:31 +00:00
</section>
</div>
</div>
</div>
</div>
</main>
</discover-app-w>