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

This commit is contained in:
LASER-Yi 2021-08-21 22:58:47 +08:00
parent 18f59cf0f9
commit eb47356d10
4 changed files with 6 additions and 6 deletions

View File

@ -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(() => {

View File

@ -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 {

View File

@ -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>) => {

View File

@ -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";