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

Knowledge graph UI test #100

Open
wants to merge 7 commits into
base: development
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions knox-ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import Header from './Shared_components/Header.js';
//import VA from './Shared_components/VirtualAssistant.js';
import Home from './Main_components/Home.js';
import KnowledgeGraph from './Main_components/KnowledgeGraph.js';
import {
BrowserRouter as Router,
Switch,
Expand Down Expand Up @@ -33,6 +34,9 @@ function App() {
<Route path="/factchecker">
<FactChecker/>
</Route>
<Route path="/KnowledgeGraph">
<KnowledgeGraph/>
</Route>
<Route path="/status">
<Status/>
</Route>
Expand Down
90 changes: 90 additions & 0 deletions knox-ui/src/Css/KnowledgeGraph.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
.ContentOfPage {
width: 100%;
height: 100%;
padding: 0 7% 0 7%;
display: inline-block;
text-align: center;
align-content: center;
}

#tableblock{
display: block;
height: 75vh;
width: 100%;
overflow-y: scroll;
border:1px solid black;
text-align: center;
align-content: center;
margin-bottom: 25vh;
}
#table {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
text-align: center;

}

#table td, #table th {
border: 1px solid #ddd;
padding: 8px;
width: 33%;
}

#table tr:nth-child(even){background-color: #f2f2f2;}

#table tr:hover {background-color: #ddd;}

#table th {
padding-top: 12px;
padding-bottom: 12px;
text-align: center;
background-color: rgb(36, 37, 38);
color: white;
}
#tableblock::-webkit-scrollbar {
display: none;
}
html::-webkit-scrollbar {
display: none;
}


.node {
stroke: #fff;
fill:#ddd;
stroke-width: 1.5px;
}

.link {
fill: none;
stroke: #999;
stroke-opacity: .6;
stroke-width: 1px;
}

marker {
stroke: #999;
fill:rgba(124,240,10,0);
}

.node-text {
font: 11px sans-serif;
fill:black;
}

.link-text {
font: 9px sans-serif;
fill:grey;
}

#kl{
width: 100%;
height: 100vh;
padding: 0px;
margin: 0px;
border:1px solid black;
}



Loading