mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
[SM-451] Remove NavigationModule from SharedModule (#4510)
* Remove NavigationModule from SharedModule * Update apps/web/src/app/shared/shared.module.ts
This commit is contained in:
@@ -13,20 +13,19 @@ import {
|
|||||||
BadgeListModule,
|
BadgeListModule,
|
||||||
BadgeModule,
|
BadgeModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
IconButtonModule,
|
|
||||||
CalloutModule,
|
CalloutModule,
|
||||||
CheckboxModule,
|
CheckboxModule,
|
||||||
|
ColorPasswordModule,
|
||||||
DialogModule,
|
DialogModule,
|
||||||
FormFieldModule,
|
FormFieldModule,
|
||||||
|
IconButtonModule,
|
||||||
IconModule,
|
IconModule,
|
||||||
LinkModule,
|
LinkModule,
|
||||||
MenuModule,
|
MenuModule,
|
||||||
MultiSelectModule,
|
MultiSelectModule,
|
||||||
NavigationModule,
|
|
||||||
TableModule,
|
TableModule,
|
||||||
TabsModule,
|
TabsModule,
|
||||||
ToggleGroupModule,
|
ToggleGroupModule,
|
||||||
ColorPasswordModule,
|
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
// Register the locales for the application
|
// Register the locales for the application
|
||||||
@@ -50,14 +49,16 @@ import "./locales";
|
|||||||
ToastrModule,
|
ToastrModule,
|
||||||
JslibModule,
|
JslibModule,
|
||||||
|
|
||||||
// Component library
|
// Component library modules
|
||||||
|
// Only add components that are used almost everywhere in the application
|
||||||
AsyncActionsModule,
|
AsyncActionsModule,
|
||||||
AvatarModule,
|
AvatarModule,
|
||||||
BadgeModule,
|
|
||||||
BadgeListModule,
|
BadgeListModule,
|
||||||
|
BadgeModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
CalloutModule,
|
CalloutModule,
|
||||||
CheckboxModule,
|
CheckboxModule,
|
||||||
|
ColorPasswordModule,
|
||||||
DialogModule,
|
DialogModule,
|
||||||
FormFieldModule,
|
FormFieldModule,
|
||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
@@ -65,12 +66,9 @@ import "./locales";
|
|||||||
LinkModule,
|
LinkModule,
|
||||||
MenuModule,
|
MenuModule,
|
||||||
MultiSelectModule,
|
MultiSelectModule,
|
||||||
NavigationModule,
|
|
||||||
TableModule,
|
TableModule,
|
||||||
TabsModule,
|
TabsModule,
|
||||||
ToggleGroupModule,
|
ToggleGroupModule,
|
||||||
LinkModule,
|
|
||||||
ColorPasswordModule,
|
|
||||||
|
|
||||||
// Web specific
|
// Web specific
|
||||||
],
|
],
|
||||||
@@ -87,11 +85,12 @@ import "./locales";
|
|||||||
// Component library
|
// Component library
|
||||||
AsyncActionsModule,
|
AsyncActionsModule,
|
||||||
AvatarModule,
|
AvatarModule,
|
||||||
BadgeModule,
|
|
||||||
BadgeListModule,
|
BadgeListModule,
|
||||||
|
BadgeModule,
|
||||||
ButtonModule,
|
ButtonModule,
|
||||||
CalloutModule,
|
CalloutModule,
|
||||||
CheckboxModule,
|
CheckboxModule,
|
||||||
|
ColorPasswordModule,
|
||||||
DialogModule,
|
DialogModule,
|
||||||
FormFieldModule,
|
FormFieldModule,
|
||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
@@ -99,12 +98,9 @@ import "./locales";
|
|||||||
LinkModule,
|
LinkModule,
|
||||||
MenuModule,
|
MenuModule,
|
||||||
MultiSelectModule,
|
MultiSelectModule,
|
||||||
NavigationModule,
|
|
||||||
TableModule,
|
TableModule,
|
||||||
TabsModule,
|
TabsModule,
|
||||||
ToggleGroupModule,
|
ToggleGroupModule,
|
||||||
LinkModule,
|
|
||||||
ColorPasswordModule,
|
|
||||||
|
|
||||||
// Web specific
|
// Web specific
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import { NgModule } from "@angular/core";
|
||||||
|
|
||||||
|
import { NavigationModule } from "@bitwarden/components";
|
||||||
|
import { SharedModule } from "@bitwarden/web-vault/app/shared/shared.module";
|
||||||
|
|
||||||
|
import { LayoutComponent } from "./layout.component";
|
||||||
|
import { NavigationComponent } from "./navigation.component";
|
||||||
|
import { OrgSwitcherComponent } from "./org-switcher.component";
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [SharedModule, NavigationModule],
|
||||||
|
declarations: [LayoutComponent, NavigationComponent, OrgSwitcherComponent],
|
||||||
|
})
|
||||||
|
export class LayoutModule {}
|
||||||
@@ -2,16 +2,13 @@ import { NgModule } from "@angular/core";
|
|||||||
|
|
||||||
import { SharedModule } from "@bitwarden/web-vault/app/shared";
|
import { SharedModule } from "@bitwarden/web-vault/app/shared";
|
||||||
|
|
||||||
import { LayoutComponent } from "./layout/layout.component";
|
import { LayoutModule } from "./layout/layout.module";
|
||||||
import { NavigationComponent } from "./layout/navigation.component";
|
|
||||||
import { OrgSwitcherComponent } from "./layout/org-switcher.component";
|
|
||||||
import { SecretsManagerSharedModule } from "./shared/sm-shared.module";
|
import { SecretsManagerSharedModule } from "./shared/sm-shared.module";
|
||||||
import { SecretsManagerRoutingModule } from "./sm-routing.module";
|
import { SecretsManagerRoutingModule } from "./sm-routing.module";
|
||||||
import { SMGuard } from "./sm.guard";
|
import { SMGuard } from "./sm.guard";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [SharedModule, SecretsManagerSharedModule, SecretsManagerRoutingModule],
|
imports: [SharedModule, SecretsManagerSharedModule, SecretsManagerRoutingModule, LayoutModule],
|
||||||
declarations: [LayoutComponent, NavigationComponent, OrgSwitcherComponent],
|
|
||||||
providers: [SMGuard],
|
providers: [SMGuard],
|
||||||
})
|
})
|
||||||
export class SecretsManagerModule {}
|
export class SecretsManagerModule {}
|
||||||
|
|||||||
Reference in New Issue
Block a user