fix(init): don't show counter value in document title (#3311)

It falsely gives the impression that the value in the document title
would be live.
This commit is contained in:
Marvin Hagemeister
2025-09-02 15:19:26 +02:00
committed by GitHub
parent 4d463a8e2c
commit 35f5cc4b7a
2 changed files with 33 additions and 93 deletions
Generated
+32 -92
View File
@@ -16,7 +16,7 @@
"jsr:@std/assert@^1.0.14": "1.0.14",
"jsr:@std/async@1": "1.0.14",
"jsr:@std/async@^1.0.13": "1.0.14",
"jsr:@std/bytes@^1.0.5": "1.0.6",
"jsr:@std/bytes@^1.0.2": "1.0.6",
"jsr:@std/bytes@^1.0.6": "1.0.6",
"jsr:@std/cli@^1.0.19": "1.0.21",
"jsr:@std/cli@^1.0.21": "1.0.21",
@@ -41,7 +41,7 @@
"jsr:@std/http@^1.0.15": "1.0.20",
"jsr:@std/internal@^1.0.10": "1.0.10",
"jsr:@std/internal@^1.0.9": "1.0.10",
"jsr:@std/io@0.225": "0.225.2",
"jsr:@std/io@0.225": "0.225.0",
"jsr:@std/io@0.225.0": "0.225.0",
"jsr:@std/json@^1.0.2": "1.0.2",
"jsr:@std/jsonc@1": "1.0.2",
@@ -65,11 +65,10 @@
"npm:@opentelemetry/api@^1.9.0": "1.9.0",
"npm:@preact/signals@2": "2.3.1_preact@10.27.1",
"npm:@preact/signals@^2.2.1": "2.3.1_preact@10.27.1",
"npm:@prefresh/vite@^2.4.8": "2.4.10_preact@10.27.1_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0",
"npm:@prefresh/vite@^2.4.8": "2.4.10_preact@10.27.1_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0",
"npm:@tailwindcss/postcss@^4.1.10": "4.1.12",
"npm:@tailwindcss/vite@^4.1.12": "4.1.12_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0",
"npm:@tailwindcss/vite@^4.1.12": "4.1.12_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0",
"npm:@types/babel__core@^7.20.5": "7.20.5",
"npm:@types/node@*": "24.2.0",
"npm:@types/node@^24.1.0": "24.3.0",
"npm:@types/node@^24.2.1": "24.3.0",
"npm:@types/node@^24.3.0": "24.3.0",
@@ -97,11 +96,11 @@
"npm:tailwindcss@^3.4.17": "3.4.17_postcss@8.5.6",
"npm:tailwindcss@^4.1.10": "4.1.12",
"npm:ts-morph@26": "26.0.0",
"npm:vite-plugin-inspect@^11.3.2": "11.3.3_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0",
"npm:vite@*": "7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0",
"npm:vite@7.1.4": "7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0",
"npm:vite@^7.1.3": "7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0",
"npm:vite@^7.1.4": "7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0"
"npm:vite-plugin-inspect@^11.3.2": "11.3.3_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0",
"npm:vite@*": "7.1.3_@types+node@24.3.0_picomatch@4.0.3",
"npm:vite@7.1.3": "7.1.3_@types+node@24.3.0_picomatch@4.0.3",
"npm:vite@^7.1.3": "7.1.4_@types+node@24.3.0_picomatch@4.0.3",
"npm:vite@^7.1.4": "7.1.4_@types+node@24.3.0_picomatch@4.0.3"
},
"jsr": {
"@astral/astral@0.5.3": {
@@ -246,12 +245,9 @@
"integrity": "e3be62ce42cab0e177c27698e5d9800122f67b766a0bea6ca4867886cbde8cf7"
},
"@std/io@0.225.0": {
"integrity": "c1db7c5e5a231629b32d64b9a53139445b2ca640d828c26bf23e1c55f8c079b3"
},
"@std/io@0.225.2": {
"integrity": "3c740cd4ee4c082e6cfc86458f47e2ab7cb353dc6234d5e9b1f91a2de5f4d6c7",
"integrity": "c1db7c5e5a231629b32d64b9a53139445b2ca640d828c26bf23e1c55f8c079b3",
"dependencies": [
"jsr:@std/bytes@^1.0.5"
"jsr:@std/bytes@^1.0.2"
]
},
"@std/json@1.0.2": {
@@ -1169,18 +1165,6 @@
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3"
]
},
"@prefresh/vite@2.4.10_preact@10.27.1_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0": {
"integrity": "sha512-lt+ODASOtXRWaPplp7/DlrgAaInnQYNvcpCglQBMx2OeJPyZ4IqPRaxsK77w96mWshjYwkqTsRSHoAM7aAn0ow==",
"dependencies": [
"@babel/core",
"@prefresh/babel-plugin",
"@prefresh/core",
"@prefresh/utils",
"@rollup/pluginutils",
"preact",
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0"
]
},
"@rollup/pluginutils@4.2.1": {
"integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==",
"dependencies": [
@@ -1413,15 +1397,6 @@
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3"
]
},
"@tailwindcss/vite@4.1.12_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0": {
"integrity": "sha512-4pt0AMFDx7gzIrAOIYgYP0KCBuKWqyW8ayrdiLEjoJTT4pKTjrzG/e4uzWtTLDziC+66R9wbUqZBccJalSE5vQ==",
"dependencies": [
"@tailwindcss/node",
"@tailwindcss/oxide",
"tailwindcss@4.1.12",
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0"
]
},
"@trysound/sax@0.2.0": {
"integrity": "sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA=="
},
@@ -1471,12 +1446,6 @@
"@types/estree@1.0.8": {
"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="
},
"@types/node@24.2.0": {
"integrity": "sha512-3xyG3pMCq3oYCNg7/ZP+E1ooTaGB4cG8JWRsqqOYQdbWNY4zbaV0Ennrd7stjiJEFZCaybcIgpTjJWHRfBSIDw==",
"dependencies": [
"undici-types"
]
},
"@types/node@24.3.0": {
"integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==",
"dependencies": [
@@ -2891,15 +2860,7 @@
"dependencies": [
"birpc",
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3",
"vite-hot-client@2.1.0_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0"
]
},
"vite-dev-rpc@1.1.0_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0": {
"integrity": "sha512-pKXZlgoXGoE8sEKiKJSng4hI1sQ4wi5YT24FCrwrLt6opmkjlqPPVmiPWWJn8M8byMxRGzp1CrFuqQs4M/Z39A==",
"dependencies": [
"birpc",
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0",
"vite-hot-client@2.1.0_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0"
"vite-hot-client"
]
},
"vite-hot-client@2.1.0_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0": {
@@ -2908,12 +2869,6 @@
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3"
]
},
"vite-hot-client@2.1.0_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0": {
"integrity": "sha512-7SpgZmU7R+dDnSmvXE1mfDtnHLHQSisdySVR7lO8ceAXvM0otZeuQQ6C8LrS5d/aYyP/QZ0hI0L+dIPrm4YlFQ==",
"dependencies": [
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0"
]
},
"vite-plugin-inspect@11.3.3_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0": {
"integrity": "sha512-u2eV5La99oHoYPHE6UvbwgEqKKOQGz86wMg40CCosP6q8BkB6e5xPneZfYagK4ojPJSj5anHCrnvC20DpwVdRA==",
"dependencies": [
@@ -2926,28 +2881,32 @@
"sirv",
"unplugin-utils",
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3",
"vite-dev-rpc@1.1.0_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0"
"vite-dev-rpc"
]
},
"vite-plugin-inspect@11.3.3_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0": {
"integrity": "sha512-u2eV5La99oHoYPHE6UvbwgEqKKOQGz86wMg40CCosP6q8BkB6e5xPneZfYagK4ojPJSj5anHCrnvC20DpwVdRA==",
"vite@7.1.3_@types+node@24.3.0_picomatch@4.0.3": {
"integrity": "sha512-OOUi5zjkDxYrKhTV3V7iKsoS37VUM7v40+HuwEmcrsf11Cdx9y3DIr2Px6liIcZFwt3XSRpQvFpL3WVy7ApkGw==",
"dependencies": [
"ansis",
"debug",
"error-stack-parser-es",
"ohash",
"open@10.2.0",
"perfect-debounce",
"sirv",
"unplugin-utils",
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0",
"vite-dev-rpc@1.1.0_vite@7.1.4__@types+node@24.3.0__picomatch@4.0.3_@types+node@24.3.0_@types+node@24.2.0"
]
"@types/node",
"esbuild",
"fdir",
"picomatch@4.0.3",
"postcss",
"rollup",
"tinyglobby"
],
"optionalDependencies": [
"fsevents"
],
"optionalPeers": [
"@types/node"
],
"bin": true
},
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3": {
"integrity": "sha512-X5QFK4SGynAeeIt+A7ZWnApdUyHYm+pzv/8/A57LqSGcI88U6R6ipOs3uCesdc6yl7nl+zNO0t8LmqAdXcQihw==",
"dependencies": [
"@types/node@24.3.0",
"@types/node",
"esbuild",
"fdir",
"picomatch@4.0.3",
@@ -2959,26 +2918,7 @@
"fsevents"
],
"optionalPeers": [
"@types/node@24.3.0"
],
"bin": true
},
"vite@7.1.4_@types+node@24.3.0_picomatch@4.0.3_@types+node@24.2.0": {
"integrity": "sha512-X5QFK4SGynAeeIt+A7ZWnApdUyHYm+pzv/8/A57LqSGcI88U6R6ipOs3uCesdc6yl7nl+zNO0t8LmqAdXcQihw==",
"dependencies": [
"@types/node@24.2.0",
"esbuild",
"fdir",
"picomatch@4.0.3",
"postcss",
"rollup",
"tinyglobby"
],
"optionalDependencies": [
"fsevents"
],
"optionalPeers": [
"@types/node@24.2.0"
"@types/node"
],
"bin": true
},
+1 -1
View File
@@ -447,7 +447,7 @@ export default define.page(function Home(ctx) {
return (
<div class="px-4 py-8 mx-auto fresh-gradient min-h-screen">
<Head>
<title>Fresh counter: {count}</title>
<title>Fresh counter</title>
</Head>
<div class="max-w-screen-md mx-auto flex flex-col items-center justify-center">
<img