Skip to content

Commit 8092159

Browse files
new parent image (#53)
* new parent image * Fixed vunterabilities when npm install
1 parent e21e254 commit 8092159

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM kernai/refinery-parent-images:v1.20.0-next
1+
FROM kernai/refinery-parent-images:v1.21.0-next
22

33
WORKDIR /app
44
COPY package*.json /app/

dev.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM kernai/refinery-parent-images:v1.20.0-next
1+
FROM kernai/refinery-parent-images:v1.21.0-next
22

33
WORKDIR /app
44

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@
2424
"autoprefixer": "^10.4.19",
2525
"chart.js": "^4.4.3",
2626
"clsx": "^1.2.1",
27-
"d3": "^7.8.5",
28-
"d3v4": "^4.2.2",
29-
"eslint": "8.47.0",
30-
"eslint-config-next": "13.4.19",
27+
"d3": "^7.9.0",
28+
"eslint": "9.14.0",
29+
"eslint-config-next": "15.0.3",
3130
"focus-visible": "^5.2.0",
3231
"lodash.debounce": "^4.0.8",
3332
"next": "14.2.10",

src/components/projects/projectId/overview/charts/LabelDistributionBarChart.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import style from "@/src/styles/components/projects/projectId/project-overview.m
33
import { useEffect, useRef, useState } from "react";
44
import { changeDataStructure, squashData } from "@/src/util/components/projects/projectId/project-overview/charts-helper";
55
import { ChartData } from "chart.js";
6-
import * as d3 from 'd3v4';
6+
import * as d3 from 'd3';
77

88
export default function LabelDistributionBarChart(props: BarChartProps) {
99

@@ -183,11 +183,12 @@ export default function LabelDistributionBarChart(props: BarChartProps) {
183183
.on("mouseover", function (d) {
184184
divTooltip.style("opacity", 1);
185185
})
186-
.on("mousemove", function (d) {
187-
divTooltip.style("left", d3.event.pageX + 10 + "px")
188-
divTooltip.style("top", d3.event.pageY - 25 + "px")
189-
divTooltip.style("display", "inline-block")
190-
divTooltip.style("opacity", "0.9");
186+
.on("mousemove", function (event) {
187+
divTooltip.style("left", (event.pageX + 10) + "px")
188+
.style("top", (event.pageY - 25) + "px")
189+
.style("display", "inline-block")
190+
.style("opacity", "0.9");
191+
191192
var elements = document.querySelectorAll("#horizontal-grouped-bar :hover");
192193
var l = elements.length - 1;
193194

0 commit comments

Comments
 (0)