mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 11:43:46 +00:00
[PM-4198][TechDebt] Split up import and export modules (#6483)
* 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>
This commit is contained in:
committed by
GitHub
parent
ad867150a0
commit
3e720c05f2
17
apps/web/src/app/tools/import/import-routing.module.ts
Normal file
17
apps/web/src/app/tools/import/import-routing.module.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from "@angular/core";
|
||||
import { RouterModule, Routes } from "@angular/router";
|
||||
|
||||
import { ImportComponent } from "./import.component";
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: "",
|
||||
component: ImportComponent,
|
||||
data: { titleId: "importData" },
|
||||
},
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
})
|
||||
export class ImportRoutingModule {}
|
||||
@@ -20,15 +20,13 @@ import {
|
||||
ImportSuccessDialogComponent,
|
||||
FilePasswordPromptComponent,
|
||||
} from "./dialog";
|
||||
import { ExportComponent } from "./export.component";
|
||||
import { ImportExportRoutingModule } from "./import-export-routing.module";
|
||||
import { ImportRoutingModule } from "./import-routing.module";
|
||||
import { ImportComponent } from "./import.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [SharedModule, LooseComponentsModule, ImportExportRoutingModule],
|
||||
imports: [SharedModule, LooseComponentsModule, ImportRoutingModule],
|
||||
declarations: [
|
||||
ImportComponent,
|
||||
ExportComponent,
|
||||
FilePasswordPromptComponent,
|
||||
ImportErrorDialogComponent,
|
||||
ImportSuccessDialogComponent,
|
||||
@@ -53,4 +51,4 @@ import { ImportComponent } from "./import.component";
|
||||
},
|
||||
],
|
||||
})
|
||||
export class ImportExportModule {}
|
||||
export class ImportModule {}
|
||||
@@ -2,16 +2,10 @@ import { NgModule } from "@angular/core";
|
||||
import { RouterModule, Routes } from "@angular/router";
|
||||
|
||||
import { ExportComponent } from "./export.component";
|
||||
import { ImportComponent } from "./import.component";
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: "import",
|
||||
component: ImportComponent,
|
||||
data: { titleId: "importData" },
|
||||
},
|
||||
{
|
||||
path: "export",
|
||||
path: "",
|
||||
component: ExportComponent,
|
||||
data: { titleId: "exportVault" },
|
||||
},
|
||||
@@ -20,4 +14,4 @@ const routes: Routes = [
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
})
|
||||
export class ImportExportRoutingModule {}
|
||||
export class ExportRoutingModule {}
|
||||
12
apps/web/src/app/tools/vault-export/export.module.ts
Normal file
12
apps/web/src/app/tools/vault-export/export.module.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import { LooseComponentsModule, SharedModule } from "../../shared";
|
||||
|
||||
import { ExportRoutingModule } from "./export-routing.module";
|
||||
import { ExportComponent } from "./export.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [SharedModule, LooseComponentsModule, ExportRoutingModule],
|
||||
declarations: [ExportComponent],
|
||||
})
|
||||
export class ExportModule {}
|
||||
Reference in New Issue
Block a user