mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 04:03:29 +00:00
simpler bit-desktop AppComponent hierarchy
This commit is contained in:
@@ -28,6 +28,7 @@ import { HeaderComponent } from "./layout/header.component";
|
||||
import { NavComponent } from "./layout/nav.component";
|
||||
import { SearchComponent } from "./layout/search/search.component";
|
||||
import { SharedModule } from "./shared/shared.module";
|
||||
import { ToastContainerComponent } from "libs/components/src/toast/toast-container.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@@ -53,6 +54,7 @@ import { SharedModule } from "./shared/shared.module";
|
||||
PremiumComponent,
|
||||
SearchComponent,
|
||||
],
|
||||
exports: [HeaderComponent, ToastContainerComponent],
|
||||
providers: [
|
||||
SshAgentService,
|
||||
{
|
||||
|
||||
@@ -3,44 +3,18 @@ import "zone.js";
|
||||
// Register the locales for the application
|
||||
import "@bitwarden/desktop/platform/app/locales";
|
||||
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { NgModule } from "@angular/core";
|
||||
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
|
||||
|
||||
import { CalloutModule, DialogModule } from "@bitwarden/components";
|
||||
import { AppRoutingModule as OssAppRoutingModule } from "@bitwarden/desktop/app/app-routing.module";
|
||||
import { AppRoutingModule as OssRoutingModule } from "@bitwarden/desktop/app/app-routing.module";
|
||||
import { AppModule as OssModule } from "@bitwarden/desktop/app/app.module";
|
||||
import { UserVerificationComponent } from "@bitwarden/desktop/app/components/user-verification.component";
|
||||
import { NavComponent } from "@bitwarden/desktop/app/layout/nav.component";
|
||||
import { SharedModule } from "@bitwarden/desktop/app/shared/shared.module";
|
||||
import { DeleteAccountComponent } from "@bitwarden/desktop/auth/delete-account.component";
|
||||
import { LoginModule } from "@bitwarden/desktop/auth/login/login.module";
|
||||
import { SshAgentService } from "@bitwarden/desktop/autofill/services/ssh-agent.service";
|
||||
import { VaultFilterModule } from "@bitwarden/desktop/vault/app/vault/vault-filter/vault-filter.module";
|
||||
import { VaultV2Component } from "@bitwarden/desktop/vault/app/vault/vault-v2.component";
|
||||
import { AssignCollectionsComponent } from "@bitwarden/vault";
|
||||
|
||||
import { AppRoutingModule } from "./app-routing.module";
|
||||
import { AppComponent } from "./app.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
BrowserAnimationsModule,
|
||||
SharedModule,
|
||||
OssModule,
|
||||
OssAppRoutingModule,
|
||||
AppRoutingModule,
|
||||
VaultFilterModule,
|
||||
LoginModule,
|
||||
DialogModule,
|
||||
CalloutModule,
|
||||
DeleteAccountComponent,
|
||||
UserVerificationComponent,
|
||||
NavComponent,
|
||||
AssignCollectionsComponent,
|
||||
VaultV2Component,
|
||||
],
|
||||
imports: [CommonModule, OssModule, OssRoutingModule, AppRoutingModule],
|
||||
declarations: [AppComponent],
|
||||
providers: [SshAgentService],
|
||||
bootstrap: [AppComponent],
|
||||
})
|
||||
export class AppModule {}
|
||||
|
||||
Reference in New Issue
Block a user