no log: Move Socket.IO to @modules/socketio

pull/1515/head
LASER-Yi 3 years ago
parent 18f59cf0f9
commit eb47356d10

@ -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…
Cancel
Save