chore: update packages version and remove astro:transitions
This commit is contained in:
parent
dbe971139c
commit
4051342900
6 changed files with 18 additions and 21 deletions
|
|
@ -12,6 +12,7 @@ import robotsTxt from "astro-robots-txt"
|
|||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
output: "static",
|
||||
prefetch: true,
|
||||
site: "https://astro-air.netlify.app",
|
||||
vite: {
|
||||
worker: {
|
||||
|
|
|
|||
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
24
package.json
24
package.json
|
|
@ -11,35 +11,35 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@astrojs/check": "^0.9.4",
|
||||
"@astrojs/mdx": "^4.0.2",
|
||||
"@astrojs/react": "^4.1.0",
|
||||
"@astrojs/mdx": "^4.0.3",
|
||||
"@astrojs/react": "^4.1.2",
|
||||
"@astrojs/rss": "^4.0.10",
|
||||
"@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-line-numbers": "^0.38.3",
|
||||
"@types/react": "^18.3.12",
|
||||
"@types/react-dom": "^19.0.1",
|
||||
"astro": "^5.1.0",
|
||||
"@types/react": "^19.0.2",
|
||||
"@types/react-dom": "^19.0.2",
|
||||
"astro": "^5.1.1",
|
||||
"astro-expressive-code": "^0.38.3",
|
||||
"astro-google-analytics": "^1.0.3",
|
||||
"astro-og-canvas": "^0.5.5",
|
||||
"astro-robots-txt": "^1.0.0",
|
||||
"canvaskit-wasm": "^0.39.1",
|
||||
"lefthook": "^1.10.0",
|
||||
"lefthook": "^1.10.1",
|
||||
"lucide-react": "^0.469.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"tailwindcss": "^3.4.16",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"twikoo": "^1.6.40",
|
||||
"typescript": "^5.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/typography": "^0.5.15",
|
||||
"@types/dom-view-transitions": "^1.0.5",
|
||||
"@types/node": "^22.10.2",
|
||||
"@types/node": "^22.10.3",
|
||||
"@types/sanitize-html": "^2.13.0",
|
||||
"@typescript-eslint/parser": "^8.18.0",
|
||||
"@typescript-eslint/parser": "^8.19.0",
|
||||
"eslint": "^9.17.0",
|
||||
"eslint-plugin-astro": "^1.3.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.10.2",
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ const { home, archive, custom, links, about } =
|
|||
---
|
||||
|
||||
<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"
|
||||
>
|
||||
{
|
||||
|
|
@ -21,6 +20,7 @@ const { home, archive, custom, links, about } =
|
|||
data-umami-event="nav-home"
|
||||
aria-label={t("nav.home")}
|
||||
title={t("nav.home")}
|
||||
data-astro-prefetch="viewport"
|
||||
>
|
||||
<p>{t("nav.home")}</p>
|
||||
</a>
|
||||
|
|
@ -34,6 +34,7 @@ const { home, archive, custom, links, about } =
|
|||
data-umami-event="nav-archive"
|
||||
aria-label={t("nav.archive")}
|
||||
title={t("nav.archive")}
|
||||
data-astro-prefetch="viewport"
|
||||
>
|
||||
<p>{t("nav.archive")}</p>
|
||||
</a>
|
||||
|
|
@ -48,6 +49,7 @@ const { home, archive, custom, links, about } =
|
|||
data-umami-event={`nav-${tab.label}`}
|
||||
aria-label={tab.label}
|
||||
title={tab.label}
|
||||
data-astro-prefetch="viewport"
|
||||
>
|
||||
<p>{tab.label}</p>
|
||||
</a>
|
||||
|
|
@ -61,6 +63,7 @@ const { home, archive, custom, links, about } =
|
|||
data-umami-event="nav-links"
|
||||
aria-label={t("nav.links")}
|
||||
title={t("nav.links")}
|
||||
data-astro-prefetch="viewport"
|
||||
>
|
||||
<p>{t("nav.links")}</p>
|
||||
</a>
|
||||
|
|
@ -74,6 +77,7 @@ const { home, archive, custom, links, about } =
|
|||
data-umami-event="nav-about"
|
||||
aria-label={t("nav.about")}
|
||||
title={t("nav.about")}
|
||||
data-astro-prefetch="viewport"
|
||||
>
|
||||
<p>{t("nav.about")}</p>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import { NoiseBackground } from "~/components/react/noise-background"
|
|||
import { getLangFromUrl } from "~/i18n/utils"
|
||||
import { GoogleAnalytics } from "astro-google-analytics"
|
||||
import { en, zh } from "~/config"
|
||||
import { ClientRouter } from "astro:transitions"
|
||||
|
||||
const lang = getLangFromUrl(Astro.url)
|
||||
|
||||
|
|
@ -89,8 +88,6 @@ const config = lang === "zh" ? zh : en
|
|||
<GoogleAnalytics id={config.googleAnalyticsId} />
|
||||
)
|
||||
}
|
||||
|
||||
<ClientRouter />
|
||||
</head>
|
||||
<body
|
||||
class="flex min-h-screen w-full justify-center px-6 dark:bg-[#121212] dark:text-white md:px-0"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
/* admin container height */
|
||||
.tk-admin-container {
|
||||
height: 150% !important;
|
||||
}
|
||||
|
||||
/* comments container */
|
||||
.tk-comments-container {
|
||||
margin-top: 50px !important;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue