🎨 Format frontend (#1161)
This commit is contained in:
@@ -14,8 +14,8 @@ import {
|
|||||||
ModalHeader,
|
ModalHeader,
|
||||||
ModalOverlay,
|
ModalOverlay,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||||
|
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||||
|
|
||||||
import { type UserCreate, UsersService } from "../../client"
|
import { type UserCreate, UsersService } from "../../client"
|
||||||
import type { ApiError } from "../../client/core/ApiError"
|
import type { ApiError } from "../../client/core/ApiError"
|
||||||
|
@@ -14,8 +14,8 @@ import {
|
|||||||
ModalHeader,
|
ModalHeader,
|
||||||
ModalOverlay,
|
ModalOverlay,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||||
|
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type ApiError,
|
type ApiError,
|
||||||
|
@@ -7,9 +7,9 @@ import {
|
|||||||
AlertDialogOverlay,
|
AlertDialogOverlay,
|
||||||
Button,
|
Button,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
|
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||||
import React from "react"
|
import React from "react"
|
||||||
import { useForm } from "react-hook-form"
|
import { useForm } from "react-hook-form"
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
|
||||||
|
|
||||||
import { ItemsService, UsersService } from "../../client"
|
import { ItemsService, UsersService } from "../../client"
|
||||||
import useCustomToast from "../../hooks/useCustomToast"
|
import useCustomToast from "../../hooks/useCustomToast"
|
||||||
|
@@ -12,8 +12,8 @@ import {
|
|||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
useDisclosure,
|
useDisclosure,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { FiLogOut, FiMenu } from "react-icons/fi"
|
|
||||||
import { useQueryClient } from "@tanstack/react-query"
|
import { useQueryClient } from "@tanstack/react-query"
|
||||||
|
import { FiLogOut, FiMenu } from "react-icons/fi"
|
||||||
|
|
||||||
import Logo from "../../assets/images/fastapi-logo.svg"
|
import Logo from "../../assets/images/fastapi-logo.svg"
|
||||||
import type { UserPublic } from "../../client"
|
import type { UserPublic } from "../../client"
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { Box, Flex, Icon, Text, useColorModeValue } from "@chakra-ui/react"
|
import { Box, Flex, Icon, Text, useColorModeValue } from "@chakra-ui/react"
|
||||||
|
import { useQueryClient } from "@tanstack/react-query"
|
||||||
import { Link } from "@tanstack/react-router"
|
import { Link } from "@tanstack/react-router"
|
||||||
import { FiBriefcase, FiHome, FiSettings, FiUsers } from "react-icons/fi"
|
import { FiBriefcase, FiHome, FiSettings, FiUsers } from "react-icons/fi"
|
||||||
import { useQueryClient } from "@tanstack/react-query"
|
|
||||||
|
|
||||||
import type { UserPublic } from "../../client"
|
import type { UserPublic } from "../../client"
|
||||||
|
|
||||||
|
@@ -12,8 +12,8 @@ import {
|
|||||||
ModalHeader,
|
ModalHeader,
|
||||||
ModalOverlay,
|
ModalOverlay,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||||
|
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||||
|
|
||||||
import { type ApiError, type ItemCreate, ItemsService } from "../../client"
|
import { type ApiError, type ItemCreate, ItemsService } from "../../client"
|
||||||
import useCustomToast from "../../hooks/useCustomToast"
|
import useCustomToast from "../../hooks/useCustomToast"
|
||||||
|
@@ -12,8 +12,8 @@ import {
|
|||||||
ModalHeader,
|
ModalHeader,
|
||||||
ModalOverlay,
|
ModalOverlay,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||||
|
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type ApiError,
|
type ApiError,
|
||||||
|
@@ -9,8 +9,8 @@ import {
|
|||||||
Input,
|
Input,
|
||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
|
||||||
import { useMutation } from "@tanstack/react-query"
|
import { useMutation } from "@tanstack/react-query"
|
||||||
|
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||||
|
|
||||||
import { type ApiError, type UpdatePassword, UsersService } from "../../client"
|
import { type ApiError, type UpdatePassword, UsersService } from "../../client"
|
||||||
import useCustomToast from "../../hooks/useCustomToast"
|
import useCustomToast from "../../hooks/useCustomToast"
|
||||||
|
@@ -7,9 +7,9 @@ import {
|
|||||||
AlertDialogOverlay,
|
AlertDialogOverlay,
|
||||||
Button,
|
Button,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
|
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||||
import React from "react"
|
import React from "react"
|
||||||
import { useForm } from "react-hook-form"
|
import { useForm } from "react-hook-form"
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
|
||||||
|
|
||||||
import { type ApiError, type UserPublic, UsersService } from "../../client"
|
import { type ApiError, type UserPublic, UsersService } from "../../client"
|
||||||
import useAuth from "../../hooks/useAuth"
|
import useAuth from "../../hooks/useAuth"
|
||||||
|
@@ -11,9 +11,9 @@ import {
|
|||||||
Text,
|
Text,
|
||||||
useColorModeValue,
|
useColorModeValue,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
|
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||||
import { useState } from "react"
|
import { useState } from "react"
|
||||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type ApiError,
|
type ApiError,
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
|
import { useMutation, useQuery } from "@tanstack/react-query"
|
||||||
import { useNavigate } from "@tanstack/react-router"
|
import { useNavigate } from "@tanstack/react-router"
|
||||||
import { useState } from "react"
|
import { useState } from "react"
|
||||||
import { useMutation, useQuery } from "@tanstack/react-query"
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
type Body_login_login_access_token as AccessToken,
|
type Body_login_login_access_token as AccessToken,
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { ChakraProvider } from "@chakra-ui/react"
|
import { ChakraProvider } from "@chakra-ui/react"
|
||||||
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
|
||||||
import { RouterProvider, createRouter } from "@tanstack/react-router"
|
import { RouterProvider, createRouter } from "@tanstack/react-router"
|
||||||
import ReactDOM from "react-dom/client"
|
import ReactDOM from "react-dom/client"
|
||||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
|
|
||||||
import { routeTree } from "./routeTree.gen"
|
import { routeTree } from "./routeTree.gen"
|
||||||
|
|
||||||
import { StrictMode } from "react"
|
import { StrictMode } from "react"
|
||||||
|
@@ -13,8 +13,8 @@ import {
|
|||||||
Thead,
|
Thead,
|
||||||
Tr,
|
Tr,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { createFileRoute } from "@tanstack/react-router"
|
|
||||||
import { useQuery, useQueryClient } from "@tanstack/react-query"
|
import { useQuery, useQueryClient } from "@tanstack/react-query"
|
||||||
|
import { createFileRoute } from "@tanstack/react-router"
|
||||||
|
|
||||||
import { type UserPublic, UsersService } from "../../client"
|
import { type UserPublic, UsersService } from "../../client"
|
||||||
import ActionsMenu from "../../components/Common/ActionsMenu"
|
import ActionsMenu from "../../components/Common/ActionsMenu"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import { Box, Container, Text } from "@chakra-ui/react"
|
import { Box, Container, Text } from "@chakra-ui/react"
|
||||||
import { createFileRoute } from "@tanstack/react-router"
|
|
||||||
import { useQueryClient } from "@tanstack/react-query"
|
import { useQueryClient } from "@tanstack/react-query"
|
||||||
|
import { createFileRoute } from "@tanstack/react-router"
|
||||||
|
|
||||||
import type { UserPublic } from "../../client"
|
import type { UserPublic } from "../../client"
|
||||||
|
|
||||||
|
@@ -11,8 +11,8 @@ import {
|
|||||||
Thead,
|
Thead,
|
||||||
Tr,
|
Tr,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { createFileRoute } from "@tanstack/react-router"
|
|
||||||
import { useQuery } from "@tanstack/react-query"
|
import { useQuery } from "@tanstack/react-query"
|
||||||
|
import { createFileRoute } from "@tanstack/react-router"
|
||||||
|
|
||||||
import { ItemsService } from "../../client"
|
import { ItemsService } from "../../client"
|
||||||
import ActionsMenu from "../../components/Common/ActionsMenu"
|
import ActionsMenu from "../../components/Common/ActionsMenu"
|
||||||
|
@@ -7,8 +7,8 @@ import {
|
|||||||
TabPanels,
|
TabPanels,
|
||||||
Tabs,
|
Tabs,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
import { createFileRoute } from "@tanstack/react-router"
|
|
||||||
import { useQueryClient } from "@tanstack/react-query"
|
import { useQueryClient } from "@tanstack/react-query"
|
||||||
|
import { createFileRoute } from "@tanstack/react-router"
|
||||||
|
|
||||||
import type { UserPublic } from "../../client"
|
import type { UserPublic } from "../../client"
|
||||||
import Appearance from "../../components/UserSettings/Appearance"
|
import Appearance from "../../components/UserSettings/Appearance"
|
||||||
|
@@ -8,9 +8,9 @@ import {
|
|||||||
Input,
|
Input,
|
||||||
Text,
|
Text,
|
||||||
} from "@chakra-ui/react"
|
} from "@chakra-ui/react"
|
||||||
|
import { useMutation } from "@tanstack/react-query"
|
||||||
import { createFileRoute, redirect, useNavigate } from "@tanstack/react-router"
|
import { createFileRoute, redirect, useNavigate } from "@tanstack/react-router"
|
||||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||||
import { useMutation } from "@tanstack/react-query"
|
|
||||||
|
|
||||||
import { type ApiError, LoginService, type NewPassword } from "../client"
|
import { type ApiError, LoginService, type NewPassword } from "../client"
|
||||||
import { isLoggedIn } from "../hooks/useAuth"
|
import { isLoggedIn } from "../hooks/useAuth"
|
||||||
|
Reference in New Issue
Block a user