Skip to content

Commit 5f521f8

Browse files
committed
docs: added metadata.
1 parent a0c7f24 commit 5f521f8

File tree

6 files changed

+33
-1
lines changed

6 files changed

+33
-1
lines changed

apps/site/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"tailwindcss": "^4.1.17",
2222
"typescript": "^5.6.3",
2323
"vike": "^0.4.247",
24+
"vike-metadata-solid": "^1.0.4",
2425
"vike-solid": "^0.7.13",
2526
"vite": "^7.2.6",
2627
"vite-plugin-solid": "^2.10.2",

apps/site/pages/+Layout.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
import type { FlowProps } from "solid-js"
22
import "../styles.css"
3+
import { useMetadata } from "vike-metadata-solid"
4+
5+
useMetadata.setGlobalDefaults({
6+
title: "Solid Number Flow",
7+
description:
8+
"A SolidJS component to transition, format, and localize numbers. Forked from @barvian/number-flow.",
9+
viewport: {
10+
width: "device-width",
11+
initialScale: 1,
12+
},
13+
twitter: {
14+
card: "summary_large_image",
15+
creator: "@carlo_taleon",
16+
},
17+
otherJSX: () => {
18+
return (
19+
<>
20+
<link rel="icon" href="/favicon.ico" />
21+
</>
22+
)
23+
},
24+
})
325

426
export default function Layout(props: FlowProps) {
527
return <>{props.children}</>

apps/site/pages/+Page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ const FORMATS = [
5454
},
5555
] as Format[]
5656

57+
import { useMetadata } from "vike-metadata-solid"
58+
5759
export default function HomePage() {
60+
useMetadata({
61+
title: "Solid Number Flow",
62+
})
63+
5864
const [value, cycleValue] = useCycle(NUMBERS)
5965
const [locale, cycleLocale] = useCycle(LOCALES)
6066
const [format, cycleFormat] = useCycle(FORMATS)

apps/site/public/favicon.ico

50.5 KB
Binary file not shown.

bun.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"tailwindcss": "^4.1.17",
3232
"typescript": "^5.6.3",
3333
"vike": "^0.4.247",
34+
"vike-metadata-solid": "^1.0.4",
3435
"vike-solid": "^0.7.13",
3536
"vite": "^7.2.6",
3637
"vite-plugin-solid": "^2.10.2",
@@ -1207,6 +1208,8 @@
12071208

12081209
"vike": ["[email protected]", "", { "dependencies": { "@brillout/import": "^0.2.6", "@brillout/json-serializer": "^0.5.21", "@brillout/picocolors": "^1.0.29", "@brillout/require-shim": "^0.1.2", "@brillout/vite-plugin-server-entry": "^0.7.15", "acorn": "^8.0.0", "cac": "^6.0.0", "es-module-lexer": "^1.0.0", "esbuild": ">=0.19.0", "json5": "^2.0.0", "magic-string": "^0.30.17", "picomatch": "^4.0.2", "semver": "^7.0.0", "sirv": "^3.0.1", "source-map-support": "^0.5.0", "tinyglobby": "^0.2.10", "vite": ">=6.3.0" }, "peerDependencies": { "react-streaming": ">=0.3.42" }, "optionalPeers": ["react-streaming"], "bin": { "vike": "node/cli/bin.js" } }, "sha512-rEVYi2cPtCGN92aChkGjV72jLfm9yLl/fx+jCgW7l905vxa4JV6ZTaThOKSbh+1+EsRE9sbDFhBc2KCikSJaog=="],
12091210

1211+
"vike-metadata-solid": ["[email protected]", "", { "peerDependencies": { "solid-js": "^1.6.0" } }, "sha512-LGJNVs1FJVQU/O8VicZKKwdnlTNwoRWn0JHbxzYrDZEYidYyGFnUSwmoPubBE/AVxHEUaiIDvzeb2pG6V/Q91g=="],
1212+
12101213
"vike-solid": ["[email protected]", "", { "dependencies": { "isbot-fast": "^1.2.0", "vite-plugin-solid": "^2.11.8" }, "peerDependencies": { "solid-js": "^1.8.7", "vike": ">=0.4.195", "vite": ">=5.0.0" } }, "sha512-yTlAtGF+V9Jhu2bob/tzm5dJsS1pz4fdMvJqE2SVJp4eBRuGeGM/EV31JvMvEgF8VF/pMXNQa2i877TADuNkNw=="],
12111214

12121215
"vite": ["[email protected]", "", { "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", "rollup": "^4.43.0", "tinyglobby": "^0.2.15" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "jiti": ">=1.21.0", "less": "^4.0.0", "lightningcss": "^1.21.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-tI2l/nFHC5rLh7+5+o7QjKjSR04ivXDF4jcgV0f/bTQ+OJiITy5S6gaynVsEM+7RqzufMnVbIon6Sr5x1SDYaQ=="],

packages/solid-number-flow/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "solid-number-flow",
3+
"description": "A SolidJS component to transition, format, and localize numbers. Forked from @barvian/number-flow.",
34
"version": "0.5.3",
45
"author": "Carlo Taleon",
56
"repository": {
@@ -50,7 +51,6 @@
5051
"url": "https://barvian.me"
5152
}
5253
],
53-
"description": "A SolidJS component to transition, format, and localize numbers. Forked from @barvian/number-flow.",
5454
"engines": {
5555
"node": ">=18"
5656
},

0 commit comments

Comments
 (0)