forked from openneno/neno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
162 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
<link rel="icon" type="image/png" sizes="128*128" href="/src/assets/neno.ico" /> | ||
<link rel="icon" type="image/png" sizes="512x512" href="/src/assets/neno.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="manifest" href="/public/manifest.json" /> | ||
|
||
<meta name="title" content="NENO"> | ||
<meta name="description" content="NENO"> | ||
|
@@ -14,7 +15,7 @@ | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet"> | ||
<link href="//cdn.quilljs.com/1.0.0/quill.snow.css" rel="stylesheet"> | ||
<!--Set browser chrome theme color here--> | ||
<meta name="theme-color" content="#f7fafc" /> | ||
<meta name="theme-color" content="#f3f4f6" /> | ||
<!--Load google fonts here--> | ||
<link href="https://fonts.googleapis.com/css?family=Oswald|Roboto&display=swap" rel="stylesheet" /> | ||
</head> | ||
|
@@ -70,5 +71,5 @@ | |
::-webkit-scrollbar-thumb:active { | ||
background: #13B66A !important; | ||
} | ||
</style> | ||
|
||
</style> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "NENO", | ||
"short_name": "NENO", | ||
"theme_color": "#f3f4f6", | ||
"background_color": "#f3f4f6", | ||
"display": "standalone", | ||
"Scope": "/", | ||
"start_url": "/index.html", | ||
"icons": [ | ||
{ | ||
|
||
"src": "/neno.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
} | ||
|
||
], | ||
"splash_pages": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
var cacheName = "sgtoilet-cache-" + Date.now(); | ||
var filesToCache = [ | ||
"/", | ||
"/index.html", | ||
"/main.css", | ||
"/main.js", | ||
"/components.css", | ||
"https://fonts.googleapis.com/css?family=Oswald|Roboto&display=swap" | ||
]; | ||
self.addEventListener("install", function (e) { | ||
e.waitUntil( | ||
caches.open(cacheName).then(function (cache) { | ||
return cache.addAll(filesToCache); | ||
}) | ||
); | ||
}); | ||
self.addEventListener("activate", e => { | ||
e.waitUntil( | ||
caches.keys().then(function (cacheNames) { | ||
return Promise.all( | ||
cacheNames.map(function (thisCacheName) { | ||
if (thisCacheName !== cacheName) { | ||
return caches.delete(thisCacheName); | ||
} | ||
}) | ||
); | ||
}) | ||
); | ||
}); | ||
self.addEventListener("fetch", e => { | ||
e.respondWith( | ||
(async function () { | ||
const response = await caches.match(e.request); | ||
return response || fetch(e.request); | ||
})() | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.