mirror of
https://github.com/bitwarden/web
synced 2025-12-22 19:23:42 +00:00
Use SharedModule and LayoutsModule in ProvidersModule
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
import { CommonModule } from "@angular/common";
|
|
||||||
import { ComponentFactoryResolver, NgModule } from "@angular/core";
|
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 { 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 { AddOrganizationComponent } from "./clients/add-organization.component";
|
||||||
import { ClientsComponent } from "./clients/clients.component";
|
import { ClientsComponent } from "./clients/clients.component";
|
||||||
@@ -28,7 +26,7 @@ import { SetupProviderComponent } from "./setup/setup-provider.component";
|
|||||||
import { SetupComponent } from "./setup/setup.component";
|
import { SetupComponent } from "./setup/setup.component";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [CommonModule, FormsModule, OssModule, JslibModule, ProvidersRoutingModule],
|
imports: [SharedModule, LayoutsModule, ProvidersRoutingModule],
|
||||||
declarations: [
|
declarations: [
|
||||||
AcceptProviderComponent,
|
AcceptProviderComponent,
|
||||||
AccountComponent,
|
AccountComponent,
|
||||||
|
|||||||
13
src/app/layouts/layouts.module.ts
Normal file
13
src/app/layouts/layouts.module.ts
Normal 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 {}
|
||||||
@@ -22,9 +22,7 @@ import { VerifyRecoverDeleteComponent } from "../accounts/verify-recover-delete.
|
|||||||
import { NestedCheckboxComponent } from "../components/nested-checkbox.component";
|
import { NestedCheckboxComponent } from "../components/nested-checkbox.component";
|
||||||
import { PasswordRepromptComponent } from "../components/password-reprompt.component";
|
import { PasswordRepromptComponent } from "../components/password-reprompt.component";
|
||||||
import { PremiumBadgeComponent } from "../components/premium-badge.component";
|
import { PremiumBadgeComponent } from "../components/premium-badge.component";
|
||||||
import { FooterComponent } from "../layouts/footer.component";
|
import { LayoutsModule } from "../layouts/layouts.module";
|
||||||
import { FrontendLayoutComponent } from "../layouts/frontend-layout.component";
|
|
||||||
import { NavbarComponent } from "../layouts/navbar.component";
|
|
||||||
import { UserLayoutComponent } from "../layouts/user-layout.component";
|
import { UserLayoutComponent } from "../layouts/user-layout.component";
|
||||||
import { ProvidersComponent } from "../providers/providers.component";
|
import { ProvidersComponent } from "../providers/providers.component";
|
||||||
import { BreachReportComponent } from "../reports/breach-report.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.
|
// 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.
|
// If you are building new functionality, please create or extend a feature module instead.
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [SharedModule, VaultFilterModule, OrganizationBadgeModule, PipesModule],
|
imports: [SharedModule, VaultFilterModule, OrganizationBadgeModule, PipesModule, LayoutsModule],
|
||||||
declarations: [
|
declarations: [
|
||||||
PremiumBadgeComponent,
|
PremiumBadgeComponent,
|
||||||
AcceptEmergencyComponent,
|
AcceptEmergencyComponent,
|
||||||
@@ -154,15 +152,12 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
ExportComponent,
|
ExportComponent,
|
||||||
ExposedPasswordsReportComponent,
|
ExposedPasswordsReportComponent,
|
||||||
FolderAddEditComponent,
|
FolderAddEditComponent,
|
||||||
FooterComponent,
|
|
||||||
FrontendLayoutComponent,
|
|
||||||
HintComponent,
|
HintComponent,
|
||||||
ImportComponent,
|
ImportComponent,
|
||||||
InactiveTwoFactorReportComponent,
|
InactiveTwoFactorReportComponent,
|
||||||
LinkSsoComponent,
|
LinkSsoComponent,
|
||||||
LockComponent,
|
LockComponent,
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
NavbarComponent,
|
|
||||||
NestedCheckboxComponent,
|
NestedCheckboxComponent,
|
||||||
GeneratorComponent,
|
GeneratorComponent,
|
||||||
PasswordGeneratorHistoryComponent,
|
PasswordGeneratorHistoryComponent,
|
||||||
@@ -260,15 +255,12 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
|||||||
ExportComponent,
|
ExportComponent,
|
||||||
ExposedPasswordsReportComponent,
|
ExposedPasswordsReportComponent,
|
||||||
FolderAddEditComponent,
|
FolderAddEditComponent,
|
||||||
FooterComponent,
|
|
||||||
FrontendLayoutComponent,
|
|
||||||
HintComponent,
|
HintComponent,
|
||||||
ImportComponent,
|
ImportComponent,
|
||||||
InactiveTwoFactorReportComponent,
|
InactiveTwoFactorReportComponent,
|
||||||
LinkSsoComponent,
|
LinkSsoComponent,
|
||||||
LockComponent,
|
LockComponent,
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
NavbarComponent,
|
|
||||||
NestedCheckboxComponent,
|
NestedCheckboxComponent,
|
||||||
GeneratorComponent,
|
GeneratorComponent,
|
||||||
PasswordGeneratorHistoryComponent,
|
PasswordGeneratorHistoryComponent,
|
||||||
|
|||||||
Reference in New Issue
Block a user