chore: update packages version and remove astro:transitions

This commit is contained in:
Guoqi Sun 2025-01-01 23:53:20 +08:00 committed by Guoqi Sun
parent dbe971139c
commit 4051342900
6 changed files with 18 additions and 21 deletions

View file

@ -12,6 +12,7 @@ import robotsTxt from "astro-robots-txt"
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
output: "static", output: "static",
prefetch: true,
site: "https://astro-air.netlify.app", site: "https://astro-air.netlify.app",
vite: { vite: {
worker: { worker: {

BIN
bun.lockb

Binary file not shown.

View file

@ -11,35 +11,35 @@
}, },
"dependencies": { "dependencies": {
"@astrojs/check": "^0.9.4", "@astrojs/check": "^0.9.4",
"@astrojs/mdx": "^4.0.2", "@astrojs/mdx": "^4.0.3",
"@astrojs/react": "^4.1.0", "@astrojs/react": "^4.1.2",
"@astrojs/rss": "^4.0.10", "@astrojs/rss": "^4.0.10",
"@astrojs/sitemap": "^3.2.1", "@astrojs/sitemap": "^3.2.1",
"@astrojs/tailwind": "^5.1.3", "@astrojs/tailwind": "^5.1.4",
"@expressive-code/plugin-collapsible-sections": "^0.38.3", "@expressive-code/plugin-collapsible-sections": "^0.38.3",
"@expressive-code/plugin-line-numbers": "^0.38.3", "@expressive-code/plugin-line-numbers": "^0.38.3",
"@types/react": "^18.3.12", "@types/react": "^19.0.2",
"@types/react-dom": "^19.0.1", "@types/react-dom": "^19.0.2",
"astro": "^5.1.0", "astro": "^5.1.1",
"astro-expressive-code": "^0.38.3", "astro-expressive-code": "^0.38.3",
"astro-google-analytics": "^1.0.3", "astro-google-analytics": "^1.0.3",
"astro-og-canvas": "^0.5.5", "astro-og-canvas": "^0.5.5",
"astro-robots-txt": "^1.0.0", "astro-robots-txt": "^1.0.0",
"canvaskit-wasm": "^0.39.1", "canvaskit-wasm": "^0.39.1",
"lefthook": "^1.10.0", "lefthook": "^1.10.1",
"lucide-react": "^0.469.0", "lucide-react": "^0.469.0",
"react": "^18.3.1", "react": "^19.0.0",
"react-dom": "^18.3.1", "react-dom": "^19.0.0",
"tailwindcss": "^3.4.16", "tailwindcss": "^3.4.17",
"twikoo": "^1.6.40", "twikoo": "^1.6.40",
"typescript": "^5.7.2" "typescript": "^5.7.2"
}, },
"devDependencies": { "devDependencies": {
"@tailwindcss/typography": "^0.5.15", "@tailwindcss/typography": "^0.5.15",
"@types/dom-view-transitions": "^1.0.5", "@types/dom-view-transitions": "^1.0.5",
"@types/node": "^22.10.2", "@types/node": "^22.10.3",
"@types/sanitize-html": "^2.13.0", "@types/sanitize-html": "^2.13.0",
"@typescript-eslint/parser": "^8.18.0", "@typescript-eslint/parser": "^8.19.0",
"eslint": "^9.17.0", "eslint": "^9.17.0",
"eslint-plugin-astro": "^1.3.1", "eslint-plugin-astro": "^1.3.1",
"eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-jsx-a11y": "^6.10.2",

View file

@ -10,7 +10,6 @@ const { home, archive, custom, links, about } =
--- ---
<div <div
transition:persist
class="mb-10 mt-4 flex gap-4 overflow-x-auto whitespace-nowrap text-lg [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden" class="mb-10 mt-4 flex gap-4 overflow-x-auto whitespace-nowrap text-lg [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"
> >
{ {
@ -21,6 +20,7 @@ const { home, archive, custom, links, about } =
data-umami-event="nav-home" data-umami-event="nav-home"
aria-label={t("nav.home")} aria-label={t("nav.home")}
title={t("nav.home")} title={t("nav.home")}
data-astro-prefetch="viewport"
> >
<p>{t("nav.home")}</p> <p>{t("nav.home")}</p>
</a> </a>
@ -34,6 +34,7 @@ const { home, archive, custom, links, about } =
data-umami-event="nav-archive" data-umami-event="nav-archive"
aria-label={t("nav.archive")} aria-label={t("nav.archive")}
title={t("nav.archive")} title={t("nav.archive")}
data-astro-prefetch="viewport"
> >
<p>{t("nav.archive")}</p> <p>{t("nav.archive")}</p>
</a> </a>
@ -48,6 +49,7 @@ const { home, archive, custom, links, about } =
data-umami-event={`nav-${tab.label}`} data-umami-event={`nav-${tab.label}`}
aria-label={tab.label} aria-label={tab.label}
title={tab.label} title={tab.label}
data-astro-prefetch="viewport"
> >
<p>{tab.label}</p> <p>{tab.label}</p>
</a> </a>
@ -61,6 +63,7 @@ const { home, archive, custom, links, about } =
data-umami-event="nav-links" data-umami-event="nav-links"
aria-label={t("nav.links")} aria-label={t("nav.links")}
title={t("nav.links")} title={t("nav.links")}
data-astro-prefetch="viewport"
> >
<p>{t("nav.links")}</p> <p>{t("nav.links")}</p>
</a> </a>
@ -74,6 +77,7 @@ const { home, archive, custom, links, about } =
data-umami-event="nav-about" data-umami-event="nav-about"
aria-label={t("nav.about")} aria-label={t("nav.about")}
title={t("nav.about")} title={t("nav.about")}
data-astro-prefetch="viewport"
> >
<p>{t("nav.about")}</p> <p>{t("nav.about")}</p>
</a> </a>

View file

@ -4,7 +4,6 @@ import { NoiseBackground } from "~/components/react/noise-background"
import { getLangFromUrl } from "~/i18n/utils" import { getLangFromUrl } from "~/i18n/utils"
import { GoogleAnalytics } from "astro-google-analytics" import { GoogleAnalytics } from "astro-google-analytics"
import { en, zh } from "~/config" import { en, zh } from "~/config"
import { ClientRouter } from "astro:transitions"
const lang = getLangFromUrl(Astro.url) const lang = getLangFromUrl(Astro.url)
@ -89,8 +88,6 @@ const config = lang === "zh" ? zh : en
<GoogleAnalytics id={config.googleAnalyticsId} /> <GoogleAnalytics id={config.googleAnalyticsId} />
) )
} }
<ClientRouter />
</head> </head>
<body <body
class="flex min-h-screen w-full justify-center px-6 dark:bg-[#121212] dark:text-white md:px-0" class="flex min-h-screen w-full justify-center px-6 dark:bg-[#121212] dark:text-white md:px-0"

View file

@ -1,8 +1,3 @@
/* admin container height */
.tk-admin-container {
height: 150% !important;
}
/* comments container */ /* comments container */
.tk-comments-container { .tk-comments-container {
margin-top: 50px !important; margin-top: 50px !important;