mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-01-08 04:03:48 +02:00
Merge pull request #182 from tuur29/feature/web-manifest
Add web manifest
This commit is contained in:
commit
9521eaf5fb
@ -93,6 +93,25 @@ export class PublicRouter {
|
||||
}
|
||||
);
|
||||
|
||||
app.get('/manifest.json',
|
||||
(req: Request, res: Response, next: NextFunction) => {
|
||||
res.send({
|
||||
name: Config.Client.applicationTitle,
|
||||
icons: [
|
||||
{
|
||||
src: 'assets/icon_inv.png',
|
||||
sizes: '48x48 72x72 96x96 128x128 256x256'
|
||||
}
|
||||
],
|
||||
display: 'standalone',
|
||||
orientation: 'any',
|
||||
start_url: Config.Client.publicUrl,
|
||||
background_color: '#000000',
|
||||
theme_color: '#000000'
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
app.get(['/', '/login', '/gallery*', '/share*', '/admin', '/duplicates', '/faces', '/search*'],
|
||||
AuthenticationMWs.tryAuthenticate,
|
||||
setLocale,
|
||||
|
@ -7,6 +7,11 @@
|
||||
<link rel="shortcut icon" href="assets/icon.png">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||
<link rel="manifest" crossorigin="use-credentials" href="manifest.json">
|
||||
|
||||
<link rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/3.3.4/css/bootstrap3/bootstrap-switch.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css"
|
||||
|
Loading…
Reference in New Issue
Block a user