You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-07-13 01:20:23 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@ -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*'],
|
app.get(['/', '/login', '/gallery*', '/share*', '/admin', '/duplicates', '/faces', '/search*'],
|
||||||
AuthenticationMWs.tryAuthenticate,
|
AuthenticationMWs.tryAuthenticate,
|
||||||
setLocale,
|
setLocale,
|
||||||
|
@ -19,9 +19,13 @@ export class DirectoriesComponent implements OnChanges {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private updateSize() {
|
private updateSize() {
|
||||||
|
if (window.innerWidth < window.innerHeight) {
|
||||||
|
// On portrait mode, show 2 directories side by side with some padding
|
||||||
|
this.size = Math.round(window.innerWidth / 2) - 25;
|
||||||
|
} else {
|
||||||
const size = 220 + 5;
|
const size = 220 + 5;
|
||||||
const containerWidth = this.container.nativeElement.parentElement.clientWidth;
|
const containerWidth = this.container.nativeElement.parentElement.clientWidth;
|
||||||
this.size = (containerWidth / Math.round((containerWidth / size))) - 5;
|
this.size = (containerWidth / Math.round((containerWidth / size))) - 5;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,8 @@
|
|||||||
id="password"
|
id="password"
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
autocomplete="login-password"
|
autocomplete="login-password"
|
||||||
|
autocorrect="off"
|
||||||
|
autocapitalize="none"
|
||||||
[(ngModel)]="loginCredential.password"
|
[(ngModel)]="loginCredential.password"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,6 +7,11 @@
|
|||||||
<link rel="shortcut icon" href="assets/icon.png">
|
<link rel="shortcut icon" href="assets/icon.png">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<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"
|
<link rel="stylesheet"
|
||||||
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/3.3.4/css/bootstrap3/bootstrap-switch.css">
|
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"
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css"
|
||||||
|
Reference in New Issue
Block a user