[6a3a178] | 1 | import { AppRoutingModule } from './app-routing.module';
|
---|
| 2 | import { AppComponent } from './app.component';
|
---|
| 3 | import { BrowserModule } from '@angular/platform-browser';
|
---|
[fa375fe] | 4 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
---|
[e29cc2e] | 5 | import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
---|
[b738035] | 6 | import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
---|
[6a3a178] | 7 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
---|
| 8 | import { CategoryService } from './_services/cateogry.service';
|
---|
| 9 | import { PlannerComponent } from './planner/planner.component';
|
---|
| 10 | import { LocationComponent } from './location/location.component';
|
---|
| 11 | import { MatIconModule } from '@angular/material/icon';
|
---|
| 12 | import { MatSelectModule } from '@angular/material/select';
|
---|
[e29cc2e] | 13 | import { MatInputModule } from '@angular/material/input';
|
---|
| 14 | import { MatChipsModule } from '@angular/material/chips';
|
---|
| 15 | import { MatTabsModule } from '@angular/material/tabs';
|
---|
| 16 | import { MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
---|
| 17 | import { MatBadgeModule } from '@angular/material/badge';
|
---|
| 18 | import { MatDividerModule } from '@angular/material/divider';
|
---|
| 19 | import { MatCardModule } from '@angular/material/card';
|
---|
[6a3a178] | 20 | import { PlannerService } from './_services/planner.service';
|
---|
| 21 | import { MatButtonModule } from '@angular/material/button';
|
---|
[e29cc2e] | 22 | import { MatGridListModule } from '@angular/material/grid-list';
|
---|
[fa375fe] | 23 | import { CreateInitialPlannerComponent } from './create-initial-planner/create-initial-planner.component';
|
---|
| 24 | import { LocationsFormComponent } from './locations-form/locations-form.component';
|
---|
| 25 | import { MatFormFieldModule } from '@angular/material/form-field';
|
---|
[e29cc2e] | 26 | import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
---|
[6a80231] | 27 | import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
|
---|
[ceaed42] | 28 | import { AddLocationToPlannerPanelComponent } from './location/add-location-to-planner-panel/add-location-to-planner-panel.component';
|
---|
[59329aa] | 29 | import { HomepageComponent } from './homepage/homepage.component';
|
---|
[e29cc2e] | 30 | import { AccordionModule } from 'primeng/accordion'; //accordion and accordion tab
|
---|
| 31 | import { CarouselModule } from 'primeng/carousel';
|
---|
| 32 | import { ButtonModule } from 'primeng/button';
|
---|
| 33 | import { ToastModule } from 'primeng/toast';
|
---|
| 34 | import { TabViewModule } from 'primeng/tabview';
|
---|
[59329aa] | 35 | import { LocationDetailsComponent } from './location/location-details/location-details.component';
|
---|
[e29cc2e] | 36 | import { GalleriaModule } from 'primeng/galleria';
|
---|
| 37 | import { DialogService, DynamicDialogModule } from 'primeng/dynamicdialog';
|
---|
| 38 | import { MessageService, SharedModule, ConfirmationService } from 'primeng/api';
|
---|
| 39 | import { TableModule } from 'primeng/table';
|
---|
| 40 | import { MessagesModule } from 'primeng/messages';
|
---|
| 41 | import { MessageModule } from 'primeng/message';
|
---|
| 42 | import { InputTextModule } from 'primeng/inputtext';
|
---|
| 43 | import { RippleModule } from 'primeng/ripple';
|
---|
[bdd6491] | 44 | import { PaginatorModule } from 'primeng/paginator';
|
---|
| 45 | import { CardModule } from 'primeng/card';
|
---|
[1ad8e64] | 46 | import { RegisterComponent } from './homepage/register/register.component';
|
---|
| 47 | import { LoginComponent } from './homepage/login/login.component';
|
---|
[84d0fbb] | 48 | import { AuthGuard } from './auth/auth.guard';
|
---|
| 49 | import { AuthInterceptor } from './auth/auth.interceptor';
|
---|
[b738035] | 50 | import { ExploreComponent } from './explore/explore.component';
|
---|
| 51 | import {AutoCompleteModule} from 'primeng/autocomplete';
|
---|
| 52 | import { ExploreResultComponent } from './explore/explore-result/explore-result.component';
|
---|
| 53 | import {RatingModule} from 'primeng/rating';
|
---|
| 54 | import { CustomValidators } from './providers/CustomValidators';
|
---|
[bdd6491] | 55 |
|
---|
[6a3a178] | 56 | @NgModule({
|
---|
| 57 | declarations: [
|
---|
| 58 | AppComponent,
|
---|
| 59 | PlannerComponent,
|
---|
[fa375fe] | 60 | LocationComponent,
|
---|
| 61 | CreateInitialPlannerComponent,
|
---|
[6a80231] | 62 | LocationsFormComponent,
|
---|
| 63 | EditPlannerComponent,
|
---|
[59329aa] | 64 | AddLocationToPlannerPanelComponent,
|
---|
| 65 | HomepageComponent,
|
---|
[1ad8e64] | 66 | LocationDetailsComponent,
|
---|
| 67 | RegisterComponent,
|
---|
[b738035] | 68 | LoginComponent,
|
---|
| 69 | ExploreComponent,
|
---|
| 70 | ExploreResultComponent
|
---|
[e29cc2e] | 71 | ],
|
---|
[6a3a178] | 72 | imports: [
|
---|
| 73 | BrowserModule,
|
---|
| 74 | AppRoutingModule,
|
---|
| 75 | FormsModule,
|
---|
| 76 | HttpClientModule,
|
---|
| 77 | BrowserAnimationsModule,
|
---|
| 78 | MatBadgeModule,
|
---|
| 79 | MatIconModule,
|
---|
| 80 | MatInputModule,
|
---|
| 81 | MatChipsModule,
|
---|
| 82 | MatTabsModule,
|
---|
| 83 | MatDialogModule,
|
---|
| 84 | MatDividerModule,
|
---|
| 85 | MatCardModule,
|
---|
| 86 | MatButtonModule,
|
---|
[fa375fe] | 87 | MatGridListModule,
|
---|
| 88 | MatFormFieldModule,
|
---|
| 89 | MatAutocompleteModule,
|
---|
| 90 | HttpClientModule,
|
---|
| 91 | ReactiveFormsModule,
|
---|
[59329aa] | 92 | MatSelectModule,
|
---|
| 93 | AccordionModule,
|
---|
| 94 | CarouselModule,
|
---|
| 95 | ButtonModule,
|
---|
| 96 | ToastModule,
|
---|
| 97 | TabViewModule,
|
---|
[e29cc2e] | 98 | GalleriaModule,
|
---|
| 99 | DynamicDialogModule,
|
---|
| 100 | MatIconModule,
|
---|
| 101 | SharedModule,
|
---|
| 102 | MatDialogModule,
|
---|
| 103 | TableModule,
|
---|
| 104 | MessagesModule,
|
---|
| 105 | MessageModule,
|
---|
| 106 | InputTextModule,
|
---|
| 107 | RippleModule,
|
---|
| 108 | FormsModule,
|
---|
| 109 | PaginatorModule,
|
---|
[b738035] | 110 | CardModule,
|
---|
| 111 | AutoCompleteModule,
|
---|
| 112 | RatingModule
|
---|
[6a3a178] | 113 | ],
|
---|
[e29cc2e] | 114 |
|
---|
| 115 |
|
---|
[6a3a178] | 116 | providers: [
|
---|
| 117 | CategoryService,
|
---|
[e29cc2e] | 118 | PlannerService,
|
---|
| 119 | {
|
---|
[bdd6491] | 120 | provide: MatDialogRef,
|
---|
| 121 | useValue: {},
|
---|
| 122 |
|
---|
[84d0fbb] | 123 | },
|
---|
| 124 | {
|
---|
| 125 | provide: HTTP_INTERCEPTORS,
|
---|
| 126 | useClass: AuthInterceptor,
|
---|
| 127 | multi: true
|
---|
[e29cc2e] | 128 | },
|
---|
| 129 | DialogService,
|
---|
| 130 | MessageService,
|
---|
[84d0fbb] | 131 | ConfirmationService,
|
---|
| 132 | AuthGuard
|
---|
[6a3a178] | 133 | ],
|
---|
[bdd6491] | 134 |
|
---|
[e29cc2e] | 135 | entryComponents: [
|
---|
| 136 | AddLocationToPlannerPanelComponent
|
---|
| 137 | ],
|
---|
| 138 | bootstrap: [AppComponent],
|
---|
| 139 | schemas: [NO_ERRORS_SCHEMA],
|
---|
| 140 |
|
---|
[6a3a178] | 141 | })
|
---|
| 142 | export class AppModule { }
|
---|