mirror of
https://github.com/bitwarden/web
synced 2026-01-17 16:03:17 +00:00
Move org vault into organization-vault module
This commit is contained in:
@@ -20,7 +20,6 @@ import { UpdateTempPasswordComponent } from "../accounts/update-temp-password.co
|
||||
import { VerifyEmailTokenComponent } from "../accounts/verify-email-token.component";
|
||||
import { VerifyRecoverDeleteComponent } from "../accounts/verify-recover-delete.component";
|
||||
import { NestedCheckboxComponent } from "../components/nested-checkbox.component";
|
||||
import { OrganizationSwitcherComponent } from "../components/organization-switcher.component";
|
||||
import { PasswordRepromptComponent } from "../components/password-reprompt.component";
|
||||
import { PremiumBadgeComponent } from "../components/premium-badge.component";
|
||||
import { FooterComponent } from "../layouts/footer.component";
|
||||
@@ -165,7 +164,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
||||
LoginComponent,
|
||||
NavbarComponent,
|
||||
NestedCheckboxComponent,
|
||||
OrganizationSwitcherComponent,
|
||||
GeneratorComponent,
|
||||
PasswordGeneratorHistoryComponent,
|
||||
PasswordRepromptComponent,
|
||||
@@ -272,7 +270,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
|
||||
LoginComponent,
|
||||
NavbarComponent,
|
||||
NestedCheckboxComponent,
|
||||
OrganizationSwitcherComponent,
|
||||
GeneratorComponent,
|
||||
PasswordGeneratorHistoryComponent,
|
||||
PasswordRepromptComponent,
|
||||
|
||||
@@ -22,11 +22,11 @@ import { Organization } from "jslib-common/models/domain/organization";
|
||||
import { CipherCreateRequest } from "jslib-common/models/request/cipherCreateRequest";
|
||||
import { CipherRequest } from "jslib-common/models/request/cipherRequest";
|
||||
|
||||
import { AddEditComponent as BaseAddEditComponent } from "../../vault/add-edit.component";
|
||||
import { AddEditComponent as BaseAddEditComponent } from "../../../../vault/add-edit.component";
|
||||
|
||||
@Component({
|
||||
selector: "app-org-vault-add-edit",
|
||||
templateUrl: "../../vault/add-edit.component.html",
|
||||
templateUrl: "../../../../vault/add-edit.component.html",
|
||||
})
|
||||
export class AddEditComponent extends BaseAddEditComponent {
|
||||
organization: Organization;
|
||||
@@ -12,11 +12,11 @@ import { Cipher } from "jslib-common/models/domain/cipher";
|
||||
import { Organization } from "jslib-common/models/domain/organization";
|
||||
import { AttachmentView } from "jslib-common/models/view/attachmentView";
|
||||
|
||||
import { AttachmentsComponent as BaseAttachmentsComponent } from "../../vault/attachments.component";
|
||||
import { AttachmentsComponent as BaseAttachmentsComponent } from "../../../../vault/attachments.component";
|
||||
|
||||
@Component({
|
||||
selector: "app-org-vault-attachments",
|
||||
templateUrl: "../../vault/attachments.component.html",
|
||||
templateUrl: "../../../../vault/attachments.component.html",
|
||||
})
|
||||
export class AttachmentsComponent extends BaseAttachmentsComponent {
|
||||
viewOnly = false;
|
||||
@@ -15,11 +15,11 @@ import { TotpService } from "jslib-common/abstractions/totp.service";
|
||||
import { Organization } from "jslib-common/models/domain/organization";
|
||||
import { CipherView } from "jslib-common/models/view/cipherView";
|
||||
|
||||
import { CiphersComponent as BaseCiphersComponent } from "../../vault/ciphers.component";
|
||||
import { CiphersComponent as BaseCiphersComponent } from "../../../../vault/ciphers.component";
|
||||
|
||||
@Component({
|
||||
selector: "app-org-vault-ciphers",
|
||||
templateUrl: "../../vault/ciphers.component.html",
|
||||
templateUrl: "../../../../vault/ciphers.component.html",
|
||||
})
|
||||
export class CiphersComponent extends BaseCiphersComponent {
|
||||
@Output() onEventsClicked = new EventEmitter<CipherView>();
|
||||
@@ -11,11 +11,11 @@ import { Cipher } from "jslib-common/models/domain/cipher";
|
||||
import { Organization } from "jslib-common/models/domain/organization";
|
||||
import { CipherCollectionsRequest } from "jslib-common/models/request/cipherCollectionsRequest";
|
||||
|
||||
import { CollectionsComponent as BaseCollectionsComponent } from "../../vault/collections.component";
|
||||
import { CollectionsComponent as BaseCollectionsComponent } from "../../../../vault/collections.component";
|
||||
|
||||
@Component({
|
||||
selector: "app-org-vault-collections",
|
||||
templateUrl: "../../vault/collections.component.html",
|
||||
templateUrl: "../../../../vault/collections.component.html",
|
||||
})
|
||||
export class CollectionsComponent extends BaseCollectionsComponent {
|
||||
organization: Organization;
|
||||
@@ -25,13 +25,14 @@ import { Organization } from "jslib-common/models/domain/organization";
|
||||
import { CipherView } from "jslib-common/models/view/cipherView";
|
||||
|
||||
import { EntityEventsComponent } from "../../../../organizations/manage/entity-events.component";
|
||||
import { AddEditComponent } from "../../../../organizations/vault/add-edit.component";
|
||||
import { AttachmentsComponent } from "../../../../organizations/vault/attachments.component";
|
||||
import { CiphersComponent } from "../../../../organizations/vault/ciphers.component";
|
||||
import { CollectionsComponent } from "../../../../organizations/vault/collections.component";
|
||||
import { VaultFilterComponent } from "../../../vault-filter/vault-filter.component";
|
||||
import { VaultService } from "../../vault.service";
|
||||
|
||||
import { AddEditComponent } from "./add-edit.component";
|
||||
import { AttachmentsComponent } from "./attachments.component";
|
||||
import { CiphersComponent } from "./ciphers.component";
|
||||
import { CollectionsComponent } from "./collections.component";
|
||||
|
||||
const BroadcasterSubscriptionId = "OrgVaultComponent";
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -2,12 +2,22 @@ import { NgModule } from "@angular/core";
|
||||
|
||||
import { VaultModule } from "../../vault.module";
|
||||
|
||||
import { AddEditComponent } from "./add-edit.component";
|
||||
import { AttachmentsComponent } from "./attachments.component";
|
||||
import { CiphersComponent } from "./ciphers.component";
|
||||
import { CollectionsComponent } from "./collections.component";
|
||||
import { OrganizationVaultRoutingModule } from "./organization-vault-routing.module";
|
||||
import { OrganizationVaultComponent } from "./organization-vault.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [VaultModule, OrganizationVaultRoutingModule],
|
||||
declarations: [OrganizationVaultComponent],
|
||||
declarations: [
|
||||
OrganizationVaultComponent,
|
||||
AddEditComponent,
|
||||
AttachmentsComponent,
|
||||
CiphersComponent,
|
||||
CollectionsComponent,
|
||||
],
|
||||
exports: [OrganizationVaultComponent],
|
||||
})
|
||||
export class OrganizationVaultModule {}
|
||||
|
||||
@@ -5,7 +5,7 @@ import { OrganizationService } from "jslib-common/abstractions/organization.serv
|
||||
import { Utils } from "jslib-common/misc/utils";
|
||||
import { Organization } from "jslib-common/models/domain/organization";
|
||||
|
||||
import { NavigationPermissionsService } from "../organizations/services/navigation-permissions.service";
|
||||
import { NavigationPermissionsService } from "../services/navigation-permissions.service";
|
||||
|
||||
@Component({
|
||||
selector: "app-organization-switcher",
|
||||
@@ -7,6 +7,7 @@ import { OrganizationBadgeModule } from "../modules/vault/modules/organization-b
|
||||
import { RequireSsoPolicyComponent } from "../organizations/policies/require-sso.component";
|
||||
|
||||
import { OrganizationLayoutComponent } from "./layouts/organization-layout.component";
|
||||
import { OrganizationSwitcherComponent } from "./layouts/organization-switcher.component";
|
||||
import { BulkConfirmComponent } from "./manage/bulk/bulk-confirm.component";
|
||||
import { BulkRemoveComponent } from "./manage/bulk/bulk-remove.component";
|
||||
import { BulkStatusComponent } from "./manage/bulk/bulk-status.component";
|
||||
@@ -55,10 +56,6 @@ import { ReusedPasswordsReportComponent } from "./tools/reused-passwords-report.
|
||||
import { ToolsComponent } from "./tools/tools.component";
|
||||
import { UnsecuredWebsitesReportComponent } from "./tools/unsecured-websites-report.component";
|
||||
import { WeakPasswordsReportComponent } from "./tools/weak-passwords-report.component";
|
||||
import { AddEditComponent } from "./vault/add-edit.component";
|
||||
import { AttachmentsComponent } from "./vault/attachments.component";
|
||||
import { CiphersComponent } from "./vault/ciphers.component";
|
||||
import { CollectionsComponent } from "./vault/collections.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@@ -70,17 +67,13 @@ import { CollectionsComponent } from "./vault/collections.component";
|
||||
],
|
||||
declarations: [
|
||||
AcceptFamilySponsorshipComponent,
|
||||
AddEditComponent,
|
||||
AdjustSubscription,
|
||||
AttachmentsComponent,
|
||||
BillingSyncApiKeyComponent,
|
||||
BulkConfirmComponent,
|
||||
BulkRemoveComponent,
|
||||
BulkStatusComponent,
|
||||
ChangePlanComponent,
|
||||
CiphersComponent,
|
||||
CollectionAddEditComponent,
|
||||
CollectionsComponent,
|
||||
DeleteOrganizationComponent,
|
||||
DisableSendPolicyComponent,
|
||||
DownloadLicenseComponent,
|
||||
@@ -122,18 +115,15 @@ import { CollectionsComponent } from "./vault/collections.component";
|
||||
UserConfirmComponent,
|
||||
UserGroupsComponent,
|
||||
WeakPasswordsReportComponent,
|
||||
OrganizationSwitcherComponent,
|
||||
],
|
||||
exports: [
|
||||
AddEditComponent,
|
||||
AdjustSubscription,
|
||||
AttachmentsComponent,
|
||||
BulkConfirmComponent,
|
||||
BulkRemoveComponent,
|
||||
BulkStatusComponent,
|
||||
ChangePlanComponent,
|
||||
CiphersComponent,
|
||||
CollectionAddEditComponent,
|
||||
CollectionsComponent,
|
||||
DeleteOrganizationComponent,
|
||||
DisableSendPolicyComponent,
|
||||
DownloadLicenseComponent,
|
||||
|
||||
@@ -8,7 +8,7 @@ import { CipherRepromptType } from "jslib-common/enums/cipherRepromptType";
|
||||
import { Organization } from "jslib-common/models/domain/organization";
|
||||
import { CipherView } from "jslib-common/models/view/cipherView";
|
||||
|
||||
import { AddEditComponent as OrgAddEditComponent } from "../organizations/vault/add-edit.component";
|
||||
import { AddEditComponent as OrgAddEditComponent } from "../modules/vault/modules/organization-vault/add-edit.component";
|
||||
import { AddEditComponent } from "../vault/add-edit.component";
|
||||
|
||||
@Directive()
|
||||
|
||||
Reference in New Issue
Block a user