feat: calendar plugin

This commit is contained in:
Thea Schöbl
2022-01-31 15:57:38 +00:00
committed by Rainer Killinger
parent 080e6fa3e8
commit a57c3029df
54 changed files with 2880 additions and 70 deletions

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {Component, NgZone} from '@angular/core';
import {AfterContentInit, Component, NgZone} from '@angular/core';
import {Router} from '@angular/router';
import {App, URLOpenListenerEvent} from '@capacitor/app';
import {SplashScreen} from '@capacitor/splash-screen';
@@ -24,6 +24,7 @@ import {PAIAAuthService} from './modules/auth/paia/paia-auth.service';
import {DefaultAuthService} from './modules/auth/default-auth.service';
import {environment} from '../environments/environment';
import {AuthHelperService} from './modules/auth/auth-helper.service';
import {ScheduleSyncService} from './modules/background/schedule/schedule-sync.service';
/**
* TODO
@@ -32,7 +33,7 @@ import {AuthHelperService} from './modules/auth/auth-helper.service';
selector: 'app-root',
templateUrl: 'app.component.html',
})
export class AppComponent {
export class AppComponent implements AfterContentInit {
/**
* TODO
*/
@@ -59,6 +60,7 @@ export class AppComponent {
* @param paiaAuth Auth Service
* @param authHelperService Helper service for OAuth providers
* @param toastController Toast controller
* @param scheduleSync TODO
*/
constructor(
private readonly platform: Platform,
@@ -71,10 +73,15 @@ export class AppComponent {
private readonly paiaAuth: PAIAAuthService,
private readonly authHelperService: AuthHelperService,
private readonly toastController: ToastController,
private readonly scheduleSync: ScheduleSyncService,
) {
void this.initializeApp();
}
ngAfterContentInit() {
void this.scheduleSync.enable();
}
/**
* TODO
*/