Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Adds Kibana Visualizations Support #414

Merged
merged 1 commit into from
Aug 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ const DashboardSideNav = () => {
</li>
<hr />
<li>
<Link className="link" to="/dashboard/search">
<Link className="link" to="/dashboard/visualizations">
Search
</Link>
</li>
<hr />
<li>
<Link className="link" to="/dashboard/visualizations">
Visualizations
</Link>
</li>
<hr />
</ul>
</div>
)
Expand Down
2 changes: 2 additions & 0 deletions fact-bounty-client/src/constants/KibanaConstants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions fact-bounty-client/src/pages/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import PostDetailView from '../PostDetailView'
import TwitterGraph from '../TwitterGraph'
import DashboardSideNav from '../../components/DashboardSideNav'
import Search from '../Search'
import KibanaDashboard from '../KibanaDashboard'

class Dashboard extends Component {
render() {
Expand Down Expand Up @@ -44,6 +45,11 @@ class Dashboard extends Component {
component={TwitterGraph}
/>
<Route exact path={`${match.url}/search`} component={Search} />
<Route
exact
path={`${match.url}/visualizations`}
component={KibanaDashboard}
/>
</Switch>
</div>
</div>
Expand Down
31 changes: 31 additions & 0 deletions fact-bounty-client/src/pages/KibanaDashboard/Search.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React, { Component, Fragment } from 'react'
import {
KIBANA_DEV_DASHBOARD,
KIBANA_PROD_DASHBOARD
} from '../../constants/KibanaConstants'
import './style.sass'

class KibanaDashboard extends Component {
render() {
return (
<Fragment>
<div className="container kibana-dashboard-wrapper">
<div className="header">
<h1>Visualizations</h1>
</div>
<hr />
<iframe
title="Kibana Dashboard"
src={KIBANA_DEV_DASHBOARD}
height="1000px"
width="100%"
/>
</div>
</Fragment>
)
}
}

KibanaDashboard.propTypes = {}

export default KibanaDashboard
2 changes: 2 additions & 0 deletions fact-bounty-client/src/pages/KibanaDashboard/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import KibanaDashboard from './Search'
export default KibanaDashboard
14 changes: 14 additions & 0 deletions fact-bounty-client/src/pages/KibanaDashboard/style.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.kibana-dashboard-wrapper
.header
padding: 20px 0px 10px 0px
display: flex
justify-content: space-between
align-items: center
input
width: 300px;
box-shadow: 1px 1px 15px rgba(0, 0, 0, .1)
border: none
border-radius: 3px
padding: 10px
.hr
margin-bottom: 40px