大改动
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import Request from '@/utils/request'
|
import Request from '@/utils/request'
|
||||||
import { Cate } from '@/types/cate'
|
import { Cate } from '@/types/app/cate'
|
||||||
|
|
||||||
// 新增分类
|
// 新增分类
|
||||||
export const addCateDataAPI = (data: Cate) => Request<Cate>("POST", "/cate", data)
|
export const addCateDataAPI = (data: Cate) => Request<Cate>("POST", "/cate", data)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Request from '@/utils/request'
|
import Request from '@/utils/request'
|
||||||
import { Comment } from '@/types/comment'
|
import { Comment } from '@/types/app/comment'
|
||||||
|
|
||||||
// 新增评论
|
// 新增评论
|
||||||
export const addCommentDataAPI = (data: Comment) => Request<Comment>("POST", "/comment", data)
|
export const addCommentDataAPI = (data: Comment) => Request<Comment>("POST", "/comment", data)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Request from '@/utils/request'
|
import Request from '@/utils/request'
|
||||||
import { File } from '@/types/file'
|
import { File } from '@/types/app/file'
|
||||||
|
|
||||||
// 删除文件
|
// 删除文件
|
||||||
export const delFileDataAPI = (data: string[]) => Request<File>("DELETE", "/file", { files: data })
|
export const delFileDataAPI = (data: string[]) => Request<File>("DELETE", "/file", { files: data })
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Request from '@/utils/request'
|
import Request from '@/utils/request'
|
||||||
import { System, Web, Layout } from '@/types/project'
|
import { System, Web, Layout } from '@/types/app/project'
|
||||||
|
|
||||||
// 获取系统配置信息
|
// 获取系统配置信息
|
||||||
export const getSystemDataAPI = () => Request<System>("GET", "/project/system")
|
export const getSystemDataAPI = () => Request<System>("GET", "/project/system")
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Request from '@/utils/request'
|
import Request from '@/utils/request'
|
||||||
import { Rss } from '@/types/rss';
|
import { Rss } from '@/types/app/rss';
|
||||||
|
|
||||||
// 获取订阅数据列表
|
// 获取订阅数据列表
|
||||||
export const getRssListAPI = (pagination?: Page) => {
|
export const getRssListAPI = (pagination?: Page) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Request from '@/utils/request'
|
import Request from '@/utils/request'
|
||||||
import { Swiper } from '@/types/swiper'
|
import { Swiper } from '@/types/app/swiper'
|
||||||
|
|
||||||
// 新增轮播图
|
// 新增轮播图
|
||||||
export const addSwiperDataAPI = (data: Swiper) => Request<Swiper>("POST", "/swiper", data)
|
export const addSwiperDataAPI = (data: Swiper) => Request<Swiper>("POST", "/swiper", data)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Request from '@/utils/request'
|
import Request from '@/utils/request'
|
||||||
import { Tag } from '@/types/tag'
|
import { Tag } from '@/types/app/tag'
|
||||||
|
|
||||||
// 新增标签
|
// 新增标签
|
||||||
export const addTagDataAPI = (data: Tag) => Request<Tag>("POST", "/tag", data)
|
export const addTagDataAPI = (data: Tag) => Request<Tag>("POST", "/tag", data)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Request from '@/utils/request'
|
import Request from '@/utils/request'
|
||||||
import { account, EditUser, Login, User, UserInfo } from '@/types/user'
|
import { account, EditUser, Login, User, UserInfo } from '@/types/app/user'
|
||||||
|
|
||||||
// 登录
|
// 登录
|
||||||
export const loginDataAPI = (data: Login) => Request<account>("POST", "/user/login", data)
|
export const loginDataAPI = (data: Login) => Request<account>("POST", "/user/login", data)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import Request from '@/utils/request'
|
import Request from '@/utils/request'
|
||||||
import { Web, LinkType } from '@/types/web'
|
import { Web, LinkType } from '@/types/app/web'
|
||||||
|
|
||||||
// 新增网站
|
// 新增网站
|
||||||
export const addLinkDataAPI = (data: Web) => Request<Web>("POST", "/link", data)
|
export const addLinkDataAPI = (data: Web) => Request<Web>("POST", "/link", data)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { Chat } from '../../types/chat';
|
import { Chat } from '../../types/app/chat';
|
||||||
import UserOne from '../../images/user/user-01.png';
|
import UserOne from '../../images/user/user-01.png';
|
||||||
import UserTwo from '../../images/user/user-02.png';
|
import UserTwo from '../../images/user/user-02.png';
|
||||||
import UserThree from '../../images/user/user-03.png';
|
import UserThree from '../../images/user/user-03.png';
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
|
|||||||
import ClickOutside from '../ClickOutside';
|
import ClickOutside from '../ClickOutside';
|
||||||
|
|
||||||
import { getCommentListAPI } from '@/api/Comment'
|
import { getCommentListAPI } from '@/api/Comment'
|
||||||
import { Comment } from '@/types/comment';
|
import { Comment } from '@/types/app/comment';
|
||||||
|
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import RandomAvatar from '@/components/RandomAvatar'
|
import RandomAvatar from '@/components/RandomAvatar'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BRAND } from '../../types/brand';
|
import { BRAND } from '../../types/app/brand';
|
||||||
import BrandOne from '../../images/brand/brand-01.svg';
|
import BrandOne from '../../images/brand/brand-01.svg';
|
||||||
import BrandTwo from '../../images/brand/brand-02.svg';
|
import BrandTwo from '../../images/brand/brand-02.svg';
|
||||||
import BrandThree from '../../images/brand/brand-03.svg';
|
import BrandThree from '../../images/brand/brand-03.svg';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Package } from '../../types/package';
|
import { Package } from '../../types/app/package';
|
||||||
|
|
||||||
const packageData: Package[] = [
|
const packageData: Package[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Product } from '../../types/product';
|
import { Product } from '../../types/app/product';
|
||||||
import ProductOne from '../../images/product/product-01.png';
|
import ProductOne from '../../images/product/product-01.png';
|
||||||
import ProductTwo from '../../images/product/product-02.png';
|
import ProductTwo from '../../images/product/product-02.png';
|
||||||
import ProductThree from '../../images/product/product-03.png';
|
import ProductThree from '../../images/product/product-03.png';
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import dayjs from 'dayjs';
|
|||||||
import type { Article } from '@/types/article';
|
import type { Article } from '@/types/article';
|
||||||
import { titleSty } from '@/styles/sty'
|
import { titleSty } from '@/styles/sty'
|
||||||
import Title from '@/components/Title';
|
import Title from '@/components/Title';
|
||||||
import type { Tag as ArticleTag } from '@/types/tag';
|
import type { Tag as ArticleTag } from '@/types/app/tag';
|
||||||
import type { Cate } from '@/types/cate';
|
import type { Cate } from '@/types/app/cate';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
const Article: React.FC = () => {
|
const Article: React.FC = () => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import { Cate } from '@/types/cate';
|
import { Cate } from '@/types/app/cate';
|
||||||
import { addCateDataAPI, delCateDataAPI, editCateDataAPI, getCateDataAPI, getCateListAPI } from '@/api/Cate';
|
import { addCateDataAPI, delCateDataAPI, editCateDataAPI, getCateDataAPI, getCateListAPI } from '@/api/Cate';
|
||||||
import { DownOutlined } from '@ant-design/icons';
|
import { DownOutlined } from '@ant-design/icons';
|
||||||
import { Form, Input, Button, Tree, Modal, Spin, Dropdown, Card, MenuProps, Popconfirm, message } from 'antd';
|
import { Form, Input, Button, Tree, Modal, Spin, Dropdown, Card, MenuProps, Popconfirm, message } from 'antd';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import dayjs from 'dayjs';
|
|||||||
import { ColumnsType } from 'antd/es/table';
|
import { ColumnsType } from 'antd/es/table';
|
||||||
import { titleSty } from '@/styles/sty';
|
import { titleSty } from '@/styles/sty';
|
||||||
import Title from '@/components/Title';
|
import Title from '@/components/Title';
|
||||||
import { Comment } from '@/types/comment'
|
import { Comment } from '@/types/app/comment'
|
||||||
|
|
||||||
const CommentPage = () => {
|
const CommentPage = () => {
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import { RuleObject } from "antd/es/form";
|
|||||||
import { addArticleDataAPI, editArticleDataAPI } from '@/api/Article'
|
import { addArticleDataAPI, editArticleDataAPI } from '@/api/Article'
|
||||||
import { getCateListAPI } from '@/api/Cate'
|
import { getCateListAPI } from '@/api/Cate'
|
||||||
import { getTagListAPI } from '@/api/Tag'
|
import { getTagListAPI } from '@/api/Tag'
|
||||||
import { Cate } from "@/types/cate";
|
import { Cate } from "@/types/app/cate";
|
||||||
import { Tag } from "@/types/tag";
|
import { Tag } from "@/types/app/tag";
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import "./index.scss"
|
import "./index.scss"
|
||||||
import { Article } from "@/types/article";
|
import { Article } from "@/types/article";
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import MapOne from '../../components/Maps/MapOne';
|
|||||||
import TableOne from '../../components/Tables/TableOne';
|
import TableOne from '../../components/Tables/TableOne';
|
||||||
|
|
||||||
import { getSystemDataAPI } from '@/api/Project';
|
import { getSystemDataAPI } from '@/api/Project';
|
||||||
import { System } from '@/types/project';
|
import { System } from '@/types/app/project';
|
||||||
import HeaderInfo from './components/HeaderInfo';
|
import HeaderInfo from './components/HeaderInfo';
|
||||||
import { Card } from 'antd';
|
import { Card } from 'antd';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|||||||
import { Avatar, Card, List, Space, Spin } from 'antd';
|
import { Avatar, Card, List, Space, Spin } from 'antd';
|
||||||
import Title from '@/components/Title';
|
import Title from '@/components/Title';
|
||||||
import { getRssListAPI } from '@/api/Rss';
|
import { getRssListAPI } from '@/api/Rss';
|
||||||
import { Rss } from '@/types/rss';
|
import { Rss } from '@/types/app/rss';
|
||||||
import { BiCategory } from "react-icons/bi";
|
import { BiCategory } from "react-icons/bi";
|
||||||
import { LuTimer } from "react-icons/lu";
|
import { LuTimer } from "react-icons/lu";
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useState, useEffect } from 'react';
|
|||||||
import { notification, Divider, Input, Alert, Button, Spin } from 'antd';
|
import { notification, Divider, Input, Alert, Button, Spin } from 'antd';
|
||||||
import { PictureOutlined, LoadingOutlined } from '@ant-design/icons';
|
import { PictureOutlined, LoadingOutlined } from '@ant-design/icons';
|
||||||
import { editLayoutDataAPI, getLayoutDataAPI } from '@/api/Project';
|
import { editLayoutDataAPI, getLayoutDataAPI } from '@/api/Project';
|
||||||
import { Layout } from '@/types/project';
|
import { Layout } from '@/types/app/project';
|
||||||
|
|
||||||
const LayoutPage = () => {
|
const LayoutPage = () => {
|
||||||
const [loading, setLoading] = useState<boolean>(false);
|
const [loading, setLoading] = useState<boolean>(false);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
|
|||||||
import { Form, Input, Button, message } from "antd";
|
import { Form, Input, Button, message } from "antd";
|
||||||
import { useUserStore } from "@/stores"; // 假设你有一个状态管理库类似于pinia
|
import { useUserStore } from "@/stores"; // 假设你有一个状态管理库类似于pinia
|
||||||
import { editUserDataAPI, getUserDataAPI } from "@/api/User";
|
import { editUserDataAPI, getUserDataAPI } from "@/api/User";
|
||||||
import { User } from "@/types/user";
|
import { User } from "@/types/app/user";
|
||||||
|
|
||||||
interface UserForm {
|
interface UserForm {
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useState, useRef } from 'react';
|
|||||||
import { Form, Input, Button, notification, Modal } from 'antd';
|
import { Form, Input, Button, notification, Modal } from 'antd';
|
||||||
import { useUserStore } from '@/stores';
|
import { useUserStore } from '@/stores';
|
||||||
import { editAdminPassAPI } from '@/api/User';
|
import { editAdminPassAPI } from '@/api/User';
|
||||||
import { EditUser } from '@/types/user'
|
import { EditUser } from '@/types/app/user'
|
||||||
|
|
||||||
const { confirm } = Modal;
|
const { confirm } = Modal;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Form, Input, Button, message } from 'antd';
|
import { Form, Input, Button, message } from 'antd';
|
||||||
import { getWebDataAPI, editWebDataAPI } from '@/api/Project';
|
import { getWebDataAPI, editWebDataAPI } from '@/api/Project';
|
||||||
import { Web } from '@/types/project'
|
import { Web } from '@/types/app/project'
|
||||||
|
|
||||||
const WebPage = () => {
|
const WebPage = () => {
|
||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { useState, useEffect } from 'react';
|
import { useState, useEffect } from 'react';
|
||||||
import { Table, Button, Modal, Form, Input, Tabs, Card, Popconfirm, message } from 'antd';
|
import { Table, Button, Modal, Form, Input, Tabs, Card, Popconfirm, message } from 'antd';
|
||||||
import { getSwiperListAPI, addSwiperDataAPI, editSwiperDataAPI, delSwiperDataAPI } from '@/api/Swiper';
|
import { getSwiperListAPI, addSwiperDataAPI, editSwiperDataAPI, delSwiperDataAPI } from '@/api/Swiper';
|
||||||
import { Swiper } from '@/types/swiper';
|
import { Swiper } from '@/types/app/swiper';
|
||||||
import Title from '@/components/Title';
|
import Title from '@/components/Title';
|
||||||
import { ColumnsType } from 'antd/es/table';
|
import { ColumnsType } from 'antd/es/table';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { useState, useEffect } from 'react';
|
|||||||
import { Tabs, Input, Button, Form, Spin, Empty, Card, Popconfirm, Select, message } from 'antd';
|
import { Tabs, Input, Button, Form, Spin, Empty, Card, Popconfirm, Select, message } from 'antd';
|
||||||
import { SearchOutlined } from '@ant-design/icons';
|
import { SearchOutlined } from '@ant-design/icons';
|
||||||
import { getLinkListAPI, addLinkDataAPI, editLinkDataAPI, delLinkDataAPI, getLinkTypeListAPI } from '@/api/Web';
|
import { getLinkListAPI, addLinkDataAPI, editLinkDataAPI, delLinkDataAPI, getLinkTypeListAPI } from '@/api/Web';
|
||||||
import { LinkType, Web } from '@/types/web';
|
import { LinkType, Web } from '@/types/app/web';
|
||||||
import Title from '@/components/Title';
|
import Title from '@/components/Title';
|
||||||
import './index.scss';
|
import './index.scss';
|
||||||
import { RuleObject } from 'antd/es/form';
|
import { RuleObject } from 'antd/es/form';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { User } from '@/types/user';
|
import { User } from '@/types/app/user';
|
||||||
import { create } from 'zustand';
|
import { create } from 'zustand';
|
||||||
import { persist } from 'zustand/middleware';
|
import { persist } from 'zustand/middleware';
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,6 @@
|
|||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true
|
"noFallthroughCasesInSwitch": true
|
||||||
},
|
},
|
||||||
"include": ["src", "src/types/lib.d.ts"],
|
"include": ["src", "src/types/app/lib.d.ts"],
|
||||||
"references": [{ "path": "./tsconfig.node.json" }]
|
"references": [{ "path": "./tsconfig.node.json" }]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user