diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7267500 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +node_modules +.git +.gitignore +Dockerfile +.dockerignore +dist +npm-debug.log diff --git a/package.json b/package.json index ca982a3..f44909a 100755 --- a/package.json +++ b/package.json @@ -31,7 +31,10 @@ "reactflow": "^11.11.4", "recharts": "^2.15.1", "socket.io-client": "^4.8.1", - "vite-plugin-svgr": "^4.3.0" + "vite-plugin-svgr": "^4.3.0", + "@dnd-kit/sortable": "^10.0.0", + "@dnd-kit/utilities": "^3.2.2", + "@dnd-kit/core": "^6.3.1" }, "devDependencies": { "@eslint/js": "^9.17.0", @@ -45,4 +48,4 @@ "globals": "^15.14.0", "vite": "^7.1.0" } -} +} \ No newline at end of file diff --git a/src/Charts/LineChartComponent.jsx b/src/Charts/LineChartComponent.jsx index ee9a4e3..88e0e29 100644 --- a/src/Charts/LineChartComponent.jsx +++ b/src/Charts/LineChartComponent.jsx @@ -16,13 +16,13 @@ const formatXAxis = (tickItem) => { }; const formatTooltip = (value, name, props) => { - return [`${value.toFixed(2)}`, ` ${name}`]; + return [`${value.toFixed(2)}`, `Устройство ${name}`]; }; const LineChartComponent = ({ data = [], - multipleLines = false, - lineKey = 'device', + multipleLines = true, // По умолчанию включаем множественные линии + lineKey = 'device', // Ключ для разделения линий title, description, height = 400, @@ -30,27 +30,25 @@ const LineChartComponent = ({ }) => { if (!data || data.length === 0) return