Updated packages
This commit is contained in:
3632
package-lock.json
generated
3632
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
@@ -9,20 +9,20 @@
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^4.0.8",
|
||||
"@astrojs/react": "^4.2.0",
|
||||
"@astrojs/rss": "^4.0.11",
|
||||
"@astrojs/sitemap": "^3.2.1",
|
||||
"@astrojs/svelte": "^7.0.4",
|
||||
"@js-temporal/polyfill": "^0.4.4",
|
||||
"@tailwindcss/vite": "^4.0.1",
|
||||
"astro": "^5.2.1",
|
||||
"@astrojs/mdx": "^4.3.13",
|
||||
"@astrojs/react": "^4.4.2",
|
||||
"@astrojs/rss": "^4.0.14",
|
||||
"@astrojs/sitemap": "^3.6.0",
|
||||
"@astrojs/svelte": "^7.2.4",
|
||||
"@js-temporal/polyfill": "^0.5.1",
|
||||
"@tailwindcss/vite": "^4.1.18",
|
||||
"astro": "^5.16.6",
|
||||
"rehype-autolink-headings": "^7.1.0",
|
||||
"rehype-slug": "^6.0.0",
|
||||
"remark-toc": "^9.0.0",
|
||||
"shiki": "^2.2.0",
|
||||
"svelte": "^5.19.6",
|
||||
"tailwindcss": "^4.0.0",
|
||||
"typescript": "^5.7.3"
|
||||
"shiki": "^3.20.0",
|
||||
"svelte": "^5.46.1",
|
||||
"tailwindcss": "^4.1.18",
|
||||
"typescript": "^5.9.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ function break_lines(input: string, width: number): string {
|
||||
.join("\n")
|
||||
}
|
||||
|
||||
export default function Fortune(): React.ReactElement {
|
||||
export default function FortuneComponent(): React.ReactElement {
|
||||
const id = Math.floor(Math.random() * messages.length);
|
||||
window.localStorage.setItem("martinRefShown", id === 6 ? "yes" : "no");
|
||||
const text = break_lines(messages[id], 60);
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
---
|
||||
import Main from "../layouts/Main.astro";
|
||||
import Fortune from "../components/Fortune";
|
||||
import FortuneComponent from "../components/Fortune";
|
||||
---
|
||||
|
||||
<Main title="Fortune" description="Wisdom from Tux">
|
||||
<Fortune client:only="react" />
|
||||
<FortuneComponent client:only="react" />
|
||||
</Main>
|
||||
Reference in New Issue
Block a user