Skip to content

Commit f15b44c

Browse files
committed
feat: pwa support
1 parent a2a6dff commit f15b44c

20 files changed

Lines changed: 3260 additions & 237 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ lerna-debug.log*
1010
node_modules
1111
dist
1212
dist-ssr
13+
dev-dist
1314
*.local
1415
.output
1516

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,11 @@
99
<body>
1010
<div id="root"></div>
1111
<script type="module" src="/src/main.tsx"></script>
12+
<script>
13+
window.addEventListener('beforeinstallprompt', (e) => {
14+
e.preventDefault();
15+
window.__scoutDeferredInstallPrompt = e;
16+
})
17+
</script>
1218
</body>
1319
</html>

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@
2323
"@tanstack/react-router-devtools": "^1.139.15",
2424
"@tolgee/react": "^6.2.7",
2525
"arktype": "^2.1.29",
26+
"clsx": "^2.1.1",
2627
"iconoir": "^7.11.0",
2728
"iconoir-react": "^7.11.0",
2829
"jotai": "^2.16.0",
30+
"motion": "^12.24.12",
2931
"nitro": "3.0.1-alpha.1",
3032
"react": "^19.2.1",
3133
"react-dom": "^19.2.1",
34+
"tailwind-merge": "^3.4.0",
3235
"tailwindcss": "^4.1.17"
3336
},
3437
"devDependencies": {
@@ -42,6 +45,7 @@
4245
"baseline-browser-mapping": "^2.9.7",
4346
"globals": "^16.5.0",
4447
"typescript": "~5.9.3",
45-
"vite": "npm:rolldown-vite@7.2.10"
48+
"vite": "npm:rolldown-vite@7.2.10",
49+
"vite-plugin-pwa": "^1.2.0"
4650
}
4751
}

pnpm-lock.yaml

Lines changed: 3056 additions & 234 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

public/apple-touch-icon.png

4.33 KB
Loading

public/favicon-96x96.png

2.23 KB
Loading

public/favicon.ico

14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)