1
0
mirror of https://github.com/bitwarden/web synced 2025-12-14 07:13:23 +00:00

Rearrange components

This commit is contained in:
Thomas Rittson
2022-05-11 11:18:39 +10:00
parent 9eef75a3d3
commit 0c4a1507e0
5 changed files with 25 additions and 170 deletions

View File

@@ -22,65 +22,11 @@ import { VerifyRecoverDeleteComponent } from "../accounts/verify-recover-delete.
import { NestedCheckboxComponent } from "../components/nested-checkbox.component"; import { NestedCheckboxComponent } from "../components/nested-checkbox.component";
import { OrganizationSwitcherComponent } from "../components/organization-switcher.component"; import { OrganizationSwitcherComponent } from "../components/organization-switcher.component";
import { PasswordRepromptComponent } from "../components/password-reprompt.component"; import { PasswordRepromptComponent } from "../components/password-reprompt.component";
import { PasswordStrengthComponent } from "../components/password-strength.component";
import { PremiumBadgeComponent } from "../components/premium-badge.component"; import { PremiumBadgeComponent } from "../components/premium-badge.component";
import { FooterComponent } from "../layouts/footer.component"; import { FooterComponent } from "../layouts/footer.component";
import { FrontendLayoutComponent } from "../layouts/frontend-layout.component"; import { FrontendLayoutComponent } from "../layouts/frontend-layout.component";
import { NavbarComponent } from "../layouts/navbar.component"; import { NavbarComponent } from "../layouts/navbar.component";
import { UserLayoutComponent } from "../layouts/user-layout.component"; import { UserLayoutComponent } from "../layouts/user-layout.component";
import { OrganizationLayoutComponent } from "../organizations/layouts/organization-layout.component";
import { BulkConfirmComponent as OrgBulkConfirmComponent } from "../organizations/manage/bulk/bulk-confirm.component";
import { BulkRemoveComponent as OrgBulkRemoveComponent } from "../organizations/manage/bulk/bulk-remove.component";
import { BulkStatusComponent as OrgBulkStatusComponent } from "../organizations/manage/bulk/bulk-status.component";
import { CollectionAddEditComponent as OrgCollectionAddEditComponent } from "../organizations/manage/collection-add-edit.component";
import { CollectionsComponent as OrgManageCollectionsComponent } from "../organizations/manage/collections.component";
import { EntityEventsComponent as OrgEntityEventsComponent } from "../organizations/manage/entity-events.component";
import { EntityUsersComponent as OrgEntityUsersComponent } from "../organizations/manage/entity-users.component";
import { EventsComponent as OrgEventsComponent } from "../organizations/manage/events.component";
import { GroupAddEditComponent as OrgGroupAddEditComponent } from "../organizations/manage/group-add-edit.component";
import { GroupsComponent as OrgGroupsComponent } from "../organizations/manage/groups.component";
import { ManageComponent as OrgManageComponent } from "../organizations/manage/manage.component";
import { PeopleComponent as OrgPeopleComponent } from "../organizations/manage/people.component";
import { PoliciesComponent as OrgPoliciesComponent } from "../organizations/manage/policies.component";
import { PolicyEditComponent as OrgPolicyEditComponent } from "../organizations/manage/policy-edit.component";
import { ResetPasswordComponent as OrgResetPasswordComponent } from "../organizations/manage/reset-password.component";
import { UserAddEditComponent as OrgUserAddEditComponent } from "../organizations/manage/user-add-edit.component";
import { UserConfirmComponent as OrgUserConfirmComponent } from "../organizations/manage/user-confirm.component";
import { UserGroupsComponent as OrgUserGroupsComponent } from "../organizations/manage/user-groups.component";
import { DisableSendPolicyComponent } from "../organizations/policies/disable-send.component";
import { MasterPasswordPolicyComponent } from "../organizations/policies/master-password.component";
import { PasswordGeneratorPolicyComponent } from "../organizations/policies/password-generator.component";
import { PersonalOwnershipPolicyComponent } from "../organizations/policies/personal-ownership.component";
import { RequireSsoPolicyComponent } from "../organizations/policies/require-sso.component";
import { ResetPasswordPolicyComponent } from "../organizations/policies/reset-password.component";
import { SendOptionsPolicyComponent } from "../organizations/policies/send-options.component";
import { SingleOrgPolicyComponent } from "../organizations/policies/single-org.component";
import { TwoFactorAuthenticationPolicyComponent } from "../organizations/policies/two-factor-authentication.component";
import { AccountComponent as OrgAccountComponent } from "../organizations/settings/account.component";
import { AdjustSubscription } from "../organizations/settings/adjust-subscription.component";
import { BillingSyncApiKeyComponent } from "../organizations/settings/billing-sync-api-key.component";
import { ChangePlanComponent } from "../organizations/settings/change-plan.component";
import { DeleteOrganizationComponent } from "../organizations/settings/delete-organization.component";
import { DownloadLicenseComponent } from "../organizations/settings/download-license.component";
import { ImageSubscriptionHiddenComponent as OrgSubscriptionHiddenComponent } from "../organizations/settings/image-subscription-hidden.component";
import { OrganizationBillingComponent } from "../organizations/settings/organization-billing.component";
import { OrganizationSubscriptionComponent } from "../organizations/settings/organization-subscription.component";
import { SettingsComponent as OrgSettingComponent } from "../organizations/settings/settings.component";
import { TwoFactorSetupComponent as OrgTwoFactorSetupComponent } from "../organizations/settings/two-factor-setup.component";
import { AcceptFamilySponsorshipComponent } from "../organizations/sponsorships/accept-family-sponsorship.component";
import { FamiliesForEnterpriseSetupComponent } from "../organizations/sponsorships/families-for-enterprise-setup.component";
import { ExportComponent as OrgExportComponent } from "../organizations/tools/export.component";
import { ExposedPasswordsReportComponent as OrgExposedPasswordsReportComponent } from "../organizations/tools/exposed-passwords-report.component";
import { ImportComponent as OrgImportComponent } from "../organizations/tools/import.component";
import { InactiveTwoFactorReportComponent as OrgInactiveTwoFactorReportComponent } from "../organizations/tools/inactive-two-factor-report.component";
import { ReusedPasswordsReportComponent as OrgReusedPasswordsReportComponent } from "../organizations/tools/reused-passwords-report.component";
import { ToolsComponent as OrgToolsComponent } from "../organizations/tools/tools.component";
import { UnsecuredWebsitesReportComponent as OrgUnsecuredWebsitesReportComponent } from "../organizations/tools/unsecured-websites-report.component";
import { WeakPasswordsReportComponent as OrgWeakPasswordsReportComponent } from "../organizations/tools/weak-passwords-report.component";
import { AddEditComponent as OrgAddEditComponent } from "../organizations/vault/add-edit.component";
import { AttachmentsComponent as OrgAttachmentsComponent } from "../organizations/vault/attachments.component";
import { CiphersComponent as OrgCiphersComponent } from "../organizations/vault/ciphers.component";
import { CollectionsComponent as OrgCollectionsComponent } from "../organizations/vault/collections.component";
import { ProvidersComponent } from "../providers/providers.component"; import { ProvidersComponent } from "../providers/providers.component";
import { BreachReportComponent } from "../reports/breach-report.component"; import { BreachReportComponent } from "../reports/breach-report.component";
import { ExposedPasswordsReportComponent } from "../reports/exposed-passwords-report.component"; import { ExposedPasswordsReportComponent } from "../reports/exposed-passwords-report.component";
@@ -116,9 +62,7 @@ import { EmergencyAccessViewComponent } from "../settings/emergency-access-view.
import { EmergencyAccessComponent } from "../settings/emergency-access.component"; import { EmergencyAccessComponent } from "../settings/emergency-access.component";
import { EmergencyAddEditComponent } from "../settings/emergency-add-edit.component"; import { EmergencyAddEditComponent } from "../settings/emergency-add-edit.component";
import { LinkSsoComponent } from "../settings/link-sso.component"; import { LinkSsoComponent } from "../settings/link-sso.component";
import { OrganizationPlansComponent } from "../settings/organization-plans.component";
import { PaymentMethodComponent } from "../settings/payment-method.component"; import { PaymentMethodComponent } from "../settings/payment-method.component";
import { PaymentComponent } from "../settings/payment.component";
import { PreferencesComponent } from "../settings/preferences.component"; import { PreferencesComponent } from "../settings/preferences.component";
import { PremiumComponent } from "../settings/premium.component"; import { PremiumComponent } from "../settings/premium.component";
import { ProfileComponent } from "../settings/profile.component"; import { ProfileComponent } from "../settings/profile.component";
@@ -174,7 +118,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
declarations: [ declarations: [
PremiumBadgeComponent, PremiumBadgeComponent,
AcceptEmergencyComponent, AcceptEmergencyComponent,
AcceptFamilySponsorshipComponent,
AcceptOrganizationComponent, AcceptOrganizationComponent,
AccessComponent, AccessComponent,
AccountComponent, AccountComponent,
@@ -184,10 +127,8 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
AddEditCustomFieldsComponent, AddEditCustomFieldsComponent,
AdjustPaymentComponent, AdjustPaymentComponent,
AdjustStorageComponent, AdjustStorageComponent,
AdjustSubscription,
ApiKeyComponent, ApiKeyComponent,
AttachmentsComponent, AttachmentsComponent,
BillingSyncApiKeyComponent,
BillingSyncKeyComponent, BillingSyncKeyComponent,
BreachReportComponent, BreachReportComponent,
BulkActionsComponent, BulkActionsComponent,
@@ -198,16 +139,12 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
ChangeEmailComponent, ChangeEmailComponent,
ChangeKdfComponent, ChangeKdfComponent,
ChangePasswordComponent, ChangePasswordComponent,
ChangePlanComponent,
CiphersComponent, CiphersComponent,
CollectionsComponent, CollectionsComponent,
CreateOrganizationComponent, CreateOrganizationComponent,
DeauthorizeSessionsComponent, DeauthorizeSessionsComponent,
DeleteAccountComponent, DeleteAccountComponent,
DeleteOrganizationComponent,
DisableSendPolicyComponent,
DomainRulesComponent, DomainRulesComponent,
DownloadLicenseComponent,
EmergencyAccessAddEditComponent, EmergencyAccessAddEditComponent,
EmergencyAccessAttachmentsComponent, EmergencyAccessAttachmentsComponent,
EmergencyAccessComponent, EmergencyAccessComponent,
@@ -217,7 +154,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
EmergencyAddEditComponent, EmergencyAddEditComponent,
ExportComponent, ExportComponent,
ExposedPasswordsReportComponent, ExposedPasswordsReportComponent,
FamiliesForEnterpriseSetupComponent,
FolderAddEditComponent, FolderAddEditComponent,
FooterComponent, FooterComponent,
FrontendLayoutComponent, FrontendLayoutComponent,
@@ -227,56 +163,13 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
LinkSsoComponent, LinkSsoComponent,
LockComponent, LockComponent,
LoginComponent, LoginComponent,
MasterPasswordPolicyComponent,
NavbarComponent, NavbarComponent,
NestedCheckboxComponent, NestedCheckboxComponent,
OrganizationSwitcherComponent, OrganizationSwitcherComponent,
OrgAccountComponent,
OrgAddEditComponent,
OrganizationBillingComponent,
OrganizationLayoutComponent,
OrganizationPlansComponent,
OrganizationSubscriptionComponent,
OrgAttachmentsComponent,
OrgBulkConfirmComponent,
OrgBulkRemoveComponent,
OrgBulkStatusComponent,
OrgCiphersComponent,
OrgCollectionAddEditComponent,
OrgCollectionsComponent,
OrgEntityEventsComponent,
OrgEntityUsersComponent,
OrgEventsComponent,
OrgExportComponent,
OrgExposedPasswordsReportComponent,
OrgGroupAddEditComponent,
OrgGroupsComponent,
OrgImportComponent,
OrgInactiveTwoFactorReportComponent,
OrgManageCollectionsComponent,
OrgManageComponent,
OrgPeopleComponent,
OrgPoliciesComponent,
OrgPolicyEditComponent,
OrgResetPasswordComponent,
OrgReusedPasswordsReportComponent,
OrgSettingComponent,
OrgToolsComponent,
OrgTwoFactorSetupComponent,
OrgSubscriptionHiddenComponent,
OrgUnsecuredWebsitesReportComponent,
OrgUserAddEditComponent,
OrgUserConfirmComponent,
OrgUserGroupsComponent,
OrgWeakPasswordsReportComponent,
GeneratorComponent, GeneratorComponent,
PasswordGeneratorHistoryComponent, PasswordGeneratorHistoryComponent,
PasswordGeneratorPolicyComponent,
PasswordRepromptComponent, PasswordRepromptComponent,
PasswordStrengthComponent,
PaymentComponent,
PaymentMethodComponent, PaymentMethodComponent,
PersonalOwnershipPolicyComponent,
PreferencesComponent, PreferencesComponent,
PremiumBadgeComponent, PremiumBadgeComponent,
PremiumComponent, PremiumComponent,
@@ -290,26 +183,21 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
ReportCardComponent, ReportCardComponent,
ReportListComponent, ReportListComponent,
ReportsComponent, ReportsComponent,
RequireSsoPolicyComponent,
ResetPasswordPolicyComponent,
ReusedPasswordsReportComponent, ReusedPasswordsReportComponent,
SecurityComponent, SecurityComponent,
SecurityKeysComponent, SecurityKeysComponent,
SendAddEditComponent, SendAddEditComponent,
SendComponent, SendComponent,
SendEffluxDatesComponent, SendEffluxDatesComponent,
SendOptionsPolicyComponent,
SetPasswordComponent, SetPasswordComponent,
SettingsComponent, SettingsComponent,
ShareComponent, ShareComponent,
SingleOrgPolicyComponent,
SponsoredFamiliesComponent, SponsoredFamiliesComponent,
SponsoringOrgRowComponent, SponsoringOrgRowComponent,
SsoComponent, SsoComponent,
SubscriptionComponent, SubscriptionComponent,
TaxInfoComponent, TaxInfoComponent,
ToolsComponent, ToolsComponent,
TwoFactorAuthenticationPolicyComponent,
TwoFactorAuthenticatorComponent, TwoFactorAuthenticatorComponent,
TwoFactorComponent, TwoFactorComponent,
TwoFactorDuoComponent, TwoFactorDuoComponent,
@@ -347,7 +235,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
AddEditCustomFieldsComponent, AddEditCustomFieldsComponent,
AdjustPaymentComponent, AdjustPaymentComponent,
AdjustStorageComponent, AdjustStorageComponent,
AdjustSubscription,
ApiKeyComponent, ApiKeyComponent,
AttachmentsComponent, AttachmentsComponent,
BreachReportComponent, BreachReportComponent,
@@ -359,16 +246,12 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
ChangeEmailComponent, ChangeEmailComponent,
ChangeKdfComponent, ChangeKdfComponent,
ChangePasswordComponent, ChangePasswordComponent,
ChangePlanComponent,
CiphersComponent, CiphersComponent,
CollectionsComponent, CollectionsComponent,
CreateOrganizationComponent, CreateOrganizationComponent,
DeauthorizeSessionsComponent, DeauthorizeSessionsComponent,
DeleteAccountComponent, DeleteAccountComponent,
DeleteOrganizationComponent,
DisableSendPolicyComponent,
DomainRulesComponent, DomainRulesComponent,
DownloadLicenseComponent,
EmergencyAccessAddEditComponent, EmergencyAccessAddEditComponent,
EmergencyAccessAttachmentsComponent, EmergencyAccessAttachmentsComponent,
EmergencyAccessComponent, EmergencyAccessComponent,
@@ -378,7 +261,6 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
EmergencyAddEditComponent, EmergencyAddEditComponent,
ExportComponent, ExportComponent,
ExposedPasswordsReportComponent, ExposedPasswordsReportComponent,
FamiliesForEnterpriseSetupComponent,
FolderAddEditComponent, FolderAddEditComponent,
FooterComponent, FooterComponent,
FrontendLayoutComponent, FrontendLayoutComponent,
@@ -388,55 +270,13 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
LinkSsoComponent, LinkSsoComponent,
LockComponent, LockComponent,
LoginComponent, LoginComponent,
MasterPasswordPolicyComponent,
NavbarComponent, NavbarComponent,
NestedCheckboxComponent, NestedCheckboxComponent,
OrganizationSwitcherComponent, OrganizationSwitcherComponent,
OrgAccountComponent,
OrgAddEditComponent,
OrganizationBillingComponent,
OrganizationLayoutComponent,
OrganizationPlansComponent,
OrganizationSubscriptionComponent,
OrgAttachmentsComponent,
OrgBulkConfirmComponent,
OrgBulkRemoveComponent,
OrgBulkStatusComponent,
OrgCiphersComponent,
OrgCollectionAddEditComponent,
OrgCollectionsComponent,
OrgEntityEventsComponent,
OrgEntityUsersComponent,
OrgEventsComponent,
OrgExportComponent,
OrgExposedPasswordsReportComponent,
OrgGroupAddEditComponent,
OrgGroupsComponent,
OrgImportComponent,
OrgInactiveTwoFactorReportComponent,
OrgManageCollectionsComponent,
OrgManageComponent,
OrgPeopleComponent,
OrgPoliciesComponent,
OrgPolicyEditComponent,
OrgResetPasswordComponent,
OrgReusedPasswordsReportComponent,
OrgSettingComponent,
OrgToolsComponent,
OrgTwoFactorSetupComponent,
OrgUnsecuredWebsitesReportComponent,
OrgUserAddEditComponent,
OrgUserConfirmComponent,
OrgUserGroupsComponent,
OrgWeakPasswordsReportComponent,
GeneratorComponent, GeneratorComponent,
PasswordGeneratorHistoryComponent, PasswordGeneratorHistoryComponent,
PasswordGeneratorPolicyComponent,
PasswordRepromptComponent, PasswordRepromptComponent,
PasswordStrengthComponent,
PaymentComponent,
PaymentMethodComponent, PaymentMethodComponent,
PersonalOwnershipPolicyComponent,
PreferencesComponent, PreferencesComponent,
PremiumBadgeComponent, PremiumBadgeComponent,
PremiumComponent, PremiumComponent,
@@ -450,26 +290,21 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga
ReportCardComponent, ReportCardComponent,
ReportListComponent, ReportListComponent,
ReportsComponent, ReportsComponent,
RequireSsoPolicyComponent,
ResetPasswordPolicyComponent,
ReusedPasswordsReportComponent, ReusedPasswordsReportComponent,
SecurityComponent, SecurityComponent,
SecurityKeysComponent, SecurityKeysComponent,
SendAddEditComponent, SendAddEditComponent,
SendComponent, SendComponent,
SendEffluxDatesComponent, SendEffluxDatesComponent,
SendOptionsPolicyComponent,
SetPasswordComponent, SetPasswordComponent,
SettingsComponent, SettingsComponent,
ShareComponent, ShareComponent,
SingleOrgPolicyComponent,
SponsoredFamiliesComponent, SponsoredFamiliesComponent,
SponsoringOrgRowComponent, SponsoringOrgRowComponent,
SsoComponent, SsoComponent,
SubscriptionComponent, SubscriptionComponent,
TaxInfoComponent, TaxInfoComponent,
ToolsComponent, ToolsComponent,
TwoFactorAuthenticationPolicyComponent,
TwoFactorAuthenticatorComponent, TwoFactorAuthenticatorComponent,
TwoFactorComponent, TwoFactorComponent,
TwoFactorDuoComponent, TwoFactorDuoComponent,

View File

@@ -59,6 +59,11 @@ import { ToastrModule } from "ngx-toastr";
import { JslibModule } from "jslib-angular/jslib.module"; import { JslibModule } from "jslib-angular/jslib.module";
import { PasswordStrengthComponent } from "../components/password-strength.component";
import { OrganizationPlansComponent } from "../settings/organization-plans.component";
import { PaymentComponent } from "../settings/payment.component";
registerLocaleData(localeAf, "af"); registerLocaleData(localeAf, "af");
registerLocaleData(localeAz, "az"); registerLocaleData(localeAz, "az");
registerLocaleData(localeBe, "be"); registerLocaleData(localeBe, "be");
@@ -127,6 +132,7 @@ registerLocaleData(localeZhTw, "zh-TW");
ButtonModule, ButtonModule,
MenuModule, MenuModule,
], ],
declarations: [PasswordStrengthComponent, OrganizationPlansComponent, PaymentComponent],
exports: [ exports: [
CommonModule, CommonModule,
DragDropModule, DragDropModule,
@@ -142,6 +148,9 @@ registerLocaleData(localeZhTw, "zh-TW");
BadgeModule, BadgeModule,
ButtonModule, ButtonModule,
MenuModule, MenuModule,
PasswordStrengthComponent,
OrganizationPlansComponent,
PaymentComponent,
], ],
providers: [DatePipe], providers: [DatePipe],
bootstrap: [], bootstrap: [],

View File

@@ -25,6 +25,7 @@ import { ResetPasswordComponent } from "./manage/reset-password.component";
import { UserAddEditComponent } from "./manage/user-add-edit.component"; import { UserAddEditComponent } from "./manage/user-add-edit.component";
import { UserConfirmComponent } from "./manage/user-confirm.component"; import { UserConfirmComponent } from "./manage/user-confirm.component";
import { UserGroupsComponent } from "./manage/user-groups.component"; import { UserGroupsComponent } from "./manage/user-groups.component";
import { OrganizationsRoutingModule } from "./organization-routing.module";
import { DisableSendPolicyComponent } from "./policies/disable-send.component"; import { DisableSendPolicyComponent } from "./policies/disable-send.component";
import { MasterPasswordPolicyComponent } from "./policies/master-password.component"; import { MasterPasswordPolicyComponent } from "./policies/master-password.component";
import { PasswordGeneratorPolicyComponent } from "./policies/password-generator.component"; import { PasswordGeneratorPolicyComponent } from "./policies/password-generator.component";
@@ -60,7 +61,13 @@ import { CiphersComponent } from "./vault/ciphers.component";
import { CollectionsComponent } from "./vault/collections.component"; import { CollectionsComponent } from "./vault/collections.component";
@NgModule({ @NgModule({
imports: [SharedModule, VaultFilterModule, OrganizationBadgeModule, PipesModule], imports: [
OrganizationsRoutingModule,
SharedModule,
VaultFilterModule,
OrganizationBadgeModule,
PipesModule,
],
declarations: [ declarations: [
AcceptFamilySponsorshipComponent, AcceptFamilySponsorshipComponent,
AddEditComponent, AddEditComponent,

View File

@@ -232,9 +232,7 @@ const routes: Routes = [
{ {
path: "organizations", path: "organizations",
loadChildren: () => loadChildren: () =>
import("./organizations/organization-routing.module").then( import("./organizations/organization.module").then((m) => m.OrganizationModule),
(m) => m.OrganizationsRoutingModule
),
}, },
], ],
}, },

View File

@@ -14,7 +14,13 @@ import { OrganizationBadgeModule } from "./modules/vault/modules/organization-ba
OrganizationBadgeModule, OrganizationBadgeModule,
PipesModule, PipesModule,
], ],
exports: [LooseComponentsModule, VaultFilterModule, OrganizationBadgeModule, PipesModule], exports: [
LooseComponentsModule,
VaultFilterModule,
OrganizationBadgeModule,
PipesModule,
SharedModule,
],
bootstrap: [], bootstrap: [],
}) })
export class OssModule {} export class OssModule {}