mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
modalReviewd
This commit is contained in:
@@ -11,6 +11,8 @@ import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-pick
|
||||
import { SqliteService } from 'src/app/services/sqlite.service';
|
||||
import { BackgroundService } from 'src/app/services/background.service';
|
||||
import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
|
||||
import { Directory, Filesystem } from '@capacitor/filesystem';
|
||||
|
||||
|
||||
|
||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||
@@ -41,11 +43,20 @@ export class AppComponent {
|
||||
private statusBar: StatusBar,
|
||||
private screenOrientation: ScreenOrientation,
|
||||
private sqliteservice: SqliteService,
|
||||
private backgroundservice: BackgroundService
|
||||
private backgroundservice: BackgroundService,
|
||||
|
||||
) {
|
||||
this.createCacheFolder()
|
||||
this.initializeApp();
|
||||
}
|
||||
|
||||
async createCacheFolder(){
|
||||
await Filesystem.mkdir({
|
||||
directory: Directory.Cache,
|
||||
path: `CACHED-IMG`
|
||||
})
|
||||
}
|
||||
|
||||
initializeApp() {
|
||||
this.platform.ready().then(() => {
|
||||
this.statusBar.styleDefault();
|
||||
|
||||
Reference in New Issue
Block a user