Skip to content

Commit

Permalink
deploy: db24c7e
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Nov 22, 2024
0 parents commit c9d6fc8
Show file tree
Hide file tree
Showing 8 changed files with 5,276 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>
5,158 changes: 5,158 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 c9d6fc8

Please sign in to comment.