mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-15 00:18:48 +00:00
no log: Move Socket.IO to @modules/socketio
This commit is contained in:
parent
18f59cf0f9
commit
eb47356d10
4 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
import { useEffect } from "react";
|
||||
import Socketio from ".";
|
||||
import { log } from "../utilites/logger";
|
||||
import { log } from "../../utilites/logger";
|
||||
|
||||
export function useSocketIOReducer(reducer: SocketIO.Reducer) {
|
||||
useEffect(() => {
|
|
@ -1,7 +1,7 @@
|
|||
import { debounce, forIn, remove, uniq } from "lodash";
|
||||
import { io, Socket } from "socket.io-client";
|
||||
import { getBaseUrl } from "../utilites";
|
||||
import { conditionalLog, log } from "../utilites/logger";
|
||||
import { getBaseUrl } from "../../utilites";
|
||||
import { conditionalLog, log } from "../../utilites/logger";
|
||||
import { createDefaultReducer } from "./reducer";
|
||||
|
||||
class SocketIOClient {
|
|
@ -22,8 +22,8 @@ import {
|
|||
systemMarkTasksDirty,
|
||||
systemUpdateAllSettings,
|
||||
systemUpdateLanguages,
|
||||
} from "../@redux/actions";
|
||||
import reduxStore from "../@redux/store";
|
||||
} from "../../@redux/actions";
|
||||
import reduxStore from "../../@redux/store";
|
||||
|
||||
function bindReduxAction<T extends ActionCreator<any>>(action: T) {
|
||||
return (...args: Parameters<T>) => {
|
|
@ -10,11 +10,11 @@ import { Provider } from "react-redux";
|
|||
import { Route, Switch } from "react-router";
|
||||
import { BrowserRouter, Redirect } from "react-router-dom";
|
||||
import { useEffectOnceWhen } from "rooks";
|
||||
import Socketio from "../@modules/socketio";
|
||||
import { useReduxStore } from "../@redux/hooks/base";
|
||||
import { useNotification } from "../@redux/hooks/site";
|
||||
import store from "../@redux/store";
|
||||
import "../@scss/index.scss";
|
||||
import Socketio from "../@socketio";
|
||||
import { LoadingIndicator, ModalProvider } from "../components";
|
||||
import Sidebar from "../Sidebar";
|
||||
import Auth from "../special-pages/AuthPage";
|
||||
|
|
Loading…
Add table
Reference in a new issue