From 319af59415eefee9a596b8b7288dbf215be0a174 Mon Sep 17 00:00:00 2001 From: dekzter Date: Sun, 13 Apr 2025 09:54:58 -0400 Subject: [PATCH] fixed websocket and m3u profile form --- frontend/src/App.jsx | 115 +++++++++++++++++++------------------ frontend/src/WebSocket.jsx | 4 +- 2 files changed, 59 insertions(+), 60 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index a57cd1b0..5aa5df23 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -85,65 +85,66 @@ const App = () => { withGlobalStyles withNormalizeCSS > - - - + + + + - - - - - {isAuthenticated ? ( - <> - } /> - } /> - } /> - } /> - } /> - } /> - - ) : ( - } /> - )} - - } - /> - + + + + + {isAuthenticated ? ( + <> + } /> + } /> + } /> + } /> + } /> + } /> + + ) : ( + } /> + )} + + } + /> + + - - - - - - - + + + + + + diff --git a/frontend/src/WebSocket.jsx b/frontend/src/WebSocket.jsx index 72533910..1d33565f 100644 --- a/frontend/src/WebSocket.jsx +++ b/frontend/src/WebSocket.jsx @@ -14,19 +14,17 @@ import useEPGsStore from './store/epgs'; import { Box, Button, Stack } from '@mantine/core'; import API from './api'; -export const WebsocketContext = createContext(false, null, () => {}); +export const WebsocketContext = createContext([false, () => {}, null]); export const WebsocketProvider = ({ children }) => { const [isReady, setIsReady] = useState(false); const [val, setVal] = useState(null); - const { fetchStreams } = useStreamsStore(); const { fetchChannels, setChannelStats, fetchChannelGroups } = useChannelsStore(); const { fetchPlaylists, setRefreshProgress, setProfilePreview } = usePlaylistsStore(); const { fetchEPGData, fetchEPGs } = useEPGsStore(); - const { playlists } = usePlaylistsStore(); const ws = useRef(null);