Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit

Permalink
code
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Sep 24, 2024
1 parent fc77625 commit d001760
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default defineConfig({
AstroPWA({
registerType: 'autoUpdate',
manifest,
manifestFilename: 'manifest.webmanifest',
base: BASE_PATH,
workbox: {
globDirectory: 'dist',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"tailwind-scrollbar": "^3.1.0",
"tailwindcss": "3.4.12",
"typescript": "5.6.2",
"vite-plugin-pwa": "^0.20.5",
"zustand": "5.0.0-rc.2"
},
"packageManager": "pnpm@9.5.0"
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Page from '../components/page.tsx';
import { SEO } from 'astro-seo';
import { SeoProps } from '../utils/seo';
import { pwaInfo } from 'virtual:pwa-info';
---

<html lang='en'>
Expand All @@ -10,6 +11,7 @@ import { SeoProps } from '../utils/seo';
<meta name='viewport' content='width=device-width' />
<title>Risk Dice Roller</title>
<SEO {...SeoProps} />
{pwaInfo && <Fragment set:html={pwaInfo.webManifest.linkTag} /> }
</head>

<body>
Expand Down
7 changes: 3 additions & 4 deletions src/utils/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export const SeoProps: Props = {
{ rel: 'apple-touch-icon', sizes: '180x180', href: `${URL}/apple-touch-icon.png` },
{ rel: 'icon', type: 'image/png', sizes: '48x48', href: `${URL}/favicon-48.png` },
{ rel: 'icon', type: 'image/png', sizes: '32x32', href: `${URL}/favicon-32.png` },
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: `${URL}/favicon-16.png` },
{ rel: 'manifest', href: `${URL}/manifest.webmanifest` }
{ rel: 'icon', type: 'image/png', sizes: '16x16', href: `${URL}/favicon-16.png` }
],
meta: [
{ name: 'msapplication-TileColor', content: '#EF7244' },
Expand All @@ -48,12 +47,12 @@ export const manifest = {
display: 'standalone',
icons: [
{
src: `${URL}/android-chrome-192x192.png`,
src: `${URL}/android-chrome-192.png`,
sizes: '192x192',
type: 'image/png'
},
{
src: `${URL}/android-chrome-512x512.png`,
src: `${URL}/android-chrome-512.png`,
sizes: '512x512',
type: 'image/png'
}
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "astro/tsconfigs/strictest",
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "react"
"jsxImportSource": "react",
"types": ["vite-plugin-pwa/client", "vite-plugin-pwa/info"]
},
"exclude": ["node_modules", "dist"]
}

0 comments on commit d001760

Please sign in to comment.