|
@ -15,7 +15,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; |
|
|
import { MaterialCssVarsModule } from 'angular-material-css-vars'; |
|
|
import { MaterialCssVarsModule } from 'angular-material-css-vars'; |
|
|
import { MarkdownModule } from 'ngx-markdown'; |
|
|
import { MarkdownModule } from 'ngx-markdown'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import { NgxStripeModule } from 'ngx-stripe'; |
|
|
import { NgxStripeModule, STRIPE_PUBLISHABLE_KEY } from 'ngx-stripe'; |
|
|
|
|
|
|
|
|
import { environment } from '../environments/environment'; |
|
|
import { environment } from '../environments/environment'; |
|
|
import { CustomDateAdapter } from './adapter/custom-date-adapter'; |
|
|
import { CustomDateAdapter } from './adapter/custom-date-adapter'; |
|
@ -27,6 +27,10 @@ import { authInterceptorProviders } from './core/auth.interceptor'; |
|
|
import { httpResponseInterceptorProviders } from './core/http-response.interceptor'; |
|
|
import { httpResponseInterceptorProviders } from './core/http-response.interceptor'; |
|
|
import { LanguageService } from './core/language.service'; |
|
|
import { LanguageService } from './core/language.service'; |
|
|
|
|
|
|
|
|
|
|
|
export function NgxStripeFactory(): string { |
|
|
|
|
|
return environment.stripePublicKey; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@NgModule({ |
|
|
@NgModule({ |
|
|
declarations: [AppComponent], |
|
|
declarations: [AppComponent], |
|
|
imports: [ |
|
|
imports: [ |
|
@ -57,7 +61,11 @@ import { LanguageService } from './core/language.service'; |
|
|
useClass: CustomDateAdapter, |
|
|
useClass: CustomDateAdapter, |
|
|
deps: [LanguageService, MAT_DATE_LOCALE, Platform] |
|
|
deps: [LanguageService, MAT_DATE_LOCALE, Platform] |
|
|
}, |
|
|
}, |
|
|
{ provide: MAT_DATE_FORMATS, useValue: DateFormats } |
|
|
{ provide: MAT_DATE_FORMATS, useValue: DateFormats }, |
|
|
|
|
|
{ |
|
|
|
|
|
provide: STRIPE_PUBLISHABLE_KEY, |
|
|
|
|
|
useFactory: NgxStripeFactory |
|
|
|
|
|
} |
|
|
], |
|
|
], |
|
|
bootstrap: [AppComponent] |
|
|
bootstrap: [AppComponent] |
|
|
}) |
|
|
}) |
|
|