Add support for PWA (#1005)

* Add logic for dynamically generating web manifest

* Make PWA icon get autogenerated

* Make service worker work

* Tweak things for PWA

* Handle apple icons and refactor

* Update prod dockerfile

* Remove jimp

* Remove unnecessary option

* Use different function syntax
This commit is contained in:
SleeplessOne1917 2023-05-12 01:07:59 +00:00 committed by GitHub
parent c5fd084577
commit b19b51c78c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 1074 additions and 226 deletions

View file

@ -38,7 +38,7 @@ export class UserService {
expires.setDate(expires.getDate() + 365);
if (res.jwt) {
toast(i18n.t("logged_in"));
IsomorphicCookie.save("jwt", res.jwt, { expires, secure: isHttps });
IsomorphicCookie.save("jwt", res.jwt, { expires, secure: isHttps() });
this.setJwtInfo();
}
}