mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-21 16:18:28 +01:00
fix imports
This commit is contained in:
parent
ee677eaffe
commit
d21cb02bd8
@ -2,10 +2,12 @@ import { NgModule } from "@angular/core";
|
||||
|
||||
import { AuthSettingsModule } from "./settings/settings.module";
|
||||
|
||||
import { CoreAuthModule } from "./core/core.module";
|
||||
|
||||
@NgModule({
|
||||
imports: [AuthSettingsModule],
|
||||
imports: [AuthSettingsModule, CoreAuthModule],
|
||||
declarations: [],
|
||||
providers: [],
|
||||
exports: [AuthSettingsModule],
|
||||
exports: [AuthSettingsModule, CoreAuthModule],
|
||||
})
|
||||
export class AuthModule {}
|
||||
|
@ -1,9 +1,8 @@
|
||||
import { NgModule, Optional, SkipSelf } from "@angular/core";
|
||||
|
||||
import { EmergencyAccessService, WebauthnLoginService } from "./services";
|
||||
import { EmergencyAccessApiService } from "./services/emergency-access/emergency-access-api.service";
|
||||
import { EmergencyAccessService } from "./services/emergency-access/emergency-access.service";
|
||||
import { WebauthnLoginApiService } from "./services/webauthn-login/webauthn-login-api.service";
|
||||
import { WebauthnLoginService } from "./services/webauthn-login/webauthn-login.service";
|
||||
|
||||
@NgModule({
|
||||
providers: [
|
||||
|
@ -0,0 +1 @@
|
||||
export * from "./emergency-access.service";
|
@ -1 +1,2 @@
|
||||
export * from "./emergency-access";
|
||||
export * from "./webauthn-login";
|
||||
|
@ -8,7 +8,7 @@ import { SaveCredentialRequest } from "./request/save-credential.request";
|
||||
import { WebauthnLoginCredentialCreateOptionsResponse } from "./response/webauthn-login-credential-create-options.response";
|
||||
import { WebauthnLoginCredentialResponse } from "./response/webauthn-login-credential.response";
|
||||
|
||||
@Injectable({ providedIn: "root" })
|
||||
@Injectable()
|
||||
export class WebauthnLoginApiService {
|
||||
constructor(private apiService: ApiService) {}
|
||||
|
||||
|
@ -12,7 +12,7 @@ import { SaveCredentialRequest } from "./request/save-credential.request";
|
||||
import { WebauthnLoginAttestationResponseRequest } from "./request/webauthn-login-attestation-response.request";
|
||||
import { WebauthnLoginApiService } from "./webauthn-login-api.service";
|
||||
|
||||
@Injectable({ providedIn: "root" })
|
||||
@Injectable()
|
||||
export class WebauthnLoginService {
|
||||
static readonly MaxCredentialCount = 5;
|
||||
|
||||
|
@ -7,7 +7,7 @@ import { BaseAcceptComponent } from "../../common/base.accept.component";
|
||||
import { StateService } from "../../core";
|
||||
import { I18nService } from "../../core/i18n.service";
|
||||
import { SharedModule } from "../../shared";
|
||||
import { EmergencyAccessService } from "../core/services/emergency-access/emergency-access.service";
|
||||
import { EmergencyAccessService } from "../core";
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
|
@ -9,8 +9,6 @@ import { Organization } from "@bitwarden/common/admin-console/models/domain/orga
|
||||
import { OrganizationKeysResponse } from "@bitwarden/common/admin-console/models/response/organization-keys.response";
|
||||
import { OrganizationApiService } from "@bitwarden/common/admin-console/services/organization/organization-api.service";
|
||||
import { EncryptionType, KdfType } from "@bitwarden/common/enums";
|
||||
import { ListResponse } from "@bitwarden/common/models/response/list.response";
|
||||
import { UserKeyResponse } from "@bitwarden/common/models/response/user-key.response";
|
||||
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||
import { EncryptService } from "@bitwarden/common/platform/abstractions/encrypt.service";
|
||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||
@ -31,8 +29,9 @@ import { Folder } from "@bitwarden/common/vault/models/domain/folder";
|
||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||
import { FolderView } from "@bitwarden/common/vault/models/view/folder.view";
|
||||
|
||||
import { EmergencyAccessService } from "../core";
|
||||
|
||||
import { MigrateFromLegacyEncryptionService } from "./migrate-legacy-encryption.service";
|
||||
import { EmergencyAccessService } from "../core/services/emergency-access/emergency-access.service";
|
||||
|
||||
describe("migrateFromLegacyEncryptionService", () => {
|
||||
let migrateFromLegacyEncryptionService: MigrateFromLegacyEncryptionService;
|
||||
|
@ -20,7 +20,8 @@ import { FolderService } from "@bitwarden/common/vault/abstractions/folder/folde
|
||||
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
||||
import { CipherWithIdRequest } from "@bitwarden/common/vault/models/request/cipher-with-id.request";
|
||||
import { FolderWithIdRequest } from "@bitwarden/common/vault/models/request/folder-with-id.request";
|
||||
import { EmergencyAccessService } from "../core/services/emergency-access/emergency-access.service";
|
||||
|
||||
import { EmergencyAccessService } from "../core";
|
||||
|
||||
// TODO: PM-3797 - This service should be expanded and used for user key rotations in change-password.component.ts
|
||||
@Injectable()
|
||||
|
@ -33,7 +33,8 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv
|
||||
import { CipherWithIdRequest } from "@bitwarden/common/vault/models/request/cipher-with-id.request";
|
||||
import { FolderWithIdRequest } from "@bitwarden/common/vault/models/request/folder-with-id.request";
|
||||
import { DialogService } from "@bitwarden/components";
|
||||
import { EmergencyAccessService } from "../core/services/emergency-access/emergency-access.service";
|
||||
|
||||
import { EmergencyAccessService } from "../core";
|
||||
|
||||
@Component({
|
||||
selector: "app-change-password",
|
||||
|
@ -3,8 +3,9 @@ import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
|
||||
import { EmergencyAccessService } from "../../core";
|
||||
import { EmergencyAccessType } from "../../core/enums/emergency-access-type";
|
||||
import { EmergencyAccessService } from "../../core/services/emergency-access/emergency-access.service";
|
||||
|
||||
@Component({
|
||||
selector: "emergency-access-add-edit",
|
||||
|
@ -13,7 +13,7 @@ import { StateService } from "@bitwarden/common/platform/abstractions/state.serv
|
||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||
import { DialogService } from "@bitwarden/components";
|
||||
|
||||
import { EmergencyAccessService } from "../../core/services/emergency-access/emergency-access.service";
|
||||
import { EmergencyAccessService } from "../../core";
|
||||
|
||||
@Component({
|
||||
selector: "emergency-access-takeover",
|
||||
|
@ -3,7 +3,8 @@ import { ActivatedRoute, Router } from "@angular/router";
|
||||
|
||||
import { ModalService } from "@bitwarden/angular/services/modal.service";
|
||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||
import { EmergencyAccessService } from "../../core/services/emergency-access/emergency-access.service";
|
||||
|
||||
import { EmergencyAccessService } from "../../core";
|
||||
|
||||
import { EmergencyAccessAttachmentsComponent } from "./emergency-access-attachments.component";
|
||||
import { EmergencyAddEditComponent } from "./emergency-add-edit.component";
|
||||
|
@ -10,9 +10,9 @@ import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/pl
|
||||
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||
import { DialogService } from "@bitwarden/components";
|
||||
|
||||
import { EmergencyAccessService } from "../../core";
|
||||
import { EmergencyAccessStatusType } from "../../core/enums/emergency-access-status-type";
|
||||
import { EmergencyAccessType } from "../../core/enums/emergency-access-type";
|
||||
import { EmergencyAccessService } from "../../core/services/emergency-access/emergency-access.service";
|
||||
import {
|
||||
EmergencyAccessGranteeView,
|
||||
EmergencyAccessGrantorView,
|
||||
|
Loading…
Reference in New Issue
Block a user