mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-16 12:23:12 +00:00
chore: rename folders
This commit is contained in:
parent
591edfc62d
commit
4d0bdc9b97
@ -1,7 +1,7 @@
|
||||
import { CssVarsProvider } from "@mui/joy/styles";
|
||||
import { Toaster } from "react-hot-toast";
|
||||
import { RouterProvider } from "react-router-dom";
|
||||
import router from "./router";
|
||||
import router from "./routers";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Link, useNavigate } from "react-router-dom";
|
||||
import { useAppSelector } from "../store";
|
||||
import { useAppSelector } from "../stores";
|
||||
import { userService } from "../services";
|
||||
import Icon from "./Icon";
|
||||
import Dropdown from "./common/Dropdown";
|
||||
|
@ -4,7 +4,7 @@ import { useState } from "react";
|
||||
import { toast } from "react-hot-toast";
|
||||
import { UNKNOWN_ID } from "../helpers/consts";
|
||||
import { shortcutService } from "../services";
|
||||
import { useAppSelector } from "../store";
|
||||
import { useAppSelector } from "../stores";
|
||||
import { absolutifyLink } from "../helpers/utils";
|
||||
import { showCommonDialog } from "./Alert";
|
||||
import Icon from "./Icon";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { Provider } from "react-redux";
|
||||
import store from "./store";
|
||||
import store from "./stores";
|
||||
import App from "./App";
|
||||
import "./css/index.css";
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { userService, shortcutService } from "../services";
|
||||
import { useAppSelector } from "../store";
|
||||
import { useAppSelector } from "../stores";
|
||||
import useLoading from "../hooks/useLoading";
|
||||
import Icon from "../components/Icon";
|
||||
import Dropdown from "../components/common/Dropdown";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Button } from "@mui/joy";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useAppSelector } from "../store";
|
||||
import { useAppSelector } from "../stores";
|
||||
import { userService } from "../services";
|
||||
import ChangePasswordDialog from "../components/ChangePasswordDialog";
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { createBrowserRouter, redirect } from "react-router-dom";
|
||||
import { isNullorUndefined } from "../helpers/utils";
|
||||
import { userService } from "../services";
|
||||
import Root from "../layout/Root";
|
||||
import Root from "../layouts/Root";
|
||||
import Auth from "../pages/Auth";
|
||||
import Home from "../pages/Home";
|
||||
import UserDetail from "../pages/UserDetail";
|
@ -1,5 +1,5 @@
|
||||
import store from "../store";
|
||||
import { setGlobalState } from "../store/modules/global";
|
||||
import store from "../stores";
|
||||
import { setGlobalState } from "../stores/modules/global";
|
||||
import userService from "./userService";
|
||||
|
||||
const globalService = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import * as api from "../helpers/api";
|
||||
import store from "../store/";
|
||||
import { createShortcut, deleteShortcut, patchShortcut, setShortcuts } from "../store/modules/shortcut";
|
||||
import store from "../stores";
|
||||
import { createShortcut, deleteShortcut, patchShortcut, setShortcuts } from "../stores/modules/shortcut";
|
||||
|
||||
const convertResponseModelShortcut = (shortcut: Shortcut): Shortcut => {
|
||||
return {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import * as api from "../helpers/api";
|
||||
import store from "../store";
|
||||
import { setUser, patchUser } from "../store/modules/user";
|
||||
import store from "../stores";
|
||||
import { setUser, patchUser } from "../stores/modules/user";
|
||||
|
||||
export const convertResponseModelUser = (user: User): User => {
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user