@windrun-huaiin/diaomao 14.0.0 → 14.1.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/.env.local.txt CHANGED
@@ -1,10 +1,12 @@
1
- # domain and github link
1
+ # website homepage url
2
2
  NEXT_PUBLIC_BASE_URL=http://localhost:3000
3
3
 
4
+ # your project github url
4
5
  NEXT_PUBLIC_GITHUB=https://github.com/caofanCPU/diaomao/
5
6
  NEXT_PUBLIC_GITHUB_BASE_URL=https://github.com/caofanCPU/diaomao/main
6
7
  NEXT_PUBLIC_STYLE_CDN_PROXY_URL=YOURS-
7
8
 
9
+ ## https://supabase.com/docs/guides/database/connecting-to-postgres
8
10
  ## 直连模式supabase只支持ipv6;事务模式又不支持Prisma的预处理语句;所以必须降级为会话模式
9
11
  ## Project View -> Connect -> 查看连接方式以及限制
10
12
  # DATABASE_URL="postgresql://用户名.项目ID:[YOUR-PASSWORD]@服务厂商域名.pooler.supabase.com:5432/postgres?sslmode=require&schema=diaomao"
@@ -14,9 +16,8 @@ NEXT_PUBLIC_STYLE_CDN_PROXY_URL=YOURS-
14
16
  DATABASE_URL="postgresql://postgres:PASSWORD@localhost:5432/postgres?schema=diaomao"
15
17
 
16
18
 
17
- # Website uniform style
18
- NEXT_PUBLIC_STYLE_ICON_COLOR=text-purple-500
19
- NEXT_PUBLIC_STYLE_SVG_ICON_COLOR=#AC62FD
19
+ # purple, orange, indigo, emerald, rose
20
+ NEXT_PUBLIC_STYLE_ICON_COLOR=orange
20
21
  NEXT_PUBLIC_STYLE_SVG_ICON_SIZE=18
21
22
 
22
23
  NEXT_PUBLIC_STYLE_SHOW_BANNER=true
@@ -31,11 +32,12 @@ NEXT_PUBLIC_GOOGLE_ANALYTICS_ID=
31
32
  # MicrosoftID TODO
32
33
  NEXT_PUBLIC_MICROSOFT_CLARITY_ID=
33
34
 
34
- # Only-Use-In-Server, !!DO NOT USE IN CLIENT!!
35
- CLERK_DEBUG=false
36
35
  NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=YOURS-
36
+
37
+ # Only-Use-In-Server, !!DO NOT USE IN CLIENT!!
37
38
  CLERK_SECRET_KEY=YOURS-
38
39
  CLERK_WEBHOOK_SECRET=YOURS-
40
+ CLERK_DEBUG=false
39
41
 
40
42
  # sign-in url
41
43
  NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
@@ -19,6 +19,84 @@
19
19
  "logDir": "logs",
20
20
  "verbose": false
21
21
  },
22
+ "diaomaoUpdate": {
23
+ "sourceUrl": "https://raw.githubusercontent.com/caofanCPU/next-ai-build/main/pnpm-workspace.yaml",
24
+ "allowedPackages": [
25
+ "@changesets/cli",
26
+ "@clerk/localizations",
27
+ "@clerk/nextjs",
28
+ "@clerk/shared",
29
+ "@clerk/themes",
30
+ "@fingerprintjs/fingerprintjs",
31
+ "@hookform/resolvers",
32
+ "@prisma/client",
33
+ "@radix-ui/react-alert-dialog",
34
+ "@radix-ui/react-dropdown-menu",
35
+ "@radix-ui/react-label",
36
+ "@radix-ui/react-slot",
37
+ "@tailwindcss/cli",
38
+ "@tailwindcss/postcss",
39
+ "@tailwindcss/typography",
40
+ "@types/hast",
41
+ "@types/mdx",
42
+ "@types/node",
43
+ "@types/nprogress",
44
+ "@types/react",
45
+ "@types/react-dom",
46
+ "@typescript-eslint/parser",
47
+ "@windrun-huaiin/backend-core",
48
+ "@windrun-huaiin/base-ui",
49
+ "@windrun-huaiin/dev-scripts",
50
+ "@windrun-huaiin/lib",
51
+ "@windrun-huaiin/third-ui",
52
+ "autoprefixer",
53
+ "baseline-browser-mapping",
54
+ "class-variance-authority",
55
+ "clsx",
56
+ "date-fns",
57
+ "eslint",
58
+ "eslint-config-next",
59
+ "eslint-plugin-unused-imports",
60
+ "fast-glob",
61
+ "fumadocs-core",
62
+ "fumadocs-docgen",
63
+ "fumadocs-mdx",
64
+ "fumadocs-typescript",
65
+ "fumadocs-ui",
66
+ "katex",
67
+ "lucide-react",
68
+ "mermaid",
69
+ "next",
70
+ "next-intl",
71
+ "next-themes",
72
+ "nprogress",
73
+ "postcss",
74
+ "prisma",
75
+ "react",
76
+ "react-dom",
77
+ "react-medium-image-zoom",
78
+ "rehype-katex",
79
+ "remark",
80
+ "remark-frontmatter",
81
+ "remark-gfm",
82
+ "remark-math",
83
+ "remark-mdx",
84
+ "shiki",
85
+ "stripe",
86
+ "svix",
87
+ "swiper",
88
+ "tailwind-merge",
89
+ "tailwindcss",
90
+ "tailwindcss-animate",
91
+ "ts-morph",
92
+ "ts-node",
93
+ "typescript",
94
+ "unist-util-visit",
95
+ "uuid",
96
+ "zod"
97
+ ],
98
+ "compactLog": true
99
+ },
22
100
  "architectureConfig": {
23
101
  ".": "Diaomao Project"
24
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/diaomao",
3
- "version": "14.0.0",
3
+ "version": "14.1.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,10 +27,10 @@
27
27
  "@radix-ui/react-slot": "^1.2.4",
28
28
  "@tailwindcss/typography": "^0.5.19",
29
29
  "@types/mdx": "^2.0.13",
30
- "@windrun-huaiin/backend-core": "^14.0.0",
31
- "@windrun-huaiin/base-ui": "^14.0.0",
30
+ "@windrun-huaiin/backend-core": "14.1.1",
31
+ "@windrun-huaiin/base-ui": "14.0.2",
32
32
  "@windrun-huaiin/lib": "^14.0.0",
33
- "@windrun-huaiin/third-ui": "^14.0.0",
33
+ "@windrun-huaiin/third-ui": "14.0.2",
34
34
  "autoprefixer": "^10.4.27",
35
35
  "class-variance-authority": "^0.7.1",
36
36
  "clsx": "^2.1.1",
@@ -75,7 +75,7 @@
75
75
  "@types/react": "^19.2.14",
76
76
  "@types/react-dom": "^19.2.3",
77
77
  "@typescript-eslint/parser": "^8.56.1",
78
- "@windrun-huaiin/dev-scripts": "^14.0.0",
78
+ "@windrun-huaiin/dev-scripts": "^14.1.2",
79
79
  "baseline-browser-mapping": "^2.10.0",
80
80
  "eslint": "^9.39.1",
81
81
  "eslint-config-next": "^16.1.6",
@@ -124,6 +124,8 @@
124
124
  "lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
125
125
  "deep-clean": "dev-scripts deep-clean",
126
126
  "d8": "pnpm run deep-clean",
127
+ "diaomao-help": "dev-scripts -h",
128
+ "diaomao-update": "dev-scripts diaomao-update -v",
127
129
  "easy-changeset": "dev-scripts easy-changeset",
128
130
  "dj": "pnpm run easy-changeset && pnpm changeset status",
129
131
  "djv": "pnpm changeset version",
@@ -13,7 +13,6 @@ export default async function Home({ params }: { params: Promise<{ locale: strin
13
13
  return (
14
14
  <>
15
15
  { (forceShow || isDev) && <FingerprintStatus /> }
16
- <FingerprintStatus />
17
16
  <Hero locale={locale} />
18
17
  <Gallery
19
18
  locale={locale}
@@ -1,9 +1,9 @@
1
- import Image from "next/image"
2
1
  import { getTranslations } from 'next-intl/server'
3
2
  import { globalLucideIcons as icons} from '@windrun-huaiin/base-ui/components/server'
4
3
  import { themeHeroEyesOnClass } from '@windrun-huaiin/base-ui/lib'
5
4
  import { cn } from "@windrun-huaiin/lib"
6
5
  import { GradientButton } from "@windrun-huaiin/third-ui/fuma/mdx"
6
+ import { DelayedImg } from "@windrun-huaiin/third-ui/main"
7
7
 
8
8
  export async function Hero({ locale }: { locale: string }) {
9
9
  const t = await getTranslations({ locale, namespace: 'hero' });
@@ -31,15 +31,16 @@ export async function Hero({ locale }: { locale: string }) {
31
31
  </div>
32
32
  <div className="flex-1 relative flex justify-center md:justify-end">
33
33
  <div className="rounded-lg overflow-hidden shadow-purple-500/20 group">
34
- <Image
35
- src={t('heroImageUrl')}
36
- alt={t('heroImageAlt')}
37
- width={500}
38
- height={500}
39
- priority
40
- className="h-auto w-full rounded-lg transition duration-300 group-hover:scale-105"
41
- sizes="(max-width: 768px) 90vw, (max-width: 1200px) 45vw, 35vw"
42
- />
34
+ <DelayedImg
35
+ src={t('heroImageUrl')}
36
+ alt={t('heroImageAlt')}
37
+ fill
38
+ preload
39
+ sizes="(max-width: 768px) 90vw, (max-width: 1200px) 45vw, 35vw"
40
+ className="rounded-lg object-cover group-hover:scale-105"
41
+ wrapperClassName="h-full w-full"
42
+ placeholderClassName="rounded-lg"
43
+ />
43
44
  </div>
44
45
  </div>
45
46
  </section>
@@ -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-19
5
+ date: 2026-03-22
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-19
4
+ date: 2026-03-22
5
5
  ---
6
6
 
7
7