@cocreate/pwa 1.6.10 → 1.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +3 -3
- package/.github/workflows/automated.yml +95 -95
- package/.github/workflows/manual.yml +44 -44
- package/CHANGELOG.md +572 -557
- package/CONTRIBUTING.md +96 -96
- package/CoCreate.config.js +26 -26
- package/LICENSE +21 -21
- package/README.md +75 -75
- package/demo/css/style.css +34 -34
- package/demo/css/test1.css +3 -3
- package/demo/css/test2.css +3 -3
- package/demo/css/test3.css +3 -3
- package/demo/index.html +77 -77
- package/demo/js/test1.js +1 -1
- package/demo/js/test2.js +1 -1
- package/demo/js/test3.js +1 -1
- package/demo/manifest.json +91 -91
- package/demo/offline.html +34 -34
- package/demo/pages/test1.html +55 -55
- package/demo/pages/test2.html +55 -55
- package/demo/pages/test3.html +56 -56
- package/demo/sw.js +111 -111
- package/docs/index.html +254 -254
- package/package.json +3 -3
- package/release.config.js +21 -21
- package/src/badging.js +10 -10
- package/src/cache.js +43 -43
- package/src/contact-picker.js +10 -10
- package/src/file-share.js +14 -14
- package/src/index.js +98 -98
- package/src/wakeLock.js +8 -8
- package/src/web-share.js +1 -1
- package/webpack.config.js +84 -84
package/demo/index.html
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<title>Im the page title</title>
|
|
5
|
-
<meta charset="utf-8" />
|
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
7
|
-
<meta
|
|
8
|
-
name="viewport"
|
|
9
|
-
content="width=device-width; initial-scale=1; viewport-fit=cover" />
|
|
10
|
-
<!-- import the webpage's stylesheet -->
|
|
11
|
-
<link
|
|
12
|
-
rel="stylesheet"
|
|
13
|
-
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" />
|
|
14
|
-
<link rel="stylesheet" href="./css/style.css" />
|
|
15
|
-
<!-- Manifest -->
|
|
16
|
-
<link rel="manifest" href="./manifest.webmanifest" />
|
|
17
|
-
<!--<meta name="theme-color" content="red">-->
|
|
18
|
-
|
|
19
|
-
<!--<non-transparent PNG icon sized at 180 by 180 >-->
|
|
20
|
-
<link rel="apple-touch-icon" href="/images/icons/ios.png" />
|
|
21
|
-
|
|
22
|
-
<meta name="mobile-web-app-capable" content="yes" />
|
|
23
|
-
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
24
|
-
<!--<hides status bar for a full screen experience omn ios only>-->
|
|
25
|
-
<meta
|
|
26
|
-
name="apple-mobile-web-app-status-bar-style"
|
|
27
|
-
content="black-translucent" />
|
|
28
|
-
|
|
29
|
-
<link rel="apple-touch-startup-image" href="ios-startup.png" />
|
|
30
|
-
|
|
31
|
-
<link
|
|
32
|
-
rel="apple-touch-startup-image"
|
|
33
|
-
href="ios-startup.png"
|
|
34
|
-
media="orientation: portrait" />
|
|
35
|
-
<link
|
|
36
|
-
rel="apple-touch-startup-image"
|
|
37
|
-
href="ios-startup-landscape.png"
|
|
38
|
-
media="orientation: landscape" />
|
|
39
|
-
|
|
40
|
-
<link rel="manifest" href="/manifest.webmanifest" />
|
|
41
|
-
</head>
|
|
42
|
-
|
|
43
|
-
<body>
|
|
44
|
-
<nav class="navbar navbar-expand-sm bg-dark">
|
|
45
|
-
<!-- Links -->
|
|
46
|
-
<ul class="navbar-nav">
|
|
47
|
-
<li class="nav-item active">
|
|
48
|
-
<a class="nav-link" href="#">Home</a>
|
|
49
|
-
</li>
|
|
50
|
-
<li class="nav-item">
|
|
51
|
-
<a class="nav-link" href="./pages/test1.html">Test1</a>
|
|
52
|
-
</li>
|
|
53
|
-
<li class="nav-item">
|
|
54
|
-
<a class="nav-link" href="./pages/test2.html">Test 2</a>
|
|
55
|
-
</li>
|
|
56
|
-
<li class="nav-item">
|
|
57
|
-
<a class="nav-link" href="./pages/test3.html">Test 3</a>
|
|
58
|
-
</li>
|
|
59
|
-
</ul>
|
|
60
|
-
</nav>
|
|
61
|
-
<p id="requireHTTPS" class="hidden">
|
|
62
|
-
<b>STOP!</b> This page <b>must</b> be served over HTTPS. Please
|
|
63
|
-
<a>reload this page via HTTPS</a>.
|
|
64
|
-
</p>
|
|
65
|
-
|
|
66
|
-
<p>To Make me installable, follow the</p>
|
|
67
|
-
|
|
68
|
-
<button id="cacheBtn">Uncache</button>
|
|
69
|
-
|
|
70
|
-
<!-- Install button, hidden by default -->
|
|
71
|
-
|
|
72
|
-
<button actions="install" type="button" hidden>Install</button>
|
|
73
|
-
|
|
74
|
-
<!-- <script src="../src/index.js" defer></script> -->
|
|
75
|
-
<script src="../dist/CoCreate-pwa.js" defer></script>
|
|
76
|
-
</body>
|
|
77
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>Im the page title</title>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
7
|
+
<meta
|
|
8
|
+
name="viewport"
|
|
9
|
+
content="width=device-width; initial-scale=1; viewport-fit=cover" />
|
|
10
|
+
<!-- import the webpage's stylesheet -->
|
|
11
|
+
<link
|
|
12
|
+
rel="stylesheet"
|
|
13
|
+
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" />
|
|
14
|
+
<link rel="stylesheet" href="./css/style.css" />
|
|
15
|
+
<!-- Manifest -->
|
|
16
|
+
<link rel="manifest" href="./manifest.webmanifest" />
|
|
17
|
+
<!--<meta name="theme-color" content="red">-->
|
|
18
|
+
|
|
19
|
+
<!--<non-transparent PNG icon sized at 180 by 180 >-->
|
|
20
|
+
<link rel="apple-touch-icon" href="/images/icons/ios.png" />
|
|
21
|
+
|
|
22
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
23
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
24
|
+
<!--<hides status bar for a full screen experience omn ios only>-->
|
|
25
|
+
<meta
|
|
26
|
+
name="apple-mobile-web-app-status-bar-style"
|
|
27
|
+
content="black-translucent" />
|
|
28
|
+
|
|
29
|
+
<link rel="apple-touch-startup-image" href="ios-startup.png" />
|
|
30
|
+
|
|
31
|
+
<link
|
|
32
|
+
rel="apple-touch-startup-image"
|
|
33
|
+
href="ios-startup.png"
|
|
34
|
+
media="orientation: portrait" />
|
|
35
|
+
<link
|
|
36
|
+
rel="apple-touch-startup-image"
|
|
37
|
+
href="ios-startup-landscape.png"
|
|
38
|
+
media="orientation: landscape" />
|
|
39
|
+
|
|
40
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
41
|
+
</head>
|
|
42
|
+
|
|
43
|
+
<body>
|
|
44
|
+
<nav class="navbar navbar-expand-sm bg-dark">
|
|
45
|
+
<!-- Links -->
|
|
46
|
+
<ul class="navbar-nav">
|
|
47
|
+
<li class="nav-item active">
|
|
48
|
+
<a class="nav-link" href="#">Home</a>
|
|
49
|
+
</li>
|
|
50
|
+
<li class="nav-item">
|
|
51
|
+
<a class="nav-link" href="./pages/test1.html">Test1</a>
|
|
52
|
+
</li>
|
|
53
|
+
<li class="nav-item">
|
|
54
|
+
<a class="nav-link" href="./pages/test2.html">Test 2</a>
|
|
55
|
+
</li>
|
|
56
|
+
<li class="nav-item">
|
|
57
|
+
<a class="nav-link" href="./pages/test3.html">Test 3</a>
|
|
58
|
+
</li>
|
|
59
|
+
</ul>
|
|
60
|
+
</nav>
|
|
61
|
+
<p id="requireHTTPS" class="hidden">
|
|
62
|
+
<b>STOP!</b> This page <b>must</b> be served over HTTPS. Please
|
|
63
|
+
<a>reload this page via HTTPS</a>.
|
|
64
|
+
</p>
|
|
65
|
+
|
|
66
|
+
<p>To Make me installable, follow the</p>
|
|
67
|
+
|
|
68
|
+
<button id="cacheBtn">Uncache</button>
|
|
69
|
+
|
|
70
|
+
<!-- Install button, hidden by default -->
|
|
71
|
+
|
|
72
|
+
<button actions="install" type="button" hidden>Install</button>
|
|
73
|
+
|
|
74
|
+
<!-- <script src="../src/index.js" defer></script> -->
|
|
75
|
+
<script src="../dist/CoCreate-pwa.js" defer></script>
|
|
76
|
+
</body>
|
|
77
|
+
</html>
|
package/demo/js/test1.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
console.log("test1");
|
|
1
|
+
console.log("test1");
|
package/demo/js/test2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
console.log("test2");
|
|
1
|
+
console.log("test2");
|
package/demo/js/test3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
console.log("test3");
|
|
1
|
+
console.log("test3");
|
package/demo/manifest.json
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "CoCreate",
|
|
3
|
-
"name": "CoCreate",
|
|
4
|
-
"description": "Build your business in miutes",
|
|
5
|
-
"protocol_handlers": [
|
|
6
|
-
{
|
|
7
|
-
"protocol": "web+jngl",
|
|
8
|
-
"url": "/lookup?type=%s"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"protocol": "web+jnglstore",
|
|
12
|
-
"url": "/shop?for=%s"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"orientation": "portrait-primary",
|
|
16
|
-
"icons": [
|
|
17
|
-
{
|
|
18
|
-
"src": "./assets/icons/icon-72x72.png",
|
|
19
|
-
"type": "image/png",
|
|
20
|
-
"sizes": "72x72"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"src": "./assets/icons/icon-96x96.png",
|
|
24
|
-
"type": "image/png",
|
|
25
|
-
"sizes": "96x96"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"src": "./assets/icons/icon-128x128.png",
|
|
29
|
-
"type": "image/png",
|
|
30
|
-
"sizes": "128x128"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"src": "./assets/icons/icon-144x144.png",
|
|
34
|
-
"type": "image/png",
|
|
35
|
-
"sizes": "144x144"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"src": "./assets/icons/icon-152x152.png",
|
|
39
|
-
"type": "image/png",
|
|
40
|
-
"sizes": "152x152"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"src": "./assets/icons/icon-192x192.png",
|
|
44
|
-
"type": "image/png",
|
|
45
|
-
"sizes": "192x192"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"src": "./assets/icons/icon-384x384.png",
|
|
49
|
-
"type": "image/png",
|
|
50
|
-
"sizes": "384x384"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"src": "./assets/icons/icon-512x512.png",
|
|
54
|
-
"type": "image/png",
|
|
55
|
-
"sizes": "512x512",
|
|
56
|
-
"purpose": "maskable"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"start_url": "/",
|
|
60
|
-
"id": "/",
|
|
61
|
-
"background_color": "whitesmoke",
|
|
62
|
-
"display": "fullscreen",
|
|
63
|
-
"theme_color": "#c7c7c7",
|
|
64
|
-
"screenshots": [
|
|
65
|
-
{
|
|
66
|
-
"src": "./assets/screenshot-1.png",
|
|
67
|
-
"type": "image/png",
|
|
68
|
-
"sizes": "1903x950"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"categories": "productivity",
|
|
72
|
-
"file_handlers": [
|
|
73
|
-
{
|
|
74
|
-
"action": "/open-file",
|
|
75
|
-
"accept": {
|
|
76
|
-
"text/*": [
|
|
77
|
-
".txt"
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"share_target": {
|
|
83
|
-
"action": "/",
|
|
84
|
-
"method": "GET",
|
|
85
|
-
"enctype": "application/x-www-form-urlencoded",
|
|
86
|
-
"params": {
|
|
87
|
-
"title": "title",
|
|
88
|
-
"text": "text",
|
|
89
|
-
"url": "url"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"short_name": "CoCreate",
|
|
3
|
+
"name": "CoCreate",
|
|
4
|
+
"description": "Build your business in miutes",
|
|
5
|
+
"protocol_handlers": [
|
|
6
|
+
{
|
|
7
|
+
"protocol": "web+jngl",
|
|
8
|
+
"url": "/lookup?type=%s"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"protocol": "web+jnglstore",
|
|
12
|
+
"url": "/shop?for=%s"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"orientation": "portrait-primary",
|
|
16
|
+
"icons": [
|
|
17
|
+
{
|
|
18
|
+
"src": "./assets/icons/icon-72x72.png",
|
|
19
|
+
"type": "image/png",
|
|
20
|
+
"sizes": "72x72"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"src": "./assets/icons/icon-96x96.png",
|
|
24
|
+
"type": "image/png",
|
|
25
|
+
"sizes": "96x96"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"src": "./assets/icons/icon-128x128.png",
|
|
29
|
+
"type": "image/png",
|
|
30
|
+
"sizes": "128x128"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"src": "./assets/icons/icon-144x144.png",
|
|
34
|
+
"type": "image/png",
|
|
35
|
+
"sizes": "144x144"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"src": "./assets/icons/icon-152x152.png",
|
|
39
|
+
"type": "image/png",
|
|
40
|
+
"sizes": "152x152"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"src": "./assets/icons/icon-192x192.png",
|
|
44
|
+
"type": "image/png",
|
|
45
|
+
"sizes": "192x192"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"src": "./assets/icons/icon-384x384.png",
|
|
49
|
+
"type": "image/png",
|
|
50
|
+
"sizes": "384x384"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"src": "./assets/icons/icon-512x512.png",
|
|
54
|
+
"type": "image/png",
|
|
55
|
+
"sizes": "512x512",
|
|
56
|
+
"purpose": "maskable"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"start_url": "/",
|
|
60
|
+
"id": "/",
|
|
61
|
+
"background_color": "whitesmoke",
|
|
62
|
+
"display": "fullscreen",
|
|
63
|
+
"theme_color": "#c7c7c7",
|
|
64
|
+
"screenshots": [
|
|
65
|
+
{
|
|
66
|
+
"src": "./assets/screenshot-1.png",
|
|
67
|
+
"type": "image/png",
|
|
68
|
+
"sizes": "1903x950"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"categories": "productivity",
|
|
72
|
+
"file_handlers": [
|
|
73
|
+
{
|
|
74
|
+
"action": "/open-file",
|
|
75
|
+
"accept": {
|
|
76
|
+
"text/*": [
|
|
77
|
+
".txt"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"share_target": {
|
|
83
|
+
"action": "/",
|
|
84
|
+
"method": "GET",
|
|
85
|
+
"enctype": "application/x-www-form-urlencoded",
|
|
86
|
+
"params": {
|
|
87
|
+
"title": "title",
|
|
88
|
+
"text": "text",
|
|
89
|
+
"url": "url"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
92
|
}
|