Skip to content

Commit

Permalink
Merge pull request #74 from Sandeep-kumar-Ramesh/graph_visualization
Browse files Browse the repository at this point in the history
Initial graph visualization
  • Loading branch information
Sandeep-kumar-Ramesh authored May 28, 2024
2 parents 1aa7a2d + 367ba58 commit 3b09eee
Show file tree
Hide file tree
Showing 10 changed files with 415 additions and 27 deletions.
157 changes: 156 additions & 1 deletion Project/frontend/package-lock.json

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

10 changes: 9 additions & 1 deletion Project/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@
"preview": "vite preview"
},
"dependencies": {
"@react-sigma/core": "4.0.2",
"filepond-plugin-file-validate-type": "^1.2.9",
"graphology": "*",
"loader-utils": "3.2.1",
"prop-types": "15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-filepond": "^7.1.2"
"react-filepond": "^7.1.2",
"react-router-dom": "^6.23.1",
"react-sigma": "*",
"sigma": "3.0.0-beta.16",
"@sigma/edge-curve": "*"
},
"devDependencies": {
"@types/node": "^20.12.12",
Expand Down
27 changes: 26 additions & 1 deletion Project/frontend/src/components/App/index.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
html {
box-sizing: border-box;
font-size: 16px;
}

*, *:before, *:after {
box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
margin: 0;
padding: 0;
font-weight: normal;
}

ol, ul {
list-style: none;
}

img {
max-width: 100%;
height: auto;
}

body {
background: white;
color: black;

}

#root {
max-width: 1280px;
margin: 0 auto;
Expand All @@ -21,4 +45,5 @@ body {
flex-direction: column;
align-items: center;
gap: 20px;
margin: 20px;
}
28 changes: 19 additions & 9 deletions Project/frontend/src/components/App/index.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
import logo from "../../assets/team-logo.svg";
import Upload from "../Upload";

import {
BrowserRouter as Router,
Routes,
Route,
} from "react-router-dom";

import Home from "../Home";
import Graph from "../Graph";
import "./index.css";

function App() {
return (
<main className="main_wrapper">

<header>
<h2>AMOS Project SS24 - Knowledge Graph Extractor</h2>
</header>
<img className="logo" src={logo} alt="" />
<Upload />
<Router>
<Routes>
<Route
path="/"
element={<Home />}
/>
<Route
path="/graph"
element={<Graph />}
/>
</Routes>
</Router>
</main>
);
}
Expand Down
11 changes: 11 additions & 0 deletions Project/frontend/src/components/Graph/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.graph_container {
flex-direction: column;
gap: 50px;
text-align: center;
justify-content: center;
align-items: center;
}

.react-sigma-controls {
margin-right: -45%;
}
Loading

0 comments on commit 3b09eee

Please sign in to comment.