Skip to content

Commit 316fa08

Browse files
committed
working pwa serviceworker and manifest
1 parent 309467c commit 316fa08

File tree

137 files changed

+293
-18
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+293
-18
lines changed

.firebase/hosting.YnVpbGQ.cache

+146
Large diffs are not rendered by default.

.firebaserc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "openadhan"
4+
}
5+
}

firebase.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "build",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}
8.64 KB
1.75 KB
37.4 KB
2.74 KB
3.78 KB

images/ios/100.png

3.98 KB

images/ios/1024.png

134 KB

images/ios/114.png

4.6 KB

images/ios/120.png

4.88 KB

images/ios/128.png

5.19 KB

images/ios/144.png

6.1 KB

images/ios/152.png

6.56 KB

images/ios/16.png

539 Bytes

images/ios/167.png

7.24 KB

images/ios/180.png

7.91 KB

images/ios/192.png

8.64 KB

images/ios/20.png

691 Bytes

images/ios/256.png

12.8 KB

images/ios/29.png

1.02 KB

images/ios/32.png

1.16 KB

images/ios/40.png

1.45 KB

images/ios/50.png

1.85 KB

images/ios/512.png

37.4 KB

images/ios/57.png

2.11 KB

images/ios/58.png

2.15 KB

images/ios/60.png

2.22 KB

images/ios/64.png

2.39 KB

images/ios/72.png

2.74 KB

images/ios/76.png

2.91 KB

images/ios/80.png

3.13 KB

images/ios/87.png

3.38 KB
16.7 KB
23.6 KB
31.8 KB
52.2 KB
190 KB
2.76 KB
3.52 KB
4.28 KB
5.99 KB
14.7 KB
16.9 KB
23.9 KB
31.9 KB
52 KB
192 KB
6.38 KB
8.37 KB
10.7 KB
15.8 KB
48.8 KB
1.88 KB
2.36 KB
2.92 KB
4.06 KB
9.33 KB
638 Bytes
778 Bytes
1002 Bytes
1.85 KB
2.37 KB
2.88 KB
3.98 KB
9.03 KB
6.79 KB
8.87 KB
11.3 KB
16.9 KB

public/images/1024.png

134 KB

public/images/1024x768.png

149 KB

public/images/120x120.png

4.88 KB

public/images/1242x2208.png

411 KB

public/images/1334x750.png

180 KB

public/images/152x152.png

6.56 KB

public/images/1536x2048.png

452 KB

public/images/16x16.png

539 Bytes

public/images/180x180.png

7.91 KB

public/images/192x192.png

8.64 KB

public/images/2048x1536.png

445 KB

public/images/2208x1242.png

397 KB

public/images/32x32.png

1.16 KB

public/images/512x512.png

37.4 KB

public/images/640x1136.png

146 KB

public/images/640x960.png

128 KB

public/images/750x1334.png

189 KB

public/images/76x76.png

2.91 KB

public/images/openadhan.ico

4.19 KB
Binary file not shown.

public/index.html

+82-14
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,88 @@
88
/>
99
<meta name="theme-color" content="#000000" />
1010
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
11-
<!--
12-
manifest.json provides metadata used when your web app is added to the
13-
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
14-
-->
15-
16-
<!--
17-
Notice the use of %PUBLIC_URL% in the tags above.
18-
It will be replaced with the URL of the `public` folder during the build.
19-
Only files inside the `public` folder can be referenced from the HTML.
20-
21-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
22-
work correctly both with client-side routing and a non-root public URL.
23-
Learn how to configure a non-root public URL by running `npm run build`.
24-
-->
11+
<link rel="icon" type="image/png" href="%PUBLIC_URL%/images/16x16.png" />
12+
<!-- Only for iOS: Configs -->
13+
<meta name="apple-mobile-web-app-capable" content="yes" />
14+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
15+
<meta name="apple-mobile-web-app-title" content="OpenAdhan" />
16+
<!-- Icons -->
17+
<link
18+
rel="apple-touch-icon"
19+
href="%PUBLIC_URL%/images/76x76.png"
20+
sizes="76x76"
21+
/>
22+
<link
23+
rel="apple-touch-icon"
24+
href="%PUBLIC_URL%/images/120x120.png"
25+
sizes="120x120"
26+
/>
27+
<link
28+
rel="apple-touch-icon"
29+
href="%PUBLIC_URL%/images/152x152.png"
30+
sizes="152x152"
31+
/>
32+
<link
33+
rel="apple-touch-icon"
34+
href="%PUBLIC_URL%/images/180x180.png"
35+
sizes="180x180"
36+
/>
37+
<link
38+
rel="apple-touch-icon"
39+
href="%PUBLIC_URL%/images/1024x1024.png"
40+
sizes="1024x1024"
41+
/>
42+
<!-- Splash Screen -->
43+
<link
44+
rel="apple-touch-startup-image"
45+
href="%PUBLIC_URL%/images/640x960.png"
46+
sizes="640x960"
47+
/>
48+
<link
49+
rel="apple-touch-startup-image"
50+
href="/%PUBLIC_URL%/images/640x1136.png"
51+
sizes="640x1136"
52+
/>
53+
<link
54+
rel="apple-touch-startup-image"
55+
href="%PUBLIC_URL%/images/750x1334.png"
56+
sizes="750x1334"
57+
/>
58+
<link
59+
rel="apple-touch-startup-image"
60+
href="%PUBLIC_URL%/images/768x1024.png"
61+
sizes="768x1024"
62+
/>
63+
<link
64+
rel="apple-touch-startup-image"
65+
href="%PUBLIC_URL%/images/1024x768.png"
66+
sizes="1024x768"
67+
/>
68+
<link
69+
rel="apple-touch-startup-image"
70+
href="%PUBLIC_URL%/images/1242x2208.png"
71+
sizes="1242x2208"
72+
/>
73+
<link
74+
rel="apple-touch-startup-image"
75+
href="%PUBLIC_URL%/images/1334x750.png"
76+
sizes="1334x750"
77+
/>
78+
<link
79+
rel="apple-touch-startup-image"
80+
href="%PUBLIC_URL%/images/1536x2048.png"
81+
sizes="1536x2048"
82+
/>
83+
<link
84+
rel="apple-touch-startup-image"
85+
href="%PUBLIC_URL%/images/2048x1536.png"
86+
sizes="2048x1536"
87+
/>
88+
<link
89+
rel="apple-touch-startup-image"
90+
href="/%PUBLIC_URL%/images/2208x1242.png"
91+
sizes="2208x1242"
92+
/>
2593
<title>OpenAdhan</title>
2694
</head>
2795

public/manifest.json

+43-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,55 @@
11
{
22
"short_name": "OpenAdhan",
33
"name": "OpenAdhan",
4+
"categories": ["social", "education", "books"],
5+
"lang": "ar",
6+
"url": "/",
7+
"scope": "/",
8+
"id": "nhadonnpnhmghdaakodelnkkljdempbk",
9+
"shortcuts": [
10+
{
11+
"name": "حول الموقع",
12+
"short_name": "حول الموقع",
13+
"description": "حول الموقع",
14+
"url": "./about",
15+
"icons": [
16+
{
17+
"src": "images/192x192.png",
18+
"sizes": "192x192",
19+
"type": "image/png",
20+
"purpose": "any maskable"
21+
}
22+
]
23+
},
24+
{
25+
"name": "الإعدادات",
26+
"short_name": "الإعدادات",
27+
"description": "الإعدادات",
28+
"url": "./config",
29+
"icons": [
30+
{
31+
"src": "images/192x192.png",
32+
"sizes": "192x192",
33+
"type": "image/png",
34+
"purpose": "any maskable"
35+
}
36+
]
37+
}
38+
],
439
"icons": [
540
{
6-
"src": "/assets/openadhan.ico",
41+
"src": "/images/openadhan.ico",
742
"sizes": "32x32",
843
"type": "image/ico"
944
},
1045
{
11-
"src": "/assets/openadhan.png",
12-
"sizes": "500x500",
46+
"src": "/images/192x192.png",
47+
"sizes": "192x192",
48+
"type": "image/png"
49+
},
50+
{
51+
"src": "/images/512x512.png",
52+
"sizes": "512x512",
1353
"type": "image/png"
1454
}
1555
],

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ReactDOM.render(
2424
// If you want your app to work offline and load faster, you can change
2525
// unregister() to register() below. Note this comes with some pitfalls.
2626
// Learn more about service workers: https://cra.link/PWA
27-
serviceWorkerRegistration.unregister();
27+
serviceWorkerRegistration.register();
2828

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

0 commit comments

Comments
 (0)