@windrun-huaiin/diaomao 12.0.1 → 13.0.0
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 +40 -41
- package/src/i18n.ts +1 -1
- package/src/lib/appConfig.ts +1 -1
- package/src/mdx/blog/index.mdx +1 -1
- package/src/mdx/blog/ioc.mdx +1 -1
- package/src/proxy.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windrun-huaiin/diaomao",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,81 +15,80 @@
|
|
|
15
15
|
"react"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@clerk/localizations": "^3.
|
|
19
|
-
"@clerk/nextjs": "^6.
|
|
20
|
-
"@clerk/themes": "^2.4.
|
|
21
|
-
"@clerk/types": "^4.
|
|
22
|
-
"@fingerprintjs/fingerprintjs": "^
|
|
23
|
-
"@hookform/resolvers": "^
|
|
18
|
+
"@clerk/localizations": "^3.37.2",
|
|
19
|
+
"@clerk/nextjs": "^6.39.0",
|
|
20
|
+
"@clerk/themes": "^2.4.57",
|
|
21
|
+
"@clerk/types": "^4.101.20",
|
|
22
|
+
"@fingerprintjs/fingerprintjs": "^5.1.0",
|
|
23
|
+
"@hookform/resolvers": "^5.2.2",
|
|
24
24
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
25
25
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
26
26
|
"@radix-ui/react-label": "^2.1.8",
|
|
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": "^
|
|
31
|
-
"@windrun-huaiin/base-ui": "^
|
|
32
|
-
"@windrun-huaiin/lib": "^
|
|
33
|
-
"@windrun-huaiin/third-ui": "^
|
|
34
|
-
"autoprefixer": "^10.4.
|
|
30
|
+
"@windrun-huaiin/backend-core": "^13.0.0",
|
|
31
|
+
"@windrun-huaiin/base-ui": "^13.0.0",
|
|
32
|
+
"@windrun-huaiin/lib": "^13.0.0",
|
|
33
|
+
"@windrun-huaiin/third-ui": "^13.0.1",
|
|
34
|
+
"autoprefixer": "^10.4.27",
|
|
35
35
|
"class-variance-authority": "^0.7.1",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
|
-
"date-fns": "^
|
|
37
|
+
"date-fns": "^4.1.0",
|
|
38
38
|
"fumadocs-core": "16.0.9",
|
|
39
39
|
"fumadocs-docgen": "3.0.4",
|
|
40
40
|
"fumadocs-mdx": "13.0.6",
|
|
41
41
|
"fumadocs-typescript": "4.0.13",
|
|
42
42
|
"fumadocs-ui": "16.0.9",
|
|
43
|
-
"katex": "^0.16.
|
|
44
|
-
"lucide-react": "^0.
|
|
45
|
-
"mermaid": "
|
|
46
|
-
"next": "16.
|
|
47
|
-
"next-intl": "^4.
|
|
43
|
+
"katex": "^0.16.33",
|
|
44
|
+
"lucide-react": "^0.575.0",
|
|
45
|
+
"mermaid": "11.12.1",
|
|
46
|
+
"next": "16.1.6",
|
|
47
|
+
"next-intl": "^4.8.3",
|
|
48
48
|
"next-themes": "^0.4.6",
|
|
49
|
-
"react": "19.2.
|
|
50
|
-
"react-dom": "19.2.
|
|
51
|
-
"react-medium-image-zoom": "^5.4.
|
|
49
|
+
"react": "19.2.4",
|
|
50
|
+
"react-dom": "19.2.4",
|
|
51
|
+
"react-medium-image-zoom": "^5.4.1",
|
|
52
52
|
"rehype-katex": "^7.0.1",
|
|
53
53
|
"remark": "^15.0.1",
|
|
54
54
|
"remark-frontmatter": "^5.0.0",
|
|
55
55
|
"remark-gfm": "^4.0.1",
|
|
56
56
|
"remark-math": "^6.0.0",
|
|
57
57
|
"remark-mdx": "^3.1.1",
|
|
58
|
-
"shiki": "^
|
|
58
|
+
"shiki": "^4.0.0",
|
|
59
59
|
"stripe": "20.0.0",
|
|
60
|
-
"svix": "^1.
|
|
61
|
-
"swiper": "^12.
|
|
62
|
-
"tailwind-merge": "^3.
|
|
60
|
+
"svix": "^1.86.0",
|
|
61
|
+
"swiper": "^12.1.2",
|
|
62
|
+
"tailwind-merge": "^3.5.0",
|
|
63
63
|
"tailwindcss-animate": "^1.0.7",
|
|
64
|
-
"uuid": "^
|
|
65
|
-
"zod": "^4.
|
|
64
|
+
"uuid": "^13.0.0",
|
|
65
|
+
"zod": "^4.3.6"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@changesets/cli": "^2.29.
|
|
68
|
+
"@changesets/cli": "^2.29.8",
|
|
69
69
|
"@prisma/client": "^6.19.0",
|
|
70
|
-
"@tailwindcss/cli": "^4.1
|
|
71
|
-
"@tailwindcss/postcss": "^4.1
|
|
70
|
+
"@tailwindcss/cli": "^4.2.1",
|
|
71
|
+
"@tailwindcss/postcss": "^4.2.1",
|
|
72
72
|
"@types/hast": "^3.0.4",
|
|
73
|
-
"@types/node": "^
|
|
73
|
+
"@types/node": "^25.3.2",
|
|
74
74
|
"@types/nprogress": "^0.2.3",
|
|
75
|
-
"@types/react": "^19.
|
|
76
|
-
"@types/react-dom": "^19.
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"
|
|
80
|
-
"@windrun-huaiin/dev-scripts": "^12.0.2",
|
|
75
|
+
"@types/react": "^19.2.14",
|
|
76
|
+
"@types/react-dom": "^19.2.3",
|
|
77
|
+
"@typescript-eslint/parser": "^8.56.1",
|
|
78
|
+
"@windrun-huaiin/dev-scripts": "^13.0.0",
|
|
79
|
+
"baseline-browser-mapping": "^2.10.0",
|
|
81
80
|
"eslint": "^9.39.1",
|
|
82
|
-
"eslint-config-next": "^16.
|
|
83
|
-
"eslint-plugin-unused-imports": "^4.
|
|
81
|
+
"eslint-config-next": "^16.1.6",
|
|
82
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
84
83
|
"fast-glob": "^3.3.3",
|
|
85
84
|
"nprogress": "^0.2.0",
|
|
86
85
|
"postcss": "^8.5.6",
|
|
87
86
|
"prisma": "^6.19.0",
|
|
88
|
-
"tailwindcss": "^4.1
|
|
87
|
+
"tailwindcss": "^4.2.1",
|
|
89
88
|
"ts-morph": "^27.0.2",
|
|
90
89
|
"ts-node": "^10.9.2",
|
|
91
90
|
"typescript": "^5.8.3",
|
|
92
|
-
"unist-util-visit": "^5.
|
|
91
|
+
"unist-util-visit": "^5.1.0"
|
|
93
92
|
},
|
|
94
93
|
"files": [
|
|
95
94
|
".changeset",
|
package/src/i18n.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { I18nConfig } from 'fumadocs-core/i18n';
|
|
|
5
5
|
export const i18n: I18nConfig = {
|
|
6
6
|
defaultLanguage: appConfig.i18n.defaultLocale,
|
|
7
7
|
languages: appConfig.i18n.locales as unknown as string[],
|
|
8
|
-
hideLocale: appConfig.i18n.
|
|
8
|
+
hideLocale: appConfig.i18n.localePrefixAsNeeded ? "default-locale" : "never",
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
// Can be imported from a shared config
|
package/src/lib/appConfig.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const appConfig = {
|
|
|
14
14
|
// export i18n helpers
|
|
15
15
|
export const { isSupportedLocale, getValidLocale, generatedLocales } = createI18nHelpers(appConfig.i18n);
|
|
16
16
|
|
|
17
|
-
export const {
|
|
17
|
+
export const { localePrefixAsNeeded, defaultLocale } = appConfig.i18n;
|
|
18
18
|
|
|
19
19
|
// export shortcuts
|
|
20
20
|
export const { iconColor, watermark, showBanner, clerkPageBanner, clerkAuthInModal, placeHolderImage } = appConfig.shortcuts;
|
package/src/mdx/blog/index.mdx
CHANGED
package/src/mdx/blog/ioc.mdx
CHANGED
package/src/proxy.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { NextRequest, NextResponse } from "next/server";
|
|
|
13
13
|
const intlMiddleware = createMiddleware({
|
|
14
14
|
locales: appConfig.i18n.locales,
|
|
15
15
|
defaultLocale: appConfig.i18n.defaultLocale,
|
|
16
|
-
localePrefix: appConfig.i18n.
|
|
16
|
+
localePrefix: appConfig.i18n.localePrefixAsNeeded ? "as-needed" : "always",
|
|
17
17
|
localeDetection: false
|
|
18
18
|
});
|
|
19
19
|
|
|
@@ -64,7 +64,7 @@ export default clerkMiddleware(
|
|
|
64
64
|
const url = req.nextUrl.clone();
|
|
65
65
|
url.pathname = `/${defaultLocale}${pathname}`;
|
|
66
66
|
|
|
67
|
-
if (appConfig.i18n.
|
|
67
|
+
if (appConfig.i18n.localePrefixAsNeeded) {
|
|
68
68
|
// as-needed: 内部rewrite,用户URL保持无前缀
|
|
69
69
|
console.log('[middleware rewrite]', { from: pathname, to: url.pathname });
|
|
70
70
|
return NextResponse.rewrite(url);
|