@windrun-huaiin/diaomao 2.3.4 → 2.3.6
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/.env.local.txt +1 -0
- package/package.json +4 -4
- package/src/app/[locale]/(home)/blog/[[...slug]]/page.tsx +1 -0
- package/src/app/[locale]/(home)/legal/[[...slug]]/page.tsx +1 -0
- package/src/app/robots.ts +2 -10
- package/src/app/sitemap.ts +6 -20
- package/src/mdx/blog/index.mdx +3 -8
- package/src/mdx/blog/ioc.mdx +2 -4
- package/src/mdx/blog/nextjs-architecture.mdx +0 -129
package/.env.local.txt
CHANGED
|
@@ -3,6 +3,7 @@ NEXT_PUBLIC_BASE_URL=http://localhost:3000
|
|
|
3
3
|
|
|
4
4
|
NEXT_PUBLIC_GITHUB=https://github.com/PowerZCY/next-ai-build/
|
|
5
5
|
NEXT_PUBLIC_GITHUB_BASE_URL=https://github.com/PowerZCY/next-ai-build/blob/main/apps/diaomao
|
|
6
|
+
NEXT_PUBLIC_STYLE_CDN_PROXY_URL=https://r2-explorer-template.zcy777et.workers.dev/proxy
|
|
6
7
|
|
|
7
8
|
# Website uniform style
|
|
8
9
|
NEXT_PUBLIC_STYLE_ICON_COLOR=text-purple-500
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windrun-huaiin/diaomao",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@tailwindcss/typography": "latest",
|
|
27
27
|
"@types/mdx": "^2.0.13",
|
|
28
28
|
"@windrun-huaiin/base-ui": "^6.0.1",
|
|
29
|
-
"@windrun-huaiin/lib": "^6.
|
|
30
|
-
"@windrun-huaiin/third-ui": "^5.
|
|
29
|
+
"@windrun-huaiin/lib": "^6.2.0",
|
|
30
|
+
"@windrun-huaiin/third-ui": "^5.13.0",
|
|
31
31
|
"autoprefixer": "^10.4.21",
|
|
32
32
|
"class-variance-authority": "^0.7.1",
|
|
33
33
|
"clsx": "^2.1.1",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@types/react-dom": "19.1.3",
|
|
66
66
|
"@types/react-medium-image-zoom": "^3.0.3",
|
|
67
67
|
"@typescript-eslint/parser": "^8.32.1",
|
|
68
|
-
"@windrun-huaiin/dev-scripts": "^6.8.
|
|
68
|
+
"@windrun-huaiin/dev-scripts": "^6.8.1",
|
|
69
69
|
"eslint": "^9.27.0",
|
|
70
70
|
"eslint-config-next": "15.3.2",
|
|
71
71
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
@@ -16,6 +16,7 @@ const { Page, generateStaticParams, generateMetadata } = createFumaPage({
|
|
|
16
16
|
copyButtonComponent: <LLMCopyButton />,
|
|
17
17
|
siteIcon: <SiteIcon />,
|
|
18
18
|
FallbackPage: NotFoundPage,
|
|
19
|
+
supportedLocales: appConfig.i18n.locales as string[],
|
|
19
20
|
});
|
|
20
21
|
|
|
21
22
|
export default Page;
|
|
@@ -14,6 +14,7 @@ const { Page, generateStaticParams, generateMetadata } = createFumaPage({
|
|
|
14
14
|
githubBaseUrl: appConfig.githubBaseUrl,
|
|
15
15
|
siteIcon: <SiteIcon />,
|
|
16
16
|
FallbackPage: NotFoundPage,
|
|
17
|
+
supportedLocales: appConfig.i18n.locales as string[],
|
|
17
18
|
});
|
|
18
19
|
|
|
19
20
|
export default Page;
|
package/src/app/robots.ts
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
import { appConfig } from "@/lib/appConfig";
|
|
2
|
-
import
|
|
2
|
+
import { createRobotsHandler } from "@windrun-huaiin/third-ui/lib/server";
|
|
3
3
|
|
|
4
|
-
export default
|
|
5
|
-
return {
|
|
6
|
-
rules: {
|
|
7
|
-
userAgent: "*",
|
|
8
|
-
allow: "/",
|
|
9
|
-
},
|
|
10
|
-
sitemap: `${appConfig.baseUrl}/sitemap.xml`,
|
|
11
|
-
};
|
|
12
|
-
}
|
|
4
|
+
export default createRobotsHandler(appConfig.baseUrl);
|
package/src/app/sitemap.ts
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
import { MetadataRoute } from 'next'
|
|
2
1
|
import { appConfig } from "@/lib/appConfig";
|
|
2
|
+
import { createSitemapHandler } from "@windrun-huaiin/third-ui/lib/server";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const locales = appConfig.i18n.locales
|
|
10
|
-
|
|
11
|
-
const routes = [
|
|
12
|
-
// main page (all locales)
|
|
13
|
-
...locales.map(locale => ({
|
|
14
|
-
url: `${baseUrl}/${locale}`,
|
|
15
|
-
lastModified: new Date(),
|
|
16
|
-
changeFrequency: 'weekly' as const,
|
|
17
|
-
priority: 1.0
|
|
18
|
-
}))
|
|
19
|
-
]
|
|
20
|
-
|
|
21
|
-
return routes
|
|
22
|
-
}
|
|
4
|
+
export default createSitemapHandler(
|
|
5
|
+
appConfig.baseUrl,
|
|
6
|
+
appConfig.i18n.locales as string[],
|
|
7
|
+
appConfig.mdxSourceDir.blog
|
|
8
|
+
);
|
package/src/mdx/blog/index.mdx
CHANGED
|
@@ -2,13 +2,8 @@
|
|
|
2
2
|
title: Blog
|
|
3
3
|
description: Articles and thoughts about various topics.
|
|
4
4
|
icon: Rss
|
|
5
|
-
date: 2025-07-
|
|
5
|
+
date: 2025-07-30
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
##
|
|
9
|
-
|
|
10
|
-
<Cards>
|
|
11
|
-
<ZiaCard icon={<Gift />} href="blog/nextjs-architecture" title="About Project Structure">
|
|
12
|
-
2025-07-26
|
|
13
|
-
</ZiaCard>
|
|
14
|
-
</Cards>
|
|
8
|
+
## Ooops
|
|
9
|
+
No blog posts found yet. Stay tuned!
|
package/src/mdx/blog/ioc.mdx
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Monthly Summary
|
|
3
3
|
description: Index and Summary
|
|
4
|
-
date: 2025-07-
|
|
4
|
+
date: 2025-07-30
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
## Overview
|
|
9
9
|
<Files>
|
|
10
|
-
<
|
|
11
|
-
<ZiaFile name="2025-07-26(About Project Structure)" href="./nextjs-architecture" />
|
|
12
|
-
</ZiaFolder>
|
|
10
|
+
<ZiaFile name="Comming Soon" className="opacity-50" disabled/>
|
|
13
11
|
</Files>
|
|
14
12
|
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: About Project Structure
|
|
3
|
-
description: Show all source code directories and files
|
|
4
|
-
icon: Gift
|
|
5
|
-
date: 2025-07-26
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Quick Started
|
|
9
|
-
|
|
10
|
-
<Files>
|
|
11
|
-
<ZiaFolder name="ROOT" anotion="Diaomao Project" defaultOpen>
|
|
12
|
-
<ZiaFolder name=".changeset" anotion="" defaultOpen>
|
|
13
|
-
<ZiaFile name="config.json" anotion="" href="" />
|
|
14
|
-
<ZiaFile name="d8-template.mdx" anotion="" href="" />
|
|
15
|
-
<ZiaFile name="README.md" anotion="项目说明文档" href="" />
|
|
16
|
-
</ZiaFolder>
|
|
17
|
-
<ZiaFile name=".env.local" anotion="本地环境变量配置" href="" />
|
|
18
|
-
<ZiaFile name=".env.local.txt" anotion="初始化配置备份" href="" />
|
|
19
|
-
<ZiaFile name=".eslintrc.json" anotion="ESLint 代码规范配置" href="" />
|
|
20
|
-
<ZiaFile name=".gitignore" anotion="Git忽略文件配置" href="" />
|
|
21
|
-
<ZiaFolder name=".source" anotion="Fuma数据源Build产物" defaultOpen>
|
|
22
|
-
<ZiaFile name="index.ts" anotion="" href="" />
|
|
23
|
-
<ZiaFile name="source.config.mjs" anotion="" href="" />
|
|
24
|
-
</ZiaFolder>
|
|
25
|
-
<ZiaFile name="CHANGELOG.md" anotion="变更记录" href="" />
|
|
26
|
-
<ZiaFile name="components.json" anotion="组件依赖清单" href="" />
|
|
27
|
-
<ZiaFile name="dev-scripts.config.json" anotion="dev-scripts脚本工具配置" href="" />
|
|
28
|
-
<ZiaFile name="LICENSE" anotion="开源许可证" href="" />
|
|
29
|
-
<ZiaFolder name="messages" anotion="翻译目录" defaultOpen>
|
|
30
|
-
<ZiaFile name="en.json" anotion="" href="" />
|
|
31
|
-
</ZiaFolder>
|
|
32
|
-
<ZiaFile name="next-env.d.ts" anotion="Next.js环境类型声明" href="" />
|
|
33
|
-
<ZiaFile name="next.config.ts" anotion="Next.js项目配置" href="" />
|
|
34
|
-
<ZiaFile name="package.json" anotion="项目依赖与脚本" href="" />
|
|
35
|
-
<ZiaFolder name="patches" anotion="" defaultOpen>
|
|
36
|
-
<ZiaFile name="fumadocs-ui@15.3.3.patch" anotion="fumadocs版本补丁" href="" />
|
|
37
|
-
</ZiaFolder>
|
|
38
|
-
<ZiaFile name="postcss.config.mjs" anotion="PostCSS 配置" href="" />
|
|
39
|
-
<ZiaFile name="source.config.ts" anotion="Fuma数据源扫描配置" href="" />
|
|
40
|
-
<ZiaFolder name="src" anotion="源码目录" defaultOpen>
|
|
41
|
-
<ZiaFolder name="app" anotion="Next.js 应用主入口目录" defaultOpen>
|
|
42
|
-
<ZiaFolder name="[locale]" anotion="Nextjs i18n路由目录" defaultOpen>
|
|
43
|
-
<ZiaFolder name="(clerk)" anotion="Clerk认证" defaultOpen>
|
|
44
|
-
<ZiaFile name="layout.tsx" anotion="布局" href="" />
|
|
45
|
-
<ZiaFolder name="sign-in" anotion="" defaultOpen>
|
|
46
|
-
<ZiaFolder name="[[...sign-in]]" anotion="" defaultOpen>
|
|
47
|
-
<ZiaFile name="page.tsx" anotion="" href="" />
|
|
48
|
-
</ZiaFolder>
|
|
49
|
-
</ZiaFolder>
|
|
50
|
-
<ZiaFolder name="sign-up" anotion="" defaultOpen>
|
|
51
|
-
<ZiaFolder name="[[...sign-up]]" anotion="" defaultOpen>
|
|
52
|
-
<ZiaFile name="page.tsx" anotion="" href="" />
|
|
53
|
-
</ZiaFolder>
|
|
54
|
-
</ZiaFolder>
|
|
55
|
-
<ZiaFolder name="waitlist" anotion="" defaultOpen>
|
|
56
|
-
<ZiaFolder name="[[...waitlist]]" anotion="" defaultOpen>
|
|
57
|
-
<ZiaFile name="page.tsx" anotion="" href="" />
|
|
58
|
-
</ZiaFolder>
|
|
59
|
-
</ZiaFolder>
|
|
60
|
-
</ZiaFolder>
|
|
61
|
-
<ZiaFolder name="(home)" anotion="首页" defaultOpen>
|
|
62
|
-
<ZiaFolder name="[...catchAll]" anotion="全局404页面" defaultOpen>
|
|
63
|
-
<ZiaFile name="page.tsx" anotion="" href="" />
|
|
64
|
-
</ZiaFolder>
|
|
65
|
-
<ZiaFolder name="blog" anotion="博客" defaultOpen>
|
|
66
|
-
<ZiaFolder name="[[...slug]]" anotion="" defaultOpen>
|
|
67
|
-
<ZiaFile name="page.tsx" anotion="" href="" />
|
|
68
|
-
</ZiaFolder>
|
|
69
|
-
<ZiaFile name="layout.tsx" anotion="布局" href="" />
|
|
70
|
-
</ZiaFolder>
|
|
71
|
-
<ZiaFile name="layout.tsx" anotion="布局" href="" />
|
|
72
|
-
<ZiaFolder name="legal" anotion="法律" defaultOpen>
|
|
73
|
-
<ZiaFolder name="[[...slug]]" anotion="" defaultOpen>
|
|
74
|
-
<ZiaFile name="page.tsx" anotion="" href="" />
|
|
75
|
-
</ZiaFolder>
|
|
76
|
-
<ZiaFile name="layout.tsx" anotion="布局" href="" />
|
|
77
|
-
</ZiaFolder>
|
|
78
|
-
<ZiaFile name="page.tsx" anotion="" href="" />
|
|
79
|
-
</ZiaFolder>
|
|
80
|
-
<ZiaFile name="globals.css" anotion="全局样式" href="" />
|
|
81
|
-
<ZiaFile name="layout.config.tsx" anotion="布局配置" href="" />
|
|
82
|
-
<ZiaFile name="layout.tsx" anotion="布局" href="" />
|
|
83
|
-
<ZiaFile name="loading.tsx" anotion="全局加载组件" href="" />
|
|
84
|
-
</ZiaFolder>
|
|
85
|
-
<ZiaFolder name="api" anotion="API接口" defaultOpen>
|
|
86
|
-
<ZiaFolder name="blog" anotion="博客" defaultOpen>
|
|
87
|
-
<ZiaFolder name="llm-content" anotion="FumaMDX复制接口" defaultOpen>
|
|
88
|
-
<ZiaFile name="route.ts" anotion="" href="" />
|
|
89
|
-
</ZiaFolder>
|
|
90
|
-
</ZiaFolder>
|
|
91
|
-
<ZiaFolder name="legal" anotion="法律" defaultOpen>
|
|
92
|
-
<ZiaFolder name="llm-content" anotion="FumaMDX复制接口" defaultOpen>
|
|
93
|
-
<ZiaFile name="route.ts" anotion="" href="" />
|
|
94
|
-
</ZiaFolder>
|
|
95
|
-
</ZiaFolder>
|
|
96
|
-
</ZiaFolder>
|
|
97
|
-
<ZiaFile name="robots.ts" anotion="robots.txt生成脚本" href="" />
|
|
98
|
-
<ZiaFile name="sitemap.ts" anotion="网站地图" href="" />
|
|
99
|
-
</ZiaFolder>
|
|
100
|
-
<ZiaFolder name="components" anotion="页面组件" defaultOpen>
|
|
101
|
-
<ZiaFile name="hero.tsx" anotion="首页大字组件" href="" />
|
|
102
|
-
<ZiaFile name="mdx-components.tsx" anotion="FumaMDX组件库(自定义)" href="" />
|
|
103
|
-
</ZiaFolder>
|
|
104
|
-
<ZiaFile name="i18n.ts" anotion="多语言配置" href="" />
|
|
105
|
-
<ZiaFolder name="lib" anotion="工具包" defaultOpen>
|
|
106
|
-
<ZiaFile name="appConfig.ts" anotion="应用全局配置" href="" />
|
|
107
|
-
<ZiaFile name="price-config.ts" anotion="" href="" />
|
|
108
|
-
<ZiaFile name="site-config.ts" anotion="网站图标配置" href="" />
|
|
109
|
-
<ZiaFile name="source-blog.ts" anotion="" href="" />
|
|
110
|
-
<ZiaFile name="source-legal.ts" anotion="" href="" />
|
|
111
|
-
</ZiaFolder>
|
|
112
|
-
<ZiaFolder name="mdx" anotion="FumaMDX文档" defaultOpen>
|
|
113
|
-
<ZiaFolder name="blog" anotion="博客" defaultOpen>
|
|
114
|
-
<ZiaFile name="meta.json" anotion="FumaMDX元数据" href="" />
|
|
115
|
-
<ZiaFile name="nextjs-architecture.mdx" anotion="Next.js项目结构" href="" />
|
|
116
|
-
</ZiaFolder>
|
|
117
|
-
<ZiaFolder name="legal" anotion="法律" defaultOpen>
|
|
118
|
-
<ZiaFile name="index.mdx" anotion="" href="" />
|
|
119
|
-
<ZiaFile name="meta.json" anotion="FumaMDX元数据" href="" />
|
|
120
|
-
<ZiaFile name="privacy.mdx" anotion="" href="" />
|
|
121
|
-
<ZiaFile name="terms.mdx" anotion="" href="" />
|
|
122
|
-
</ZiaFolder>
|
|
123
|
-
</ZiaFolder>
|
|
124
|
-
<ZiaFile name="middleware.ts" anotion="中间件入口" href="" />
|
|
125
|
-
</ZiaFolder>
|
|
126
|
-
<ZiaFile name="tsconfig.json" anotion="TypeScript配置" href="" />
|
|
127
|
-
<ZiaFile name="tsconfig.node.json" anotion="Node.js相关TypeScript 配置" href="" />
|
|
128
|
-
</ZiaFolder>
|
|
129
|
-
</Files>
|