deleted noused library
This commit is contained in:
parent
152404d681
commit
daf301ee73
|
@ -18,28 +18,20 @@ import type {
|
|||
UserUpdate,
|
||||
UserUpdateMe,
|
||||
UsersPublic,
|
||||
ClientMessagePublic,
|
||||
ClientMessagesPublic,
|
||||
WebSettingPublic,
|
||||
WebSettingUpdate,
|
||||
AboutUssPublic,
|
||||
AboutUsPublic,
|
||||
AboutUsUpdate,
|
||||
AboutUsCreate,
|
||||
CoursesPublic,
|
||||
CourseCreate,
|
||||
CourseDetailsPublic,
|
||||
CourseUpdate,
|
||||
CoursePublic,
|
||||
ImagePublic,
|
||||
Info_imagePublic,
|
||||
SchedulePublic,
|
||||
ScheduleCreate,
|
||||
ScheduleUpdate,
|
||||
ImageCreate,
|
||||
ImageUpdate,
|
||||
Info_imagesCreate,
|
||||
Info_imageUpdate,
|
||||
} from "./models"
|
||||
|
||||
export type TDataLoginAccessToken = {
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import React, { useRef, ReactNode, useState } from 'react';
|
||||
import { useRef, ReactNode, useState } from 'react';
|
||||
import {
|
||||
Button,
|
||||
FormControl,
|
||||
FormErrorMessage,
|
||||
FormLabel,
|
||||
Input,
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalCloseButton,
|
||||
|
@ -19,16 +18,15 @@ import {
|
|||
NumberIncrementStepper,
|
||||
NumberDecrementStepper,
|
||||
} from "@chakra-ui/react"
|
||||
import { writeFileSync, createReadStream } from "fs";
|
||||
|
||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||
import { type SubmitHandler, useForm, UseFormRegisterReturn } from "react-hook-form"
|
||||
import { type ApiError, type AboutUsCreate, AboutUsService } from "../../client"
|
||||
import useCustomToast from "../../hooks/useCustomToast"
|
||||
import { handleError } from "../../utils"
|
||||
import { EditorState, ContentState, convertToRaw } from 'draft-js';
|
||||
import { EditorState, convertToRaw } from 'draft-js';
|
||||
import { Editor } from "react-draft-wysiwyg";
|
||||
import draftToHtml from 'draftjs-to-html';
|
||||
import htmlToDraft from 'html-to-draftjs';
|
||||
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
|
||||
|
||||
interface AddAboutUsProps {
|
||||
|
@ -134,7 +132,7 @@ const AddAboutUs = ({ isOpen, onClose }: AddAboutUsProps) => {
|
|||
}
|
||||
mutation.mutate(data)
|
||||
console.log(data)
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -152,20 +150,6 @@ const AddAboutUs = ({ isOpen, onClose }: AddAboutUsProps) => {
|
|||
<ModalCloseButton />
|
||||
|
||||
<ModalBody pb={30}>
|
||||
<FormControl isRequired isInvalid={!!errors.title}>
|
||||
<FormLabel htmlFor="title">Title</FormLabel>
|
||||
<Input
|
||||
id="title"
|
||||
{...register("title", {
|
||||
required: "Title is required.",
|
||||
})}
|
||||
placeholder="Title"
|
||||
type="text"
|
||||
/>
|
||||
{errors.title && (
|
||||
<FormErrorMessage>{errors.title.message}</FormErrorMessage>
|
||||
)}
|
||||
</FormControl>
|
||||
<FormControl isRequired isInvalid={!!errors.description}>
|
||||
<Editor
|
||||
editorState={editorState}
|
||||
|
@ -200,7 +184,7 @@ const AddAboutUs = ({ isOpen, onClose }: AddAboutUsProps) => {
|
|||
<NumberDecrementStepper />
|
||||
</NumberInputStepper>
|
||||
</NumberInput>
|
||||
|
||||
|
||||
{errors.index && (
|
||||
<FormErrorMessage>{errors.index.message}</FormErrorMessage>
|
||||
)}
|
||||
|
@ -209,7 +193,7 @@ const AddAboutUs = ({ isOpen, onClose }: AddAboutUsProps) => {
|
|||
<FormControl isInvalid={!!errors.image} isRequired>
|
||||
<FormLabel>{'Image Upload'}</FormLabel>
|
||||
|
||||
|
||||
|
||||
<input type="file" {...register("image", {
|
||||
required: "index is required.",
|
||||
})} />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React, { useRef, ReactNode, useState } from 'react';
|
||||
import { useRef, ReactNode, useState } from 'react';
|
||||
import {
|
||||
Button,
|
||||
FormControl,
|
||||
|
@ -21,10 +21,10 @@ import {
|
|||
Box,
|
||||
Image,
|
||||
} from "@chakra-ui/react"
|
||||
import { writeFileSync, createReadStream } from "fs";
|
||||
|
||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||
import { type SubmitHandler, useForm, UseFormRegisterReturn } from "react-hook-form"
|
||||
import { type ApiError, type AboutUsCreate, AboutUsService, AboutUsUpdate, AboutUsPublic } from "../../client"
|
||||
import { type ApiError, AboutUsService, AboutUsUpdate, AboutUsPublic } from "../../client"
|
||||
import useCustomToast from "../../hooks/useCustomToast"
|
||||
import { handleError } from "../../utils"
|
||||
import { EditorState, ContentState, convertToRaw } from 'draft-js';
|
||||
|
|
|
@ -8,8 +8,8 @@ import {
|
|||
} from "@chakra-ui/react"
|
||||
import { BsThreeDotsVertical } from "react-icons/bs"
|
||||
import { FiEdit, FiTrash } from "react-icons/fi"
|
||||
import { Link } from "@tanstack/react-router"
|
||||
import type { ItemPublic, UserPublic, AboutUsPublic, AboutUsUpdate, CoursePublic, ImagePublic, SchedulePublic } from "../../client"
|
||||
|
||||
import type { ItemPublic, UserPublic, AboutUsPublic, CoursePublic, ImagePublic, SchedulePublic } from "../../client"
|
||||
import EditUser from "../Admin/EditUser"
|
||||
import EditItem from "../Items/EditItem"
|
||||
import EditCourseImage from "../CourseImage/editCourseImage"
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
import React, { useRef, ReactNode, useState } from 'react';
|
||||
|
||||
import {
|
||||
Button,
|
||||
FormControl,
|
||||
FormErrorMessage,
|
||||
FormLabel,
|
||||
Input,
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalCloseButton,
|
||||
|
@ -12,7 +10,6 @@ import {
|
|||
ModalFooter,
|
||||
ModalHeader,
|
||||
ModalOverlay,
|
||||
InputGroup,
|
||||
NumberInput,
|
||||
NumberInputField,
|
||||
NumberInputStepper,
|
||||
|
@ -20,7 +17,7 @@ import {
|
|||
NumberDecrementStepper,
|
||||
} from "@chakra-ui/react"
|
||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||
import { type SubmitHandler, useForm, UseFormRegisterReturn } from "react-hook-form"
|
||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||
import { type ApiError, ImageService, Info_imageService, ImageUpdate, ImagePublic } from "../../client"
|
||||
import useCustomToast from "../../hooks/useCustomToast"
|
||||
import { handleError } from "../../utils"
|
||||
|
|
|
@ -5,19 +5,11 @@ import {
|
|||
FormLabel,
|
||||
Input,
|
||||
Textarea,
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalCloseButton,
|
||||
ModalContent,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
ModalOverlay,
|
||||
Container,
|
||||
Heading,
|
||||
Box
|
||||
} from "@chakra-ui/react"
|
||||
import { useQuery, useQueryClient, useMutation, QueryClient } from "@tanstack/react-query"
|
||||
import { createFileRoute, useNavigate, Await, useRouter } from "@tanstack/react-router"
|
||||
import { useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { useEffect, useState } from "react"
|
||||
import useCustomToast from "../../hooks/useCustomToast"
|
||||
import { CoursesService, type ApiError, CourseCreate, CourseDetailsPublic } from "../../client"
|
||||
|
|
|
@ -3,15 +3,6 @@ import {
|
|||
FormControl,
|
||||
FormErrorMessage,
|
||||
FormLabel,
|
||||
Input,
|
||||
Textarea,
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalCloseButton,
|
||||
ModalContent,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
ModalOverlay,
|
||||
Container,
|
||||
Heading,
|
||||
Box,
|
||||
|
@ -29,10 +20,8 @@ import {
|
|||
Icon,
|
||||
Grid
|
||||
} from "@chakra-ui/react"
|
||||
import { useQuery, useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { createFileRoute, useNavigate, Await, useRouter } from "@tanstack/react-router"
|
||||
import { FaPlus, FaPen, FaTrashAlt } from "react-icons/fa"
|
||||
import { useEffect, useState } from "react"
|
||||
import { useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { useEffect } from "react"
|
||||
import useCustomToast from "../../hooks/useCustomToast"
|
||||
import { ImageService, type ApiError, CourseDetailsPublic, ImageCreate } from "../../client"
|
||||
import { handleError } from "../../utils"
|
||||
|
|
|
@ -3,15 +3,6 @@ import {
|
|||
FormControl,
|
||||
FormErrorMessage,
|
||||
FormLabel,
|
||||
Input,
|
||||
Textarea,
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalCloseButton,
|
||||
ModalContent,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
ModalOverlay,
|
||||
Container,
|
||||
Heading,
|
||||
Box,
|
||||
|
@ -21,18 +12,13 @@ import {
|
|||
NumberIncrementStepper,
|
||||
NumberDecrementStepper,
|
||||
Image,
|
||||
Flex,
|
||||
HStack,
|
||||
VStack,
|
||||
Text,
|
||||
Td,
|
||||
Icon,
|
||||
Grid
|
||||
} from "@chakra-ui/react"
|
||||
import { useQuery, useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { createFileRoute, useNavigate, Await, useRouter } from "@tanstack/react-router"
|
||||
import { FaPlus, FaPen, FaTrashAlt } from "react-icons/fa"
|
||||
import { useEffect, useState } from "react"
|
||||
import { useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { useEffect } from "react"
|
||||
import useCustomToast from "../../hooks/useCustomToast"
|
||||
import { Info_imageService, type ApiError, CourseDetailsPublic, ImageCreate } from "../../client"
|
||||
import { handleError } from "../../utils"
|
||||
|
|
|
@ -12,12 +12,12 @@ import {
|
|||
ModalHeader,
|
||||
ModalOverlay,
|
||||
} from "@chakra-ui/react"
|
||||
import { useEffect, useState } from "react"
|
||||
import {useState } from "react"
|
||||
import { useMutation, useQueryClient } from "@tanstack/react-query"
|
||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||
import DateTimePicker from 'react-datetime-picker';
|
||||
import 'react-calendar/dist/Calendar.css';
|
||||
import { type ApiError, type ScheduleCreate, SchedulePublic, ScheduleUpdate, secheduleService } from "../../client"
|
||||
import { type ApiError, SchedulePublic, ScheduleUpdate, secheduleService } from "../../client"
|
||||
import useCustomToast from "../../hooks/useCustomToast"
|
||||
import { handleError } from "../../utils"
|
||||
import moment from "moment";
|
||||
|
|
|
@ -1,9 +1,5 @@
|
|||
import {
|
||||
Button,
|
||||
Container,
|
||||
Flex,
|
||||
Heading,
|
||||
SkeletonText,
|
||||
Table,
|
||||
TableContainer,
|
||||
Tbody,
|
||||
|
@ -13,16 +9,10 @@ import {
|
|||
Tr,
|
||||
} from "@chakra-ui/react"
|
||||
import moment from 'moment';
|
||||
import { useQuery, useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { createFileRoute, useNavigate, Await, useRouter } from "@tanstack/react-router"
|
||||
import { FaPlus, FaPen, FaTrashAlt } from "react-icons/fa"
|
||||
import { useEffect, useState } from "react"
|
||||
import { useQueryClient, } from "@tanstack/react-query"
|
||||
import useCustomToast from "../../hooks/useCustomToast"
|
||||
import { Info_imageService, type ApiError, CourseDetailsPublic, ImageCreate } from "../../client"
|
||||
import { handleError } from "../../utils"
|
||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||
import { CourseDetailsPublic } from "../../client"
|
||||
import ActionsMenu from "../../components/Common/ActionsMenu"
|
||||
import DateTimePicker from 'react-datetime-picker';
|
||||
import 'react-datetime-picker/dist/DateTimePicker.css';
|
||||
import Navbar from "../../components/Common/Navbar"
|
||||
import AddSechedule from "./AddSechedule";
|
||||
|
|
|
@ -3,7 +3,6 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
|
|||
import { RouterProvider, createRouter } from "@tanstack/react-router"
|
||||
import ReactDOM from "react-dom/client"
|
||||
import { routeTree } from "./routeTree.gen"
|
||||
import { StrictMode } from "react"
|
||||
import { OpenAPI } from "./client"
|
||||
import theme from "./theme"
|
||||
|
||||
|
|
|
@ -5,26 +5,18 @@ import {
|
|||
FormLabel,
|
||||
Input,
|
||||
Textarea,
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalCloseButton,
|
||||
ModalContent,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
ModalOverlay,
|
||||
Container
|
||||
} from "@chakra-ui/react"
|
||||
import { useQuery, useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { createFileRoute, useNavigate, Await, useRouter } from "@tanstack/react-router"
|
||||
import { useEffect, useState } from "react"
|
||||
import {useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import {useState } from "react"
|
||||
import useCustomToast from "../../../hooks/useCustomToast"
|
||||
import { CoursesService, type ApiError, CourseCreate, } from "../../../client"
|
||||
import { handleError } from "../../../utils"
|
||||
import { type SubmitHandler, useForm } from "react-hook-form"
|
||||
import { EditorState, ContentState, convertToRaw } from 'draft-js';
|
||||
import { EditorState, convertToRaw } from 'draft-js';
|
||||
import { Editor } from "react-draft-wysiwyg";
|
||||
import draftToHtml from 'draftjs-to-html';
|
||||
import htmlToDraft from 'html-to-draftjs';
|
||||
import "react-draft-wysiwyg/dist/react-draft-wysiwyg.css";
|
||||
|
||||
|
||||
|
|
|
@ -21,8 +21,6 @@ import { z } from "zod"
|
|||
import { FaPlus, FaPen, FaTrashAlt } from "react-icons/fa"
|
||||
import { CoursesService } from "../../../client"
|
||||
import Delete from "../../../components/Common/DeleteAlert"
|
||||
import ActionsMenu from "../../../components/Common/ActionsMenu"
|
||||
import Navbar from "../../../components/Common/Navbar"
|
||||
//import Addcourse from "../../components/courses/Addcourse"
|
||||
import { Link } from "@tanstack/react-router"
|
||||
const CoursesSearchSchema = z.object({
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
} from "@chakra-ui/react"
|
||||
import { useQuery, useQueryClient } from "@tanstack/react-query"
|
||||
import { createFileRoute, useNavigate } from "@tanstack/react-router"
|
||||
import { useEffect, useState } from "react"
|
||||
import { useEffect } from "react"
|
||||
import { z } from "zod"
|
||||
import parse from 'html-react-parser';
|
||||
import { AboutUsService } from "../../client"
|
||||
|
|
|
@ -4,18 +4,10 @@ import {
|
|||
FormErrorMessage,
|
||||
FormLabel,
|
||||
Input,
|
||||
Modal,
|
||||
ModalBody,
|
||||
ModalCloseButton,
|
||||
ModalContent,
|
||||
ModalFooter,
|
||||
ModalHeader,
|
||||
ModalOverlay,
|
||||
Container
|
||||
} from "@chakra-ui/react"
|
||||
import { useQuery, useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { createFileRoute, useNavigate, Await } from "@tanstack/react-router"
|
||||
import { useEffect, useState } from "react"
|
||||
import { useQueryClient, useMutation } from "@tanstack/react-query"
|
||||
import { createFileRoute } from "@tanstack/react-router"
|
||||
import useCustomToast from "../../hooks/useCustomToast"
|
||||
import { WebSettingsService, type WebSettingUpdate, type ApiError, } from "../../client"
|
||||
import { handleError } from "../../utils"
|
||||
|
|
Loading…
Reference in New Issue