From f83f3fed4659d6ba303254743f9f9801deea9010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Wed, 16 Jan 2019 14:04:15 +0100 Subject: [PATCH] Use OpenSlides as Progressive Web App (PWA). --- client/angular.json | 30 ++++++++--- client/ngsw-config.json | 26 +++++++++ client/package.json | 2 + client/src/app/app.component.html | 2 +- client/src/app/app.module.ts | 7 ++- .../src/app/core/services/pwa.service.spec.ts | 17 ++++++ client/src/app/core/services/pwa.service.ts | 25 +++++++++ .../src/app/core/services/viewport.service.ts | 2 +- client/src/assets/icons/icon-128x128.png | Bin 0 -> 1253 bytes client/src/assets/icons/icon-144x144.png | Bin 0 -> 1394 bytes client/src/assets/icons/icon-152x152.png | Bin 0 -> 1427 bytes client/src/assets/icons/icon-192x192.png | Bin 0 -> 1790 bytes client/src/assets/icons/icon-384x384.png | Bin 0 -> 3557 bytes client/src/assets/icons/icon-512x512.png | Bin 0 -> 5008 bytes client/src/assets/icons/icon-72x72.png | Bin 0 -> 792 bytes client/src/assets/icons/icon-96x96.png | Bin 0 -> 958 bytes client/src/index.html | 5 +- client/src/manifest.json | 51 ++++++++++++++++++ 18 files changed, 156 insertions(+), 11 deletions(-) create mode 100644 client/ngsw-config.json create mode 100644 client/src/app/core/services/pwa.service.spec.ts create mode 100644 client/src/app/core/services/pwa.service.ts create mode 100644 client/src/assets/icons/icon-128x128.png create mode 100644 client/src/assets/icons/icon-144x144.png create mode 100644 client/src/assets/icons/icon-152x152.png create mode 100644 client/src/assets/icons/icon-192x192.png create mode 100644 client/src/assets/icons/icon-384x384.png create mode 100644 client/src/assets/icons/icon-512x512.png create mode 100644 client/src/assets/icons/icon-72x72.png create mode 100644 client/src/assets/icons/icon-96x96.png create mode 100644 client/src/manifest.json diff --git a/client/angular.json b/client/angular.json index dee0fe99b..3251ca8bf 100644 --- a/client/angular.json +++ b/client/angular.json @@ -22,8 +22,14 @@ "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.app.json", - "assets": ["src/favicon.ico", "src/assets"], - "styles": ["src/styles.scss", "node_modules/material-design-icons/iconfont/material-icons.css"], + "assets": [ + "src/assets", + "src/manifest.json" + ], + "styles": [ + "src/styles.scss", + "node_modules/material-design-icons/iconfont/material-icons.css" + ], "scripts": [ "node_modules/tinymce/tinymce.min.js", "node_modules/tinymce/themes/modern/theme.js", @@ -58,7 +64,8 @@ "aot": true, "extractLicenses": true, "vendorChunk": false, - "buildOptimizer": true + "buildOptimizer": true, + "serviceWorker": true } } }, @@ -86,11 +93,16 @@ "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.spec.json", "karmaConfig": "src/karma.conf.js", - "styles": ["src/styles.scss"], + "styles": [ + "src/styles.scss" + ], "scripts": [ "node_modules/tinymce/tinymce.min.js" ], - "assets": ["src/favicon.ico", "src/assets"] + "assets": [ + "src/assets", + "src/manifest.json" + ] } }, "lint": { @@ -98,7 +110,9 @@ "options": { "tsConfig": "src/tsconfig.spec.json", "format": "stylish", - "exclude": ["**/node_modules/**"] + "exclude": [ + "**/node_modules/**" + ] } } } @@ -123,7 +137,9 @@ "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": "e2e/tsconfig.e2e.json", - "exclude": ["**/node_modules/**"] + "exclude": [ + "**/node_modules/**" + ] } } } diff --git a/client/ngsw-config.json b/client/ngsw-config.json new file mode 100644 index 000000000..818b90e44 --- /dev/null +++ b/client/ngsw-config.json @@ -0,0 +1,26 @@ +{ + "index": "/index.html", + "assetGroups": [ + { + "name": "app", + "installMode": "prefetch", + "resources": { + "files": [ + "/favicon.png", + "/index.html", + "/*.css", + "/*.js" + ] + } + }, { + "name": "assets", + "installMode": "lazy", + "updateMode": "prefetch", + "resources": { + "files": [ + "/assets/**" + ] + } + } + ] +} diff --git a/client/package.json b/client/package.json index 2bbc8168e..54cae7dc5 100644 --- a/client/package.json +++ b/client/package.json @@ -32,7 +32,9 @@ "@angular/material": "^7.1.0", "@angular/platform-browser": "^7.1.1", "@angular/platform-browser-dynamic": "^7.1.1", + "@angular/pwa": "^0.12.1", "@angular/router": "^7.1.1", + "@angular/service-worker": "^7.1.1", "@ngx-pwa/local-storage": "^7.2.0", "@ngx-translate/core": "^11.0.1", "@ngx-translate/http-loader": "^4.0.0", diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html index 8b7e40f66..e7f953e2e 100644 --- a/client/src/app/app.component.html +++ b/client/src/app/app.component.html @@ -1,3 +1,3 @@
-
\ No newline at end of file + diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index b7c5bc91f..631b827e3 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -16,6 +16,10 @@ import { PruningTranslationLoader } from './core/pruning-loader'; import { LoginModule } from './site/login/login.module'; import { AppLoadService } from './core/services/app-load.service'; +// PWA +import { ServiceWorkerModule } from '@angular/service-worker'; +import { environment } from '../environments/environment'; + /** * For the translation module. Loads a Custom 'translation loader' and provides it as loader. * @param http Just the HttpClient to load stuff @@ -55,7 +59,8 @@ export function AppLoaderFactory(appLoadService: AppLoadService): () => Promise< AppRoutingModule, CoreModule, LoginModule, - PapaParseModule + PapaParseModule, + ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }) ], providers: [{ provide: APP_INITIALIZER, useFactory: AppLoaderFactory, deps: [AppLoadService], multi: true }], bootstrap: [AppComponent] diff --git a/client/src/app/core/services/pwa.service.spec.ts b/client/src/app/core/services/pwa.service.spec.ts new file mode 100644 index 000000000..6faa381f6 --- /dev/null +++ b/client/src/app/core/services/pwa.service.spec.ts @@ -0,0 +1,17 @@ +import { TestBed } from '@angular/core/testing'; + +import { PwaService } from './pwa.service'; +import { E2EImportsModule } from 'e2e-imports.module'; + +describe('PwaService', () => { + beforeEach(() => + TestBed.configureTestingModule({ + imports: [E2EImportsModule] + }) + ); + + it('should be created', () => { + const service: PwaService = TestBed.get(PwaService); + expect(service).toBeTruthy(); + }); +}); diff --git a/client/src/app/core/services/pwa.service.ts b/client/src/app/core/services/pwa.service.ts new file mode 100644 index 000000000..0b5ffe0fc --- /dev/null +++ b/client/src/app/core/services/pwa.service.ts @@ -0,0 +1,25 @@ +import { Injectable } from '@angular/core'; +import { SwUpdate } from '@angular/service-worker'; + +/** + * Service for Progressive Web App options + */ +@Injectable({ + providedIn: 'root' +}) +export class PwaService { + public promptEvent; + + public constructor(swUpdate: SwUpdate) { + // check if an update is available + swUpdate.available.subscribe(event => { + // TODO: ask user if app should update now + window.location.reload(); + }); + + // install button + window.addEventListener('beforeinstallprompt', event => { + this.promptEvent = event; + }); + } +} diff --git a/client/src/app/core/services/viewport.service.ts b/client/src/app/core/services/viewport.service.ts index b26bda5bb..a00f7f719 100644 --- a/client/src/app/core/services/viewport.service.ts +++ b/client/src/app/core/services/viewport.service.ts @@ -48,7 +48,7 @@ export class ViewportService { */ public checkForChange(): void { this.breakpointObserver - .observe([Breakpoints.Small, Breakpoints.HandsetPortrait]) + .observe([Breakpoints.Handset, '(min-width: 600px) and (max-width: 899.99px)']) .subscribe((state: BreakpointState) => { if (state.matches) { this.isMobile = true; diff --git a/client/src/assets/icons/icon-128x128.png b/client/src/assets/icons/icon-128x128.png new file mode 100644 index 0000000000000000000000000000000000000000..9f9241f0be40661db1eed29384231e76d33b6e7c GIT binary patch literal 1253 zcmVC00004XF*Lt006O% z3;baP00001b5ch_0Itp)=>Px#R8UM*MNDaN$N(?b05IDCG1mYv%m6RW1~u3KGtmGr z)c`Qj05H@5G1vex-2gG&05Sjn|HA+;>W7}%C{ggJx%=nr_R-qsQgh#Rj_Gxf@wLO% zPH*a#s-Rh6fB*mh4s=pZQvmBRsYJy17_o~a(q!H`#xchL000SaNLh0L00)l%00)l& zd2k#i000C4Nkl8EL$(w!{vTD#Ez6h&Vm;Z@RJyJ5Pb=t?kfC0(@}L=|6A zC;?{4bI!=^4sa_Okxqbw@%_I8P!z%|z=;8HeE_r!fY3el836hLpcw$}37N77pePIu z0L(@lpm_o`H~=sW1p0kbywbw}f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H^ z4AgxBbubVu11=~}TYjlRfl^w(qd@l;kU)Wm-4F5%WocR>Vw>d{kaz>3B_hTUmWjoi z2MtFmP=tr#OISF%M4%Y`YP^MoBO?N(2BG-U&3;gW$=J<-I{Uf!9LmfKgmpf3FbYjV z(WLXq6NphL8kC4U59KDIXiy?D5L;0oARJvXP-GN}a5!dUpcoIuroqE8q0iJrp2x&F z0uRTC40ORmaj5Wcq`w(GI27*%zr&qRe=vq{C|(PGgF7F1=m%iW_v7}XM@s~}6f-as z>k+6%O9TKVU?>hFPymLb3jjq}D2mU8mB7N00YEV}DYl4dNV=`P~C{u&U^j^R3Vciw9#Yq zP`pp~)OVmn5Ku%9#p@L4Mh{090*c86YUZ2#h8&Iz0!qoDSkHlKayUj1kWU_^hdEF{ zepX{EeNVr1o%a0X#}`2jM{J)TQlHQ5PatyVgTDU81AV4zr6 zpsVWkrQKm1n-bM^9Cu6<%onO3;5t?vJVW3bGih~-c(uAYIIgvUP zh3-A=9y#j6hJq3(Qx>lmgA#a?@1HMR9Zi41@uRnOP@lP{qvk!t`Ht0u)k z4^*ipM`i$&DhebhM{%7Z93ulDUok1R6rhJq}lgcd!D8d5(Rl-MxdCvFujhq|SDdyL%@u)7@?LGYU=t0U2l$ zFB9FpWS;&0gSX)B{aQ=%Imt9Y`~Q>k$FQ_-YZ2T%^YT&uy`8%I5HG9TeUO*s?mo=R zGIt;7E%Ut^X%gMC3(Jc>eQ)Ir%oNBf5;sefixnja{vGU07*qoM6N<$f>q^o A1ONa4 literal 0 HcmV?d00001 diff --git a/client/src/assets/icons/icon-152x152.png b/client/src/assets/icons/icon-152x152.png new file mode 100644 index 0000000000000000000000000000000000000000..34a1a8d645872c776c9425de45c3fcfba12c271e GIT binary patch literal 1427 zcmV;E1#J3>P)0{{R3FC5Sl00004XF*Lt006O% z3;baP00001b5ch_0Itp)=>Px#S5Qn;MNDaN)BrNc058)3FxCJt%K$IW1~u3KFxCJt z*8nrs05IMFFxCJu+yF7w05QV=FWmq!|N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+93uxg1i55Wf`RzOp|--nnG9$B-zYN-M%;sq_wFvM=;zw z97+a0Vs#=`)EXxYk;I`CuEynKBxLv)F46tc9v9vwFz)kKEiHa4iV|7GI0)XV&02is zk;uQrY`1O4F^HT>b2<3uwESDw=5p})?R@&Aw;cHL=0R01J_3ty8EO+KK3Au=6};es z`sOqqkd5h0m28@R3E(ZTjS{>t59zo-#$__JVtkYDd4P8TDLZ^r;oyojw0j2q7{(dv zIlm~+HSiPNXE!Wr@E{;>S7GfWl$JOfTKj3B!Hu7MuHj5}tgI_0XV^pgc5G$xvqt;1 zy05g*4&>YU9h*?0Lz~Ag7vhDDEmDYuuxFJ{FvBZC*Z&oz>};k+hJ&-)%KNI(frSCh;oq|$%l%7pzp@|A+V&~bBLKeEFlOoU zph~O3kU;eL0tuu1o;N3VVqD4dkDg(H!Sdn;`HAXZdG&4&5PiQ?jGxu~iCiWro!M`BG7w*ig8oZEX&Oq7ykp`P6Cer literal 0 HcmV?d00001 diff --git a/client/src/assets/icons/icon-512x512.png b/client/src/assets/icons/icon-512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..51ee297df1cbeb0354814ffe95afa6e4bc86ea23 GIT binary patch literal 5008 zcmcIodpuOz+kf_+vCT{~jFHUfHVi6Vj42V)9$k#^5&pV%)&-1MHtmpe&*IIi|qTJh+ z!!lt30LM+X$OizWSQHpEirl|oUP%%9MyZz+pfGvNw?G|gjBN99b%Co-CbUxnU%996 zV$V&Hm0;Zjl6nx=fcP1RHJEJ^*gOZDCJ<9hBiOtI8%lZ~tSM%6bac4$Q}^XNZ!P7o zeYUo4`|VE)uTE9=z>~(WFWx=3^64*mI8-j2LE-B~`FJmbe?)cn4-YQSHkK@TRiJaI zrjL>^BV;SL0Zekz{*am-gYz2xr1iV@`#BCp1+7`bKN$G`^?kVP)pp$xgKLiqcZGM{ZtAs8SwHvA+Q+YR zUtfRO*PXIL?@oB1y32Wcd0IAQ-_7U-XH&QmAC|Xw9Z;$(hdn`I z5fIoln@*%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h&iLW8%%1G&XKYpLAfKNw%3}*kuoAdnJr`M>__H>dq~Mh zP-V-g+(k>-Qs(q}WXssQpxTy_-X}}zK)3Dc*I821%VcWFsJ9?(Nx8HAB~LQ8U>P-a zuTt*pkmh5n)f|ns+Q$5J2qLyN|84E@+#+w#(H$VTc!5HXl|4%iLCo)Vlji%N$p7+I zG8$BzyHCc90G+&N*{z@Jc&GJ~9n-C!?ijTGxE#NGXP;Ytsbkdo&MZ9H)#u-s|CMj0 W+lM#8Z~|xm0000Px#QBX`&MNDaN(FHWq05Hh_FW3Mv%K$LW05R48FxUVw z)c`Tx05I18Fx3Ds+5j=b059DDG5`Pn`|0h?DNx=~ap{et=5mep%+~Lyx#A^H+#^l% zx5S%GFfafB01k9gPE!E&((4(;BUht~-7>L58O~@#00009a7bBm000H6000H60f4@L z=Kuf#+(|@1RA}DqnQ3~1AQVNNP|ScL4oUXE&?Z$Ahc^JBfBJbB;3>Hreb6X6a^%R7 z;3>+#e0pAsnVC28G71@_nt#-0QkgM3T~@)@9nd zZWSG>a#?ZFb**E?A^ZVd{Y>W%C@dE6TmlD>DB#LG-_*Y`3;-|s%mDfk&@%wM<;-dU z%uZG6jBg_vFwB5~1`r-lj=dzaTLJ+PjAV02+0w|grk4Qi z_NdmZY}5-iXC>=8R<8=;$WuTroY=%%5X~{ z0fLsSe@zuVEn7+gB>k4?UVx64Eg=CVDVhGAi(*a6cA+O0QnGd&yjoH==>eE~y^Vl* zry6I^Fw^>X#pCEme%Y8om0EzA0pw0)Cde3FVdcRXGE-Owu z$vO9SV z*n9RAfjlf%zPAXgA1U?(2-|DBO!@#4mz&4@;tEKwkz3Bf3E*?bd_7qMWaO73wgO!I zZ{dNqzw6clvF-Nz|AlPY{=QqFiW35mQK&514$>`EMWAkRM6hnLwgYwxw;i-wsO_-b g0#)SEkt6>uKVW - OpenSlides 3 + OpenSlides + + + diff --git a/client/src/manifest.json b/client/src/manifest.json new file mode 100644 index 000000000..77bf39340 --- /dev/null +++ b/client/src/manifest.json @@ -0,0 +1,51 @@ +{ + "name": "OpenSlides", + "short_name": "OpenSlides", + "theme_color": "#317796", + "background_color": "#317796", + "display": "standalone", + "scope": "/", + "start_url": "/", + "icons": [ + { + "src": "/assets/icons/icon-72x72.png", + "sizes": "72x72", + "type": "image/png" + }, + { + "src": "/assets/icons/icon-96x96.png", + "sizes": "96x96", + "type": "image/png" + }, + { + "src": "/assets/icons/icon-128x128.png", + "sizes": "128x128", + "type": "image/png" + }, + { + "src": "/assets/icons/icon-144x144.png", + "sizes": "144x144", + "type": "image/png" + }, + { + "src": "/assets/icons/icon-152x152.png", + "sizes": "152x152", + "type": "image/png" + }, + { + "src": "/assets/icons/icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/assets/icons/icon-384x384.png", + "sizes": "384x384", + "type": "image/png" + }, + { + "src": "/assets/icons/icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +}