Skip to content

Commit a464b1d

Browse files
committed
deploy: 6d2639f
0 parents  commit a464b1d

8 files changed

+5276
-0
lines changed

.nojekyll

Whitespace-only changes.

docs.edn

+1
Large diffs are not rendered by default.

icon.svg

+99
Loading

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!DOCTYPE html><html lang="en"><head><title>portal</title><meta charset="UTF-8" /><meta content="width=device-width, initial-scale=1" name="viewport" /><link href="manifest.json" rel="manifest" /><meta content="#272c36" name="theme-color" /></head><body style="background:#2e3440;margin:0;min-height:100vh;overflow:hidden;"><div id="root"></div><script src="main.js"></script></body></html>

main.js

+5,158
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

manifest.edn

+1
Large diffs are not rendered by default.

manifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"description":"A clojure tool to navigate through your data.","display_override":["minimal-ui"],"start_url":"https://djblue.github.io/portal/","name":"portal","handle_links":"preferred","scope":"https://djblue.github.io/portal/","short_name":"Portal","icons":[{"type":"image/svg+xml","sizes":"512x512","src":"icon.svg"}],"display":"standalone"}

sw.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
self.addEventListener('fetch', function(event) {
2+
if ((event.request.url.indexOf('http') === 0)) {
3+
console.log('[Service Worker] Fetched resource ' + event.request.url)
4+
event.respondWith(
5+
caches.open('portal-cache').then(function (cache) {
6+
return fetch(event.request).then(function(response) {
7+
cache.put(event.request, response.clone())
8+
return response
9+
}).catch(function() {
10+
return caches.match(event.request)
11+
})
12+
})
13+
)
14+
}
15+
})

0 commit comments

Comments
 (0)