Skip to content

Commit 85a95ad

Browse files
committed
Bump versions of all libraries in UI.
1 parent 8e59bce commit 85a95ad

12 files changed

+8130
-5685
lines changed

web/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
25+
.eslintcache

web/package-lock.json

Lines changed: 8072 additions & 5622 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/package.json

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,33 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@fortawesome/fontawesome-svg-core": "^1.2.26",
7-
"@fortawesome/free-solid-svg-icons": "^5.12.0",
8-
"@fortawesome/react-fontawesome": "^0.1.8",
9-
"@material-ui/core": "^4.8.0",
10-
"@material-ui/icons": "^4.5.1",
11-
"@testing-library/jest-dom": "^4.2.4",
12-
"@testing-library/react": "^9.3.2",
13-
"@testing-library/user-event": "^7.1.2",
6+
"@fortawesome/fontawesome-svg-core": "^1.2.32",
7+
"@fortawesome/free-solid-svg-icons": "^5.15.1",
8+
"@fortawesome/react-fontawesome": "^0.1.13",
9+
"@material-ui/core": "^4.11.2",
10+
"@material-ui/icons": "^4.11.2",
11+
"@material-ui/lab": "^4.0.0-alpha.57",
12+
"@testing-library/jest-dom": "^5.11.6",
13+
"@testing-library/react": "^11.2.2",
14+
"@testing-library/user-event": "^12.5.0",
1415
"@types/axios": "^0.14.0",
15-
"@types/classnames": "^2.2.9",
16-
"@types/d3": "^5.7.2",
17-
"@types/jest": "^24.0.0",
18-
"@types/node": "^12.0.0",
19-
"@types/react": "^16.9.0",
20-
"@types/react-dom": "^16.9.0",
21-
"@types/react-measure": "^2.0.5",
22-
"@welldone-software/why-did-you-render": "^3.5.0",
23-
"axios": "^0.19.0",
16+
"@types/classnames": "^2.2.11",
17+
"@types/d3": "^6.2.0",
18+
"@types/jest": "^26.0.16",
19+
"@types/node": "^14.14.10",
20+
"@types/react": "^17.0.0",
21+
"@types/react-dom": "^17.0.0",
22+
"@types/react-measure": "^2.0.6",
23+
"@welldone-software/why-did-you-render": "^6.0.3",
24+
"axios": "^0.21.0",
2425
"classnames": "^2.2.6",
25-
"d3": "^5.14.2",
26-
"material-table": "^1.54.2",
27-
"react": "^16.12.0",
28-
"react-dom": "^16.12.0",
29-
"react-measure": "^2.3.0",
30-
"react-scripts": "3.3.0",
31-
"typescript": "~3.7.2"
26+
"d3": "^6.3.0",
27+
"material-table": "^1.69.2",
28+
"react": "^17.0.1",
29+
"react-dom": "^17.0.1",
30+
"react-measure": "^2.5.2",
31+
"react-scripts": "4.0.1",
32+
"typescript": "~4.1.2"
3233
},
3334
"scripts": {
3435
"start": "react-scripts start",
@@ -52,4 +53,4 @@
5253
]
5354
},
5455
"proxy": "http://graphkb:8080"
55-
}
56+
}

web/src/components/D3Graph.tsx

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,10 @@ const D3Graph = <Node extends NodeLike, Edge extends EdgeLike>(props: Props<Node
160160
const zoom = d3.zoom()
161161
.scaleExtent([0.5, 2])
162162
.translateExtent([[-5000, -5000], [5000 + bounds.width, 5000 + bounds.height]])
163-
.on("zoom", zoomed);
164-
165-
function zoomed() {
166-
graph.attr("transform", d3.event.transform);
167-
}
163+
.on("zoom", function zoomed(e) {
164+
graph.attr("transform", e.transform);
165+
}
166+
);
168167

169168
svg.call(zoom as any).on("dblclick.zoom", null);
170169
}, [bounds]);
@@ -238,8 +237,8 @@ const D3Graph = <Node extends NodeLike, Edge extends EdgeLike>(props: Props<Node
238237
.append("g")
239238
.attr("class", "node-group")
240239
.attr("z-index", "10")
241-
.on("mouseover", function (d) {
242-
d3.event.preventDefault();
240+
.on("mouseover", function (ev, d) {
241+
ev.preventDefault();
243242
d3.select(this).select("circle").attr("stroke", "white");
244243
d3.select(this).select("text").attr("stroke", "white");
245244
if (!hoverDisabled.current) {
@@ -340,19 +339,19 @@ const D3Graph = <Node extends NodeLike, Edge extends EdgeLike>(props: Props<Node
340339
}
341340

342341
const dragDrop: any = d3.drag()
343-
.on('start', (node: any) => {
342+
.on('start', (ev: any, node: any) => {
344343
hoverDisabled.current = true;
345-
if (!d3.event.active) simulation.alphaTarget(0.1).restart();
344+
if (!ev.active) simulation.alphaTarget(0.1).restart();
346345
node.fx = node.x;
347346
node.fy = node.y;
348347
})
349-
.on('drag', (node: any) => {
350-
node.fx = d3.event.x;
351-
node.fy = d3.event.y;
348+
.on('drag', (ev: any, node: any) => {
349+
node.fx = ev.x;
350+
node.fy = ev.y;
352351
})
353-
.on('end', (node: any) => {
352+
.on('end', (ev: any, node: any) => {
354353
hoverDisabled.current = false;
355-
if (!d3.event.active) simulation.alphaTarget(0)
354+
if (!ev.active) simulation.alphaTarget(0)
356355
node.fx = null;
357356
node.fy = null;
358357
})

web/src/components/DatabaseDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface Props {
1010
onClose: () => void;
1111
}
1212

13-
export default function (props: Props) {
13+
export default function DatabaseDialog(props: Props) {
1414
const classes = useStyles();
1515
return (
1616
<Dialog

web/src/components/GraphExplorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function relationKey(r: Relation): string {
4040
return `${r.from_id}-${r.type}-${r.to_id}`;
4141
}
4242

43-
export default function (props: Props) {
43+
export default function GraphExplorer (props: Props) {
4444
const [nodes, setNodes] = useState([] as D3Node[]);
4545
const [edges, setEdges] = useState([] as D3Link[]);
4646
const [assetHovered, setAssetHovered] = useState(undefined as Asset | undefined);

web/src/components/QueryField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface Props {
99
onSubmit: () => void;
1010
}
1111

12-
export default function (props: Props) {
12+
export default function QueryField (props: Props) {
1313
const styles = useStyles();
1414
const inputRef = useRef<HTMLInputElement>();
1515
const [cursor, setCursor] = useState({ line: 0, column: 0 } as Cursor);

web/src/components/SchemaGraphDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface Props {
1111
onClose: () => void;
1212
}
1313

14-
export default function (props: Props) {
14+
export default function SchemaGraphDialog (props: Props) {
1515
const theme = useTheme();
1616
const styles = useStyles();
1717
const [selectedSources, setSelectedSources] = useState<string[]>([]);

web/src/components/SchemaGraphExplorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface D3Link {
2121
label: string;
2222
}
2323

24-
export default function (props: Props) {
24+
export default function SchemaGraphExplorer (props: Props) {
2525
const [graph, ,] = useSchemaGraph(props.sources);
2626

2727
const nodes = graph ? graph.vertices

web/src/components/SearchField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface Props {
1515
onEnterKeyDown?: () => void;
1616
}
1717

18-
export default function (props: Props) {
18+
export default function SearchField (props: Props) {
1919
const classes = useStyles();
2020

2121
const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {

0 commit comments

Comments
 (0)