144 lines
5.9 KiB
TypeScript
144 lines
5.9 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import {
|
|
BrowserModule,
|
|
HAMMER_GESTURE_CONFIG,
|
|
HammerGestureConfig
|
|
} from '@angular/platform-browser';
|
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import {
|
|
NgbModule,
|
|
NgbCarouselConfig,
|
|
NgbModalConfig
|
|
} from '@ng-bootstrap/ng-bootstrap';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { AngularFireModule } from '@angular/fire/compat';
|
|
import { AngularFirestoreModule } from '@angular/fire/compat/firestore';
|
|
import { AngularFireAuthModule } from '@angular/fire/compat/auth';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { environment } from '../environments/environment';
|
|
import { AuthGuard } from './_guards/auth.guard';
|
|
import { AlertComponent } from './_helpers/alert.component';
|
|
import { AlertService } from './_services/alert.service';
|
|
import { AuthService } from './_services/auth.service';
|
|
import { ChartApiService } from './_services/chart.api';
|
|
import { TableApiService } from './_services/table-api.service';
|
|
import { ApplicationApiService } from './_services/application-api.service';
|
|
import { QuillInitializeServiceService } from './_services/quill-initialize-service.service';
|
|
|
|
// Routing
|
|
import { routing } from './app.routing';
|
|
// Components
|
|
import { AppComponent } from './app.component';
|
|
import { SettingsModule } from './_layout/settings/settings.module';
|
|
import { ThemeSettingsConfig } from './_layout/settings/theme-settings.config';
|
|
import { MenuSettingsConfig } from './_layout/settings/menu-settings.config';
|
|
import { HeaderComponent } from './_layout/header/header.component';
|
|
import { VerticalComponent as HeaderVerticalComponent } from './_layout/header/vertical/vertical.component';
|
|
import { HorizontalComponent as HeaderHorizontalComponent } from './_layout/header/horizontal/horizontal.component';
|
|
import { FullLayoutNavbarComponent } from './_layout/header/full-layout-navbar/full-layout-navbar.component';
|
|
import { FooterComponent } from './_layout/footer/footer.component';
|
|
import { NavigationComponent as AppNavigationComponent } from './_layout/navigation/navigation.component';
|
|
import { PublicLayoutComponent } from './_layout/public-layout/public-layout.component';
|
|
import { PrivateLayoutComponent } from './_layout/private-layout/private-layout.component';
|
|
import { RegisterComponent } from './register';
|
|
import { SocialSigninComponent } from './social-signin/social-signin.component';
|
|
import { LoginComponent } from './login';
|
|
import { ChangelogComponent } from './changelog/changelog.component';
|
|
import { NavbarService } from './_services/navbar.service';
|
|
import { VerticalnavComponent } from './_layout/navigation/verticalnav/verticalnav.component';
|
|
import { HorizontalnavComponent } from './_layout/navigation/horizontalnav/horizontalnav.component';
|
|
// perfect scroll bar
|
|
import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
|
|
// spinner
|
|
import { NgxSpinnerModule } from 'ngx-spinner';
|
|
import { LoadingBarRouterModule } from '@ngx-loading-bar/router';
|
|
import { DeviceDetectorService } from './_services/device-detector.service';
|
|
import { RouterModule } from '@angular/router';
|
|
import { CustomizerComponent } from './_layout/customizer/customizer.component';
|
|
import { NgChartsModule } from 'ng2-charts';
|
|
import { PartialsModule } from './content/partials/partials.module';
|
|
import { BreadcrumbModule } from './_layout/breadcrumb/breadcrumb.module';
|
|
import { HorizontalCustomizerComponent } from './_layout/customizer/horizontal-customizer/horizontal-customizer.component';
|
|
import { BlockTemplateComponent } from './_layout/blockui/block-template.component';
|
|
import { BlockUIModule } from 'ng-block-ui';
|
|
import { MatchHeightModule } from './content/partials/general/match-height/match-height.module';
|
|
import { FullLayoutComponent } from './_layout/full-layout/full-layout.component';
|
|
import { ToastrModule } from 'ngx-toastr';
|
|
import { UserService } from './_api/user/user.service';
|
|
import { PrivacyPolicyComponent } from './login/privacy-policy/privacy-policy.component';
|
|
import { TermsConditionComponent } from './login/terms-condition/terms-condition.component';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
PartialsModule,
|
|
ReactiveFormsModule,
|
|
HttpClientModule,
|
|
NgChartsModule,
|
|
BrowserAnimationsModule,
|
|
MatchHeightModule,
|
|
BreadcrumbModule,
|
|
NgbModule,
|
|
FormsModule,
|
|
AngularFireModule.initializeApp(environment.firebase),
|
|
AngularFirestoreModule, // imports firebase/firestore, only needed for database features
|
|
AngularFireAuthModule, // imports firebase/auth, only needed for auth features
|
|
routing,
|
|
// Settings modules
|
|
SettingsModule.forRoot(ThemeSettingsConfig, MenuSettingsConfig),
|
|
PerfectScrollbarModule,
|
|
ToastrModule.forRoot(),
|
|
NgxSpinnerModule,
|
|
LoadingBarRouterModule,
|
|
BlockUIModule.forRoot({
|
|
template: BlockTemplateComponent
|
|
})
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
PublicLayoutComponent,
|
|
PrivateLayoutComponent,
|
|
HeaderComponent,
|
|
FullLayoutNavbarComponent,
|
|
HeaderHorizontalComponent,
|
|
HeaderVerticalComponent,
|
|
FooterComponent,
|
|
AppNavigationComponent,
|
|
AlertComponent,
|
|
RegisterComponent,
|
|
SocialSigninComponent,
|
|
LoginComponent,
|
|
ChangelogComponent,
|
|
VerticalnavComponent,
|
|
HorizontalnavComponent,
|
|
CustomizerComponent,
|
|
HorizontalCustomizerComponent,
|
|
BlockTemplateComponent,
|
|
FullLayoutComponent,
|
|
PrivacyPolicyComponent,
|
|
TermsConditionComponent,
|
|
],
|
|
providers: [
|
|
AuthGuard,
|
|
ChartApiService,
|
|
AlertService,
|
|
NavbarService,
|
|
TableApiService,
|
|
ApplicationApiService,
|
|
DeviceDetectorService,
|
|
QuillInitializeServiceService,
|
|
AuthService,
|
|
UserService,
|
|
{
|
|
provide: HAMMER_GESTURE_CONFIG,
|
|
useClass: HammerGestureConfig
|
|
},
|
|
NgbCarouselConfig,
|
|
NgbModalConfig,
|
|
],
|
|
bootstrap: [AppComponent],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppModule { }
|