Replace blurry branding art and install new favicon set

This commit is contained in:
2026-09-25 18:21:45 +01:00
parent d18650e468
commit 40f27d83e9
13 changed files with 52 additions and 5 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 92 KiB

+7 -2
View File
@@ -6,8 +6,13 @@
<meta name="color-scheme" content="light dark">
<meta id="themeColor" name="theme-color" content="#f6f3ec">
<title>kovi — Your reading, beautifully understood</title>
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="apple-touch-icon" href="/favicon.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<meta name="apple-mobile-web-app-title" content="kovi">
<meta name="application-name" content="kovi">
<link rel="manifest" href="/site.webmanifest">
<link rel="stylesheet" href="/styles.css">
</head>
<body>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

+23
View File
@@ -0,0 +1,23 @@
{
"name": "kovi",
"short_name": "kovi",
"description": "Your reading, beautifully understood.",
"start_url": "/",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
],
"theme_color": "#f6f3ec",
"background_color": "#f6f3ec",
"display": "standalone"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

+1 -1
View File
@@ -307,7 +307,7 @@ async function handleApi(req,res,url) {
return false;
}
const MIME={'.html':'text/html; charset=utf-8','.css':'text/css; charset=utf-8','.js':'text/javascript; charset=utf-8','.svg':'image/svg+xml','.png':'image/png','.jpg':'image/jpeg','.jpeg':'image/jpeg','.webp':'image/webp','.gif':'image/gif','.ico':'image/x-icon','.zip':'application/zip'};
const MIME={'.html':'text/html; charset=utf-8','.css':'text/css; charset=utf-8','.js':'text/javascript; charset=utf-8','.svg':'image/svg+xml','.png':'image/png','.jpg':'image/jpeg','.jpeg':'image/jpeg','.webp':'image/webp','.gif':'image/gif','.ico':'image/x-icon','.webmanifest':'application/manifest+json','.zip':'application/zip'};
async function serveFile(res,filePath,{cache=false}={}) {
try {
const st=await fsp.stat(filePath); if(!st.isFile()) return false;
+20 -2
View File
@@ -5,6 +5,7 @@ import fs from 'node:fs';
const source=fs.readFileSync(new URL('../public/app.js', import.meta.url),'utf8');
const html=fs.readFileSync(new URL('../public/index.html', import.meta.url),'utf8');
const css=fs.readFileSync(new URL('../public/styles.css', import.meta.url),'utf8');
const server=fs.readFileSync(new URL('../server.mjs', import.meta.url),'utf8');
test('manual SQLite upload attaches the browser CSRF token',()=>{
assert.match(source,/setRequestHeader\('X-Kovi-CSRF',csrf\)/);
@@ -159,6 +160,23 @@ test('sidebar and empty state use the kovi logo assets instead of split legacy b
assert.match(html,/id="themeColor"/);assert.match(source,/themeColor/);
});
test('the favicon uses the kovi mascot instead of the old svg mark',()=>{
assert.match(html,/rel="icon" href="\/favicon\.png"/);assert.doesNotMatch(html,/logo\.svg/);
test('the favicon set uses the kovi mascot assets instead of the old svg mark',()=>{
assert.match(html,/rel="icon" type="image\/png" sizes="96x96" href="\/favicon-96x96\.png"/);
assert.match(html,/rel="icon" type="image\/svg\+xml" href="\/favicon\.svg"/);
assert.match(html,/rel="shortcut icon" href="\/favicon\.ico"/);
assert.match(html,/rel="apple-touch-icon" sizes="180x180" href="\/apple-touch-icon\.png"/);
assert.match(html,/rel="manifest" href="\/site\.webmanifest"/);
assert.doesNotMatch(html,/favicon\.png/);assert.doesNotMatch(html,/logo\.svg/);
});
test('the web app manifest brands kovi and points at the installed icons',()=>{
const manifest=JSON.parse(fs.readFileSync(new URL('../public/site.webmanifest', import.meta.url),'utf8'));
assert.equal(manifest.name,'kovi');assert.equal(manifest.short_name,'kovi');
assert.deepEqual(manifest.icons.map(icon=>icon.src),['/web-app-manifest-192x192.png','/web-app-manifest-512x512.png']);
for(const icon of manifest.icons){assert.equal(icon.type,'image/png');assert.match(icon.sizes,/^\d+x\d+$/);}
assert.match(manifest.theme_color,/^#[0-9a-f]{6}$/i);
});
test('the static server serves the web app manifest with its manifest MIME type',()=>{
assert.match(server,/\.webmanifest':'application\/manifest\+json'/);
});