From 6c4dd0c77b019d948fb6c2c7b6103c56412a11fe Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 4 Sep 2024 16:54:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?gitbook=20=E4=B8=BB=E9=A2=98=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0loadingcover?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/gitbook/components/LoadingCover.js | 7 ------- themes/gitbook/index.js | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 themes/gitbook/components/LoadingCover.js diff --git a/themes/gitbook/components/LoadingCover.js b/themes/gitbook/components/LoadingCover.js deleted file mode 100644 index f74757ef..00000000 --- a/themes/gitbook/components/LoadingCover.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function LoadingCover() { - return
-
- -
-
-} diff --git a/themes/gitbook/index.js b/themes/gitbook/index.js index 5d4255e1..ca82dd52 100644 --- a/themes/gitbook/index.js +++ b/themes/gitbook/index.js @@ -3,6 +3,7 @@ import Comment from '@/components/Comment' import { AdSlot } from '@/components/GoogleAdsense' import Live2D from '@/components/Live2D' +import LoadingCover from '@/components/LoadingCover' import NotionIcon from '@/components/NotionIcon' import NotionPage from '@/components/NotionPage' import ShareBar from '@/components/ShareBar' @@ -113,6 +114,11 @@ const LayoutBase = props => { setFilteredNavPages(getNavPagesWithLatest(allNavPages, latestPosts, post)) }, [router]) + const GITBOOK_LOADING_COVER = siteConfig( + 'GITBOOK_LOADING_COVER', + true, + CONFIG + ) return ( { )} + {GITBOOK_LOADING_COVER && } + {/* 移动端导航抽屉 */} From b5863172fc3349119f90ce5545a9c82433d7d635 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 4 Sep 2024 16:57:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?gitbook=E5=BA=95=E6=A0=8F=E6=B7=B1=E8=89=B2?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/gitbook/components/BottomMenuBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/gitbook/components/BottomMenuBar.js b/themes/gitbook/components/BottomMenuBar.js index 52e095d4..79b498ea 100644 --- a/themes/gitbook/components/BottomMenuBar.js +++ b/themes/gitbook/components/BottomMenuBar.js @@ -12,7 +12,7 @@ export default function BottomMenuBar({ post, className }) { return ( <> {/* 移动端底部导航按钮 */} -
+