added Astro SPA component

This commit is contained in:
liyunze 2024-01-10 13:43:19 +08:00
parent bda2f91911
commit c4822582ad
3 changed files with 6720 additions and 6709 deletions

6
package-lock.json generated
View file

@ -11,6 +11,7 @@
"@astrojs/svelte": "^4.0.2",
"@astrojs/tailwind": "^5.0.0",
"astro": "^3.2.0",
"astro-spa": "^1.3.9",
"svelte": "^4.2.1",
"tailwindcss": "^3.3.3"
},
@ -1221,6 +1222,11 @@
"sharp": "^0.32.5"
}
},
"node_modules/astro-spa": {
"version": "1.3.9",
"resolved": "https://registry.npmjs.org/astro-spa/-/astro-spa-1.3.9.tgz",
"integrity": "sha512-VmXMUsKNHA1gjJYq/SO5EqRAmqifOhBOpOAaXnlH5skgTy0tq9fwANJhh1LJpaahPBGqXAaoIw6Gdq/SBRz9Ww=="
},
"node_modules/autoprefixer": {
"version": "10.4.16",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz",

View file

@ -13,6 +13,7 @@
"@astrojs/svelte": "^4.0.2",
"@astrojs/tailwind": "^5.0.0",
"astro": "^3.2.0",
"astro-spa": "^1.3.9",
"svelte": "^4.2.1",
"tailwindcss": "^3.3.3"
},

View file

@ -1,4 +1,7 @@
---
// @ts-ignore
import { Spa } from "astro-spa";
interface Props {
title: string;
}
@ -26,6 +29,7 @@ const { title } = Astro.props;
</head>
<body>
<slot />
<Spa />
</body>
</html>
<style is:global>