代码拉取完成,页面将自动刷新
/**
* QCObjects SDK 1.0
* ________________
*
* Author: Jean Machuca <correojean@gmail.com>
*
* Cross Browser Javascript Framework for MVC Patterns
* QuickCorp/QCObjects is licensed under the
* GNU Lesser General Public License v3.0
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
*
* Permissions of this copyleft license are conditioned on making available
* complete source code of licensed works and modifications under the same
* license or the GNU GPLv3. Copyright and license notices must be preserved.
* Contributors provide an express grant of patent rights. However, a larger
* work using the licensed work through interfaces provided by the licensed
* work may be distributed under different terms and without source code for
* the larger work.
*
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
*
* Everyone is permitted to copy and distribute verbatim copies of this
* license document, but changing it is not allowed.
*/
"use strict";
const version = "2.2.601";
const appName = "qcobjects";
const cacheSufix = (Math.round(Date.now()/(1000*3600))).toString(); // 1 hour
const cacheName = `qcobjects-app-${appName}-${version}-${cacheSufix}`;
const start_url = "/?homescreen=1";
caches.delete(cacheName); // force to reload cache for the first time the sw is loaded
self.addEventListener('install', e => {
e.waitUntil(
caches.open(cacheName).then(cache => {
return cache.addAll([`${start_url}`,
"/",
"AUTHOR.md",
"CHANGELOG.md",
"CNAME",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"LICENSE.txt",
"QCObjects.js",
"README-es.md",
"README-es.pdf",
"README.md",
"README.pdf",
"README.rst",
"doc/README.rst",
"doc/css/components/card.css",
"doc/css/components/floating-object-effect.css",
"doc/css/components/hero/hero-call-to-action.css",
"doc/css/components/hero/hero-overlay.css",
"doc/css/components/hero/hero-two-column-form.css",
"doc/css/components/modal.css",
"doc/css/components/morph-shape-effect.css",
"doc/css/desktop/container.css",
"doc/css/desktop/content.css",
"doc/css/desktop/footer.css",
"doc/css/desktop/index.css",
"doc/css/desktop/navbar.css",
"doc/css/desktop/sidebar.css",
"doc/css/github-style.css",
"doc/css/index.css",
"doc/css/mobile/content.css",
"doc/css/mobile/footer.css",
"doc/css/mobile/index.css",
"doc/css/mobile/navbar.css",
"doc/css/mobile/sidebar.css",
"doc/css/modern-base.css",
"doc/css/modern-fonts.css",
"doc/css/prism-okaidia.css",
"doc/css/snippet.css",
"doc/css/theme/basic/style.css",
"doc/css/theme/cyan/style.css",
"doc/css/theme/redlight/style.css",
"doc/css/theme/xtra/style.css",
"doc/img/ALPHA-RISE.png",
"doc/img/QCOBJECTS-animated-logo.svg",
"doc/img/QCObjects-CLI-AMP.gif",
"doc/img/QCObjects-Components-Layout.gif",
"doc/img/QCObjects-Docker-Playground.gif",
"doc/img/QCObjects-Quick-Start.gif",
"doc/img/QCObjects-running-on-Windows64bit.gif",
"doc/img/Q_web.png",
"doc/img/Q_web.svg",
"doc/img/components.gif",
"doc/img/home/bg_hr.png",
"doc/img/home/blacktocat.png",
"doc/img/home/icon_download.png",
"doc/img/home/sprite_download.png",
"doc/img/icons/icon-128x128.png",
"doc/img/icons/icon-144x144.png",
"doc/img/icons/icon-152x152.png",
"doc/img/icons/icon-192x192.png",
"doc/img/icons/icon-384x384.png",
"doc/img/icons/icon-512x512.png",
"doc/img/icons/icon-72x72.png",
"doc/img/icons/icon-96x96.png",
"doc/img/jeanmachuca.png",
"doc/img/loading.svg",
"doc/img/logo-qcobjects-white.svg",
"doc/img/logo.png",
"doc/img/placeholder.svg",
"doc/img/pwa-qcobjects-demo.gif",
"doc/img/qco2.png",
"doc/img/screenshots/screenshot1.png",
"doc/img/screenshots/screenshot1.webp",
"doc/img/screenshots/screenshot2.png",
"doc/img/screenshots/screenshot2.webp",
"doc/index.rst",
"doc/js/cl.quickcorp.components.js",
"doc/js/cl.quickcorp.controller.js",
"doc/js/cl.quickcorp.effects.js",
"doc/js/cl.quickcorp.js",
"doc/js/cl.quickcorp.model.js",
"doc/js/cl.quickcorp.tools.js",
"doc/js/cl.quickcorp.view.js",
"doc/js/init.js",
"doc/js/installer.js",
"doc/js/prism-okaidia.js",
"doc/templates/components/app-showcase.tpl.html",
"doc/templates/components/shadowed-card.tpl.html",
"doc/templates/components/academy.tpl.html",
"doc/templates/components/article1.tpl.html",
"doc/templates/components/article2.tpl.html",
"doc/templates/components/article3.tpl.html",
"doc/templates/components/article4.tpl.html",
"doc/templates/components/blank.md",
"doc/templates/components/blank.tpl.html",
"doc/templates/components/card.tpl.html",
"doc/templates/components/contentblock.tpl.html",
"doc/templates/components/download-button.tpl.html",
"doc/templates/components/download.tpl.html",
"doc/templates/components/footer.tpl.html",
"doc/templates/components/footer2.tpl.html",
"doc/templates/components/grid.tpl.html",
"doc/templates/components/header.tpl.html",
"doc/templates/components/header-es.tpl.html",
"doc/templates/components/hero/hero-call-to-action.tpl.html",
"doc/templates/components/hero/hero-overlay.tpl.html",
"doc/templates/components/hero/hero-two-column-form.tpl.html",
"doc/templates/components/layout-basic.tpl.html",
"doc/templates/components/loading.tpl.html",
"doc/templates/components/loadingfooter.tpl.html",
"doc/templates/components/login.tpl.html",
"doc/templates/components/login2.tpl.html",
"doc/templates/components/loginform.tpl.html",
"doc/templates/components/nav.tpl.html",
"doc/templates/components/pages/author.tpl.html",
"doc/templates/components/pages/code_of_conduct.tpl.html",
"doc/templates/components/pages/contributing.tpl.html",
"doc/templates/components/pages/download.tpl.html",
"doc/templates/components/pages/page1.tpl.html",
"doc/templates/components/pages/page2.tpl.html",
"doc/templates/components/pages/page3.tpl.html",
"doc/templates/components/pages/pricing.tpl.html",
"doc/templates/components/pwa.tpl.html",
"doc/templates/components/section1.tpl.html",
"doc/templates/components/section2.tpl.html",
"doc/templates/components/shadowed-checkbox.tpl.html",
"doc/templates/components/signin.tpl.html",
"doc/templates/components/signup-form.tpl.html",
"doc/templates/components/signup.tpl.html",
"doc/templates/components/signupbuttons.tpl.html",
"doc/templates/components/signupform.tpl.html",
"doc/templates/components/signuppage.tpl.html",
"doc/templates/components/signupsuccessful.tpl.html",
"doc/templates/components/signupsuccessfulfooter.tpl.html",
"doc/templates/components/snippet.tpl.html",
"doc/templates/components/video_testimonials.tpl.html",
"doc/templates/components/topmenu.tpl.html",
"doc/test_service_response.html",
"favicon.ico",
"humans.txt",
"index.html",
"index.rst",
"qcobjects_01.png",
"robots.txt"])
.then(() => self.skipWaiting());
})
);
});
self.addEventListener('activate', event => {
event.waitUntil(self.clients.claim());
});
self.addEventListener('fetch', event => {
event.respondWith(
caches.open(cacheName)
.then(cache => cache.match(event.request, {ignoreSearch: true}))
.then(response => {
return response || fetch(event.request);
})
);
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。