This repository was archived by the owner on Dec 12, 2021. It is now read-only.
generated from shgysk8zer0/jekyll-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsw-config.js
More file actions
71 lines (64 loc) · 2.46 KB
/
sw-config.js
File metadata and controls
71 lines (64 loc) · 2.46 KB
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
---
layout: null
---
'use strict';
/* eslint-env serviceworker */
/* eslint no-unused-vars: 0 */
const config = {
version: '{{ site.data.app.version | default: site.version }}',
fresh: [
/* Root document */
'{{ site.pages | where: "pinned", true | map: "url" | join: "', '" }}',
'{{ site.posts | where: "pinned", true | map: "url" | join: "', '" }}',
].map(path => new URL(path, location.origin).href),
stale: [
/* Other HTML */
'/css/index.min.css',
'/js/index.min.js',
'/img/icons.svg',
/* JS */
'https://cdn.kernvalley.us/components/share-target.js',
/* `customElements`templates */
'https://cdn.kernvalley.us/components/toast-message.html',
'https://cdn.kernvalley.us/components/leaflet/map.html',
'https://cdn.kernvalley.us/components/share-to-button/share-to-button.html',
'https://cdn.kernvalley.us/components/slide-show/slide-show.html',
'https://cdn.kernvalley.us/components/github/user.html',
'https://cdn.kernvalley.us/components/pwa/prompt.html',
/* CSS */
'https://cdn.kernvalley.us/components/toast-message.css',
'https://cdn.kernvalley.us/components/leaflet/map.css',
'https://cdn.kernvalley.us/components/share-to-button/share-to-button.css',
'https://cdn.kernvalley.us/components/slide-show/slide-show.css',
'https://cdn.kernvalley.us/components/github/user.css',
'https://cdn.kernvalley.us/components/pwa/prompt.css',
'https://unpkg.com/leaflet@1.7.1/dist/leaflet.css',
/* Images & Icons */
'/img/apple-touch-icon.png',
'/img/icon-512.png',
'/img/icon-192.png',
'/img/icon-32.png',
'/img/favicon.svg',
/* Social Icons for Web Share API shim */
'https://cdn.kernvalley.us/img/octicons/mail.svg',
'https://cdn.kernvalley.us/img/logos/facebook.svg',
'https://cdn.kernvalley.us/img/logos/twitter.svg',
'https://cdn.kernvalley.us/img/logos/linkedin.svg',
'https://cdn.kernvalley.us/img/logos/reddit.svg',
'https://cdn.kernvalley.us/img/logos/gmail.svg',
'https://cdn.kernvalley.us/img/logos/instagram.svg',
/* Fonts */
'https://cdn.kernvalley.us/fonts/roboto.woff2',
'https://cdn.kernvalley.us/fonts/Libertine.woff',
'https://cdn.kernvalley.us/fonts/ubuntu.woff2',
/* Other */
].map(path => new URL(path, location.origin).href),
allowed: [
/https:\/\/maps\.wikimedia\.org\/osm-intl\/*/,
/https:\/\/i\.imgur\.com\/*/,
/https:\/\/secure\.gravatar\.com\/avatar\/*/,
/https:\/\/*\.githubusercontent\.com\/u\/*/,
/https:\/\/api\.github\.com\/users\/*/,
/https:\/\/baconipsum\.com\/api\/*/,
],
};