1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

Use SharedModule and LayoutsModule in ProvidersModule

This commit is contained in:
Thomas Rittson
2022-05-11 13:08:27 +10:00
parent fda00fce4b
commit bb8165555b
3 changed files with 18 additions and 15 deletions

View File

@@ -1,11 +1,9 @@
import { CommonModule } from "@angular/common";
import { ComponentFactoryResolver, NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { JslibModule } from "jslib-angular/jslib.module";
import { ModalService } from "jslib-angular/services/modal.service";
import { OssModule } from "src/app/oss.module";
import { LayoutsModule } from "src/app/layouts/layouts.module";
import { SharedModule } from "src/app/modules/shared.module";
import { AddOrganizationComponent } from "./clients/add-organization.component";
import { ClientsComponent } from "./clients/clients.component";
@@ -28,7 +26,7 @@ import { SetupProviderComponent } from "./setup/setup-provider.component";
import { SetupComponent } from "./setup/setup.component";
@NgModule({
imports: [CommonModule, FormsModule, OssModule, JslibModule, ProvidersRoutingModule],
imports: [SharedModule, LayoutsModule, ProvidersRoutingModule],
declarations: [
AcceptProviderComponent,
AccountComponent,

View File

@@ -0,0 +1,13 @@
import { NgModule } from "@angular/core";
import { FooterComponent } from "../layouts/footer.component";
import { FrontendLayoutComponent } from "../layouts/frontend-layout.component";
import { NavbarComponent } from "../layouts/navbar.component";
import { SharedModule } from "../modules/shared.module";
@NgModule({
imports: [SharedModule],
declarations: [NavbarComponent, FooterComponent, FrontendLayoutComponent],
exports: [NavbarComponent, FooterComponent],
})
export class LayoutsModule {}

View File

@@ -22,9 +22,7 @@ import { VerifyRecoverDeleteComponent } from "../accounts/verify-recover-delete.
import { NestedCheckboxComponent } from "../components/nested-checkbox.component";
import { PasswordRepromptComponent } from "../components/password-reprompt.component";
import { PremiumBadgeComponent } from "../components/premium-badge.component";
import { FooterComponent } from "../layouts/footer.component";
import { FrontendLayoutComponent } from "../layouts/frontend-layout.component";
import { NavbarComponent } from "../layouts/navbar.component";
import { LayoutsModule } from "../layouts/layouts.module";
import { UserLayoutComponent } from "../layouts/user-layout.component";
import { ProvidersComponent } from "../providers/providers.component";
import { BreachReportComponent } from "../reports/breach-report.component";
@@ -113,7 +111,7 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
// Please do not add to this list of declarations - we should refactor these into modules when doing so makes sense until there are none left.
// If you are building new functionality, please create or extend a feature module instead.
@NgModule({
imports: [SharedModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
imports: [SharedModule, VaultFilterModule, OrganizationBadgeModule, PipesModule, LayoutsModule],
declarations: [
PremiumBadgeComponent,
AcceptEmergencyComponent,
@@ -154,15 +152,12 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
ExportComponent,
ExposedPasswordsReportComponent,
FolderAddEditComponent,
FooterComponent,
FrontendLayoutComponent,
HintComponent,
ImportComponent,
InactiveTwoFactorReportComponent,
LinkSsoComponent,
LockComponent,
LoginComponent,
NavbarComponent,
NestedCheckboxComponent,
GeneratorComponent,
PasswordGeneratorHistoryComponent,
@@ -260,15 +255,12 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
ExportComponent,
ExposedPasswordsReportComponent,
FolderAddEditComponent,
FooterComponent,
FrontendLayoutComponent,
HintComponent,
ImportComponent,
InactiveTwoFactorReportComponent,
LinkSsoComponent,
LockComponent,
LoginComponent,
NavbarComponent,
NestedCheckboxComponent,
GeneratorComponent,
PasswordGeneratorHistoryComponent,