[fix] login PWA styling, [add] login local link, [add] home local link
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-10-30 19:23:38 -04:00
parent 5880d3beb6
commit aacf5a7195
11 changed files with 84 additions and 21 deletions

View File

@@ -35,7 +35,7 @@ const CACHE_UPDATE_ASYNC = "CACHE_UPDATE_ASYNC";
* Return cache if exists & update cache in background.
**/
const ROUTES = [
{ route: "/offline", type: CACHE_UPDATE_ASYNC },
{ route: "/local", type: CACHE_UPDATE_ASYNC },
{ route: "/reader", type: CACHE_UPDATE_ASYNC },
{ route: "/manifest.json", type: CACHE_UPDATE_ASYNC },
{ route: /^\/assets\//, type: CACHE_UPDATE_ASYNC },
@@ -50,7 +50,7 @@ const ROUTES = [
{
route: /.*/,
type: CACHE_NEVER,
fallback: (event) => caches.match("/offline"),
fallback: (event) => caches.match("/local"),
},
];
@@ -58,10 +58,10 @@ const ROUTES = [
* These are assets that are cached on initial service worker installation.
**/
const PRECACHE_ASSETS = [
// Offline & Reqder Assets
"/offline",
// Offline & Reader Assets
"/local",
"/reader",
"/assets/offline/index.js",
"/assets/local/index.js",
"/assets/reader/index.js",
"/assets/images/no-cover.jpg",
"/assets/reader/readerThemes.css",