Files
doneit-web/src/app/app.module.ts
T

123 lines
3.9 KiB
TypeScript
Raw Normal View History

import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2020-08-05 15:39:16 +01:00
import { BrowserModule } from '@angular/platform-browser';
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';
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
2021-02-12 10:16:27 +01:00
//import { File } from '@ionic-native/File/ngx';
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';
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';
2021-05-19 09:37:43 +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';
// 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';
import { Network } from '@ionic-native/network/ngx';
import { Media } from '@ionic-native/media/ngx';
import { File } from '@ionic-native/file/ngx';
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 {
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-08-25 16:02:40 +01:00
import { PdfViewerModule } from 'ng2-pdf-viewer';
2020-08-05 15:39:16 +01:00
@NgModule({
2021-06-03 17:07:29 +01:00
declarations: [AppComponent],
entryComponents: [],
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
}),
2021-07-06 10:33:24 +01:00
IonicModule.forRoot({animated: false}),
IonicStorageModule.forRoot(),
AppRoutingModule,
2021-08-04 10:47:22 +01:00
FontAwesomeModule,
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
//
PdfViewerModule
],
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,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
2020-08-26 09:42:16 +01:00
InAppBrowser,
2021-02-09 13:16:41 +01:00
Camera,
2021-02-12 10:16:27 +01:00
//File,
WebView,
FilePath,
2021-05-19 09:37:43 +01:00
//FCM,
WebsocketService,
ChatService,
2021-08-17 09:53:06 +01:00
ScreenOrientation,
Network,
Media,
File
2020-08-05 15:39:16 +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);
}
}