qcobjects 2.4.54 → 2.4.57

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/.eslintrc.json CHANGED
@@ -13,6 +13,7 @@
13
13
  "SharedArrayBuffer": "readonly"
14
14
  },
15
15
  "parserOptions": {
16
+ "sourceType":"module",
16
17
  "ecmaVersion": "latest",
17
18
  "ecmaFeatures": {}
18
19
  },
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.4.54
1
+ 2.4.57
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "qcobjects",
3
- "version": "2.4.54",
3
+ "version": "2.4.57",
4
4
  "description": "QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.",
5
- "main": "QCObjects.js",
5
+ "main": "src/index.cjs",
6
+ "module": "src/index.mjs",
7
+ "exports": {
8
+ "require": "./src/index.cjs",
9
+ "import": "./src/index.mjs"
10
+ },
11
+ "type": "commonjs",
6
12
  "license": "LGPL-3.0",
7
13
  "scripts": {
14
+ "build:ts": "npm test && npx tsc",
8
15
  "start": "qcobjects-shell",
9
- "test": "npx eslint --fix QCObjects.js && jasmine",
16
+ "test": "((npx eslint src/*.js spec/*.js --fix) && (npx jasmine))",
10
17
  "preversion": "npm cache verify && npm test",
11
18
  "sync": "git add . && git commit -am ",
12
19
  "postversion": "git push && git push --tags "
@@ -78,7 +85,8 @@
78
85
  },
79
86
  "devDependencies": {
80
87
  "eslint": "^8.2.0",
81
- "jasmine": "^3.7.0"
88
+ "jasmine": "^3.7.0",
89
+ "typescript": "^5.0.4"
82
90
  },
83
91
  "engines": {
84
92
  "npm": "~8.10.0",
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable no-undef */
3
3
 
4
4
  describe("Global Features Spec", function () {
5
- require("../QCObjects");
5
+ require("../src/QCObjects.js");
6
6
  logger.debugEnabled=true;
7
7
  logger.infoEnabled=true;
8
8
  logger.warnEnabled=true;
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable no-undef */
3
3
 
4
4
  describe("QCObjects Config", function () {
5
- require("../QCObjects");
5
+ require("../src/QCObjects.js");
6
6
  logger.debugEnabled=true;
7
7
  logger.infoEnabled=true;
8
8
  logger.warnEnabled=true;
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable no-undef */
3
3
 
4
4
  describe("Global Features Spec", function () {
5
- require("../QCObjects");
5
+ require("../src/QCObjects.js");
6
6
  logger.debugEnabled=true;
7
7
  logger.infoEnabled=true;
8
8
  logger.warnEnabled=true;
package/spec/testsSpec.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable no-undef */
3
3
 
4
4
  describe("QCObjects Main Test", function () {
5
- require("../QCObjects");
5
+ require("../src/QCObjects.js");
6
6
  logger.debugEnabled=true;
7
7
  logger.infoEnabled=true;
8
8
  logger.warnEnabled=true;
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable no-undef */
3
3
 
4
4
  describe("Type Spec", function () {
5
- require("../QCObjects");
5
+ require("../src/QCObjects.js");
6
6
  logger.debugEnabled=true;
7
7
  logger.infoEnabled=true;
8
8
  logger.warnEnabled=true;
@@ -31,6 +31,12 @@
31
31
  "use strict";
32
32
  var global = _top;
33
33
  _top.global = global;
34
+ var isDeno = (typeof window !== "undefined" && "Deno" in window);
35
+ var isBrowser = (typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self) && !isDeno;
36
+ var deno_require = function (){ /* not yet implemented */};
37
+ var _require_ = function (){
38
+ return (isDeno)?(deno_require(...arguments)):(require(...arguments));
39
+ };
34
40
 
35
41
  var _protected_code_ = function (_) {
36
42
  var __oldtoString = (typeof _.prototype !== "undefined") ? (_.prototype.toString) : (function () {
@@ -124,8 +130,6 @@
124
130
  if (typeof String.prototype.matchAll === "undefined") {
125
131
  String.prototype.matchAll = String.prototype.__mAll__;
126
132
  }
127
- var isDeno = (typeof window !== "undefined" && "Deno" in window);
128
- var isBrowser = (typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self) && !isDeno;
129
133
  var _DOMCreateElement = function (elementName) {
130
134
  var _ret_;
131
135
  if (isBrowser) {
@@ -137,7 +141,7 @@
137
141
  };
138
142
 
139
143
  if (!isBrowser) {
140
- const fs = require("fs");
144
+ const fs = _require_("fs");
141
145
  }
142
146
 
143
147
  var _DataStringify = function (data) {
@@ -202,7 +206,7 @@
202
206
  } else {
203
207
  var process;
204
208
  try {
205
- process = require("process");
209
+ process = _require_("process");
206
210
  } catch (e) {
207
211
  // not a process module
208
212
  }
@@ -1197,7 +1201,7 @@
1197
1201
 
1198
1202
  if (!isBrowser) {
1199
1203
  var findPackageNodePath = function (packagename) {
1200
- const fs = require("fs");
1204
+ const fs = _require_("fs");
1201
1205
  var sdkPath = null;
1202
1206
  try {
1203
1207
  var sdkPaths = [
@@ -1694,7 +1698,7 @@
1694
1698
  }
1695
1699
  try {
1696
1700
  resolve.call(_promise_import_, {
1697
- "_imported_": require(`${packageAbsoluteName}`),
1701
+ "_imported_": _require_(`${packageAbsoluteName}`),
1698
1702
  "_package_name_": packagename
1699
1703
  });
1700
1704
  } catch (e) {
@@ -2382,33 +2386,36 @@
2382
2386
  createControllerInstance (){
2383
2387
  var _component_ = this;
2384
2388
  return new Promise (function (resolve, reject){
2385
- if (typeof _component_.body === "undefined") {
2386
- throw new Error("The component has no body");
2387
- }
2388
- var controllerName = _component_.body.getAttribute("controllerClass");
2389
- if (!controllerName) {
2390
- controllerName = "Controller";
2391
- }
2392
- var _Controller = ClassFactory(controllerName);
2393
- if (typeof _Controller !== "undefined") {
2394
- _component_.controller = New(_Controller, {
2395
- component: _component_
2396
- }); // Initializes the main controller for the component
2397
- if (typeof _component_.controller.done === "function") {
2398
- try {
2399
- _component_.controller.done.call(_component_.controller);
2400
- } catch (e){
2401
- throw Error (e);
2402
- }
2403
- } else {
2404
- logger.debug(`${controllerName} does not have a done() method.`);
2405
- reject(`${controllerName} does not have a done() method.`);
2389
+ if (isBrowser){
2390
+ if (typeof _component_.body === "undefined") {
2391
+ throw new Error("The component has no body");
2406
2392
  }
2407
- if (typeof _component_.controller.createRoutingController === "function") {
2408
- _component_.controller.createRoutingController.call(_component_.controller);
2409
- } else {
2410
- logger.debug(`${controllerName} does not have a createRoutingController() method.`);
2393
+ var controllerName = _component_.body.getAttribute("controllerClass");
2394
+ if (!controllerName) {
2395
+ controllerName = "Controller";
2411
2396
  }
2397
+ var _Controller = ClassFactory(controllerName);
2398
+ if (typeof _Controller !== "undefined") {
2399
+ _component_.controller = New(_Controller, {
2400
+ component: _component_
2401
+ }); // Initializes the main controller for the component
2402
+ if (typeof _component_.controller.done === "function") {
2403
+ try {
2404
+ _component_.controller.done.call(_component_.controller);
2405
+ } catch (e){
2406
+ throw Error (e);
2407
+ }
2408
+ } else {
2409
+ logger.debug(`${controllerName} does not have a done() method.`);
2410
+ reject(`${controllerName} does not have a done() method.`);
2411
+ }
2412
+ if (typeof _component_.controller.createRoutingController === "function") {
2413
+ _component_.controller.createRoutingController.call(_component_.controller);
2414
+ } else {
2415
+ logger.debug(`${controllerName} does not have a createRoutingController() method.`);
2416
+ }
2417
+ }
2418
+
2412
2419
  }
2413
2420
  resolve ({component:_component_,controller:_component_.controller});
2414
2421
  });
@@ -2417,16 +2424,19 @@
2417
2424
  createEffectInstance (){
2418
2425
  var _component_ = this;
2419
2426
  return new Promise (function (resolve, reject){
2420
- var effectClassName = _component_.body.getAttribute("effectClass");
2421
- var applyEffectTo = _component_.body.getAttribute("apply-effect-to");
2422
- applyEffectTo = (applyEffectTo !== null) ? (applyEffectTo) : ("load");
2423
- if (effectClassName !== null && applyEffectTo === "observe") {
2424
- _component_.applyObserveTransitionEffect(effectClassName);
2425
- } else if (effectClassName !== null && applyEffectTo === "load") {
2426
- _component_.applyTransitionEffect(effectClassName);
2427
- }
2428
- if (_top.CONFIG.get("overrideComponentTag")) {
2429
- _component_.body.outerHTML = this.body.innerHTML;
2427
+ if (isBrowser){
2428
+ var effectClassName = _component_.body.getAttribute("effectClass");
2429
+ var applyEffectTo = _component_.body.getAttribute("apply-effect-to");
2430
+ applyEffectTo = (applyEffectTo !== null) ? (applyEffectTo) : ("load");
2431
+ if (effectClassName !== null && applyEffectTo === "observe") {
2432
+ _component_.applyObserveTransitionEffect(effectClassName);
2433
+ } else if (effectClassName !== null && applyEffectTo === "load") {
2434
+ _component_.applyTransitionEffect(effectClassName);
2435
+ }
2436
+ if (_top.CONFIG.get("overrideComponentTag")) {
2437
+ _component_.body.outerHTML = this.body.innerHTML;
2438
+ }
2439
+
2430
2440
  }
2431
2441
  resolve({component:_component_, effect:_component_.effect});
2432
2442
  });
@@ -2435,17 +2445,21 @@
2435
2445
  createViewInstance(){
2436
2446
  var _component_ = this;
2437
2447
  return new Promise (function (resolve, reject){
2438
- var viewName = _component_.body.getAttribute("viewClass");
2439
- var _View = ClassFactory(viewName);
2440
- if (typeof _View !== "undefined") {
2441
- _component_.view = New(_View, {
2442
- component: _component_
2443
- }); // Initializes the main view for the component
2444
- if (Object.hasOwnProperty.call(_component_.view, "done") && typeof _component_.view.done === "function") {
2445
- _component_.view.done.call(_component_.view);
2448
+ var viewName = (isBrowser)?(_component_.body.getAttribute("viewClass")):(null);
2449
+ if (viewName !== null){
2450
+ var _View = ClassFactory(viewName);
2451
+ if (typeof _View !== "undefined") {
2452
+ _component_.view = New(_View, {
2453
+ component: _component_
2454
+ }); // Initializes the main view for the component
2455
+ if (Object.hasOwnProperty.call(_component_.view, "done") && typeof _component_.view.done === "function") {
2456
+ _component_.view.done.call(_component_.view);
2457
+ }
2446
2458
  }
2459
+
2447
2460
  }
2448
2461
  resolve({component:_component_, view:_component_.view});
2462
+
2449
2463
  });
2450
2464
  }
2451
2465
 
@@ -3485,7 +3499,7 @@
3485
3499
  } else {
3486
3500
  logger.debug("Loading the component as a local file in server...");
3487
3501
  var _directLoad = function (is_file) {
3488
- const fs = require("fs");
3502
+ const fs = _require_("fs");
3489
3503
  logger.debug("SENDING THE NORMAL REQUEST ");
3490
3504
  fs.readFile(component.url, _componentLoaded);
3491
3505
  };
@@ -3515,7 +3529,7 @@
3515
3529
 
3516
3530
  }
3517
3531
  });
3518
- component.__promise__.then(function (standardResponse) {
3532
+ __promise__.then(function (standardResponse) {
3519
3533
  return component.__done__().then (function (){
3520
3534
  var _ret_;
3521
3535
  if (typeof component.done === "function") {
@@ -3532,7 +3546,7 @@
3532
3546
  }).catch(function (e) {
3533
3547
  logger.debug("Something wrong loading the component");
3534
3548
  });
3535
- return component.__promise__;
3549
+ return __promise__;
3536
3550
  };
3537
3551
 
3538
3552
  var _ret_;
@@ -3653,7 +3667,7 @@
3653
3667
  var _promise = new Promise(
3654
3668
  function (resolve, reject) {
3655
3669
  if (typeof URL === "undefined") {
3656
- global.URL = require("url").URL;
3670
+ global.URL = _require_("url").URL;
3657
3671
  let URL = global.URL;
3658
3672
  }
3659
3673
  var serviceURL = new URL(service.url);
@@ -3724,7 +3738,7 @@
3724
3738
  var requestOptions;
3725
3739
  if (service.useHTTP2) {
3726
3740
  logger.debug("using http2");
3727
- var http2 = require("http2");
3741
+ var http2 = _require_("http2");
3728
3742
  var client = http2.connect(serviceURL.origin);
3729
3743
  requestOptions = Object.assign({
3730
3744
  ":method": service.method,
@@ -3736,7 +3750,7 @@
3736
3750
  captureEvents(req);
3737
3751
  } else {
3738
3752
  if (serviceURL.protocol === "http:") {
3739
- var http = require("http");
3753
+ var http = _require_("http");
3740
3754
  var request = http.request;
3741
3755
  requestOptions = Object.assign({
3742
3756
  "url": service.url,
@@ -3745,7 +3759,7 @@
3745
3759
  var req = request(service.url);
3746
3760
  captureEvents(req);
3747
3761
  } else if (serviceURL.protocol === "https:") {
3748
- var https = require("https");
3762
+ var https = _require_("https");
3749
3763
  requestOptions = Object.assign({
3750
3764
  hostname: serviceURL.hostname,
3751
3765
  port: serviceURL.port,
package/src/index.cjs ADDED
@@ -0,0 +1 @@
1
+ require("./QCObjects.js");
package/src/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import "./QCObjects.js";
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ import "./QCObjects.js";
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2021", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
4
+ "lib": ["ES2021"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
5
+ "module": "commonjs", /* Specify what module code is generated. */
6
+ "rootDir": "src", /* Specify the root folder within your source files. */
7
+ "resolveJsonModule": true, /* Enable importing .json files. */
8
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
9
+ "outDir": "build", /* Specify an output folder for all emitted files. */
10
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
11
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
12
+ "strict": true, /* Enable all strict type-checking options. */
13
+ "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
14
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
15
+ },
16
+ "include": ["src/**/*.ts"],
17
+ "exclude": ["src/**/*.spec.ts", "src/*.js"]
18
+ }
package/sw.js DELETED
@@ -1,197 +0,0 @@
1
- /**
2
- * QCObjects SDK 1.0
3
- * ________________
4
- *
5
- * Author: Jean Machuca <correojean@gmail.com>
6
- *
7
- * Cross Browser Javascript Framework for MVC Patterns
8
- * QuickCorp/QCObjects is licensed under the
9
- * GNU Lesser General Public License v3.0
10
- * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
11
- *
12
- * Permissions of this copyleft license are conditioned on making available
13
- * complete source code of licensed works and modifications under the same
14
- * license or the GNU GPLv3. Copyright and license notices must be preserved.
15
- * Contributors provide an express grant of patent rights. However, a larger
16
- * work using the licensed work through interfaces provided by the licensed
17
- * work may be distributed under different terms and without source code for
18
- * the larger work.
19
- *
20
- * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
21
- *
22
- * Everyone is permitted to copy and distribute verbatim copies of this
23
- * license document, but changing it is not allowed.
24
- */
25
- "use strict";
26
- const version = "2.2.601";
27
- const appName = "qcobjects";
28
- const cacheSufix = (Math.round(Date.now()/(1000*3600))).toString(); // 1 hour
29
- const cacheName = `qcobjects-app-${appName}-${version}-${cacheSufix}`;
30
- const start_url = "/?homescreen=1";
31
- caches.delete(cacheName); // force to reload cache for the first time the sw is loaded
32
- self.addEventListener('install', e => {
33
- e.waitUntil(
34
- caches.open(cacheName).then(cache => {
35
- return cache.addAll([`${start_url}`,
36
- "/",
37
- "AUTHOR.md",
38
- "CHANGELOG.md",
39
- "CNAME",
40
- "CODE_OF_CONDUCT.md",
41
- "CONTRIBUTING.md",
42
- "LICENSE.txt",
43
- "QCObjects.js",
44
- "README-es.md",
45
- "README-es.pdf",
46
- "README.md",
47
- "README.pdf",
48
- "README.rst",
49
- "doc/README.rst",
50
- "doc/css/components/card.css",
51
- "doc/css/components/floating-object-effect.css",
52
- "doc/css/components/hero/hero-call-to-action.css",
53
- "doc/css/components/hero/hero-overlay.css",
54
- "doc/css/components/hero/hero-two-column-form.css",
55
- "doc/css/components/modal.css",
56
- "doc/css/components/morph-shape-effect.css",
57
- "doc/css/desktop/container.css",
58
- "doc/css/desktop/content.css",
59
- "doc/css/desktop/footer.css",
60
- "doc/css/desktop/index.css",
61
- "doc/css/desktop/navbar.css",
62
- "doc/css/desktop/sidebar.css",
63
- "doc/css/github-style.css",
64
- "doc/css/index.css",
65
- "doc/css/mobile/content.css",
66
- "doc/css/mobile/footer.css",
67
- "doc/css/mobile/index.css",
68
- "doc/css/mobile/navbar.css",
69
- "doc/css/mobile/sidebar.css",
70
- "doc/css/modern-base.css",
71
- "doc/css/modern-fonts.css",
72
- "doc/css/prism-okaidia.css",
73
- "doc/css/snippet.css",
74
- "doc/css/theme/basic/style.css",
75
- "doc/css/theme/cyan/style.css",
76
- "doc/css/theme/redlight/style.css",
77
- "doc/css/theme/xtra/style.css",
78
- "doc/img/ALPHA-RISE.png",
79
- "doc/img/QCOBJECTS-animated-logo.svg",
80
- "doc/img/QCObjects-CLI-AMP.gif",
81
- "doc/img/QCObjects-Components-Layout.gif",
82
- "doc/img/QCObjects-Docker-Playground.gif",
83
- "doc/img/QCObjects-Quick-Start.gif",
84
- "doc/img/QCObjects-running-on-Windows64bit.gif",
85
- "doc/img/Q_web.png",
86
- "doc/img/Q_web.svg",
87
- "doc/img/components.gif",
88
- "doc/img/home/bg_hr.png",
89
- "doc/img/home/blacktocat.png",
90
- "doc/img/home/icon_download.png",
91
- "doc/img/home/sprite_download.png",
92
- "doc/img/icons/icon-128x128.png",
93
- "doc/img/icons/icon-144x144.png",
94
- "doc/img/icons/icon-152x152.png",
95
- "doc/img/icons/icon-192x192.png",
96
- "doc/img/icons/icon-384x384.png",
97
- "doc/img/icons/icon-512x512.png",
98
- "doc/img/icons/icon-72x72.png",
99
- "doc/img/icons/icon-96x96.png",
100
- "doc/img/jeanmachuca.png",
101
- "doc/img/loading.svg",
102
- "doc/img/logo-qcobjects-white.svg",
103
- "doc/img/logo.png",
104
- "doc/img/placeholder.svg",
105
- "doc/img/pwa-qcobjects-demo.gif",
106
- "doc/img/qco2.png",
107
- "doc/img/screenshots/screenshot1.png",
108
- "doc/img/screenshots/screenshot1.webp",
109
- "doc/img/screenshots/screenshot2.png",
110
- "doc/img/screenshots/screenshot2.webp",
111
- "doc/index.rst",
112
- "doc/js/cl.quickcorp.components.js",
113
- "doc/js/cl.quickcorp.controller.js",
114
- "doc/js/cl.quickcorp.effects.js",
115
- "doc/js/cl.quickcorp.js",
116
- "doc/js/cl.quickcorp.model.js",
117
- "doc/js/cl.quickcorp.tools.js",
118
- "doc/js/cl.quickcorp.view.js",
119
- "doc/js/init.js",
120
- "doc/js/installer.js",
121
- "doc/js/prism-okaidia.js",
122
- "doc/templates/components/app-showcase.tpl.html",
123
- "doc/templates/components/shadowed-card.tpl.html",
124
- "doc/templates/components/academy.tpl.html",
125
- "doc/templates/components/article1.tpl.html",
126
- "doc/templates/components/article2.tpl.html",
127
- "doc/templates/components/article3.tpl.html",
128
- "doc/templates/components/article4.tpl.html",
129
- "doc/templates/components/blank.md",
130
- "doc/templates/components/blank.tpl.html",
131
- "doc/templates/components/card.tpl.html",
132
- "doc/templates/components/contentblock.tpl.html",
133
- "doc/templates/components/download-button.tpl.html",
134
- "doc/templates/components/download.tpl.html",
135
- "doc/templates/components/footer.tpl.html",
136
- "doc/templates/components/footer2.tpl.html",
137
- "doc/templates/components/grid.tpl.html",
138
- "doc/templates/components/header.tpl.html",
139
- "doc/templates/components/header-es.tpl.html",
140
- "doc/templates/components/hero/hero-call-to-action.tpl.html",
141
- "doc/templates/components/hero/hero-overlay.tpl.html",
142
- "doc/templates/components/hero/hero-two-column-form.tpl.html",
143
- "doc/templates/components/layout-basic.tpl.html",
144
- "doc/templates/components/loading.tpl.html",
145
- "doc/templates/components/loadingfooter.tpl.html",
146
- "doc/templates/components/login.tpl.html",
147
- "doc/templates/components/login2.tpl.html",
148
- "doc/templates/components/loginform.tpl.html",
149
- "doc/templates/components/nav.tpl.html",
150
- "doc/templates/components/pages/author.tpl.html",
151
- "doc/templates/components/pages/code_of_conduct.tpl.html",
152
- "doc/templates/components/pages/contributing.tpl.html",
153
- "doc/templates/components/pages/download.tpl.html",
154
- "doc/templates/components/pages/page1.tpl.html",
155
- "doc/templates/components/pages/page2.tpl.html",
156
- "doc/templates/components/pages/page3.tpl.html",
157
- "doc/templates/components/pages/pricing.tpl.html",
158
- "doc/templates/components/pwa.tpl.html",
159
- "doc/templates/components/section1.tpl.html",
160
- "doc/templates/components/section2.tpl.html",
161
- "doc/templates/components/shadowed-checkbox.tpl.html",
162
- "doc/templates/components/signin.tpl.html",
163
- "doc/templates/components/signup-form.tpl.html",
164
- "doc/templates/components/signup.tpl.html",
165
- "doc/templates/components/signupbuttons.tpl.html",
166
- "doc/templates/components/signupform.tpl.html",
167
- "doc/templates/components/signuppage.tpl.html",
168
- "doc/templates/components/signupsuccessful.tpl.html",
169
- "doc/templates/components/signupsuccessfulfooter.tpl.html",
170
- "doc/templates/components/snippet.tpl.html",
171
- "doc/templates/components/video_testimonials.tpl.html",
172
- "doc/templates/components/topmenu.tpl.html",
173
- "doc/test_service_response.html",
174
- "favicon.ico",
175
- "humans.txt",
176
- "index.html",
177
- "index.rst",
178
- "qcobjects_01.png",
179
- "robots.txt"])
180
- .then(() => self.skipWaiting());
181
- })
182
- );
183
- });
184
-
185
- self.addEventListener('activate', event => {
186
- event.waitUntil(self.clients.claim());
187
- });
188
-
189
- self.addEventListener('fetch', event => {
190
- event.respondWith(
191
- caches.open(cacheName)
192
- .then(cache => cache.match(event.request, {ignoreSearch: true}))
193
- .then(response => {
194
- return response || fetch(event.request);
195
- })
196
- );
197
- });