forked from libccy/noname
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsw.js
82 lines (75 loc) · 18.4 KB
/
sw.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
const workboxVersion = "6.4.2";
importScripts(
`https://cdn.jsdelivr.net/npm/workbox-sw@${workboxVersion}/build/workbox-sw.min.js`
);
workbox.core.setCacheNameDetails({
prefix: "noname",
});
workbox.core.skipWaiting();
workbox.core.clientsClaim();
workbox.precaching.precacheAndRoute([{"revision":"a12f83c653cc465ed631f0bac5c10fbc","url":"./assets/exit-android.html"},{"revision":"1072dc7a3569ef2e5a840b94cfc673da","url":"./assets/exit-ios.html"},{"revision":"47e1487ee6844dae5bbd2253a2d20d05","url":"./card/extra.js"},{"revision":"f223fa4df626df030f917943d85475fa","url":"./card/gujian.js"},{"revision":"9d134ef14b7777955641064d910d0eba","url":"./card/guozhan.js"},{"revision":"09936b62ef34efaeac0a56f1cff62afb","url":"./card/gwent.js"},{"revision":"3590a3500f14dd904bbddb03a5124302","url":"./card/hearth.js"},{"revision":"5c2103bd9429a97985fb46d082ef8b5f","url":"./card/huanlekapai.js"},{"revision":"bea907a64795717b287605407ceab3da","url":"./card/mtg.js"},{"revision":"fde5605c2df39b2f14e2b4b91c234407","url":"./card/sp.js"},{"revision":"9fb5f8d9d836a63d4e0d81b7ed594460","url":"./card/standard.js"},{"revision":"5850476d74789daf861bdac5b017312a","url":"./card/swd.js"},{"revision":"5d7d497a33d9c90addf632be2e4a1a90","url":"./card/yingbian.js"},{"revision":"bfbd4882ae5793b1962ababaab2706d0","url":"./card/yongjian.js"},{"revision":"02a5f8f1a8859df16cff4ce5635fc083","url":"./card/yunchou.js"},{"revision":"0da89028a46b012eee9482616c027f05","url":"./card/zhenfa.js"},{"revision":"e806931c8dbddc6d568115cc0e5528fc","url":"./card/zhulu.js"},{"revision":"115477a3072df6b85b4114408d9225ec","url":"./character/clan.js"},{"revision":"c498e4cc864c4f4e2716d741be926fee","url":"./character/collab.js"},{"revision":"98fa52576678d36d8c6c93654e81957c","url":"./character/ddd.js"},{"revision":"a1a23efd5bb3b05d8dfc950378a2878f","url":"./character/diy.js"},{"revision":"e0587ab15f30a0bb0b77ef37cceb7c0a","url":"./character/extra.js"},{"revision":"8d18cba156421b7de359f957557c53e0","url":"./character/gujian.js"},{"revision":"0dc74fc270c107e8a7e3a51184154331","url":"./character/gwent.js"},{"revision":"c4d153f101e1353ebceb423c4d5d3432","url":"./character/hearth.js"},{"revision":"4df958fe1eb2320c39c4ddac6ade8f17","url":"./character/huicui.js"},{"revision":"86297ca1df72d831f73526d1c0d3c57e","url":"./character/jiange.js"},{"revision":"5b7a6f0607c64447be9503afcb2c7515","url":"./character/jsrg.js"},{"revision":"611d88eb529ac329d0a31a62e709a46c","url":"./character/mobile.js"},{"revision":"ccc29bd93e54dd8b830bcb957e03dde4","url":"./character/mtg.js"},{"revision":"b4a8e0f51613cabed89d456c04bc0853","url":"./character/offline.js"},{"revision":"47240f0c5718fc8b13dbbebab14b9554","url":"./character/old.js"},{"revision":"ea93b0aaf3fcd606d835d859e574761c","url":"./character/onlyOL.js"},{"revision":"806e337dc9c0aeb26235cf3df7d70656","url":"./character/ow.js"},{"revision":"5ea8e913cb0f029a3c93968a2e1a0698","url":"./character/rank.js"},{"revision":"56d257830fbb180511ab6818987fd19a","url":"./character/refresh.js"},{"revision":"4147018362cbfe92bce4af10f27febfc","url":"./character/sb.js"},{"revision":"e50a5eec5b134871f4390e1644cc21aa","url":"./character/shenhua.js"},{"revision":"6a249e9215dfb79c4dbf70335e81302e","url":"./character/shiji.js"},{"revision":"5970b4b8bde9aec3d50bdd6060b2cd13","url":"./character/sp.js"},{"revision":"87cfacc387cc8aa5788e61adea2ff075","url":"./character/sp2.js"},{"revision":"7dc48b81388a136814a84a9f1d983047","url":"./character/standard.js"},{"revision":"4cbacec6eea818f2e901579e112b7e2b","url":"./character/swd.js"},{"revision":"b3cf7aa15025f68184c47ab3b0bd26bf","url":"./character/tw.js"},{"revision":"646cebf16709cfc9367cae9c55757cf5","url":"./character/xiake.js"},{"revision":"0f7492906b7719310a79bc79ff317e2d","url":"./character/xianding.js"},{"revision":"59362f583060e48a5d3b15bd6fd776d8","url":"./character/xianjian.js"},{"revision":"b6ee89e512693d9fc72448c84a450889","url":"./character/xinghuoliaoyuan.js"},{"revision":"9495aa3ab3e43d4922243c24e2362360","url":"./character/yijiang.js"},{"revision":"936bd08b9e0681a199ede31195d369ad","url":"./character/yingbian.js"},{"revision":"a454969f01e3d2e62d55e5523bdd98fb","url":"./character/yxs.js"},{"revision":"0646777e3fd91453d6b66f1ac22fcf14","url":"./character/zhuogui.js"},{"revision":"d6d5451db33accaed626df5787bc9329","url":"./extension/boss/extension.js"},{"revision":"5b5ebdd367aa2150b64253e77bfaa2d9","url":"./extension/cardpile/extension.js"},{"revision":"e2285f07d67fed05628f901be1d92729","url":"./extension/coin/extension.js"},{"revision":"8d9feea071a3822088f3989e52b045fb","url":"./extension/wuxing/extension.js"},{"revision":"499971229df9fad6c58330ba33216ff4","url":"./game/asset.js"},{"revision":"56c5acd6753f6e351204914a7013a422","url":"./game/codemirror.js"},{"revision":"c5d49a5940c84298eba964d1a202c935","url":"./game/compiler-sfc.esm-browser.js"},{"revision":"7114b16808b88ef61078c4c91bb38094","url":"./game/config.js"},{"revision":"12f226433c14377782603bbda3b264a6","url":"./game/core-js-bundle.js"},{"revision":"71d24f42b880f48dbf71afe7ad43f3e4","url":"./game/directory.js"},{"revision":"ef6cddade94a6c35801f320946b7093d","url":"./game/entry.js"},{"revision":"3e2c8209ded623e42472f4230daf86cb","url":"./game/game.js"},{"revision":"c593aed4f521f2ac21aab2563e9c9114","url":"./game/http.js"},{"revision":"465f1ae522cccacc3b0c5b5df96ebd84","url":"./game/jszip.js"},{"revision":"089ab942897cb24ccea0071c3c705bb8","url":"./game/keyWords.js"},{"revision":"1d84b7ccde2bf883bc8640ae1801fb4e","url":"./game/NoSleep.js"},{"revision":"4e236b396c8fa73bd657b71b68bef123","url":"./game/package.js"},{"revision":"cf49b181f4ea11e03416a38df5b0ebf9","url":"./game/phantom.js"},{"revision":"981439ca89374d39f6582b49e422e7ee","url":"./game/pinyinjs.js"},{"revision":"6fbe8da8877b7d1465925bdbac71de11","url":"./game/pressure.js"},{"revision":"91e0d1ae6fc3f60d57bd998f3ecd90dd","url":"./game/server.js"},{"revision":"8ebe7288151c400b1fa09f14c141361e","url":"./game/source.js"},{"revision":"566bb22a9af79d31d2a9927e956568e5","url":"./game/update.js"},{"revision":"7f72be2d7b78e23b272d9bc9ecf7b426","url":"./game/vue.esm-browser.js"},{"revision":"f4059fe7ccf52e1148041b1ad02a1041","url":"./index.html"},{"revision":"0ef9c7b8390c1d0cdad841f51ec356be","url":"./layout/default/codemirror.css"},{"revision":"fde4af93b8d71a6fb2783469111a1642","url":"./layout/default/layout.css"},{"revision":"61c741406224bde3f25011de1a9d4c60","url":"./layout/default/menu.css"},{"revision":"2b1be4c3e911226f5ee2e5cd314950d4","url":"./layout/default/phone.css"},{"revision":"10b94d5f92cb8cdcedc83027b9b4ba02","url":"./layout/long/layout.css"},{"revision":"f0adce177cbc1a42d831d96735684b2f","url":"./layout/long2/layout.css"},{"revision":"c5f4a56697a77c6d3edc3d8f35078eab","url":"./layout/mobile/equip.css"},{"revision":"43025d998809d6ae16dcc76d284b2158","url":"./layout/mobile/layout.css"},{"revision":"f934b33a941a0087d86f8a11737adac9","url":"./layout/mode/boss.css"},{"revision":"c1fb1dc73f9124810d2121f19596a3e7","url":"./layout/mode/chess.css"},{"revision":"654ce0599e1d0629fc4bef468e782da1","url":"./layout/mode/stone.css"},{"revision":"a79f6b3f1cb0dfca7f6cdb17a34a4c00","url":"./layout/mode/story.css"},{"revision":"f0c0a2a1454536a3e19364478dd9d881","url":"./layout/mode/tafang.css"},{"revision":"ff64ed1b3d0d5634d7fadec29289ebf7","url":"./layout/newlayout/equip.css"},{"revision":"8617f87b08681d36055de4887354973e","url":"./layout/newlayout/global.css"},{"revision":"1e1fb5031eb60e1a0a83bd33d29db3bf","url":"./layout/newlayout/layout.css"},{"revision":"8af38e667016df6dca1e64157ff9f972","url":"./layout/nova/layout.css"},{"revision":"197dcd1fa2620390fbc5466e21517f5c","url":"./manifest.json"},{"revision":"5cfe9338919df0d3bf0ebf3c40dee606","url":"./mode/boss.js"},{"revision":"c3713af7b5d9c82d71e96437a28a5287","url":"./mode/brawl.js"},{"revision":"07bafba3f6534bfeaa36e4ee76ddf375","url":"./mode/chess.js"},{"revision":"e20fc27fe07479b3906725bcf940988c","url":"./mode/connect.js"},{"revision":"6085bfadd2b9969bda7bf878c079ff90","url":"./mode/doudizhu.js"},{"revision":"e1e51a06359fe598dc87ee8c7803cbc3","url":"./mode/guozhan.js"},{"revision":"77853117f828450e29512949c360ee30","url":"./mode/identity.js"},{"revision":"e647da41c0d835ee21ab29fd4a67712e","url":"./mode/realtime.js"},{"revision":"7c34bf5e0078bfaee96d5bf54f816b39","url":"./mode/single.js"},{"revision":"1f89db8c6c411ddb22ccc2ae873e68e4","url":"./mode/stone.js"},{"revision":"5bb0b60bc9b1f1b1d977cea9e90236a3","url":"./mode/tafang.js"},{"revision":"62b524d994acaeb4d9702a87580f0a18","url":"./mode/versus.js"},{"revision":"9c1cdab42c995589d1dadfd3cf0142c5","url":"./noname.js"},{"revision":"0636ee70a3885a7986400c127978d222","url":"./noname/ai/basic.js"},{"revision":"16c121dba1ccd340cce3ccf293cb3ca7","url":"./noname/ai/index.js"},{"revision":"9cf93e1f11d607f182c55e5b1f10d6ec","url":"./noname/game/check.js"},{"revision":"dfdc54ead8e02f4165ae6075dec0d6aa","url":"./noname/game/dynamic-style/index.js"},{"revision":"bcb61fe3c206ea480fca1be4743f1266","url":"./noname/game/index.js"},{"revision":"5b538733a525764f5ce696ac75efa6d1","url":"./noname/game/promises.js"},{"revision":"2876ca6faed028613ed1f1289a8b53b5","url":"./noname/get/index.js"},{"revision":"24a02909e1c07573650e12fb4dff2288","url":"./noname/get/is.js"},{"revision":"820c7cc539115065a13334938c1530e6","url":"./noname/get/promises.js"},{"revision":"a13c7e3cc5a3cfdbc1ee20d2e8fa3933","url":"./noname/gnc/index.js"},{"revision":"b21820450427ee2cd8782374c75287d2","url":"./noname/gnc/is.js"},{"revision":"b3a53613c929c3e5bc6f7ceb5b8df4e8","url":"./noname/init/cordova.js"},{"revision":"367903b04e7348df10f219f7f7925fe9","url":"./noname/init/import.js"},{"revision":"cca5df8334462c4007cf24fbc99e923b","url":"./noname/init/index.js"},{"revision":"a50a6272774bf808826b099b927bf38a","url":"./noname/init/node.js"},{"revision":"d32a7f3152b10d9d90f4381646e0c1dd","url":"./noname/init/onload.js"},{"revision":"0c2d6b2492abe50a84f55ddd9e5bc00c","url":"./noname/init/polyfill.js"},{"revision":"f372d25d419277d4cce5b1388b069d2f","url":"./noname/library/announce/index.js"},{"revision":"d2c01ef0a73fb088e05d489096bf84c1","url":"./noname/library/assembly/buildin.js"},{"revision":"2ea1e9866120b49d6f7979f0a797be69","url":"./noname/library/assembly/index.js"},{"revision":"716aedcd24264f07ef7bc6d9812cddf5","url":"./noname/library/cache/cacheContext.js"},{"revision":"34e2143b02f222ca1edd25f685c9932a","url":"./noname/library/cache/childNodesWatcher.js"},{"revision":"821022c3075bccfe7eb133f72f09f7af","url":"./noname/library/channel/index.js"},{"revision":"a8541b0f8ab2b91c950510e4ac6b5a7c","url":"./noname/library/crypt/md5.js"},{"revision":"99519ac781f5af857e38be76647e87b0","url":"./noname/library/element/button.js"},{"revision":"c34ae62ec4a57602303547e8ebefec3b","url":"./noname/library/element/card.js"},{"revision":"72562a4e5d2af77381978f4955beb69c","url":"./noname/library/element/client.js"},{"revision":"4745bd00370795678889a5e2033bd9d7","url":"./noname/library/element/content.js"},{"revision":"c9e34879927c6770bfb4faeccb969754","url":"./noname/library/element/contents.js"},{"revision":"fb5caea6d58c8ba3ed604c64be2d408c","url":"./noname/library/element/control.js"},{"revision":"b148c12f8dea7766f74946232c4b296e","url":"./noname/library/element/dialog.js"},{"revision":"b159cd5ad7bb6d6f10ab3b6f16a66559","url":"./noname/library/element/gameEvent.js"},{"revision":"9f73c94fa9dea5dcf4b52c2d51bfc32a","url":"./noname/library/element/gameEventPromise.js"},{"revision":"a1852be789a81f8959813a8f33c31a95","url":"./noname/library/element/index.js"},{"revision":"c21d6ba0204b54832cc533f71c72ddcf","url":"./noname/library/element/nodeWS.js"},{"revision":"2a198bfacf39346bfa281d58da80d584","url":"./noname/library/element/player.js"},{"revision":"e4f2517b91100ee73e270610e7dd7208","url":"./noname/library/element/vcard.js"},{"revision":"129c7536e3f1c6d9fa1d84c54ee873f9","url":"./noname/library/experimental/index.js"},{"revision":"2e2439b52d81c304505edfca4d853c01","url":"./noname/library/experimental/symbol.js"},{"revision":"0172878e72e669582f6d0a4fc3112466","url":"./noname/library/hooks/buildin.js"},{"revision":"64255108b284e2de9aa37bc39a7abbdb","url":"./noname/library/hooks/hook.js"},{"revision":"f3920636c47c6bcf522d693126b27f70","url":"./noname/library/hooks/index.js"},{"revision":"af55d36a69df7b9acb284334b9388d2c","url":"./noname/library/index.js"},{"revision":"c33e04c036fe162efc21f25b575108e4","url":"./noname/library/init/index.js"},{"revision":"225f428b40719ccf07c6577db420e715","url":"./noname/library/init/promises.js"},{"revision":"e6c798ed28b7b10f3594cc502f288b28","url":"./noname/library/path.js"},{"revision":"440074776d970fa08a90a3d1e59a8a70","url":"./noname/library/update-urls.js"},{"revision":"8dd444bb1f9029e5b51781b3b5f3e098","url":"./noname/library/update.js"},{"revision":"84c76345517d9846b93f074544cb1dc6","url":"./noname/status/index.js"},{"revision":"aa56d0a918f653b846bad41d03160ef5","url":"./noname/ui/click/index.js"},{"revision":"dd280511266dc3c8ab4076dfe77396ea","url":"./noname/ui/create/index.js"},{"revision":"9c6245846d56c46393ae99fad2a16daf","url":"./noname/ui/create/menu/index.js"},{"revision":"03cdbfa0dd8c181acf22516852488bcd","url":"./noname/ui/create/menu/pages/cardPackMenu.js"},{"revision":"6cfdf06a71cb4a23aa42f7f658b1610b","url":"./noname/ui/create/menu/pages/characterPackMenu.js"},{"revision":"ac27f7110960da37d46fa8f60004ba99","url":"./noname/ui/create/menu/pages/exetensionMenu.js"},{"revision":"4d42218b4fdd04a21272f0a70695f6cf","url":"./noname/ui/create/menu/pages/optionsMenu.js"},{"revision":"b51fe158f623c0903f01d4a381897ac2","url":"./noname/ui/create/menu/pages/otherMenu.js"},{"revision":"45625e7b4f659664c026d4d36cb82c2b","url":"./noname/ui/create/menu/pages/startMenu.js"},{"revision":"ba6026220ed69bef5c2ef0b77035e0fe","url":"./noname/ui/index.js"},{"revision":"661b6d28b19aaa1842fd3e32740379b6","url":"./noname/util/browser.js"},{"revision":"69246b89091febbe0a368d8ff943f692","url":"./noname/util/config.js"},{"revision":"08ce6aa61e1430b211b79cace10770f1","url":"./noname/util/index.js"},{"revision":"9a63d01a37c4d2135213129e49b16577","url":"./noname/util/mutex.js"},{"revision":"d023354c3b6c3eb4667be35821d92eb3","url":"./noname/util/struct/index.js"},{"revision":"374bfee7ee30a8ec4dc8abb7591310ca","url":"./noname/util/struct/promise-error-handler/chrome.js"},{"revision":"f936a41db09ba212084bb5b08faf9f8a","url":"./noname/util/struct/promise-error-handler/firefox.js"},{"revision":"23d9fda0e12c2fedf4d4d765f5133f28","url":"./noname/util/struct/promise-error-handler/index.js"},{"revision":"459a70c79343254129bd613496ffbc66","url":"./noname/util/struct/promise-error-handler/unknown.js"},{"revision":"edb3f9f49b11face8130a85e4c70ab5c","url":"./pwa.js"},{"revision":"3dc942cd7a44b5c406b6c1bc3a99b1f5","url":"./service-worker.js"},{"revision":"3c31616c5fe2c9e2ab97c0bce1f169ed","url":"./theme/music/style.css"},{"revision":"193fcbf200c4065098eab931eba36481","url":"./theme/simple/style.css"},{"revision":"179a333dbe04115aff9d6e013b330ff5","url":"./theme/style/card/custom.css"},{"revision":"4f1c7defcad3a3ff38baa39cbf1c2b89","url":"./theme/style/card/default.css"},{"revision":"f2d36c58a16be3d4c7e7805bf5fca3be","url":"./theme/style/card/music.css"},{"revision":"0ce42900ebb83744d493c6c689f82d84","url":"./theme/style/card/new.css"},{"revision":"a1dc825e8ae23ed60661982ccc900cbf","url":"./theme/style/card/ol.css"},{"revision":"03964373bcfb16dc21299f118d564890","url":"./theme/style/card/simple.css"},{"revision":"2274d995e18ef8bb8d64a73ebbde0548","url":"./theme/style/card/wood.css"},{"revision":"f7d36a4cb18645605569468bbd08d0ec","url":"./theme/style/cardback/custom.css"},{"revision":"4f1c7defcad3a3ff38baa39cbf1c2b89","url":"./theme/style/cardback/default.css"},{"revision":"19cba658137e39f3694a8a154a9d2757","url":"./theme/style/cardback/feicheng.css"},{"revision":"a4092f931e705d1580906ce03d555d61","url":"./theme/style/cardback/liusha.css"},{"revision":"5f783aff87fab616d84e0d99ec98af9d","url":"./theme/style/cardback/music.css"},{"revision":"854086b7b3c8697fb7fc19bd7e660570","url":"./theme/style/cardback/new.css"},{"revision":"2c7ed4bb72714ee4fe059fa4e0c4088a","url":"./theme/style/cardback/official.css"},{"revision":"ff29c641d425561a08969225d37257d6","url":"./theme/style/cardback/ol.css"},{"revision":"ea9c819fe215447ed999139713bb806a","url":"./theme/style/cardback/wood.css"},{"revision":"346a885b4b95ca605abcd55f14254939","url":"./theme/style/hp/custom.css"},{"revision":"4f1c7defcad3a3ff38baa39cbf1c2b89","url":"./theme/style/hp/default.css"},{"revision":"81a6198bf8dd5266e46295a681b65ac9","url":"./theme/style/hp/emotion.css"},{"revision":"2cf306671ced8834740d5fa42ac8ed21","url":"./theme/style/hp/glass.css"},{"revision":"28486d182b98d306ff4e30808ae6655c","url":"./theme/style/hp/official.css"},{"revision":"5233013f109b684ea1f70a3d6e1b469d","url":"./theme/style/hp/ol.css"},{"revision":"4309cd0d202566104128542f73327c52","url":"./theme/style/hp/round.css"},{"revision":"cc9e52351d835619bc7740833a668f07","url":"./theme/style/hp/xinglass.css"},{"revision":"5d52c0fc94d7dba8fb4c577fb0b4ae64","url":"./theme/style/hp/xinround.css"},{"revision":"58a0d19cced954bcba577efe1ec19f3c","url":"./theme/woodden/style.css"},{"revision":"e2c73e648185591e2ed0b1ab5b692fd4","url":"./tsconfig.json"}]);
workbox.precaching.cleanupOutdatedCaches();
// Images
workbox.routing.registerRoute(
/\.(?:png|jpg|jpeg|gif|bmp|webp|svg|ico)$/,
new workbox.strategies.CacheFirst({
cacheName: "image",
plugins: [
new workbox.expiration.ExpirationPlugin({
maxEntries: 10000,
maxAgeSeconds: 60 * 60 * 24 * 180,
}),
new workbox.cacheableResponse.CacheableResponsePlugin({
statuses: [0, 200],
}),
],
})
);
// Audios
workbox.routing.registerRoute(
/\.(?:mp3|m4a|ogg|wav|aac)$/,
new workbox.strategies.CacheFirst({
cacheName: "audio",
plugins: [
new workbox.expiration.ExpirationPlugin({
maxEntries: 10000,
maxAgeSeconds: 60 * 60 * 24 * 180,
}),
new workbox.cacheableResponse.CacheableResponsePlugin({
statuses: [0, 200],
}),
],
})
);
// Fonts
workbox.routing.registerRoute(
/\.(?:eot|ttf|woff|woff2)$/,
new workbox.strategies.CacheFirst({
cacheName: "fonts",
plugins: [
new workbox.expiration.ExpirationPlugin({
maxEntries: 100,
maxAgeSeconds: 60 * 60 * 24 * 360,
}),
new workbox.cacheableResponse.CacheableResponsePlugin({
statuses: [0, 200],
}),
],
})
);
// Static Libraries
workbox.routing.registerRoute(
/^https:\/\/cdn\.jsdelivr\.net/,
new workbox.strategies.CacheFirst({
cacheName: "static-libs",
plugins: [
new workbox.expiration.ExpirationPlugin({
maxEntries: 100,
maxAgeSeconds: 60 * 60 * 24 * 15,
}),
new workbox.cacheableResponse.CacheableResponsePlugin({
statuses: [0, 200],
}),
],
})
);