mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
Cleanup unowned loose components (#14703)
Removes "unowned components" from loose-component module as we'd like to clean it up.
This commit is contained in:
@@ -10,10 +10,13 @@ import {
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
|
|
||||||
|
import { SharedModule } from "../../shared";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "environment-selector",
|
selector: "environment-selector",
|
||||||
templateUrl: "environment-selector.component.html",
|
templateUrl: "environment-selector.component.html",
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [SharedModule],
|
||||||
})
|
})
|
||||||
export class EnvironmentSelectorComponent implements OnInit {
|
export class EnvironmentSelectorComponent implements OnInit {
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
import { NgModule } from "@angular/core";
|
|
||||||
|
|
||||||
import { SharedModule } from "../../../app/shared";
|
|
||||||
|
|
||||||
import { EnvironmentSelectorComponent } from "./environment-selector.component";
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [SharedModule],
|
|
||||||
declarations: [EnvironmentSelectorComponent],
|
|
||||||
exports: [EnvironmentSelectorComponent],
|
|
||||||
})
|
|
||||||
export class EnvironmentSelectorModule {}
|
|
||||||
@@ -4,10 +4,14 @@ import { Component, OnDestroy, OnInit } from "@angular/core";
|
|||||||
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
|
||||||
|
import { EnvironmentSelectorComponent } from "../components/environment-selector/environment-selector.component";
|
||||||
|
import { SharedModule } from "../shared";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-frontend-layout",
|
selector: "app-frontend-layout",
|
||||||
templateUrl: "frontend-layout.component.html",
|
templateUrl: "frontend-layout.component.html",
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [SharedModule, EnvironmentSelectorComponent],
|
||||||
})
|
})
|
||||||
export class FrontendLayoutComponent implements OnInit, OnDestroy {
|
export class FrontendLayoutComponent implements OnInit, OnDestroy {
|
||||||
version: string;
|
version: string;
|
||||||
|
|||||||
@@ -9,10 +9,14 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
|
|||||||
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
|
||||||
|
import { HeaderModule } from "../layouts/header/header.module";
|
||||||
|
import { SharedModule } from "../shared";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-domain-rules",
|
selector: "app-domain-rules",
|
||||||
templateUrl: "domain-rules.component.html",
|
templateUrl: "domain-rules.component.html",
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [SharedModule, HeaderModule],
|
||||||
})
|
})
|
||||||
export class DomainRulesComponent implements OnInit {
|
export class DomainRulesComponent implements OnInit {
|
||||||
loading = true;
|
loading = true;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import {
|
|||||||
tap,
|
tap,
|
||||||
} from "rxjs";
|
} from "rxjs";
|
||||||
|
|
||||||
|
import { VaultTimeoutInputComponent } from "@bitwarden/auth/angular";
|
||||||
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
||||||
import { PolicyType } from "@bitwarden/common/admin-console/enums";
|
import { PolicyType } from "@bitwarden/common/admin-console/enums";
|
||||||
import { getFirstPolicy } from "@bitwarden/common/admin-console/services/policy/default-policy.service";
|
import { getFirstPolicy } from "@bitwarden/common/admin-console/services/policy/default-policy.service";
|
||||||
@@ -34,10 +35,14 @@ import { Utils } from "@bitwarden/common/platform/misc/utils";
|
|||||||
import { ThemeStateService } from "@bitwarden/common/platform/theming/theme-state.service";
|
import { ThemeStateService } from "@bitwarden/common/platform/theming/theme-state.service";
|
||||||
import { DialogService } from "@bitwarden/components";
|
import { DialogService } from "@bitwarden/components";
|
||||||
|
|
||||||
|
import { HeaderModule } from "../layouts/header/header.module";
|
||||||
|
import { SharedModule } from "../shared";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-preferences",
|
selector: "app-preferences",
|
||||||
templateUrl: "preferences.component.html",
|
templateUrl: "preferences.component.html",
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [SharedModule, HeaderModule, VaultTimeoutInputComponent],
|
||||||
})
|
})
|
||||||
export class PreferencesComponent implements OnInit, OnDestroy {
|
export class PreferencesComponent implements OnInit, OnDestroy {
|
||||||
// For use in template
|
// For use in template
|
||||||
|
|||||||
@@ -40,20 +40,18 @@ import { VerifyRecoverDeleteComponent } from "../auth/verify-recover-delete.comp
|
|||||||
import { SponsoredFamiliesComponent } from "../billing/settings/sponsored-families.component";
|
import { SponsoredFamiliesComponent } from "../billing/settings/sponsored-families.component";
|
||||||
import { SponsoringOrgRowComponent } from "../billing/settings/sponsoring-org-row.component";
|
import { SponsoringOrgRowComponent } from "../billing/settings/sponsoring-org-row.component";
|
||||||
import { DynamicAvatarComponent } from "../components/dynamic-avatar.component";
|
import { DynamicAvatarComponent } from "../components/dynamic-avatar.component";
|
||||||
|
// eslint-disable-next-line no-restricted-imports -- Temporarily disabled until DIRT refactors these out of this module
|
||||||
import { ExposedPasswordsReportComponent as OrgExposedPasswordsReportComponent } from "../dirt/reports/pages/organizations/exposed-passwords-report.component";
|
import { ExposedPasswordsReportComponent as OrgExposedPasswordsReportComponent } from "../dirt/reports/pages/organizations/exposed-passwords-report.component";
|
||||||
|
// eslint-disable-next-line no-restricted-imports -- Temporarily disabled until DIRT refactors these out of this module
|
||||||
import { InactiveTwoFactorReportComponent as OrgInactiveTwoFactorReportComponent } from "../dirt/reports/pages/organizations/inactive-two-factor-report.component";
|
import { InactiveTwoFactorReportComponent as OrgInactiveTwoFactorReportComponent } from "../dirt/reports/pages/organizations/inactive-two-factor-report.component";
|
||||||
|
// eslint-disable-next-line no-restricted-imports -- Temporarily disabled until DIRT refactors these out of this module
|
||||||
import { ReusedPasswordsReportComponent as OrgReusedPasswordsReportComponent } from "../dirt/reports/pages/organizations/reused-passwords-report.component";
|
import { ReusedPasswordsReportComponent as OrgReusedPasswordsReportComponent } from "../dirt/reports/pages/organizations/reused-passwords-report.component";
|
||||||
|
// eslint-disable-next-line no-restricted-imports -- Temporarily disabled until DIRT refactors these out of this module
|
||||||
import { UnsecuredWebsitesReportComponent as OrgUnsecuredWebsitesReportComponent } from "../dirt/reports/pages/organizations/unsecured-websites-report.component";
|
import { UnsecuredWebsitesReportComponent as OrgUnsecuredWebsitesReportComponent } from "../dirt/reports/pages/organizations/unsecured-websites-report.component";
|
||||||
|
// eslint-disable-next-line no-restricted-imports -- Temporarily disabled until DIRT refactors these out of this module
|
||||||
import { WeakPasswordsReportComponent as OrgWeakPasswordsReportComponent } from "../dirt/reports/pages/organizations/weak-passwords-report.component";
|
import { WeakPasswordsReportComponent as OrgWeakPasswordsReportComponent } from "../dirt/reports/pages/organizations/weak-passwords-report.component";
|
||||||
import { RemovePasswordComponent } from "../key-management/key-connector/remove-password.component";
|
import { RemovePasswordComponent } from "../key-management/key-connector/remove-password.component";
|
||||||
import { FrontendLayoutComponent } from "../layouts/frontend-layout.component";
|
|
||||||
import { HeaderModule } from "../layouts/header/header.module";
|
import { HeaderModule } from "../layouts/header/header.module";
|
||||||
import { ProductSwitcherModule } from "../layouts/product-switcher/product-switcher.module";
|
|
||||||
import { UserLayoutComponent } from "../layouts/user-layout.component";
|
|
||||||
import { DomainRulesComponent } from "../settings/domain-rules.component";
|
|
||||||
import { PreferencesComponent } from "../settings/preferences.component";
|
|
||||||
/* eslint no-restricted-imports: "off" -- Temporarily disabled until Tools refactors these out of this module */
|
|
||||||
/* eslint no-restricted-imports: "error" */
|
|
||||||
import { PremiumBadgeComponent } from "../vault/components/premium-badge.component";
|
import { PremiumBadgeComponent } from "../vault/components/premium-badge.component";
|
||||||
import { FolderAddEditComponent } from "../vault/individual-vault/folder-add-edit.component";
|
import { FolderAddEditComponent } from "../vault/individual-vault/folder-add-edit.component";
|
||||||
import { OrganizationBadgeModule } from "../vault/individual-vault/organization-badge/organization-badge.module";
|
import { OrganizationBadgeModule } from "../vault/individual-vault/organization-badge/organization-badge.module";
|
||||||
@@ -61,7 +59,6 @@ import { PipesModule } from "../vault/individual-vault/pipes/pipes.module";
|
|||||||
import { PurgeVaultComponent } from "../vault/settings/purge-vault.component";
|
import { PurgeVaultComponent } from "../vault/settings/purge-vault.component";
|
||||||
|
|
||||||
import { FreeBitwardenFamiliesComponent } from "./../billing/members/free-bitwarden-families.component";
|
import { FreeBitwardenFamiliesComponent } from "./../billing/members/free-bitwarden-families.component";
|
||||||
import { EnvironmentSelectorModule } from "./../components/environment-selector/environment-selector.module";
|
|
||||||
import { AccountFingerprintComponent } from "./components/account-fingerprint/account-fingerprint.component";
|
import { AccountFingerprintComponent } from "./components/account-fingerprint/account-fingerprint.component";
|
||||||
import { SharedModule } from "./shared.module";
|
import { SharedModule } from "./shared.module";
|
||||||
|
|
||||||
@@ -70,11 +67,9 @@ import { SharedModule } from "./shared.module";
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
SharedModule,
|
SharedModule,
|
||||||
ProductSwitcherModule,
|
|
||||||
UserVerificationModule,
|
UserVerificationModule,
|
||||||
ChangeKdfModule,
|
ChangeKdfModule,
|
||||||
DynamicAvatarComponent,
|
DynamicAvatarComponent,
|
||||||
EnvironmentSelectorModule,
|
|
||||||
AccountFingerprintComponent,
|
AccountFingerprintComponent,
|
||||||
OrganizationBadgeModule,
|
OrganizationBadgeModule,
|
||||||
PipesModule,
|
PipesModule,
|
||||||
@@ -85,7 +80,6 @@ import { SharedModule } from "./shared.module";
|
|||||||
NavigationModule,
|
NavigationModule,
|
||||||
HeaderModule,
|
HeaderModule,
|
||||||
OrganizationLayoutComponent,
|
OrganizationLayoutComponent,
|
||||||
UserLayoutComponent,
|
|
||||||
VerifyRecoverDeleteOrgComponent,
|
VerifyRecoverDeleteOrgComponent,
|
||||||
VaultTimeoutInputComponent,
|
VaultTimeoutInputComponent,
|
||||||
],
|
],
|
||||||
@@ -96,14 +90,12 @@ import { SharedModule } from "./shared.module";
|
|||||||
ChangeEmailComponent,
|
ChangeEmailComponent,
|
||||||
DeauthorizeSessionsComponent,
|
DeauthorizeSessionsComponent,
|
||||||
DeleteAccountDialogComponent,
|
DeleteAccountDialogComponent,
|
||||||
DomainRulesComponent,
|
|
||||||
EmergencyAccessAddEditComponent,
|
EmergencyAccessAddEditComponent,
|
||||||
EmergencyAccessComponent,
|
EmergencyAccessComponent,
|
||||||
EmergencyAccessConfirmComponent,
|
EmergencyAccessConfirmComponent,
|
||||||
EmergencyAccessTakeoverComponent,
|
EmergencyAccessTakeoverComponent,
|
||||||
EmergencyAccessViewComponent,
|
EmergencyAccessViewComponent,
|
||||||
FolderAddEditComponent,
|
FolderAddEditComponent,
|
||||||
FrontendLayoutComponent,
|
|
||||||
OrgEventsComponent,
|
OrgEventsComponent,
|
||||||
OrgExposedPasswordsReportComponent,
|
OrgExposedPasswordsReportComponent,
|
||||||
OrgInactiveTwoFactorReportComponent,
|
OrgInactiveTwoFactorReportComponent,
|
||||||
@@ -111,7 +103,6 @@ import { SharedModule } from "./shared.module";
|
|||||||
OrgUnsecuredWebsitesReportComponent,
|
OrgUnsecuredWebsitesReportComponent,
|
||||||
OrgUserConfirmComponent,
|
OrgUserConfirmComponent,
|
||||||
OrgWeakPasswordsReportComponent,
|
OrgWeakPasswordsReportComponent,
|
||||||
PreferencesComponent,
|
|
||||||
PremiumBadgeComponent,
|
PremiumBadgeComponent,
|
||||||
ProfileComponent,
|
ProfileComponent,
|
||||||
ChangeAvatarDialogComponent,
|
ChangeAvatarDialogComponent,
|
||||||
@@ -139,7 +130,6 @@ import { SharedModule } from "./shared.module";
|
|||||||
ChangeEmailComponent,
|
ChangeEmailComponent,
|
||||||
DeauthorizeSessionsComponent,
|
DeauthorizeSessionsComponent,
|
||||||
DeleteAccountDialogComponent,
|
DeleteAccountDialogComponent,
|
||||||
DomainRulesComponent,
|
|
||||||
DynamicAvatarComponent,
|
DynamicAvatarComponent,
|
||||||
EmergencyAccessAddEditComponent,
|
EmergencyAccessAddEditComponent,
|
||||||
EmergencyAccessComponent,
|
EmergencyAccessComponent,
|
||||||
@@ -147,7 +137,6 @@ import { SharedModule } from "./shared.module";
|
|||||||
EmergencyAccessTakeoverComponent,
|
EmergencyAccessTakeoverComponent,
|
||||||
EmergencyAccessViewComponent,
|
EmergencyAccessViewComponent,
|
||||||
FolderAddEditComponent,
|
FolderAddEditComponent,
|
||||||
FrontendLayoutComponent,
|
|
||||||
OrganizationLayoutComponent,
|
OrganizationLayoutComponent,
|
||||||
OrgEventsComponent,
|
OrgEventsComponent,
|
||||||
OrgExposedPasswordsReportComponent,
|
OrgExposedPasswordsReportComponent,
|
||||||
@@ -156,7 +145,6 @@ import { SharedModule } from "./shared.module";
|
|||||||
OrgUnsecuredWebsitesReportComponent,
|
OrgUnsecuredWebsitesReportComponent,
|
||||||
OrgUserConfirmComponent,
|
OrgUserConfirmComponent,
|
||||||
OrgWeakPasswordsReportComponent,
|
OrgWeakPasswordsReportComponent,
|
||||||
PreferencesComponent,
|
|
||||||
PremiumBadgeComponent,
|
PremiumBadgeComponent,
|
||||||
ProfileComponent,
|
ProfileComponent,
|
||||||
ChangeAvatarDialogComponent,
|
ChangeAvatarDialogComponent,
|
||||||
@@ -173,7 +161,6 @@ import { SharedModule } from "./shared.module";
|
|||||||
SponsoringOrgRowComponent,
|
SponsoringOrgRowComponent,
|
||||||
UpdateTempPasswordComponent,
|
UpdateTempPasswordComponent,
|
||||||
UpdatePasswordComponent,
|
UpdatePasswordComponent,
|
||||||
UserLayoutComponent,
|
|
||||||
VerifyEmailTokenComponent,
|
VerifyEmailTokenComponent,
|
||||||
VerifyRecoverDeleteComponent,
|
VerifyRecoverDeleteComponent,
|
||||||
HeaderModule,
|
HeaderModule,
|
||||||
|
|||||||
Reference in New Issue
Block a user