From 290f3eba2eb271e53d355eb8066a91a5ee71ccc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E9=98=B3?= Date: Tue, 17 Dec 2024 12:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ----- src/api/project.ts | 4 ++-- src/app/api/rss/route.ts | 4 ++-- src/app/article/components/MD/index.tsx | 4 ++-- src/app/friend/page.tsx | 4 ++-- src/app/layout.tsx | 4 ++-- src/app/page.tsx | 4 ++-- src/app/record/page.tsx | 9 ++++++--- src/components/ArticleLayout/Classics/index.tsx | 4 ++-- src/components/ArticleLayout/index.tsx | 4 ++-- src/components/Footer/index.tsx | 4 ++-- src/components/Header/index.tsx | 6 +++--- src/components/Sidebar/Author/index.tsx | 4 ++-- src/components/Sidebar/HotArticle/index.tsx | 4 ++-- src/components/Sidebar/index.tsx | 4 ++-- src/components/Swiper/index.tsx | 4 ++-- src/types/app/project.d.ts | 4 +++- 17 files changed, 38 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index d382f00..fb88ccc 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,6 @@

ThriveX

-

- 官网:https://thrivex.liuyuyang.net/ -

-

年轻、高颜值、全开源、永不收费的现代化博客管理系统

![](https://bu.dusays.com/2024/11/25/67445b7df3742.png) @@ -275,7 +271,6 @@ lyy: - ## 项目后续的开发计划 ![PixPin_2024-11-11_18-03-02.png](https://bu.dusays.com/2024/11/11/6731d7056b4ee.png) diff --git a/src/api/project.ts b/src/api/project.ts index 78fea66..dea33f3 100644 --- a/src/api/project.ts +++ b/src/api/project.ts @@ -1,7 +1,7 @@ import Request from "@/utils/request"; // 获取项目配置 -export const getConfigDataAPI = (type: string) => Request("GET", `/config/list/${type}`) +export const getThemeDataAPI = (type: string) => Request("GET", `/config/list/${type}`) // 修改项目配置 -export const editConfigDataAPI = (type: string, data: object) => Request<{ [string: string]: string }>("PATCH", `/config/${type}`, { data }) \ No newline at end of file +export const editThemeDataAPI = (type: string, data: object) => Request<{ [string: string]: string }>("PATCH", `/config/${type}`, { data }) \ No newline at end of file diff --git a/src/app/api/rss/route.ts b/src/app/api/rss/route.ts index 2cf5d0c..316cf27 100644 --- a/src/app/api/rss/route.ts +++ b/src/app/api/rss/route.ts @@ -7,12 +7,12 @@ import { Article } from '@/types/app/article'; import { Record } from '@/types/app/record' import { getArticlePagingAPI } from '@/api/article' -import { getConfigDataAPI } from '@/api/project' +import { getThemeDataAPI } from '@/api/project' import { getUserDataAPI } from '@/api/user' import { getRecordPagingAPI } from '@/api/record'; export async function GET() { - const { data: web } = await getConfigDataAPI("web") || { data: {} as Web } + const { data: web } = await getThemeDataAPI("web") || { data: {} as Web } const { data: user } = await getUserDataAPI() || { data: {} as User } const { data: article } = await getArticlePagingAPI({ pagination: { page: 1, size: 8 } }) || { data: {} as Paginate } const { data: record } = await getRecordPagingAPI({ pagination: { page: 1, size: 8 } }) || { data: {} as Paginate } diff --git a/src/app/article/components/MD/index.tsx b/src/app/article/components/MD/index.tsx index 01925cb..b59f728 100644 --- a/src/app/article/components/MD/index.tsx +++ b/src/app/article/components/MD/index.tsx @@ -69,7 +69,7 @@ const ContentMD = ({ data }: Props) => { return ( - + {alt} @@ -80,7 +80,7 @@ const ContentMD = ({ data }: Props) => { const [poster, width = '640'] = title ? title.split(',') : []; return ( -
+