mike dupont
commited on
Commit
·
9751a50
1
Parent(s):
095c360
wip
Browse files- frontend/package-lock.json +58 -6
- frontend/package.json +2 -0
- frontend/src/App.js +25 -1
frontend/package-lock.json
CHANGED
@@ -8,10 +8,12 @@
|
|
8 |
"name": "introspector",
|
9 |
"version": "0.1.0",
|
10 |
"dependencies": {
|
|
|
11 |
"@nextui-org/react": "^2.4.8",
|
12 |
"@testing-library/jest-dom": "^5.17.0",
|
13 |
"@testing-library/react": "^13.4.0",
|
14 |
"@testing-library/user-event": "^13.5.0",
|
|
|
15 |
"react": "^18.3.1",
|
16 |
"react-dom": "^18.3.1",
|
17 |
"react-scripts": "^5.0.1",
|
@@ -675,10 +677,17 @@
|
|
675 |
}
|
676 |
},
|
677 |
"node_modules/@babel/plugin-proposal-private-property-in-object": {
|
678 |
-
"version": "7.21.
|
679 |
-
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.
|
680 |
-
"integrity": "sha512-
|
|
|
681 |
"license": "MIT",
|
|
|
|
|
|
|
|
|
|
|
|
|
682 |
"engines": {
|
683 |
"node": ">=6.9.0"
|
684 |
},
|
@@ -2019,6 +2028,18 @@
|
|
2019 |
"@babel/core": "^7.0.0-0"
|
2020 |
}
|
2021 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022 |
"node_modules/@babel/preset-env/node_modules/semver": {
|
2023 |
"version": "6.3.1",
|
2024 |
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
@@ -9169,6 +9190,31 @@
|
|
9169 |
"node": ">=4"
|
9170 |
}
|
9171 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9172 |
"node_modules/axobject-query": {
|
9173 |
"version": "4.1.0",
|
9174 |
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",
|
@@ -11757,9 +11803,9 @@
|
|
11757 |
}
|
11758 |
},
|
11759 |
"node_modules/eslint-plugin-react": {
|
11760 |
-
"version": "7.37.
|
11761 |
-
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.
|
11762 |
-
"integrity": "sha512-
|
11763 |
"license": "MIT",
|
11764 |
"dependencies": {
|
11765 |
"array-includes": "^3.1.8",
|
@@ -19359,6 +19405,12 @@
|
|
19359 |
"node": ">= 0.10"
|
19360 |
}
|
19361 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
19362 |
"node_modules/psl": {
|
19363 |
"version": "1.9.0",
|
19364 |
"resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz",
|
|
|
8 |
"name": "introspector",
|
9 |
"version": "0.1.0",
|
10 |
"dependencies": {
|
11 |
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
12 |
"@nextui-org/react": "^2.4.8",
|
13 |
"@testing-library/jest-dom": "^5.17.0",
|
14 |
"@testing-library/react": "^13.4.0",
|
15 |
"@testing-library/user-event": "^13.5.0",
|
16 |
+
"axios": "^1.7.7",
|
17 |
"react": "^18.3.1",
|
18 |
"react-dom": "^18.3.1",
|
19 |
"react-scripts": "^5.0.1",
|
|
|
677 |
}
|
678 |
},
|
679 |
"node_modules/@babel/plugin-proposal-private-property-in-object": {
|
680 |
+
"version": "7.21.11",
|
681 |
+
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz",
|
682 |
+
"integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==",
|
683 |
+
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.",
|
684 |
"license": "MIT",
|
685 |
+
"dependencies": {
|
686 |
+
"@babel/helper-annotate-as-pure": "^7.18.6",
|
687 |
+
"@babel/helper-create-class-features-plugin": "^7.21.0",
|
688 |
+
"@babel/helper-plugin-utils": "^7.20.2",
|
689 |
+
"@babel/plugin-syntax-private-property-in-object": "^7.14.5"
|
690 |
+
},
|
691 |
"engines": {
|
692 |
"node": ">=6.9.0"
|
693 |
},
|
|
|
2028 |
"@babel/core": "^7.0.0-0"
|
2029 |
}
|
2030 |
},
|
2031 |
+
"node_modules/@babel/preset-env/node_modules/@babel/plugin-proposal-private-property-in-object": {
|
2032 |
+
"version": "7.21.0-placeholder-for-preset-env.2",
|
2033 |
+
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz",
|
2034 |
+
"integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==",
|
2035 |
+
"license": "MIT",
|
2036 |
+
"engines": {
|
2037 |
+
"node": ">=6.9.0"
|
2038 |
+
},
|
2039 |
+
"peerDependencies": {
|
2040 |
+
"@babel/core": "^7.0.0-0"
|
2041 |
+
}
|
2042 |
+
},
|
2043 |
"node_modules/@babel/preset-env/node_modules/semver": {
|
2044 |
"version": "6.3.1",
|
2045 |
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
|
|
9190 |
"node": ">=4"
|
9191 |
}
|
9192 |
},
|
9193 |
+
"node_modules/axios": {
|
9194 |
+
"version": "1.7.7",
|
9195 |
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
|
9196 |
+
"integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
|
9197 |
+
"license": "MIT",
|
9198 |
+
"dependencies": {
|
9199 |
+
"follow-redirects": "^1.15.6",
|
9200 |
+
"form-data": "^4.0.0",
|
9201 |
+
"proxy-from-env": "^1.1.0"
|
9202 |
+
}
|
9203 |
+
},
|
9204 |
+
"node_modules/axios/node_modules/form-data": {
|
9205 |
+
"version": "4.0.0",
|
9206 |
+
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
|
9207 |
+
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
|
9208 |
+
"license": "MIT",
|
9209 |
+
"dependencies": {
|
9210 |
+
"asynckit": "^0.4.0",
|
9211 |
+
"combined-stream": "^1.0.8",
|
9212 |
+
"mime-types": "^2.1.12"
|
9213 |
+
},
|
9214 |
+
"engines": {
|
9215 |
+
"node": ">= 6"
|
9216 |
+
}
|
9217 |
+
},
|
9218 |
"node_modules/axobject-query": {
|
9219 |
"version": "4.1.0",
|
9220 |
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",
|
|
|
11803 |
}
|
11804 |
},
|
11805 |
"node_modules/eslint-plugin-react": {
|
11806 |
+
"version": "7.37.1",
|
11807 |
+
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.1.tgz",
|
11808 |
+
"integrity": "sha512-xwTnwDqzbDRA8uJ7BMxPs/EXRB3i8ZfnOIp8BsxEQkT0nHPp+WWceqGgo6rKb9ctNi8GJLDT4Go5HAWELa/WMg==",
|
11809 |
"license": "MIT",
|
11810 |
"dependencies": {
|
11811 |
"array-includes": "^3.1.8",
|
|
|
19405 |
"node": ">= 0.10"
|
19406 |
}
|
19407 |
},
|
19408 |
+
"node_modules/proxy-from-env": {
|
19409 |
+
"version": "1.1.0",
|
19410 |
+
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
|
19411 |
+
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
|
19412 |
+
"license": "MIT"
|
19413 |
+
},
|
19414 |
"node_modules/psl": {
|
19415 |
"version": "1.9.0",
|
19416 |
"resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz",
|
frontend/package.json
CHANGED
@@ -3,10 +3,12 @@
|
|
3 |
"version": "0.1.0",
|
4 |
"private": true,
|
5 |
"dependencies": {
|
|
|
6 |
"@nextui-org/react": "^2.4.8",
|
7 |
"@testing-library/jest-dom": "^5.17.0",
|
8 |
"@testing-library/react": "^13.4.0",
|
9 |
"@testing-library/user-event": "^13.5.0",
|
|
|
10 |
"react": "^18.3.1",
|
11 |
"react-dom": "^18.3.1",
|
12 |
"react-scripts": "^5.0.1",
|
|
|
3 |
"version": "0.1.0",
|
4 |
"private": true,
|
5 |
"dependencies": {
|
6 |
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
7 |
"@nextui-org/react": "^2.4.8",
|
8 |
"@testing-library/jest-dom": "^5.17.0",
|
9 |
"@testing-library/react": "^13.4.0",
|
10 |
"@testing-library/user-event": "^13.5.0",
|
11 |
+
"axios": "^1.7.7",
|
12 |
"react": "^18.3.1",
|
13 |
"react-dom": "^18.3.1",
|
14 |
"react-scripts": "^5.0.1",
|
frontend/src/App.js
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
import logo from './logo.svg';
|
2 |
import './App.css';
|
|
|
|
|
|
|
3 |
import {
|
4 |
Table,
|
5 |
TableHeader,
|
@@ -10,6 +13,21 @@ import {
|
|
10 |
} from "@nextui-org/table";
|
11 |
|
12 |
function App() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
return (
|
14 |
<div className="App">
|
15 |
<header className="App-header">
|
@@ -46,7 +64,13 @@ function App() {
|
|
46 |
<pre><code>Tweets</code></pre></TableCell>
|
47 |
<TableCell><a href="https://x.com/introsp3ctor">Twitter</a></TableCell>
|
48 |
</TableRow>
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
</TableBody>
|
52 |
</Table>
|
|
|
1 |
import logo from './logo.svg';
|
2 |
import './App.css';
|
3 |
+
import axios from "axios";
|
4 |
+
import { useState } from 'react';
|
5 |
+
import { useEffect } from 'react';
|
6 |
import {
|
7 |
Table,
|
8 |
TableHeader,
|
|
|
13 |
} from "@nextui-org/table";
|
14 |
|
15 |
function App() {
|
16 |
+
|
17 |
+
const [statements, setStatements] = useState([]);
|
18 |
+
|
19 |
+
// function to fetch all statements from BE
|
20 |
+
useEffect(() => {
|
21 |
+
axios
|
22 |
+
.get("http://localhost:7860/data")
|
23 |
+
.then((response) => {
|
24 |
+
setStatements(response.data);
|
25 |
+
})
|
26 |
+
.catch((error) => {
|
27 |
+
console.log("There was an error retrieving the statement list: ", error);
|
28 |
+
});
|
29 |
+
}, []);
|
30 |
+
|
31 |
return (
|
32 |
<div className="App">
|
33 |
<header className="App-header">
|
|
|
64 |
<pre><code>Tweets</code></pre></TableCell>
|
65 |
<TableCell><a href="https://x.com/introsp3ctor">Twitter</a></TableCell>
|
66 |
</TableRow>
|
67 |
+
|
68 |
+
<TableRow key="statements">
|
69 |
+
<TableCell>
|
70 |
+
<pre><code>RDF Statements of knowledge from api</code></pre></TableCell>
|
71 |
+
<TableCell> {statements} </TableCell>
|
72 |
+
</TableRow>
|
73 |
+
|
74 |
|
75 |
</TableBody>
|
76 |
</Table>
|