Skip to content

Commit

Permalink
issue ControlCore-Project#59 fixed sample url added
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahuljagwani committed Jan 24, 2023
1 parent e2f0813 commit 23f3773
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 6 deletions.
79 changes: 73 additions & 6 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"axios": "^1.2.4",
"chokidar": "^3.5.3",
"cytoscape": "^3.19.0",
"cytoscape-edgehandles": "^3.6.0",
Expand Down
13 changes: 13 additions & 0 deletions src/graph-builder/graph-core/6-server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Axios from 'axios';
import { actionType as T } from '../../reducer';
import GraphLoadSave from './5-load-save';
// import {
Expand Down Expand Up @@ -66,31 +67,43 @@ class GraphServer extends GraphLoadSave {

build() {
// TODO
Axios.post(`http://127.0.0.1:5000/build/sample?fetch=${this.getGraphML()}&apikey=${this.id}`)
.then(() => { });
if (this.serverID);
}

debug() {
// TODO
Axios.post('http://127.0.0.1:5000/debug/sample')
.then(() => { });
if (this.serverID);
}

run() {
// TODO
Axios.post('http://127.0.0.1:5000/run/sample')
.then(() => { });
if (this.serverID);
}

clear() {
// TODO
Axios.post('http://127.0.0.1:5000/clear/sample')
.then(() => { });
if (this.serverID);
}

stop() {
// TODO
Axios.post('http://127.0.0.1:5000/stop/sample')
.then(() => { });
if (this.serverID);
}

destroy() {
// TODO
Axios.post('http://127.0.0.1:5000/destroy/sample')
.then(() => { });
if (this.serverID);
}

Expand Down

0 comments on commit 23f3773

Please sign in to comment.