aboutsummaryrefslogtreecommitdiffstats
path: root/graphgraph-fe
diff options
context:
space:
mode:
authorIgor Dysko <igor1.dysko@orange.com>2021-06-22 14:23:34 +0200
committerIgor Dysko <igor1.dysko@orange.com>2021-06-22 14:23:34 +0200
commit847dd464a5ccb46dae990fd36173d50839f99977 (patch)
tree3454bef1e3894d17b86739434cc469e965a2cc42 /graphgraph-fe
parent3646ed953013eab56b29abdc57a9bf29a8a8753c (diff)
Fix bugs and vulnerabilities from sonar report
Fixed bugs and vulnerabilities. Issue-ID: AAI-3280 Signed-off-by: Igor Dysko <igor1.dysko@orange.com> Change-Id: I3f64538efc1a9ef2458847bfc60280ca76cd6919
Diffstat (limited to 'graphgraph-fe')
-rw-r--r--graphgraph-fe/src/graph_settings_menu.js2
-rw-r--r--graphgraph-fe/src/requests.js16
-rw-r--r--graphgraph-fe/src/service_worker.js2
3 files changed, 10 insertions, 10 deletions
diff --git a/graphgraph-fe/src/graph_settings_menu.js b/graphgraph-fe/src/graph_settings_menu.js
index 0a6e054..583ef8e 100644
--- a/graphgraph-fe/src/graph_settings_menu.js
+++ b/graphgraph-fe/src/graph_settings_menu.js
@@ -20,7 +20,7 @@
import React from 'react';
import GraphSettings from './graph_settings.js';
-import { Navbar, Nav } from 'react-bootstrap';
+import { Navbar } from 'react-bootstrap';
import './graph_settings_menu.css';
class GraphSettingsMenu extends React.Component {
diff --git a/graphgraph-fe/src/requests.js b/graphgraph-fe/src/requests.js
index ae41f78..ec95d04 100644
--- a/graphgraph-fe/src/requests.js
+++ b/graphgraph-fe/src/requests.js
@@ -24,32 +24,32 @@ const protocol = window.location.protocol;
export function schemas () {
return `${protocol}//${host}:${port}/schemas`;
-};
+}
export function validateSchema (schema) {
return `${protocol}//${host}:${port}/schemas/${schema}/validation`;
-};
+}
export function exportSchema (schema) {
return `${protocol}//${host}:${port}/schemas/${schema}/xmiexport`;
-};
+}
export function nodeNames (schema, edgeFilter) {
return `${protocol}//${host}:${port}/schemas/${schema}/nodes?edgeFilter=${edgeFilter}`;
-};
+}
export function basicGraph (schema, node, parentHops, cousinHops, childHops, edgeFilter) {
return `${protocol}//${host}:${port}/schemas/${schema}/graph/basic?node=${node}&parentHops=${parentHops}&cousinHops=${cousinHops}&childHops=${childHops}&edgeFilter=${edgeFilter}`;
-};
+}
export function pathGraph (schema, fromNode, toNode, edgeFilter) {
return `${protocol}//${host}:${port}/schemas/${schema}/graph/paths?fromNode=${fromNode}&toNode=${toNode}&edgeFilter=${edgeFilter}`;
-};
+}
export function nodeProperty (schema, node) {
return `${protocol}//${host}:${port}/schemas/${schema}/nodes/${node}`;
-};
+}
export function edgeProperty (schema, fromNode, toNode) {
return `${protocol}//${host}:${port}/schemas/${schema}/edges?fromNode=${fromNode}&toNode=${toNode}`;
-};
+}
diff --git a/graphgraph-fe/src/service_worker.js b/graphgraph-fe/src/service_worker.js
index 0ac740b..1df74e2 100644
--- a/graphgraph-fe/src/service_worker.js
+++ b/graphgraph-fe/src/service_worker.js
@@ -143,4 +143,4 @@ export function unregister () {
registration.unregister();
});
}
-};
+}