@windrun-huaiin/diaomao 14.3.0 → 14.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/diaomao",
3
- "version": "14.3.0",
3
+ "version": "14.3.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,7 +30,7 @@
30
30
  "@windrun-huaiin/backend-core": "14.3.0",
31
31
  "@windrun-huaiin/base-ui": "14.0.3",
32
32
  "@windrun-huaiin/lib": "14.0.1",
33
- "@windrun-huaiin/third-ui": "14.4.0",
33
+ "@windrun-huaiin/third-ui": "14.4.2",
34
34
  "autoprefixer": "^10.4.27",
35
35
  "class-variance-authority": "^0.7.1",
36
36
  "clsx": "^2.1.1",
@@ -0,0 +1,58 @@
1
+ import { baseOptions, homeNavLinks, levelNavLinks } from '@/app/[locale]/layout.config';
2
+ import { showBanner } from '@/lib/appConfig';
3
+ import { fingerprintConfig } from '@windrun-huaiin/backend-core/lib';
4
+ import { FingerprintProvider } from '@windrun-huaiin/third-ui/fingerprint';
5
+ import { CustomHomeLayout } from '@windrun-huaiin/third-ui/fuma/base';
6
+ import { type HomeLayoutProps } from 'fumadocs-ui/layouts/home';
7
+ import type { ReactNode } from 'react';
8
+
9
+ async function homeOptions(locale: string): Promise<HomeLayoutProps> {
10
+ return {
11
+ ...(await baseOptions(locale)),
12
+ links: [
13
+ ...(await levelNavLinks(locale)),
14
+ ...(await homeNavLinks(locale)),
15
+ ]
16
+ };
17
+ }
18
+
19
+ export default async function Layout({
20
+ params,
21
+ children,
22
+ }: {
23
+ params: Promise<{ locale: string }>;
24
+ children: ReactNode;
25
+ }) {
26
+ const { locale } = await params;
27
+ const customeOptions = await homeOptions(locale);
28
+ const homeLayoutOptions: HomeLayoutProps = {
29
+ ...customeOptions,
30
+ searchToggle: {
31
+ enabled: false,
32
+ },
33
+ themeSwitch: {
34
+ enabled: true,
35
+ mode: 'light-dark-system',
36
+ },
37
+ };
38
+
39
+ return (
40
+ <FingerprintProvider config={fingerprintConfig}>
41
+ <CustomHomeLayout
42
+ locale={locale}
43
+ options={homeLayoutOptions}
44
+ showBanner={showBanner}
45
+ showFooter={false}
46
+ floatingNav={true}
47
+ actionOrders={{
48
+ desktop: ['search', 'theme', 'github', 'i18n', 'secondary'],
49
+ mobileBar: ['search', 'pinned', 'menu'],
50
+ mobileMenu: ['theme', 'i18n', 'separator', 'secondary', 'github'],
51
+ }}
52
+ >
53
+ {children}
54
+ </CustomHomeLayout>
55
+ </FingerprintProvider>
56
+ );
57
+ }
58
+
@@ -2,7 +2,7 @@
2
2
  title: Blog
3
3
  description: Articles and thoughts about various topics.
4
4
  icon: Rss
5
- date: 2026-03-27
5
+ date: 2026-03-28
6
6
  ---
7
7
 
8
8
  ## Past List
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Monthly Summary
3
3
  description: Index and Summary
4
- date: 2026-03-27
4
+ date: 2026-03-28
5
5
  ---
6
6
 
7
7