diff --git a/bitwarden_license/src/app/providers/providers.module.ts b/bitwarden_license/src/app/providers/providers.module.ts index 7880d78c..764c1d11 100644 --- a/bitwarden_license/src/app/providers/providers.module.ts +++ b/bitwarden_license/src/app/providers/providers.module.ts @@ -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, diff --git a/src/app/layouts/layouts.module.ts b/src/app/layouts/layouts.module.ts new file mode 100644 index 00000000..9e8c1aa3 --- /dev/null +++ b/src/app/layouts/layouts.module.ts @@ -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 {} diff --git a/src/app/modules/loose-components.module.ts b/src/app/modules/loose-components.module.ts index 3a230736..62113d28 100644 --- a/src/app/modules/loose-components.module.ts +++ b/src/app/modules/loose-components.module.ts @@ -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,