-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[email protected]>
- Loading branch information
Showing
23 changed files
with
103 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...src/app/admin-console/organizations/tools/vault-export/org-vault-export-routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { RouterModule, Routes } from "@angular/router"; | ||
|
||
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization"; | ||
|
||
import { OrganizationPermissionsGuard } from "../../guards/org-permissions.guard"; | ||
|
||
import { OrganizationVaultExportComponent } from "./org-vault-export.component"; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: "", | ||
component: OrganizationVaultExportComponent, | ||
canActivate: [OrganizationPermissionsGuard], | ||
data: { | ||
titleId: "exportVault", | ||
organizationPermissions: (org: Organization) => org.canAccessImportExport, | ||
}, | ||
}, | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
}) | ||
export class OrganizationVaultExportRoutingModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
apps/web/src/app/admin-console/organizations/tools/vault-export/org-vault-export.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { NgModule } from "@angular/core"; | ||
|
||
import { LooseComponentsModule, SharedModule } from "../../../../shared"; | ||
|
||
import { OrganizationVaultExportRoutingModule } from "./org-vault-export-routing.module"; | ||
import { OrganizationVaultExportComponent } from "./org-vault-export.component"; | ||
|
||
@NgModule({ | ||
imports: [SharedModule, LooseComponentsModule, OrganizationVaultExportRoutingModule], | ||
declarations: [OrganizationVaultExportComponent], | ||
}) | ||
export class OrganizationVaultExportModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 {} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 {} |