Moved reports files into tools ownership and updated the imports (#7222)
This commit is contained in:
parent
4276242c68
commit
b783d99d02
|
@ -1,7 +1,7 @@
|
||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
|
|
||||||
import { ReportsSharedModule } from "../../../reports";
|
|
||||||
import { SharedModule } from "../../../shared/shared.module";
|
import { SharedModule } from "../../../shared/shared.module";
|
||||||
|
import { ReportsSharedModule } from "../../../tools/reports";
|
||||||
|
|
||||||
import { OrganizationReportingRoutingModule } from "./organization-reporting-routing.module";
|
import { OrganizationReportingRoutingModule } from "./organization-reporting-routing.module";
|
||||||
import { ReportingComponent } from "./reporting.component";
|
import { ReportingComponent } from "./reporting.component";
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { filter, map, Observable, startWith } from "rxjs";
|
||||||
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
||||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
|
|
||||||
import { ReportVariant, reports, ReportType, ReportEntry } from "../../../reports";
|
import { ReportVariant, reports, ReportType, ReportEntry } from "../../../tools/reports";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-org-reports-home",
|
selector: "app-org-reports-home",
|
||||||
|
|
|
@ -10,11 +10,11 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import { PasswordRepromptService } from "@bitwarden/vault";
|
import { PasswordRepromptService } from "@bitwarden/vault";
|
||||||
|
|
||||||
// eslint-disable-next-line no-restricted-imports
|
// eslint-disable-next-line no-restricted-imports
|
||||||
import { ExposedPasswordsReportComponent as BaseExposedPasswordsReportComponent } from "../../../reports/pages/exposed-passwords-report.component";
|
import { ExposedPasswordsReportComponent as BaseExposedPasswordsReportComponent } from "../../../tools/reports/pages/exposed-passwords-report.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-org-exposed-passwords-report",
|
selector: "app-org-exposed-passwords-report",
|
||||||
templateUrl: "../../../reports/pages/exposed-passwords-report.component.html",
|
templateUrl: "../../../tools/reports/pages/exposed-passwords-report.component.html",
|
||||||
})
|
})
|
||||||
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
||||||
export class ExposedPasswordsReportComponent extends BaseExposedPasswordsReportComponent {
|
export class ExposedPasswordsReportComponent extends BaseExposedPasswordsReportComponent {
|
||||||
|
|
|
@ -9,11 +9,11 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import { PasswordRepromptService } from "@bitwarden/vault";
|
import { PasswordRepromptService } from "@bitwarden/vault";
|
||||||
|
|
||||||
// eslint-disable-next-line no-restricted-imports
|
// eslint-disable-next-line no-restricted-imports
|
||||||
import { InactiveTwoFactorReportComponent as BaseInactiveTwoFactorReportComponent } from "../../../reports/pages/inactive-two-factor-report.component";
|
import { InactiveTwoFactorReportComponent as BaseInactiveTwoFactorReportComponent } from "../../../tools/reports/pages/inactive-two-factor-report.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-inactive-two-factor-report",
|
selector: "app-inactive-two-factor-report",
|
||||||
templateUrl: "../../../reports/pages/inactive-two-factor-report.component.html",
|
templateUrl: "../../../tools/reports/pages/inactive-two-factor-report.component.html",
|
||||||
})
|
})
|
||||||
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
||||||
export class InactiveTwoFactorReportComponent extends BaseInactiveTwoFactorReportComponent {
|
export class InactiveTwoFactorReportComponent extends BaseInactiveTwoFactorReportComponent {
|
||||||
|
|
|
@ -9,11 +9,11 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import { PasswordRepromptService } from "@bitwarden/vault";
|
import { PasswordRepromptService } from "@bitwarden/vault";
|
||||||
|
|
||||||
// eslint-disable-next-line no-restricted-imports
|
// eslint-disable-next-line no-restricted-imports
|
||||||
import { ReusedPasswordsReportComponent as BaseReusedPasswordsReportComponent } from "../../../reports/pages/reused-passwords-report.component";
|
import { ReusedPasswordsReportComponent as BaseReusedPasswordsReportComponent } from "../../../tools/reports/pages/reused-passwords-report.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-reused-passwords-report",
|
selector: "app-reused-passwords-report",
|
||||||
templateUrl: "../../../reports/pages/reused-passwords-report.component.html",
|
templateUrl: "../../../tools/reports/pages/reused-passwords-report.component.html",
|
||||||
})
|
})
|
||||||
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
||||||
export class ReusedPasswordsReportComponent extends BaseReusedPasswordsReportComponent {
|
export class ReusedPasswordsReportComponent extends BaseReusedPasswordsReportComponent {
|
||||||
|
|
|
@ -8,11 +8,11 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import { PasswordRepromptService } from "@bitwarden/vault";
|
import { PasswordRepromptService } from "@bitwarden/vault";
|
||||||
|
|
||||||
// eslint-disable-next-line no-restricted-imports
|
// eslint-disable-next-line no-restricted-imports
|
||||||
import { UnsecuredWebsitesReportComponent as BaseUnsecuredWebsitesReportComponent } from "../../../reports/pages/unsecured-websites-report.component";
|
import { UnsecuredWebsitesReportComponent as BaseUnsecuredWebsitesReportComponent } from "../../../tools/reports/pages/unsecured-websites-report.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-unsecured-websites-report",
|
selector: "app-unsecured-websites-report",
|
||||||
templateUrl: "../../../reports/pages/unsecured-websites-report.component.html",
|
templateUrl: "../../../tools/reports/pages/unsecured-websites-report.component.html",
|
||||||
})
|
})
|
||||||
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
||||||
export class UnsecuredWebsitesReportComponent extends BaseUnsecuredWebsitesReportComponent {
|
export class UnsecuredWebsitesReportComponent extends BaseUnsecuredWebsitesReportComponent {
|
||||||
|
|
|
@ -10,11 +10,11 @@ import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import { PasswordRepromptService } from "@bitwarden/vault";
|
import { PasswordRepromptService } from "@bitwarden/vault";
|
||||||
|
|
||||||
// eslint-disable-next-line no-restricted-imports
|
// eslint-disable-next-line no-restricted-imports
|
||||||
import { WeakPasswordsReportComponent as BaseWeakPasswordsReportComponent } from "../../../reports/pages/weak-passwords-report.component";
|
import { WeakPasswordsReportComponent as BaseWeakPasswordsReportComponent } from "../../../tools/reports/pages/weak-passwords-report.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-weak-passwords-report",
|
selector: "app-weak-passwords-report",
|
||||||
templateUrl: "../../../reports/pages/weak-passwords-report.component.html",
|
templateUrl: "../../../tools/reports/pages/weak-passwords-report.component.html",
|
||||||
})
|
})
|
||||||
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
// eslint-disable-next-line rxjs-angular/prefer-takeuntil
|
||||||
export class WeakPasswordsReportComponent extends BaseWeakPasswordsReportComponent {
|
export class WeakPasswordsReportComponent extends BaseWeakPasswordsReportComponent {
|
||||||
|
|
|
@ -42,11 +42,11 @@ import { VerifyEmailTokenComponent } from "./auth/verify-email-token.component";
|
||||||
import { VerifyRecoverDeleteComponent } from "./auth/verify-recover-delete.component";
|
import { VerifyRecoverDeleteComponent } from "./auth/verify-recover-delete.component";
|
||||||
import { FrontendLayoutComponent } from "./layouts/frontend-layout.component";
|
import { FrontendLayoutComponent } from "./layouts/frontend-layout.component";
|
||||||
import { UserLayoutComponent } from "./layouts/user-layout.component";
|
import { UserLayoutComponent } from "./layouts/user-layout.component";
|
||||||
import { ReportsModule } from "./reports";
|
|
||||||
import { DomainRulesComponent } from "./settings/domain-rules.component";
|
import { DomainRulesComponent } from "./settings/domain-rules.component";
|
||||||
import { PreferencesComponent } from "./settings/preferences.component";
|
import { PreferencesComponent } from "./settings/preferences.component";
|
||||||
import { SettingsComponent } from "./settings/settings.component";
|
import { SettingsComponent } from "./settings/settings.component";
|
||||||
import { GeneratorComponent } from "./tools/generator.component";
|
import { GeneratorComponent } from "./tools/generator.component";
|
||||||
|
import { ReportsModule } from "./tools/reports";
|
||||||
import { AccessComponent } from "./tools/send/access.component";
|
import { AccessComponent } from "./tools/send/access.component";
|
||||||
import { SendComponent } from "./tools/send/send.component";
|
import { SendComponent } from "./tools/send/send.component";
|
||||||
import { ToolsComponent } from "./tools/tools.component";
|
import { ToolsComponent } from "./tools/tools.component";
|
||||||
|
|
|
@ -8,8 +8,8 @@ import { CipherRepromptType } from "@bitwarden/common/vault/enums/cipher-repromp
|
||||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import { PasswordRepromptService } from "@bitwarden/vault";
|
import { PasswordRepromptService } from "@bitwarden/vault";
|
||||||
|
|
||||||
import { AddEditComponent } from "../../vault/individual-vault/add-edit.component";
|
import { AddEditComponent } from "../../../vault/individual-vault/add-edit.component";
|
||||||
import { AddEditComponent as OrgAddEditComponent } from "../../vault/org-vault/add-edit.component";
|
import { AddEditComponent as OrgAddEditComponent } from "../../../vault/org-vault/add-edit.component";
|
||||||
|
|
||||||
@Directive()
|
@Directive()
|
||||||
export class CipherReportComponent {
|
export class CipherReportComponent {
|
|
@ -3,7 +3,7 @@ import { RouterModule, Routes } from "@angular/router";
|
||||||
|
|
||||||
import { AuthGuard } from "@bitwarden/angular/auth/guards";
|
import { AuthGuard } from "@bitwarden/angular/auth/guards";
|
||||||
|
|
||||||
import { hasPremiumGuard } from "../core/guards/has-premium.guard";
|
import { hasPremiumGuard } from "../../core/guards/has-premium.guard";
|
||||||
|
|
||||||
import { BreachReportComponent } from "./pages/breach-report.component";
|
import { BreachReportComponent } from "./pages/breach-report.component";
|
||||||
import { ExposedPasswordsReportComponent } from "./pages/exposed-passwords-report.component";
|
import { ExposedPasswordsReportComponent } from "./pages/exposed-passwords-report.component";
|
|
@ -1,9 +1,9 @@
|
||||||
import { CommonModule } from "@angular/common";
|
import { CommonModule } from "@angular/common";
|
||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
|
|
||||||
import { SharedModule } from "../shared";
|
import { SharedModule } from "../../shared";
|
||||||
import { OrganizationBadgeModule } from "../vault/individual-vault/organization-badge/organization-badge.module";
|
import { OrganizationBadgeModule } from "../../vault/individual-vault/organization-badge/organization-badge.module";
|
||||||
import { PipesModule } from "../vault/individual-vault/pipes/pipes.module";
|
import { PipesModule } from "../../vault/individual-vault/pipes/pipes.module";
|
||||||
|
|
||||||
import { BreachReportComponent } from "./pages/breach-report.component";
|
import { BreachReportComponent } from "./pages/breach-report.component";
|
||||||
import { ExposedPasswordsReportComponent } from "./pages/exposed-passwords-report.component";
|
import { ExposedPasswordsReportComponent } from "./pages/exposed-passwords-report.component";
|
|
@ -5,8 +5,8 @@ import { Meta, Story, applicationConfig, moduleMetadata } from "@storybook/angul
|
||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||||
import { BadgeModule, IconModule } from "@bitwarden/components";
|
import { BadgeModule, IconModule } from "@bitwarden/components";
|
||||||
|
|
||||||
import { PreloadedEnglishI18nModule } from "../../../core/tests";
|
import { PreloadedEnglishI18nModule } from "../../../../core/tests";
|
||||||
import { PremiumBadgeComponent } from "../../../vault/components/premium-badge.component";
|
import { PremiumBadgeComponent } from "../../../../vault/components/premium-badge.component";
|
||||||
import { ReportVariant } from "../models/report-variant";
|
import { ReportVariant } from "../models/report-variant";
|
||||||
|
|
||||||
import { ReportCardComponent } from "./report-card.component";
|
import { ReportCardComponent } from "./report-card.component";
|
|
@ -5,8 +5,8 @@ import { Meta, Story, applicationConfig, moduleMetadata } from "@storybook/angul
|
||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||||
import { BadgeModule, IconModule } from "@bitwarden/components";
|
import { BadgeModule, IconModule } from "@bitwarden/components";
|
||||||
|
|
||||||
import { PreloadedEnglishI18nModule } from "../../../core/tests";
|
import { PreloadedEnglishI18nModule } from "../../../../core/tests";
|
||||||
import { PremiumBadgeComponent } from "../../../vault/components/premium-badge.component";
|
import { PremiumBadgeComponent } from "../../../../vault/components/premium-badge.component";
|
||||||
import { reports } from "../../reports";
|
import { reports } from "../../reports";
|
||||||
import { ReportVariant } from "../models/report-variant";
|
import { ReportVariant } from "../models/report-variant";
|
||||||
import { ReportCardComponent } from "../report-card/report-card.component";
|
import { ReportCardComponent } from "../report-card/report-card.component";
|
|
@ -1,7 +1,7 @@
|
||||||
import { CommonModule } from "@angular/common";
|
import { CommonModule } from "@angular/common";
|
||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
|
|
||||||
import { SharedModule } from "../../shared/shared.module";
|
import { SharedModule } from "../../../shared/shared.module";
|
||||||
|
|
||||||
import { ReportCardComponent } from "./report-card/report-card.component";
|
import { ReportCardComponent } from "./report-card/report-card.component";
|
||||||
import { ReportListComponent } from "./report-list/report-list.component";
|
import { ReportListComponent } from "./report-list/report-list.component";
|
Loading…
Reference in New Issue