mirror of
https://github.com/diced/zipline.git
synced 2025-12-05 20:40:12 -08:00
fix: favicon + weird title errors
This commit is contained in:
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 279 KiB |
@@ -39,12 +39,10 @@ export default function App({
|
|||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>
|
<title>
|
||||||
{pageProps?.config?.website?.title ?? 'Zipline'}
|
{`${pageProps?.config?.website?.title ?? 'Zipline'}${Component.title ? `– ${Component.title}` : ''}`}
|
||||||
{Component.title ? ` – ${Component.title}` : ''}
|
|
||||||
</title>
|
</title>
|
||||||
<meta name='viewport' content='minimum-scale=1, initial-scale=1, width=device-width' />
|
<meta name='viewport' content='minimum-scale=1, initial-scale=1, width=device-width' />
|
||||||
<link rel='manifest' href='/manifest.json' />
|
<link rel='manifest' href='/manifest.json' />
|
||||||
<link rel='icon' type='image/png' href='/favicon' />
|
|
||||||
</Head>
|
</Head>
|
||||||
|
|
||||||
<SWRConfig
|
<SWRConfig
|
||||||
|
|||||||
@@ -21,9 +21,7 @@ export default function DashboardAdminUsersId({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>
|
<title>{`${config.website.title ?? 'Zipline'} – ${user.username}'s files`}</title>
|
||||||
{config.website.title ?? 'Zipline'} – {user.username}"s files
|
|
||||||
</title>
|
|
||||||
</Head>
|
</Head>
|
||||||
<Layout config={config}>
|
<Layout config={config}>
|
||||||
<ViewFiles user={user} />
|
<ViewFiles user={user} />
|
||||||
|
|||||||
@@ -16,9 +16,7 @@ export default function ViewFolderId({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>
|
<title>{`${config.website.title ?? 'Zipline'} – ${folder.name}`}</title>
|
||||||
{config.website.title ?? 'Zipline'} – {folder.name}
|
|
||||||
</title>
|
|
||||||
</Head>
|
</Head>
|
||||||
<Container>
|
<Container>
|
||||||
<Title order={1}>{folder.name}</Title>
|
<Title order={1}>{folder.name}</Title>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import fastifyPlugin from 'fastify-plugin';
|
import fastifyPlugin from 'fastify-plugin';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
export const PATH = '/favicon';
|
export const PATH = '/favicon.ico';
|
||||||
export default fastifyPlugin(
|
export default fastifyPlugin(
|
||||||
(server, _, done) => {
|
(server, _, done) => {
|
||||||
server.get(PATH, (_, res) => {
|
server.get(PATH, (_, res) => {
|
||||||
return res.sendFile('favicon-32x32.png', join(process.cwd(), 'public'));
|
return res.sendFile('favicon.ico', join(process.cwd(), 'public'));
|
||||||
});
|
});
|
||||||
|
|
||||||
done();
|
done();
|
||||||
|
|||||||
Reference in New Issue
Block a user