mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
50 lines
1.3 KiB
TypeScript
50 lines
1.3 KiB
TypeScript
import { Component, Inject } from '@angular/core';
|
|
|
|
import { Platform } from '@ionic/angular';
|
|
/* import { SplashScreen } from '@ionic-native/splash-screen/ngx'; */
|
|
import { StatusBar } from '@ionic-native/status-bar/ngx';
|
|
import * as _moment from 'moment';
|
|
import * as _rollupMoment from 'moment';
|
|
import { NgxMatDateFormats } from '@angular-material-components/datetime-picker';
|
|
const moment = _rollupMoment || _moment;
|
|
import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
|
|
|
|
|
|
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
|
parse: {
|
|
dateInput: "YYYY-MMMM-DD HH:mm"
|
|
},
|
|
display: {
|
|
dateInput: "DD MMM YYYY H:mm",
|
|
monthYearLabel: "MMM YYYY",
|
|
dateA11yLabel: "LL",
|
|
monthYearA11yLabel: "MMMM YYYY"
|
|
}
|
|
}
|
|
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: 'app.component.html',
|
|
styleUrls: ['app.component.scss'],
|
|
providers: [
|
|
{ provide: NGX_MAT_DATE_FORMATS, useValue: CUSTOM_DATE_FORMATS },
|
|
]
|
|
})
|
|
export class AppComponent {
|
|
constructor(
|
|
private platform: Platform,
|
|
/* private splashScreen: SplashScreen, */
|
|
private statusBar: StatusBar
|
|
) {
|
|
this.initializeApp();
|
|
}
|
|
|
|
initializeApp() {
|
|
this.platform.ready().then(() => {
|
|
this.statusBar.styleDefault();
|
|
/* this.splashScreen.hide(); */
|
|
});
|
|
}
|
|
}
|