Skip to content

Commit

Permalink
working pwa serviceworker and manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
adelpro committed Feb 7, 2022
1 parent 309467c commit 316fa08
Show file tree
Hide file tree
Showing 137 changed files with 293 additions and 18 deletions.
146 changes: 146 additions & 0 deletions .firebase/hosting.YnVpbGQ.cache

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "openadhan"
}
}
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Binary file added images/android/android-launchericon-144-144.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 images/android/android-launchericon-192-192.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 images/android/android-launchericon-48-48.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 images/android/android-launchericon-512-512.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 images/android/android-launchericon-72-72.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 images/android/android-launchericon-96-96.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 images/ios/100.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 images/ios/1024.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 images/ios/114.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 images/ios/120.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 images/ios/128.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 images/ios/144.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 images/ios/152.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 images/ios/16.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 images/ios/167.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 images/ios/180.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 images/ios/192.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 images/ios/20.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 images/ios/256.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 images/ios/29.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 images/ios/32.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 images/ios/40.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 images/ios/50.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 images/ios/512.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 images/ios/57.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 images/ios/58.png
Binary file added images/ios/60.png
Binary file added images/ios/64.png
Binary file added images/ios/72.png
Binary file added images/ios/76.png
Binary file added images/ios/80.png
Binary file added images/ios/87.png
Binary file added images/windows11/LargeTile.scale-100.png
Binary file added images/windows11/LargeTile.scale-125.png
Binary file added images/windows11/LargeTile.scale-150.png
Binary file added images/windows11/LargeTile.scale-200.png
Binary file added images/windows11/LargeTile.scale-400.png
Binary file added images/windows11/SmallTile.scale-100.png
Binary file added images/windows11/SmallTile.scale-125.png
Binary file added images/windows11/SmallTile.scale-150.png
Binary file added images/windows11/SmallTile.scale-200.png
Binary file added images/windows11/SmallTile.scale-400.png
Binary file added images/windows11/SplashScreen.scale-100.png
Binary file added images/windows11/SplashScreen.scale-125.png
Binary file added images/windows11/SplashScreen.scale-150.png
Binary file added images/windows11/SplashScreen.scale-200.png
Binary file added images/windows11/SplashScreen.scale-400.png
Binary file added images/windows11/Square150x150Logo.scale-100.png
Binary file added images/windows11/Square150x150Logo.scale-125.png
Binary file added images/windows11/Square150x150Logo.scale-150.png
Binary file added images/windows11/Square150x150Logo.scale-200.png
Binary file added images/windows11/Square150x150Logo.scale-400.png
Binary file added images/windows11/Square44x44Logo.scale-100.png
Binary file added images/windows11/Square44x44Logo.scale-125.png
Binary file added images/windows11/Square44x44Logo.scale-150.png
Binary file added images/windows11/Square44x44Logo.scale-200.png
Binary file added images/windows11/Square44x44Logo.scale-400.png
Binary file added images/windows11/Square44x44Logo.targetsize-16.png
Binary file added images/windows11/Square44x44Logo.targetsize-20.png
Binary file added images/windows11/Square44x44Logo.targetsize-24.png
Binary file added images/windows11/StoreLogo.scale-100.png
Binary file added images/windows11/StoreLogo.scale-125.png
Binary file added images/windows11/StoreLogo.scale-150.png
Binary file added images/windows11/StoreLogo.scale-200.png
Binary file added images/windows11/StoreLogo.scale-400.png
Binary file added images/windows11/Wide310x150Logo.scale-100.png
Binary file added images/windows11/Wide310x150Logo.scale-125.png
Binary file added images/windows11/Wide310x150Logo.scale-150.png
Binary file added images/windows11/Wide310x150Logo.scale-200.png
Binary file added images/windows11/Wide310x150Logo.scale-400.png
Binary file added public/images/1024.png
Binary file added public/images/1024x768.png
Binary file added public/images/120x120.png
Binary file added public/images/1242x2208.png
Binary file added public/images/1334x750.png
Binary file added public/images/152x152.png
Binary file added public/images/1536x2048.png
Binary file added public/images/16x16.png
Binary file added public/images/180x180.png
Binary file added public/images/192x192.png
Binary file added public/images/2048x1536.png
Binary file added public/images/2208x1242.png
Binary file added public/images/32x32.png
Binary file added public/images/512x512.png
Binary file added public/images/640x1136.png
Binary file added public/images/640x960.png
Binary file added public/images/750x1334.png
Binary file added public/images/76x76.png
Binary file added public/images/openadhan.ico
Binary file not shown.
96 changes: 82 additions & 14 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,88 @@
/>
<meta name="theme-color" content="#000000" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->

<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="icon" type="image/png" href="%PUBLIC_URL%/images/16x16.png" />
<!-- Only for iOS: Configs -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="OpenAdhan" />
<!-- Icons -->
<link
rel="apple-touch-icon"
href="%PUBLIC_URL%/images/76x76.png"
sizes="76x76"
/>
<link
rel="apple-touch-icon"
href="%PUBLIC_URL%/images/120x120.png"
sizes="120x120"
/>
<link
rel="apple-touch-icon"
href="%PUBLIC_URL%/images/152x152.png"
sizes="152x152"
/>
<link
rel="apple-touch-icon"
href="%PUBLIC_URL%/images/180x180.png"
sizes="180x180"
/>
<link
rel="apple-touch-icon"
href="%PUBLIC_URL%/images/1024x1024.png"
sizes="1024x1024"
/>
<!-- Splash Screen -->
<link
rel="apple-touch-startup-image"
href="%PUBLIC_URL%/images/640x960.png"
sizes="640x960"
/>
<link
rel="apple-touch-startup-image"
href="/%PUBLIC_URL%/images/640x1136.png"
sizes="640x1136"
/>
<link
rel="apple-touch-startup-image"
href="%PUBLIC_URL%/images/750x1334.png"
sizes="750x1334"
/>
<link
rel="apple-touch-startup-image"
href="%PUBLIC_URL%/images/768x1024.png"
sizes="768x1024"
/>
<link
rel="apple-touch-startup-image"
href="%PUBLIC_URL%/images/1024x768.png"
sizes="1024x768"
/>
<link
rel="apple-touch-startup-image"
href="%PUBLIC_URL%/images/1242x2208.png"
sizes="1242x2208"
/>
<link
rel="apple-touch-startup-image"
href="%PUBLIC_URL%/images/1334x750.png"
sizes="1334x750"
/>
<link
rel="apple-touch-startup-image"
href="%PUBLIC_URL%/images/1536x2048.png"
sizes="1536x2048"
/>
<link
rel="apple-touch-startup-image"
href="%PUBLIC_URL%/images/2048x1536.png"
sizes="2048x1536"
/>
<link
rel="apple-touch-startup-image"
href="/%PUBLIC_URL%/images/2208x1242.png"
sizes="2208x1242"
/>
<title>OpenAdhan</title>
</head>

Expand Down
46 changes: 43 additions & 3 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,55 @@
{
"short_name": "OpenAdhan",
"name": "OpenAdhan",
"categories": ["social", "education", "books"],
"lang": "ar",
"url": "/",
"scope": "/",
"id": "nhadonnpnhmghdaakodelnkkljdempbk",
"shortcuts": [
{
"name": "حول الموقع",
"short_name": "حول الموقع",
"description": "حول الموقع",
"url": "./about",
"icons": [
{
"src": "images/192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
}
]
},
{
"name": "الإعدادات",
"short_name": "الإعدادات",
"description": "الإعدادات",
"url": "./config",
"icons": [
{
"src": "images/192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
}
]
}
],
"icons": [
{
"src": "/assets/openadhan.ico",
"src": "/images/openadhan.ico",
"sizes": "32x32",
"type": "image/ico"
},
{
"src": "/assets/openadhan.png",
"sizes": "500x500",
"src": "/images/192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/images/512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ReactDOM.render(
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://cra.link/PWA
serviceWorkerRegistration.unregister();
serviceWorkerRegistration.register();

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
Expand Down

0 comments on commit 316fa08

Please sign in to comment.