Compare commits
No commits in common. "4eed2f364c0e801c729667b8a9fe291c4c8ad390" and "9ee15160e56350fd9a58a5157041d21fd5bd6ee2" have entirely different histories.
4eed2f364c
...
9ee15160e5
|
|
@ -145,7 +145,7 @@ const PrometheusChart = ({ metricName }) => {
|
||||||
if (socketRef.current.reconnecting) return socketRef.current;
|
if (socketRef.current.reconnecting) return socketRef.current;
|
||||||
}
|
}
|
||||||
|
|
||||||
const socket = io('http://192.168.2.39:3000/api/metrics-ws', {
|
const socket = io('http://192.168.2.39:3000/metrics-ws', {
|
||||||
transports: ['websocket'],
|
transports: ['websocket'],
|
||||||
reconnection: true,
|
reconnection: true,
|
||||||
reconnectionAttempts: Infinity,
|
reconnectionAttempts: Infinity,
|
||||||
|
|
@ -192,7 +192,7 @@ const PrometheusChart = ({ metricName }) => {
|
||||||
const rangeSeconds = end - start;
|
const rangeSeconds = end - start;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(`${import.meta.env.VITE_BACK_URL}/api/metrics`, {
|
const response = await axios.get(`${import.meta.env.VITE_BACK_URL}/metrics`, {
|
||||||
params: {
|
params: {
|
||||||
metric: metricName,
|
metric: metricName,
|
||||||
start,
|
start,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ const LoginModal = ({ onLogin, onClose }) => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Отправляем данные на бэкенд
|
// Отправляем данные на бэкенд
|
||||||
const response = await fetch(`${import.meta.env.VITE_BACK_URL}/api/auth/login`, {
|
const response = await fetch(`${import.meta.env.VITE_BACK_URL}/auth/login`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue