qcobjectsnewapp 2.4.34 → 2.4.37
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/CNAME +1 -0
- package/VERSION +1 -1
- package/config.json +51 -39
- package/package.json +14 -24
- package/src/css/index.css +4 -0
- package/src/img/logo-qcobjects-back-bg-white-icon.svg +64 -0
- package/src/img/logo-qcobjects-white-bg-back-icon.svg +73 -0
- package/src/img/logo-qcobjects-white-black-bg.svg +117 -0
- package/src/js/config.ts +2 -1
- package/src/js/packages/com.qcobjects.services.newapp.ts +31 -0
- package/src/js/packages/org.quickcorp.custom.components.ts +190 -38
- package/src/js/packages/org.quickcorp.custom.controllers.ts +6 -6
- package/src/js/packages/org.quickcorp.custom.ts +1 -0
- package/src/sw.js +193 -120
- package/src/templates/components/nav.tpl.html +1 -0
- package/src/templates/components/topmenu.tpl.html +1 -0
- package/src/pwabuilder-sw.js +0 -55
package/src/sw.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects
|
|
3
|
-
*
|
|
2
|
+
* QCObjects Framework
|
|
3
|
+
* ____________________________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
6
|
*
|
|
@@ -24,10 +24,67 @@
|
|
|
24
24
|
*/
|
|
25
25
|
"use strict";
|
|
26
26
|
// eslint-disable-next-line no-undef
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
|
|
28
|
+
/* eslint-disable no-undef */
|
|
29
|
+
// This is the service worker with the combined offline experience (Offline page + Offline copy of pages)
|
|
30
|
+
|
|
31
|
+
const CACHE = "qcobjectsnewapp-offline-page";
|
|
32
|
+
|
|
33
|
+
importScripts("https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js");
|
|
34
|
+
|
|
35
|
+
const offlineFallbackPage = "index-fallback.html";
|
|
36
|
+
|
|
37
|
+
self.addEventListener("message", (event) => {
|
|
38
|
+
if (event.data && event.data.type === "SKIP_WAITING") {
|
|
39
|
+
self.skipWaiting();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
self.addEventListener("install", async (event) => {
|
|
44
|
+
event.waitUntil(
|
|
45
|
+
caches.open(CACHE)
|
|
46
|
+
.then((cache) => cache.add(offlineFallbackPage))
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
if (workbox.navigationPreload.isSupported()) {
|
|
51
|
+
workbox.navigationPreload.enable();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
workbox.routing.registerRoute(
|
|
55
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
56
|
+
new RegExp("/*"),
|
|
57
|
+
new workbox.strategies.StaleWhileRevalidate({
|
|
58
|
+
cacheName: CACHE
|
|
59
|
+
})
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
self.addEventListener("fetch", (event) => {
|
|
63
|
+
if (event.request.mode === "navigate") {
|
|
64
|
+
event.respondWith((async () => {
|
|
65
|
+
try {
|
|
66
|
+
const preloadResp = await event.preloadResponse;
|
|
67
|
+
|
|
68
|
+
if (preloadResp) {
|
|
69
|
+
return preloadResp;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const networkResp = await fetch(event.request);
|
|
73
|
+
return networkResp;
|
|
74
|
+
} catch (error) {
|
|
75
|
+
|
|
76
|
+
const cache = await caches.open(CACHE);
|
|
77
|
+
const cachedResp = await cache.match(offlineFallbackPage);
|
|
78
|
+
return cachedResp;
|
|
79
|
+
}
|
|
80
|
+
})());
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
const version = "1.0.0";
|
|
29
86
|
const appName = "qcobjectsnewapp";
|
|
30
|
-
const cacheSufix = (Math.round(Date.now()
|
|
87
|
+
const cacheSufix = (Math.round(Date.now()/(1000*3600))).toString(); // 1 hour
|
|
31
88
|
const cacheName = `qcobjects-app-${appName}-${version}-${cacheSufix}`;
|
|
32
89
|
const startUrl = "/?homescreen=1";
|
|
33
90
|
caches.delete(cacheName); // force to reload cache for the first time the sw is loaded
|
|
@@ -35,121 +92,137 @@ self.addEventListener("install", e => {
|
|
|
35
92
|
e.waitUntil(
|
|
36
93
|
caches.open(cacheName).then(cache => {
|
|
37
94
|
return cache.addAll([`${startUrl}`,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
95
|
+
"/",
|
|
96
|
+
"404.html",
|
|
97
|
+
"_redirects",
|
|
98
|
+
"css/body-layout.css",
|
|
99
|
+
"css/components/button.css",
|
|
100
|
+
"css/components/card.css",
|
|
101
|
+
"css/components/hero/hero-call-to-action.css",
|
|
102
|
+
"css/components/hero/hero-overlay.css",
|
|
103
|
+
"css/components/hero/hero-two-column-form.css",
|
|
104
|
+
"css/components/modal.css",
|
|
105
|
+
"css/desktop/components/deploy-grid.css",
|
|
106
|
+
"css/desktop/components/github-grid.css",
|
|
107
|
+
"css/desktop/container.css",
|
|
108
|
+
"css/desktop/content.css",
|
|
109
|
+
"css/desktop/footer.css",
|
|
110
|
+
"css/desktop/index.css",
|
|
111
|
+
"css/desktop/navbar.css",
|
|
112
|
+
"css/desktop/sidebar.css",
|
|
113
|
+
"css/index.css",
|
|
114
|
+
"css/mobile/components/deploy-grid.css",
|
|
115
|
+
"css/mobile/components/github-grid.css",
|
|
116
|
+
"css/mobile/content.css",
|
|
117
|
+
"css/mobile/footer.css",
|
|
118
|
+
"css/mobile/index.css",
|
|
119
|
+
"css/mobile/navbar.css",
|
|
120
|
+
"css/mobile/sidebar.css",
|
|
121
|
+
"css/modern-base.css",
|
|
122
|
+
"css/theme/basic/style.css",
|
|
123
|
+
"css/theme/cyan/style.css",
|
|
124
|
+
"css/theme/redlight/style.css",
|
|
125
|
+
"css/theme/xtra/style.css",
|
|
126
|
+
"favicon.ico",
|
|
127
|
+
"humans.txt",
|
|
128
|
+
"img/Q_web copy.png",
|
|
129
|
+
"img/Q_web-white.png",
|
|
130
|
+
"img/Q_web.png",
|
|
131
|
+
"img/Q_web.svg",
|
|
132
|
+
"img/awsmplogo3.svg",
|
|
133
|
+
"img/icons/icon-128x128.png",
|
|
134
|
+
"img/icons/icon-144x144.png",
|
|
135
|
+
"img/icons/icon-152x152.png",
|
|
136
|
+
"img/icons/icon-192x192.png",
|
|
137
|
+
"img/icons/icon-384x384.png",
|
|
138
|
+
"img/icons/icon-512x512.png",
|
|
139
|
+
"img/icons/icon-72x72.png",
|
|
140
|
+
"img/icons/icon-96x96.png",
|
|
141
|
+
"img/logo-qcobjects-version.svg",
|
|
142
|
+
"img/logo-qcobjects-white-powered-quickcorp.svg",
|
|
143
|
+
"img/logo-qcobjects-white.svg",
|
|
144
|
+
"img/logo.png",
|
|
145
|
+
"img/netlify-button.svg",
|
|
146
|
+
"img/octocat.svg",
|
|
147
|
+
"img/placeholder.svg",
|
|
148
|
+
"img/screenshots/screenshot1.png",
|
|
149
|
+
"img/screenshots/screenshot1.webp",
|
|
150
|
+
"img/screenshots/screenshot2.png",
|
|
151
|
+
"img/screenshots/screenshot2.webp",
|
|
152
|
+
"index-fallback.html",
|
|
153
|
+
"index.html",
|
|
154
|
+
"js/config.d.ts",
|
|
155
|
+
"js/config.ts",
|
|
156
|
+
"js/customWidgets.d.ts",
|
|
157
|
+
"js/customWidgets.ts",
|
|
158
|
+
"js/init.d.ts",
|
|
159
|
+
"js/init.ts",
|
|
160
|
+
"js/packages/com.qcobjects.installer.d.ts",
|
|
161
|
+
"js/packages/com.qcobjects.installer.ts",
|
|
162
|
+
"js/packages/com.qcobjects.services.github.d.ts",
|
|
163
|
+
"js/packages/com.qcobjects.services.github.ts",
|
|
164
|
+
"js/packages/org.quickcorp.custom.components.d.ts",
|
|
165
|
+
"js/packages/org.quickcorp.custom.components.ts",
|
|
166
|
+
"js/packages/org.quickcorp.custom.controllers.d.ts",
|
|
167
|
+
"js/packages/org.quickcorp.custom.controllers.ts",
|
|
168
|
+
"js/packages/org.quickcorp.custom.d.ts",
|
|
169
|
+
"js/packages/org.quickcorp.custom.effects.d.ts",
|
|
170
|
+
"js/packages/org.quickcorp.custom.effects.ts",
|
|
171
|
+
"js/packages/org.quickcorp.custom.models.d.ts",
|
|
172
|
+
"js/packages/org.quickcorp.custom.models.ts",
|
|
173
|
+
"js/packages/org.quickcorp.custom.ts",
|
|
174
|
+
"js/packages/org.quickcorp.custom.views.d.ts",
|
|
175
|
+
"js/packages/org.quickcorp.custom.views.ts",
|
|
176
|
+
"manifest.json",
|
|
177
|
+
"robots.txt",
|
|
178
|
+
"templates/components/article1.tpl.html",
|
|
179
|
+
"templates/components/article2.tpl.html",
|
|
180
|
+
"templates/components/aws-button.tpl.html",
|
|
181
|
+
"templates/components/blank.tpl.html",
|
|
182
|
+
"templates/components/card.tpl.html",
|
|
183
|
+
"templates/components/codespaces-button.tpl.html",
|
|
184
|
+
"templates/components/contentblock.tpl.html",
|
|
185
|
+
"templates/components/footer.tpl.html",
|
|
186
|
+
"templates/components/footer2.tpl.html",
|
|
187
|
+
"templates/components/github-button.tpl.html",
|
|
188
|
+
"templates/components/github-card.tpl.html",
|
|
189
|
+
"templates/components/gitpod-button.tpl.html",
|
|
190
|
+
"templates/components/header.tpl.html",
|
|
191
|
+
"templates/components/hero/hero-call-to-action.tpl.html",
|
|
192
|
+
"templates/components/hero/hero-overlay.tpl.html",
|
|
193
|
+
"templates/components/hero/hero-two-column-form.tpl.html",
|
|
194
|
+
"templates/components/install-button.tpl.html",
|
|
195
|
+
"templates/components/layout-basic.tpl.html",
|
|
196
|
+
"templates/components/loading.tpl.html",
|
|
197
|
+
"templates/components/loadingfooter.tpl.html",
|
|
198
|
+
"templates/components/login-button.tpl.html",
|
|
199
|
+
"templates/components/login2.tpl.html",
|
|
200
|
+
"templates/components/loginform.tpl.html",
|
|
201
|
+
"templates/components/modal.tpl.html",
|
|
202
|
+
"templates/components/nav.tpl.html",
|
|
203
|
+
"templates/components/netlify-button.tpl.html",
|
|
204
|
+
"templates/components/octocat-icon.tpl.html",
|
|
205
|
+
"templates/components/pages/about-of.tpl.html",
|
|
206
|
+
"templates/components/pages/author.tpl.html",
|
|
207
|
+
"templates/components/pages/page1.tpl.html",
|
|
208
|
+
"templates/components/pages/page2.tpl.html",
|
|
209
|
+
"templates/components/pages/page3.tpl.html",
|
|
210
|
+
"templates/components/pages/qcobjects-forks-stars.tpl.html",
|
|
211
|
+
"templates/components/product.tpl.html",
|
|
212
|
+
"templates/components/profile.tpl.html",
|
|
213
|
+
"templates/components/section1.tpl.html",
|
|
214
|
+
"templates/components/section2.tpl.html",
|
|
215
|
+
"templates/components/shadowed-card.tpl.html",
|
|
216
|
+
"templates/components/signin-button.tpl.html",
|
|
217
|
+
"templates/components/signup-form.tpl.html",
|
|
218
|
+
"templates/components/signup.tpl.html",
|
|
219
|
+
"templates/components/signupbuttons.tpl.html",
|
|
220
|
+
"templates/components/signupform.tpl.html",
|
|
221
|
+
"templates/components/signuppage.tpl.html",
|
|
222
|
+
"templates/components/signupsuccessful.tpl.html",
|
|
223
|
+
"templates/components/signupsuccessfulfooter.tpl.html",
|
|
224
|
+
"templates/components/splashscreen.tpl.html",
|
|
225
|
+
"templates/components/topmenu.tpl.html"])
|
|
153
226
|
.then(() => self.skipWaiting());
|
|
154
227
|
})
|
|
155
228
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<a href="/" class="topmenu active">Home</a>
|
|
2
2
|
<a href="https://qcobjects.com" class="topmenu">QCObjects</a>
|
|
3
3
|
<a href="/signup" class="topmenu">Contact</a>
|
|
4
|
+
<quick-component componentClass="AdminButton"></quick-component>
|
|
4
5
|
<a href="/signup" class="topmenu createaccountlink2">Register</a>
|
|
5
6
|
<div class="login-container">
|
|
6
7
|
<quick-component name="loginform"></quick-component>
|
package/src/pwabuilder-sw.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
|
-
// This is the service worker with the combined offline experience (Offline page + Offline copy of pages)
|
|
3
|
-
|
|
4
|
-
const CACHE = "qcobjectsnewapp-offline-page";
|
|
5
|
-
|
|
6
|
-
importScripts("https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js");
|
|
7
|
-
|
|
8
|
-
const offlineFallbackPage = "index-fallback.html";
|
|
9
|
-
|
|
10
|
-
self.addEventListener("message", (event) => {
|
|
11
|
-
if (event.data && event.data.type === "SKIP_WAITING") {
|
|
12
|
-
self.skipWaiting();
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
self.addEventListener("install", async (event) => {
|
|
17
|
-
event.waitUntil(
|
|
18
|
-
caches.open(CACHE)
|
|
19
|
-
.then((cache) => cache.add(offlineFallbackPage))
|
|
20
|
-
);
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
if (workbox.navigationPreload.isSupported()) {
|
|
24
|
-
workbox.navigationPreload.enable();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
workbox.routing.registerRoute(
|
|
28
|
-
// eslint-disable-next-line prefer-regex-literals
|
|
29
|
-
new RegExp("/*"),
|
|
30
|
-
new workbox.strategies.StaleWhileRevalidate({
|
|
31
|
-
cacheName: CACHE
|
|
32
|
-
})
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
self.addEventListener("fetch", (event) => {
|
|
36
|
-
if (event.request.mode === "navigate") {
|
|
37
|
-
event.respondWith((async () => {
|
|
38
|
-
try {
|
|
39
|
-
const preloadResp = await event.preloadResponse;
|
|
40
|
-
|
|
41
|
-
if (preloadResp) {
|
|
42
|
-
return preloadResp;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const networkResp = await fetch(event.request);
|
|
46
|
-
return networkResp;
|
|
47
|
-
} catch (error) {
|
|
48
|
-
|
|
49
|
-
const cache = await caches.open(CACHE);
|
|
50
|
-
const cachedResp = await cache.match(offlineFallbackPage);
|
|
51
|
-
return cachedResp;
|
|
52
|
-
}
|
|
53
|
-
})());
|
|
54
|
-
}
|
|
55
|
-
});
|