jeawin-astro 3.0.65 → 3.0.67
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": "jeawin-astro",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.67",
|
|
4
4
|
"author": "chaegumi <chaegumi@qq.com>",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"test": "mocha test"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@babel/core": "^7.
|
|
29
|
-
"@babel/preset-env": "^7.
|
|
28
|
+
"@babel/core": "^7.27.1",
|
|
29
|
+
"@babel/preset-env": "^7.27.2",
|
|
30
30
|
"@rollup/plugin-babel": "^6.0.4",
|
|
31
31
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
32
32
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -41,31 +41,31 @@
|
|
|
41
41
|
"chai": "^5.2.0",
|
|
42
42
|
"mocha": "^10.8.2",
|
|
43
43
|
"postcss": "^8.5.3",
|
|
44
|
-
"rollup": "^4.
|
|
44
|
+
"rollup": "^4.40.2",
|
|
45
45
|
"rollup-plugin-node-externals": "^7.1.3",
|
|
46
46
|
"rollup-plugin-postcss": "^4.0.2",
|
|
47
|
-
"typescript": "^5.8.
|
|
47
|
+
"typescript": "^5.8.3"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@astrojs/alpinejs": "^0.4.
|
|
50
|
+
"@astrojs/alpinejs": "^0.4.8",
|
|
51
51
|
"@astrojs/check": "^0.9.4",
|
|
52
|
-
"@astrojs/cloudflare": "^12.
|
|
52
|
+
"@astrojs/cloudflare": "^12.5.2",
|
|
53
53
|
"@astrojs/rss": "^4.0.11",
|
|
54
54
|
"@astrojs/sitemap": "3.2.1",
|
|
55
55
|
"@astrojs/ts-plugin": "^1.10.4",
|
|
56
|
-
"@astrojs/vue": "^5.0.
|
|
56
|
+
"@astrojs/vue": "^5.0.13",
|
|
57
57
|
"@iconify-json/fa6-brands": "^1.2.5",
|
|
58
58
|
"@iconify-json/fa6-solid": "^1.2.3",
|
|
59
59
|
"@iconify/tools": "^4.1.2",
|
|
60
|
-
"@keyv/compress-brotli": "^2.0.
|
|
60
|
+
"@keyv/compress-brotli": "^2.0.4",
|
|
61
61
|
"@pagefind/default-ui": "^1.3.0",
|
|
62
62
|
"@tailwindcss/forms": "^0.5.10",
|
|
63
63
|
"@tailwindcss/typography": "^0.5.16",
|
|
64
|
-
"@tailwindcss/vite": "^4.
|
|
64
|
+
"@tailwindcss/vite": "^4.1.5",
|
|
65
65
|
"@types/alpinejs": "^3.13.11",
|
|
66
66
|
"alpinejs": "^3.14.9",
|
|
67
67
|
"aos": "3.0.0-beta.6",
|
|
68
|
-
"astro": "^5.7.
|
|
68
|
+
"astro": "^5.7.11",
|
|
69
69
|
"astro-color-scheme": "^1.1.5",
|
|
70
70
|
"astro-embed": "^0.9.0",
|
|
71
71
|
"astro-icon": "^1.1.5",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"cheerio": "^1.0.0",
|
|
75
75
|
"dayjs": "^1.11.13",
|
|
76
76
|
"fetch-jsonp": "^1.3.0",
|
|
77
|
-
"glob": "^11.0.
|
|
78
|
-
"keyv": "^5.3.
|
|
77
|
+
"glob": "^11.0.2",
|
|
78
|
+
"keyv": "^5.3.3",
|
|
79
79
|
"keyv-lru": "^3.0.4",
|
|
80
80
|
"lodash": "^4.17.21",
|
|
81
81
|
"pagefind": "^1.3.0",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"sprintf-js": "^1.1.3",
|
|
86
86
|
"string-strip-html": "^13.4.12",
|
|
87
87
|
"swiper": "^11.2.6",
|
|
88
|
-
"tailwind-scrollbar": "^4.0.
|
|
89
|
-
"tailwindcss": "^4.
|
|
88
|
+
"tailwind-scrollbar": "^4.0.2",
|
|
89
|
+
"tailwindcss": "^4.1.5",
|
|
90
90
|
"tslib": "^2.8.1",
|
|
91
|
-
"zod": "^3.24.
|
|
91
|
+
"zod": "^3.24.4"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -64,6 +64,16 @@ export default defineIntegration({
|
|
|
64
64
|
entrypoint: resolve('./routes/site.webmanifest.ts'),
|
|
65
65
|
prerender: true
|
|
66
66
|
});
|
|
67
|
+
injectRoute({
|
|
68
|
+
pattern: `${viteBase ? `${viteBase}/` : '/'}llms.txt`,
|
|
69
|
+
entrypoint: resolve('./routes/llms.txt.ts'),
|
|
70
|
+
prerender: true
|
|
71
|
+
});
|
|
72
|
+
injectRoute({
|
|
73
|
+
pattern: `${viteBase ? `${viteBase}/` : '/'}llms-full.txt`,
|
|
74
|
+
entrypoint: resolve('./routes/llms-full.txt.ts'),
|
|
75
|
+
prerender: true
|
|
76
|
+
});
|
|
67
77
|
injectRoute({
|
|
68
78
|
pattern: `${viteBase ? `${viteBase}/` : '/'}sitemap.txt`,
|
|
69
79
|
entrypoint: resolve('./routes/sitemap.txt.ts'),
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type {APIRoute} from "astro";
|
|
2
|
+
import config from "virtual:jeawin-runtime-config/config";
|
|
3
|
+
import _ from 'lodash';
|
|
4
|
+
|
|
5
|
+
export const GET:APIRoute = async ({site, locals}) => {
|
|
6
|
+
|
|
7
|
+
// let txt = ``;
|
|
8
|
+
const resdata = await locals.jeawinapi.get_llms_full();
|
|
9
|
+
|
|
10
|
+
// console.log(resdata);
|
|
11
|
+
|
|
12
|
+
return new Response(resdata);
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type {APIRoute} from "astro";
|
|
2
|
+
import config from "virtual:jeawin-runtime-config/config";
|
|
3
|
+
import _ from 'lodash';
|
|
4
|
+
|
|
5
|
+
export const GET:APIRoute = async ({site, locals}) => {
|
|
6
|
+
|
|
7
|
+
// let txt = ``;
|
|
8
|
+
const resdata = await locals.jeawinapi.get_llms();
|
|
9
|
+
|
|
10
|
+
// console.log(resdata);
|
|
11
|
+
|
|
12
|
+
return new Response(resdata);
|
|
13
|
+
}
|
package/src/scripts/cms.js
CHANGED
|
@@ -1150,6 +1150,60 @@ export default class JeawinApi {
|
|
|
1150
1150
|
return res;
|
|
1151
1151
|
}
|
|
1152
1152
|
|
|
1153
|
+
/**
|
|
1154
|
+
* robots
|
|
1155
|
+
*/
|
|
1156
|
+
async get_robots() {
|
|
1157
|
+
consolelog('get_robots start at');
|
|
1158
|
+
const res = await this.jeawinFetch(`${this.server_api_url}&m=robots`, {
|
|
1159
|
+
verbose: fetchVerbose,
|
|
1160
|
+
duration: fetchCacheDuration,
|
|
1161
|
+
type: "json"
|
|
1162
|
+
});
|
|
1163
|
+
consolelog('get_robots end at');
|
|
1164
|
+
if (Number(res.code) === 0) {
|
|
1165
|
+
return res.data;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
return res;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* llms.txt
|
|
1173
|
+
*/
|
|
1174
|
+
async get_llms() {
|
|
1175
|
+
consolelog('get_llms start at');
|
|
1176
|
+
const res = await this.jeawinFetch(`${this.server_api_url}&m=llms`, {
|
|
1177
|
+
verbose: fetchVerbose,
|
|
1178
|
+
duration: fetchCacheDuration,
|
|
1179
|
+
type: "json"
|
|
1180
|
+
});
|
|
1181
|
+
consolelog('get_llms end at');
|
|
1182
|
+
if (Number(res.code) === 0) {
|
|
1183
|
+
return res.data;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
return res;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* llms-full.txt
|
|
1191
|
+
*/
|
|
1192
|
+
async get_llms_full() {
|
|
1193
|
+
consolelog('get_llms_full start at');
|
|
1194
|
+
const res = await this.jeawinFetch(`${this.server_api_url}&m=llms_full`, {
|
|
1195
|
+
verbose: fetchVerbose,
|
|
1196
|
+
duration: fetchCacheDuration,
|
|
1197
|
+
type: "json"
|
|
1198
|
+
});
|
|
1199
|
+
consolelog('get_llms_full end at');
|
|
1200
|
+
if (Number(res.code) === 0) {
|
|
1201
|
+
return res.data;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
return res;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1153
1207
|
/**
|
|
1154
1208
|
* 过滤条件html
|
|
1155
1209
|
*/
|