Skip to content

Commit

Permalink
Merge pull request #47 from Liberluna/pwa
Browse files Browse the repository at this point in the history
PWA対応
  • Loading branch information
nakasyou authored Jun 18, 2023
2 parents 1052fd8 + 66c2ce4 commit d092d5d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
},
"[typescript]": {
"editor.tabSize": 2
},
"[json]": {
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
5 changes: 5 additions & 0 deletions routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ export default function JoinPage() {
name="description"
content="LiberChat : 更新不要なリアルタイムチャットを最高峰のUI/UXで、Liberlunaが提供します。"
/>

<link rel="manifest" href="manifest.json" />
<link rel="manifest" href="manifest.webmanifest" />
<script async src="https://cdn.jsdelivr.net/npm/pwacompat" crossorigin="anonymous"></script>

</Head>
<Layout>
<div className="mx-auto text-center">
Expand Down
1 change: 1 addition & 0 deletions static/icon/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added static/icon/192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions static/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"short_name": "LiberChat",
"name": "LiberChat",
"display": "standalone",
"start_url": "index.html",
"icons": [
{
"src": "icon/192x192.png",
"sizes": "192x192",
"type": "image/png"
}
]
}

0 comments on commit d092d5d

Please # to comment.