Compare commits
No commits in common. "78fc63fe29b9646b5e6a06f89c57840f52991144" and "b6a8bd0461b0050317d834598d1520b596383dd4" have entirely different histories.
78fc63fe29
...
b6a8bd0461
|
@ -1,32 +1,35 @@
|
||||||
/* FONTS */
|
/* FONTS */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "firamono";
|
font-family: "firamono";
|
||||||
src: url("/font/firamono/firamono-regular.woff2") format("woff2"), url("/font/firamono/firamono-regular.woff") format("woff");
|
src: url("/font/firamono/firamono-regular.woff2") format("woff2"), url("/font/firamono/firamono-regular.woff") format("woff"),
|
||||||
|
url("/font/firamono/firamono-regular.ttf") format("truetype");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "firamono";
|
font-family: "firamono";
|
||||||
src: url("/font/firamono/firamono-500.woff2") format("woff2"), url("/font/firamono/firamono-500.woff") format("woff");
|
src: url("/font/firamono/firamono-500.woff2") format("woff2"), url("/font/firamono/firamono-500.woff") format("woff"), url("/font/firamono/firamono-500.ttf") format("truetype");
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "urwgothic";
|
font-family: "urwgothic";
|
||||||
src: url("/font/urwgothic/urwgothic.woff2") format("woff2"), url("/font/urwgothic/urwgothic.woff") format("woff");
|
src: url("/font/urwgothic/urwgothic.woff2") format("woff2"), url("/font/urwgothic/urwgothic.woff") format("woff"), url("/font/urwgothic/urwgothic.ttf") format("truetype");
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "urwgothic";
|
font-family: "urwgothic";
|
||||||
src: url("/font/urwgothic/urwgothicDemi.woff2") format("woff2"), url("/font/urwgothic/urwgothicDemi.woff") format("woff");
|
src: url("/font/urwgothic/urwgothicDemi.woff2") format("woff2"), url("/font/urwgothic/urwgothicDemi.woff") format("woff"),
|
||||||
|
url("/font/urwgothic/urwgothicDemi.ttf") format("truetype");
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "ubuntu";
|
font-family: "ubuntu";
|
||||||
src: url("/font/ubuntumono/ubuntumono-regular.woff2") format("woff2"), url("/font/ubuntumono/ubuntumono-regular.woff") format("woff");
|
src: url("/font/ubuntumono/ubuntumono-regular.woff2") format("woff2"), url("/font/ubuntumono/ubuntumono-regular.woff") format("woff"),
|
||||||
|
url("/font/ubuntumono/ubuntumono-regular.ttf") format("truetype");
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,18 +6,10 @@ const cacheName = `ob-${version}`;
|
||||||
|
|
||||||
const assets = [...build, ...files, "/service-worker.js"];
|
const assets = [...build, ...files, "/service-worker.js"];
|
||||||
|
|
||||||
const excludePatterns = [
|
|
||||||
"/static/images/screnshots/",
|
|
||||||
"/images/screenshots",
|
|
||||||
];
|
|
||||||
|
|
||||||
self.addEventListener("install", (event) => {
|
self.addEventListener("install", (event) => {
|
||||||
async function addToCache() {
|
async function addToCache() {
|
||||||
const cache = await caches.open(cacheName);
|
const cache = await caches.open(cacheName);
|
||||||
const assetsToCache = assets.filter(asset => {
|
await cache.addAll(assets);
|
||||||
return !excludePatterns.some(pattern => asset.startsWith(pattern));
|
|
||||||
});
|
|
||||||
await cache.addAll(assetsToCache);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
event.waitUntil(addToCache());
|
event.waitUntil(addToCache());
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
import adapter from "@sveltejs/adapter-static";
|
import adapter from "@sveltejs/adapter-static";
|
||||||
import { vitePreprocess } from "@sveltejs/kit/vite";
|
import { vitePreprocess } from "@sveltejs/kit/vite";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue