chore: bump the astro to 4.14, enable the content layer.

This commit is contained in:
Yufan Sheng 2024-08-15 19:31:33 +08:00
parent bdfa9fe152
commit 22833755ca
Signed by: syhily
GPG Key ID: DEB186763C308C31
7 changed files with 468 additions and 277 deletions

View File

@ -4,6 +4,7 @@
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit"
},
"astro.content-intellisense": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
@ -65,6 +66,7 @@
"jian",
"jiasm",
"jing",
"jmoiron",
"jungshik",
"khalil",
"khtml",
@ -115,6 +117,7 @@
"shinmun",
"shmily",
"skrs",
"sqlx",
"syhily",
"tabindex",
"tagcloud",

View File

@ -19,6 +19,8 @@ export default defineConfig({
service: !options.isProd() ? { entrypoint: './plugins/resize', config: {} } : undefined,
},
experimental: {
contentLayer: true,
contentIntellisense: true,
actions: true,
env: {
schema: {

723
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,7 @@
"@astrojs/mdx": "^3.1.3",
"@astrojs/rss": "^4.0.7",
"@zeabur/astro-adapter": "^1.0.6",
"astro": "^4.13.3",
"astro": "^4.14.2",
"drizzle-orm": "^0.33.0",
"fuse.js": "^7.0.0",
"lodash": "^4.17.21",
@ -61,10 +61,10 @@
"@napi-rs/canvas": "^0.1.53",
"@types/lodash": "^4.17.7",
"@types/luxon": "^3.4.2",
"@types/node": "^22.2.0",
"@types/node": "^22.4.0",
"@types/pg": "^8.11.6",
"@types/qrcode-svg": "^1.1.5",
"@types/unist": "^3.0.2",
"@types/unist": "^3.0.3",
"aplayer": "^1.10.1",
"astro-uploader": "^1.1.3",
"bootstrap": "^5.3.3",
@ -75,7 +75,7 @@
"rehype-external-links": "^3.0.0",
"resize-sensor": "^0.0.6",
"rimraf": "^6.0.1",
"sharp": "^0.33.4",
"sharp": "^0.33.5",
"typescript": "^5.5.4",
"unist-util-select": "^5.1.0"
},

3
src/env.d.ts vendored
View File

@ -1,4 +1 @@
/// <reference path="../.astro/actions.d.ts" />
/// <reference path="../.astro/env.d.ts" />
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />

View File

@ -12,5 +12,5 @@ require (
require (
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/image v0.18.0 // indirect
golang.org/x/image v0.19.0 // indirect
)

View File

@ -19,8 +19,8 @@ github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3k
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/image v0.18.0 h1:jGzIakQa/ZXI1I0Fxvaa9W7yP25TqT6cHIHn+6CqvSQ=
golang.org/x/image v0.18.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E=
golang.org/x/image v0.19.0 h1:D9FX4QWkLfkeqaC62SonffIIuYdOk/UE2XKUBgRIBIQ=
golang.org/x/image v0.19.0/go.mod h1:y0zrRqlQRWQ5PXaYCOMLTW2fpsxZ8Qh9I/ohnInJEys=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=