Skip to content

Commit

Permalink
Merge pull request #107 from mykhailodanilenko/feature/add-pwa-support
Browse files Browse the repository at this point in the history
Add PWA support
  • Loading branch information
mykhailodanilenko authored Jul 24, 2024
2 parents bcb68cc + fbd9e6a commit a92af9e
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OwnTube.tv/app/+html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export default function Root({ children }: PropsWithChildren) {
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
{/* Link the PWA manifest file. */}
<link rel="manifest" href="manifest.json" />
<style id="expo-reset">{"html, body { height: 100%; } #root { display: flex; height: 100%; flex: 1; }"}</style>
<script src="https://vjs.zencdn.net/8.10.0/video.min.js"></script>
</head>
Expand Down
Binary file added OwnTube.tv/public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OwnTube.tv/public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions OwnTube.tv/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"short_name": "OwnTube.tv",
"name": "OwnTube.tv",
"description": "A web client for OwnTube.tv",
"icons": [
{
"src": "favicon.ico",
"sizes": "48x48",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff",
"screenshots": [
{
"src": "screenshot_wide.png",
"sizes": "1440x676",
"type": "image/png",
"form_factor": "wide",
"label": "OwnTube.tv"
},
{
"src": "screenshot_narrow.jpeg",
"sizes": "660x1280",
"type": "image/jpeg",
"form_factor": "narrow",
"label": "OwnTube.tv"
}
]
}
Binary file added OwnTube.tv/public/screenshot_narrow.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added OwnTube.tv/public/screenshot_wide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a92af9e

Please sign in to comment.