mirror of
https://github.com/bitwarden/browser
synced 2026-02-20 19:34:03 +00:00
* Split up import/export into separate modules * Fix routing and apply PR feedback * Renamed OrganizationExport exports to OrganizationVaultExport * Renamed filenames according to export rename --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
import { NgModule } from "@angular/core";
|
|
|
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
|
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
|
import { CollectionService } from "@bitwarden/common/vault/abstractions/collection.service";
|
|
import { FolderService } from "@bitwarden/common/vault/abstractions/folder/folder.service.abstraction";
|
|
import {
|
|
ImportService,
|
|
ImportServiceAbstraction,
|
|
ImportApiService,
|
|
ImportApiServiceAbstraction,
|
|
} from "@bitwarden/importer";
|
|
|
|
import { LooseComponentsModule, SharedModule } from "../../shared";
|
|
|
|
import {
|
|
ImportErrorDialogComponent,
|
|
ImportSuccessDialogComponent,
|
|
FilePasswordPromptComponent,
|
|
} from "./dialog";
|
|
import { ImportRoutingModule } from "./import-routing.module";
|
|
import { ImportComponent } from "./import.component";
|
|
|
|
@NgModule({
|
|
imports: [SharedModule, LooseComponentsModule, ImportRoutingModule],
|
|
declarations: [
|
|
ImportComponent,
|
|
FilePasswordPromptComponent,
|
|
ImportErrorDialogComponent,
|
|
ImportSuccessDialogComponent,
|
|
],
|
|
providers: [
|
|
{
|
|
provide: ImportApiServiceAbstraction,
|
|
useClass: ImportApiService,
|
|
deps: [ApiService],
|
|
},
|
|
{
|
|
provide: ImportServiceAbstraction,
|
|
useClass: ImportService,
|
|
deps: [
|
|
CipherService,
|
|
FolderService,
|
|
ImportApiServiceAbstraction,
|
|
I18nService,
|
|
CollectionService,
|
|
CryptoService,
|
|
],
|
|
},
|
|
],
|
|
})
|
|
export class ImportModule {}
|