X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2Fapp.module.ts;h=3cec6d7392ef459b4ccb50d66946c2ffc2120843;hb=05ded92ed16bc83a33e71ecccf0f3ee9751fd7b0;hp=3f874856d280ef0a0e66e0931305252100c2e766;hpb=26300126f99a4a2b8dd1ae501da4a7dcb2e514c7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 3f874856d..3cec6d739 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts @@ -1,7 +1,9 @@ import 'focus-visible' +import { environment } from 'src/environments/environment' import { APP_BASE_HREF, registerLocaleData } from '@angular/common' import { NgModule } from '@angular/core' import { BrowserModule } from '@angular/platform-browser' +import { ServiceWorkerModule } from '@angular/service-worker' import { ServerService } from '@app/core' import localeOc from '@app/helpers/locales/oc' import { MetaLoader, MetaModule, MetaStaticLoader, PageTitlePositioning } from '@ngx-meta/core' @@ -11,7 +13,7 @@ import { CoreModule } from './core' import { EmptyComponent } from './empty.component' import { HeaderComponent, SearchTypeaheadComponent, SuggestionComponent } from './header' import { HighlightPipe } from './header/highlight.pipe' -import { AvatarNotificationComponent, LanguageChooserComponent, MenuComponent } from './menu' +import { LanguageChooserComponent, MenuComponent, NotificationComponent } from './menu' import { ConfirmComponent } from './modal/confirm.component' import { CustomModalComponent } from './modal/custom-modal.component' import { InstanceConfigWarningModalComponent } from './modal/instance-config-warning-modal.component' @@ -22,6 +24,7 @@ import { SharedGlobalIconModule } from './shared/shared-icons' import { SharedInstanceModule } from './shared/shared-instance' import { SharedMainModule } from './shared/shared-main' import { SharedUserInterfaceSettingsModule } from './shared/shared-user-settings' +import { SharedActorImageModule } from './shared/shared-actor-image/shared-actor-image.module' registerLocaleData(localeOc, 'oc') @@ -35,7 +38,7 @@ registerLocaleData(localeOc, 'oc') MenuComponent, LanguageChooserComponent, QuickSettingsModalComponent, - AvatarNotificationComponent, + NotificationComponent, HeaderComponent, SearchTypeaheadComponent, SuggestionComponent, @@ -49,6 +52,7 @@ registerLocaleData(localeOc, 'oc') imports: [ BrowserModule, + ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }), CoreModule, SharedMainModule, @@ -56,6 +60,7 @@ registerLocaleData(localeOc, 'oc') SharedUserInterfaceSettingsModule, SharedGlobalIconModule, SharedInstanceModule, + SharedActorImageModule, MetaModule.forRoot({ provide: MetaLoader,