Skip to content

Commit

Permalink
deploy: 5cfd6f2
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Aug 28, 2024
0 parents commit 07272e1
Show file tree
Hide file tree
Showing 8 changed files with 6,745 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
1 change: 1 addition & 0 deletions docs.edn

Large diffs are not rendered by default.

99 changes: 99 additions & 0 deletions icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +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>
6,627 changes: 6,627 additions & 0 deletions main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions manifest.edn

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +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"}
15 changes: 15 additions & 0 deletions sw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
self.addEventListener('fetch', function(event) {
if ((event.request.url.indexOf('http') === 0)) {
console.log('[Service Worker] Fetched resource ' + event.request.url)
event.respondWith(
caches.open('portal-cache').then(function (cache) {
return fetch(event.request).then(function(response) {
cache.put(event.request, response.clone())
return response
}).catch(function() {
return caches.match(event.request)
})
})
)
}
})

0 comments on commit 07272e1

Please sign in to comment.