2020-08-11 04:11:42 +01:00
|
|
|
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
2021-09-30 08:43:49 +01:00
|
|
|
import { BrowserModule, HammerModule } from '@angular/platform-browser';
|
2020-08-05 15:39:16 +01:00
|
|
|
import { RouteReuseStrategy } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
|
2021-03-01 15:45:30 +01:00
|
|
|
// import { SplashScreen } from '@ionic-native/splash-screen/ngx';
|
2021-02-25 11:50:32 +01:00
|
|
|
import { StatusBar } from '@ionic-native/status-bar/ngx';
|
2020-08-05 15:39:16 +01:00
|
|
|
|
|
|
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
|
|
|
|
2020-08-25 14:08:13 +01:00
|
|
|
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
|
|
|
|
|
2021-02-12 10:16:27 +01:00
|
|
|
//import { File } from '@ionic-native/File/ngx';
|
2020-12-09 12:10:19 +01:00
|
|
|
import { WebView } from '@ionic-native/ionic-webview/ngx';
|
|
|
|
|
import { FilePath } from '@ionic-native/file-path/ngx';
|
2021-02-09 13:16:41 +01:00
|
|
|
import { Camera } from '@ionic-native/camera/ngx';
|
2020-12-09 12:10:19 +01:00
|
|
|
import { IonicStorageModule } from '@ionic/storage';
|
2021-01-22 16:00:37 +01:00
|
|
|
|
|
|
|
|
import { CommonModule } from '@angular/common';
|
2021-06-24 11:47:05 +01:00
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
2021-01-25 16:18:36 +01:00
|
|
|
|
2021-01-22 16:00:37 +01:00
|
|
|
import { CalendarModule, DateAdapter } from 'angular-calendar';
|
|
|
|
|
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
|
2021-07-08 10:43:40 +01:00
|
|
|
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
2021-03-11 16:21:09 +01:00
|
|
|
import { MessagesPage } from './pages/chat/messages/messages.page';
|
2022-01-11 12:32:46 +01:00
|
|
|
import { WebsocketService } from './services/websocket.service'
|
2021-06-15 11:39:59 +01:00
|
|
|
import { ChatService } from './services/chat.service';
|
2021-06-17 13:58:56 +01:00
|
|
|
import {MatDatepickerModule} from '@angular/material/datepicker';
|
2021-04-29 15:25:14 +01:00
|
|
|
// import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic/ngx';
|
2021-06-24 11:08:17 +01:00
|
|
|
import {MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material/core';
|
|
|
|
|
import { NgxMatDateFormats, NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
|
2021-08-22 01:24:45 +01:00
|
|
|
import { Network } from '@ionic-native/network/ngx';
|
2022-03-25 09:25:05 +01:00
|
|
|
import { MultipleDocumentsPicker } from '@awesome-cordova-plugins/multiple-document-picker/ngx';
|
2021-11-29 15:48:35 +01:00
|
|
|
|
2021-06-24 11:08:17 +01:00
|
|
|
|
2021-04-08 11:27:53 +01:00
|
|
|
|
2021-06-18 12:02:14 +01:00
|
|
|
import {
|
2021-07-28 09:29:14 +01:00
|
|
|
NgxMatDatetimePickerModule,
|
|
|
|
|
NgxMatNativeDateModule,
|
|
|
|
|
NgxMatTimepickerModule
|
2021-06-18 12:02:14 +01:00
|
|
|
} from '@angular-material-components/datetime-picker';
|
2021-06-24 11:08:17 +01:00
|
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
|
|
|
import { MatSelectModule } from '@angular/material/select';
|
2021-06-24 11:47:05 +01:00
|
|
|
import { NgxMatMomentModule } from '@angular-material-components/moment-adapter';
|
|
|
|
|
import { MatButtonModule } from '@angular/material/button';
|
2021-07-08 11:07:40 +01:00
|
|
|
import { HttpClient } from '@angular/common/http';
|
2020-09-10 09:48:37 +01:00
|
|
|
|
2021-08-04 10:47:22 +01:00
|
|
|
import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';
|
|
|
|
|
import { fas } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
|
import { far } from '@fortawesome/free-regular-svg-icons'
|
|
|
|
|
import { fab } from '@fortawesome/free-brands-svg-icons'
|
|
|
|
|
|
2021-08-17 09:53:06 +01:00
|
|
|
import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
|
2021-09-21 06:09:41 +01:00
|
|
|
import { SQLite } from '@ionic-native/sqlite/ngx';
|
2021-10-15 15:21:26 +01:00
|
|
|
import { CookieService } from 'ngx-cookie-service';
|
2021-08-25 16:02:40 +01:00
|
|
|
|
2021-11-16 16:00:14 +01:00
|
|
|
import { ImagePicker } from '@ionic-native/image-picker/ngx';
|
|
|
|
|
import { MediaCapture } from '@ionic-native/media-capture/ngx';
|
|
|
|
|
import { Media } from '@ionic-native/media/ngx';
|
2022-03-18 11:45:38 +01:00
|
|
|
import { File } from '@ionic-native/file/ngx';
|
|
|
|
|
|
2021-11-16 16:00:14 +01:00
|
|
|
import { StreamingMedia } from '@ionic-native/streaming-media/ngx';
|
|
|
|
|
import { PhotoViewer } from '@ionic-native/photo-viewer/ngx';
|
2021-11-26 14:46:08 +01:00
|
|
|
import {NgxImageCompressService} from 'ngx-image-compress';
|
2021-11-30 10:23:46 +01:00
|
|
|
import { CustomImageCachePageRoutingModule } from './services/file/custom-image-cache/custom-image-cache-routing.module';
|
2022-01-28 19:02:44 +01:00
|
|
|
import { IonicImageLoaderComponent, IonicImageLoaderModule } from 'ionic-image-loader-v5';
|
2021-11-18 13:01:53 +01:00
|
|
|
|
2021-11-16 16:00:14 +01:00
|
|
|
/* import { FCM } from '@ionic-native/fcm/ngx';
|
|
|
|
|
import { FirebaseX } from '@ionic-native/firebase-x/ngx'; */
|
|
|
|
|
//import { FCM } from 'cordova-plugin-fcm-with-dependecy-updated/ionic/ngx';
|
|
|
|
|
|
2020-08-05 15:39:16 +01:00
|
|
|
@NgModule({
|
2021-06-03 17:07:29 +01:00
|
|
|
declarations: [AppComponent],
|
|
|
|
|
entryComponents: [],
|
2021-07-28 09:29:14 +01:00
|
|
|
imports: [BrowserModule,
|
2021-01-22 16:00:37 +01:00
|
|
|
CommonModule,
|
|
|
|
|
FormsModule,
|
|
|
|
|
CalendarModule.forRoot({
|
|
|
|
|
provide: DateAdapter,
|
2021-01-25 16:18:36 +01:00
|
|
|
useFactory: adapterFactory
|
2021-01-22 16:00:37 +01:00
|
|
|
}),
|
2022-01-28 19:02:44 +01:00
|
|
|
|
|
|
|
|
IonicImageLoaderModule,
|
2021-07-06 10:33:24 +01:00
|
|
|
IonicModule.forRoot({animated: false}),
|
2021-11-29 15:48:35 +01:00
|
|
|
IonicStorageModule.forRoot({
|
|
|
|
|
name: '__mydb',
|
|
|
|
|
driverOrder: ['indexeddb', 'sqlite', 'websql']
|
2022-01-28 19:02:44 +01:00
|
|
|
|
2021-11-29 15:48:35 +01:00
|
|
|
}),
|
|
|
|
|
|
2021-07-28 09:29:14 +01:00
|
|
|
AppRoutingModule,
|
2021-08-04 10:47:22 +01:00
|
|
|
FontAwesomeModule,
|
2021-07-28 09:29:14 +01:00
|
|
|
HttpClientModule,
|
|
|
|
|
// NgbModule,
|
2021-06-16 22:38:25 +01:00
|
|
|
NoopAnimationsModule,
|
2021-06-18 12:02:14 +01:00
|
|
|
MatDatepickerModule,
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
NgxMatDatetimePickerModule,
|
|
|
|
|
NgxMatTimepickerModule,
|
2021-06-24 11:08:17 +01:00
|
|
|
NgxMatNativeDateModule,
|
2021-06-24 11:47:05 +01:00
|
|
|
|
|
|
|
|
NgxMatMomentModule,
|
|
|
|
|
MatButtonModule,
|
|
|
|
|
ReactiveFormsModule,
|
|
|
|
|
|
2021-06-24 11:08:17 +01:00
|
|
|
MatSelectModule,
|
2021-07-08 11:07:40 +01:00
|
|
|
MatDialogModule,
|
2021-08-25 16:02:40 +01:00
|
|
|
//
|
2021-09-30 08:43:49 +01:00
|
|
|
HammerModule,
|
2022-03-18 11:45:38 +01:00
|
|
|
CustomImageCachePageRoutingModule,
|
2022-01-11 12:12:45 +01:00
|
|
|
|
2020-12-09 12:10:19 +01:00
|
|
|
],
|
2020-08-05 15:39:16 +01:00
|
|
|
providers: [
|
2021-06-24 11:08:17 +01:00
|
|
|
{ provide: MAT_DATE_LOCALE, useValue: 'pt' },
|
2021-02-25 11:50:32 +01:00
|
|
|
StatusBar,
|
2021-03-01 15:45:30 +01:00
|
|
|
//SplashScreen,
|
2021-07-08 11:07:40 +01:00
|
|
|
HttpClient,
|
2020-08-05 15:39:16 +01:00
|
|
|
HttpClientModule,
|
2020-08-25 14:08:13 +01:00
|
|
|
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
|
2020-08-26 09:42:16 +01:00
|
|
|
InAppBrowser,
|
2021-02-09 13:16:41 +01:00
|
|
|
Camera,
|
2022-03-18 11:45:38 +01:00
|
|
|
File,
|
2020-12-09 12:10:19 +01:00
|
|
|
WebView,
|
|
|
|
|
FilePath,
|
2021-11-16 16:00:14 +01:00
|
|
|
/* FCM,
|
|
|
|
|
FirebaseX, */
|
2021-05-19 09:37:43 +01:00
|
|
|
WebsocketService,
|
|
|
|
|
ChatService,
|
2021-08-17 09:53:06 +01:00
|
|
|
ScreenOrientation,
|
2021-09-07 12:09:01 +01:00
|
|
|
Network,
|
2021-10-15 15:21:26 +01:00
|
|
|
SQLite,
|
2021-11-16 16:00:14 +01:00
|
|
|
CookieService,
|
|
|
|
|
ImagePicker,
|
|
|
|
|
MediaCapture,
|
|
|
|
|
Media,
|
|
|
|
|
StreamingMedia,
|
2021-11-26 14:46:08 +01:00
|
|
|
PhotoViewer,
|
2022-02-25 15:10:10 +01:00
|
|
|
NgxImageCompressService,
|
2022-03-25 09:25:05 +01:00
|
|
|
MultipleDocumentsPicker,
|
|
|
|
|
|
2020-08-05 15:39:16 +01:00
|
|
|
],
|
2020-08-11 04:11:42 +01:00
|
|
|
bootstrap: [AppComponent],
|
|
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
2020-08-05 15:39:16 +01:00
|
|
|
})
|
2021-08-04 10:47:22 +01:00
|
|
|
export class AppModule {
|
|
|
|
|
constructor(library: FaIconLibrary) {
|
|
|
|
|
library.addIconPacks(fas, fab, far);
|
|
|
|
|
}
|
|
|
|
|
}
|