@windrun-huaiin/third-ui 12.0.1 → 12.0.2
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/dist/lib/seo-util.js +14 -4
- package/dist/lib/seo-util.mjs +14 -4
- package/package.json +3 -3
- package/src/lib/seo-util.ts +14 -4
package/dist/lib/seo-util.js
CHANGED
|
@@ -11,10 +11,20 @@ var lib = require('@windrun-huaiin/lib');
|
|
|
11
11
|
*/
|
|
12
12
|
function generateRobots(baseUrl) {
|
|
13
13
|
return {
|
|
14
|
-
rules:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
rules: [
|
|
15
|
+
// General search engine rules
|
|
16
|
+
{
|
|
17
|
+
userAgent: "*",
|
|
18
|
+
allow: "/",
|
|
19
|
+
disallow: ["/admin/", "/api/"],
|
|
20
|
+
},
|
|
21
|
+
// AI crawler rules
|
|
22
|
+
{
|
|
23
|
+
userAgent: ["GPTBot", "Anthropic-AI", "Claude-Web", "PerplexityBot", "GoogleOther", "DuckAssistBot", "CohereBot", "xAI-Bot", "BingBot-AI", "HuggingFaceBot", "Bytespider", "meta-externalagent"],
|
|
24
|
+
allow: ["/llms.txt", "/llms-full.txt", "/en/"],
|
|
25
|
+
disallow: ["/user-content/", "/sign-in/", "/sign-up/", "/waitlist/", "/en/blog/", "/en/legal/"],
|
|
26
|
+
},
|
|
27
|
+
],
|
|
18
28
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
19
29
|
};
|
|
20
30
|
}
|
package/dist/lib/seo-util.mjs
CHANGED
|
@@ -9,10 +9,20 @@ import { getAsNeededLocalizedUrl } from '@windrun-huaiin/lib';
|
|
|
9
9
|
*/
|
|
10
10
|
function generateRobots(baseUrl) {
|
|
11
11
|
return {
|
|
12
|
-
rules:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
rules: [
|
|
13
|
+
// General search engine rules
|
|
14
|
+
{
|
|
15
|
+
userAgent: "*",
|
|
16
|
+
allow: "/",
|
|
17
|
+
disallow: ["/admin/", "/api/"],
|
|
18
|
+
},
|
|
19
|
+
// AI crawler rules
|
|
20
|
+
{
|
|
21
|
+
userAgent: ["GPTBot", "Anthropic-AI", "Claude-Web", "PerplexityBot", "GoogleOther", "DuckAssistBot", "CohereBot", "xAI-Bot", "BingBot-AI", "HuggingFaceBot", "Bytespider", "meta-externalagent"],
|
|
22
|
+
allow: ["/llms.txt", "/llms-full.txt", "/en/"],
|
|
23
|
+
disallow: ["/user-content/", "/sign-in/", "/sign-up/", "/waitlist/", "/en/blog/", "/en/legal/"],
|
|
24
|
+
},
|
|
25
|
+
],
|
|
16
26
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
17
27
|
};
|
|
18
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@windrun-huaiin/third-ui",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.2",
|
|
4
4
|
"description": "Third-party integrated UI components for windrun-huaiin projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"react-medium-image-zoom": "^5.2.14",
|
|
87
87
|
"swiper": "^12.0.3",
|
|
88
88
|
"zod": "^4.1.12",
|
|
89
|
-
"@windrun-huaiin/
|
|
90
|
-
"@windrun-huaiin/
|
|
89
|
+
"@windrun-huaiin/lib": "^12.0.1",
|
|
90
|
+
"@windrun-huaiin/base-ui": "^12.0.0"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"clsx": "^2.1.1",
|
package/src/lib/seo-util.ts
CHANGED
|
@@ -10,10 +10,20 @@ import { getAsNeededLocalizedUrl } from '@windrun-huaiin/lib';
|
|
|
10
10
|
*/
|
|
11
11
|
export function generateRobots(baseUrl: string): MetadataRoute.Robots {
|
|
12
12
|
return {
|
|
13
|
-
rules:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
rules: [
|
|
14
|
+
// General search engine rules
|
|
15
|
+
{
|
|
16
|
+
userAgent: "*",
|
|
17
|
+
allow: "/",
|
|
18
|
+
disallow: ["/admin/", "/api/"],
|
|
19
|
+
},
|
|
20
|
+
// AI crawler rules
|
|
21
|
+
{
|
|
22
|
+
userAgent: ["GPTBot", "Anthropic-AI", "Claude-Web", "PerplexityBot", "GoogleOther", "DuckAssistBot", "CohereBot", "xAI-Bot", "BingBot-AI", "HuggingFaceBot", "Bytespider", "meta-externalagent"],
|
|
23
|
+
allow: ["/llms.txt", "/llms-full.txt", "/en/"],
|
|
24
|
+
disallow: ["/user-content/", "/sign-in/", "/sign-up/", "/waitlist/", "/en/blog/", "/en/legal/"],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
17
27
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
18
28
|
};
|
|
19
29
|
}
|