1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01:00

[SG-998] Move vault folder into app folder for web (#4824)

* Move vault folder into app folder for web

* Remove extra line is oss module
This commit is contained in:
Robyn MacCallum 2023-02-22 11:21:32 -05:00 committed by GitHub
parent 6f58d44833
commit c594f23121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
88 changed files with 49 additions and 52 deletions

View File

@ -24,7 +24,7 @@ import { StateFactory } from "@bitwarden/common/factories/stateFactory";
import { MemoryStorageService } from "@bitwarden/common/services/memoryStorage.service";
import { PasswordRepromptService as PasswordRepromptServiceAbstraction } from "@bitwarden/common/vault/abstractions/password-reprompt.service";
import { PasswordRepromptService } from "../../vault/core/password-reprompt.service";
import { PasswordRepromptService } from "../vault/core/password-reprompt.service";
import { BroadcasterMessagingService } from "./broadcaster-messaging.service";
import { EventService } from "./event.service";

View File

@ -12,7 +12,7 @@ import {
} from "@bitwarden/common/abstractions/organization/organization.service.abstraction";
import { Organization } from "@bitwarden/common/models/domain/organization";
import { VaultModule } from "../../vault/org-vault/vault.module";
import { VaultModule } from "../vault/org-vault/vault.module";
import { OrganizationPermissionsGuard } from "./guards/org-permissions.guard";
import { OrganizationRedirectGuard } from "./guards/org-redirect.guard";

View File

@ -11,11 +11,11 @@ import { CipherData } from "@bitwarden/common/vault/models/data/cipher.data";
import { Cipher } from "@bitwarden/common/vault/models/domain/cipher";
import { CipherCollectionsRequest } from "@bitwarden/common/vault/models/request/cipher-collections.request";
import { CollectionsComponent as BaseCollectionsComponent } from "../../../vault/individual-vault/collections.component";
import { CollectionsComponent as BaseCollectionsComponent } from "../../vault/individual-vault/collections.component";
@Component({
selector: "app-org-vault-collections",
templateUrl: "../../../vault/individual-vault/collections.component.html",
templateUrl: "../../vault/individual-vault/collections.component.html",
})
export class CollectionsComponent extends BaseCollectionsComponent {
organization: Organization;

View File

@ -24,7 +24,6 @@ import { UpdateTempPasswordComponent } from "../auth/update-temp-password.compon
import { VerifyEmailTokenComponent } from "../auth/verify-email-token.component";
import { VerifyRecoverDeleteComponent } from "../auth/verify-recover-delete.component";
import { flagEnabled, Flags } from "../utils/flags";
import { VaultModule } from "../vault/individual-vault/vault.module";
import { TrialInitiationComponent } from "./accounts/trial-initiation/trial-initiation.component";
import { HomeGuard } from "./guards/home.guard";
@ -46,6 +45,7 @@ import { SponsoredFamiliesComponent } from "./settings/sponsored-families.compon
import { SubscriptionRoutingModule } from "./settings/subscription-routing.module";
import { GeneratorComponent } from "./tools/generator.component";
import { ToolsComponent } from "./tools/tools.component";
import { VaultModule } from "./vault/individual-vault/vault.module";
const routes: Routes = [
{

View File

@ -1,14 +1,14 @@
import { NgModule } from "@angular/core";
import { LoginModule } from "../auth/login/login.module";
import { OrganizationBadgeModule } from "../vault/individual-vault/organization-badge/organization-badge.module";
import { VaultFilterModule } from "../vault/individual-vault/vault-filter/vault-filter.module";
import { TrialInitiationModule } from "./accounts/trial-initiation/trial-initiation.module";
import { OrganizationCreateModule } from "./organizations/create/organization-create.module";
import { OrganizationManageModule } from "./organizations/manage/organization-manage.module";
import { OrganizationUserModule } from "./organizations/users/organization-user.module";
import { LooseComponentsModule, SharedModule } from "./shared";
import { OrganizationBadgeModule } from "./vault/individual-vault/organization-badge/organization-badge.module";
import { VaultFilterModule } from "./vault/individual-vault/vault-filter/vault-filter.module";
@NgModule({
imports: [

View File

@ -7,8 +7,8 @@ import { PasswordRepromptService } from "@bitwarden/common/vault/abstractions/pa
import { CipherRepromptType } from "@bitwarden/common/vault/enums/cipher-reprompt-type";
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { AddEditComponent } from "../../../vault/individual-vault/add-edit.component";
import { AddEditComponent as OrgAddEditComponent } from "../../../vault/org-vault/add-edit.component";
import { AddEditComponent } from "../../vault/individual-vault/add-edit.component";
import { AddEditComponent as OrgAddEditComponent } from "../../vault/org-vault/add-edit.component";
@Directive()
export class CipherReportComponent {

View File

@ -4,8 +4,8 @@ import { Meta, Story, moduleMetadata } from "@storybook/angular";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { BadgeModule, IconModule } from "@bitwarden/components";
import { PremiumBadgeComponent } from "../../../../vault/components/premium-badge.component";
import { PreloadedEnglishI18nModule } from "../../../tests/preloaded-english-i18n.module";
import { PremiumBadgeComponent } from "../../../vault/components/premium-badge.component";
import { ReportVariant } from "../models/report-variant";
import { ReportCardComponent } from "./report-card.component";

View File

@ -4,8 +4,8 @@ import { Meta, Story, moduleMetadata } from "@storybook/angular";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { BadgeModule, IconModule } from "@bitwarden/components";
import { PremiumBadgeComponent } from "../../../../vault/components/premium-badge.component";
import { PreloadedEnglishI18nModule } from "../../../tests/preloaded-english-i18n.module";
import { PremiumBadgeComponent } from "../../../vault/components/premium-badge.component";
import { reports } from "../../reports";
import { ReportVariant } from "../models/report-variant";
import { ReportCardComponent } from "../report-card/report-card.component";

View File

@ -1,6 +1,5 @@
import { NgModule } from "@angular/core";
import { PasswordRepromptComponent } from "../../../src/vault/components/password-reprompt.component";
import { AcceptEmergencyComponent } from "../../auth/accept-emergency.component";
import { AcceptOrganizationComponent } from "../../auth/accept-organization.component";
import { HintComponent } from "../../auth/hint.component";
@ -34,15 +33,6 @@ import { UpdatePasswordComponent } from "../../auth/update-password.component";
import { UpdateTempPasswordComponent } from "../../auth/update-temp-password.component";
import { VerifyEmailTokenComponent } from "../../auth/verify-email-token.component";
import { VerifyRecoverDeleteComponent } from "../../auth/verify-recover-delete.component";
import { PremiumBadgeComponent } from "../../vault/components/premium-badge.component";
import { AddEditCustomFieldsComponent } from "../../vault/individual-vault/add-edit-custom-fields.component";
import { AddEditComponent } from "../../vault/individual-vault/add-edit.component";
import { AttachmentsComponent } from "../../vault/individual-vault/attachments.component";
import { CollectionsComponent } from "../../vault/individual-vault/collections.component";
import { FolderAddEditComponent } from "../../vault/individual-vault/folder-add-edit.component";
import { ShareComponent } from "../../vault/individual-vault/share.component";
import { AddEditComponent as OrgAddEditComponent } from "../../vault/org-vault/add-edit.component";
import { AttachmentsComponent as OrgAttachmentsComponent } from "../../vault/org-vault/attachments.component";
import { DynamicAvatarComponent } from "../components/dynamic-avatar.component";
import { OrganizationSwitcherComponent } from "../components/organization-switcher.component";
import { SelectableAvatarComponent } from "../components/selectable-avatar.component";
@ -111,6 +101,16 @@ import { VaultTimeoutInputComponent } from "../settings/vault-timeout-input.comp
import { GeneratorComponent } from "../tools/generator.component";
import { PasswordGeneratorHistoryComponent } from "../tools/password-generator-history.component";
import { ToolsComponent } from "../tools/tools.component";
import { PasswordRepromptComponent } from "../vault/components/password-reprompt.component";
import { PremiumBadgeComponent } from "../vault/components/premium-badge.component";
import { AddEditCustomFieldsComponent } from "../vault/individual-vault/add-edit-custom-fields.component";
import { AddEditComponent } from "../vault/individual-vault/add-edit.component";
import { AttachmentsComponent } from "../vault/individual-vault/attachments.component";
import { CollectionsComponent } from "../vault/individual-vault/collections.component";
import { FolderAddEditComponent } from "../vault/individual-vault/folder-add-edit.component";
import { ShareComponent } from "../vault/individual-vault/share.component";
import { AddEditComponent as OrgAddEditComponent } from "../vault/org-vault/add-edit.component";
import { AttachmentsComponent as OrgAttachmentsComponent } from "../vault/org-vault/attachments.component";
import { SharedModule } from "./shared.module";

View File

@ -1,6 +1,6 @@
import { NgModule } from "@angular/core";
import { SharedModule } from "../../../app/shared";
import { SharedModule } from "../../../shared";
import { BulkDeleteDialogComponent } from "./bulk-delete-dialog/bulk-delete-dialog.component";
import { BulkMoveDialogComponent } from "./bulk-move-dialog/bulk-move-dialog.component";

View File

@ -1,6 +1,6 @@
import { NgModule } from "@angular/core";
import { SharedModule } from "../../../app/shared";
import { SharedModule } from "../../../shared";
import { OrganizationNameBadgeComponent } from "./organization-name-badge.component";

View File

@ -1,6 +1,6 @@
import { Pipe, PipeTransform } from "@angular/core";
import { GroupView } from "../../../app/organizations/core";
import { GroupView } from "../../../organizations/core";
@Pipe({
name: "groupNameFromId",

View File

@ -15,7 +15,7 @@ import { Organization } from "@bitwarden/common/models/domain/organization";
import { Policy } from "@bitwarden/common/models/domain/policy";
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
import { EnrollMasterPasswordReset } from "../../../../app/organizations/users/enroll-master-password-reset.component";
import { EnrollMasterPasswordReset } from "../../../../organizations/users/enroll-master-password-reset.component";
import { OptionsInput } from "../shared/components/vault-filter-section.component";
import { OrganizationFilter } from "../shared/models/vault-filter.type";

View File

@ -24,7 +24,7 @@ import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.servi
import { FolderService } from "@bitwarden/common/vault/abstractions/folder/folder.service.abstraction";
import { FolderView } from "@bitwarden/common/vault/models/view/folder.view";
import { CollectionAdminView } from "../../../../app/organizations/core";
import { CollectionAdminView } from "../../../../organizations/core";
import {
CipherTypeFilter,
CollectionFilter,

View File

@ -3,7 +3,7 @@ import { ITreeNodeObject } from "@bitwarden/common/src/models/domain/tree-node";
import { FolderView } from "@bitwarden/common/src/vault/models/view/folder.view";
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
import { CollectionAdminView } from "../../../../../app/organizations/core";
import { CollectionAdminView } from "../../../../../organizations/core";
export type CipherStatus = "all" | "favorites" | "trash" | CipherType;

View File

@ -1,6 +1,6 @@
import { NgModule } from "@angular/core";
import { SharedModule } from "../../../../app/shared";
import { SharedModule } from "../../../../shared";
import { VaultFilterSectionComponent } from "./components/vault-filter-section.component";

View File

@ -23,7 +23,7 @@ import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { DialogService, Icons } from "@bitwarden/components";
import { CollectionAdminView, GroupView } from "../../app/organizations/core";
import { CollectionAdminView, GroupView } from "../../organizations/core";
import {
BulkDeleteDialogResult,

View File

@ -28,7 +28,7 @@ import { PasswordRepromptService } from "@bitwarden/common/vault/abstractions/pa
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { UpdateKeyComponent } from "../../app/settings/update-key.component";
import { UpdateKeyComponent } from "../../settings/update-key.component";
import { AddEditComponent } from "./add-edit.component";
import { AttachmentsComponent } from "./attachments.component";

View File

@ -2,7 +2,7 @@ import { NgModule } from "@angular/core";
import { BreadcrumbsModule } from "@bitwarden/components";
import { LooseComponentsModule, SharedModule } from "../../app/shared";
import { LooseComponentsModule, SharedModule } from "../../shared";
import { CollectionBadgeModule } from "../org-vault/collection-badge/collection-badge.module";
import { GroupBadgeModule } from "../org-vault/group-badge/group-badge.module";

View File

@ -1,6 +1,6 @@
import { NgModule } from "@angular/core";
import { SharedModule } from "../../../app/shared";
import { SharedModule } from "../../../shared";
import { PipesModule } from "../../individual-vault/pipes/pipes.module";
import { CollectionNameBadgeComponent } from "./collection-name.badge.component";

View File

@ -1,6 +1,6 @@
import { NgModule } from "@angular/core";
import { SharedModule } from "../../../app/shared";
import { SharedModule } from "../../../shared";
import { PipesModule } from "../../individual-vault/pipes/pipes.module";
import { GroupNameBadgeComponent } from "./group-name-badge.component";

View File

@ -3,7 +3,7 @@ import { Component, Input, OnChanges } from "@angular/core";
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
import { SelectionReadOnlyRequest } from "@bitwarden/common/models/request/selection-read-only.request";
import { GroupView } from "../../../app/organizations/core";
import { GroupView } from "../../../organizations/core";
@Component({
selector: "app-group-badge",

View File

@ -14,8 +14,8 @@ import { TreeNode } from "@bitwarden/common/models/domain/tree-node";
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
import { FolderService } from "@bitwarden/common/vault/abstractions/folder/folder.service.abstraction";
import { CollectionAdminView } from "../../../app/organizations/core";
import { CollectionAdminService } from "../../../app/organizations/core/services/collection-admin.service";
import { CollectionAdminView } from "../../../organizations/core";
import { CollectionAdminService } from "../../../organizations/core/services/collection-admin.service";
import { VaultFilterService as BaseVaultFilterService } from "../../individual-vault/vault-filter/services/vault-filter.service";
import { CollectionFilter } from "../../individual-vault/vault-filter/shared/models/vault-filter.type";

View File

@ -18,12 +18,12 @@ import {
SimpleDialogType,
} from "@bitwarden/components";
import { CollectionAdminService, CollectionAdminView } from "../../../app/organizations/core";
import { CollectionAdminService, CollectionAdminView } from "../../../organizations/core";
import {
CollectionDialogResult,
CollectionDialogTabType,
openCollectionDialog,
} from "../../../app/organizations/shared";
} from "../../../organizations/shared";
import { VaultFilterService } from "../../individual-vault/vault-filter/services/abstractions/vault-filter.service";
import { VaultFilter } from "../../individual-vault/vault-filter/shared/models/vault-filter.model";
import { CollectionFilter } from "../../individual-vault/vault-filter/shared/models/vault-filter.type";

View File

@ -20,13 +20,13 @@ import { PasswordRepromptService } from "@bitwarden/common/vault/abstractions/pa
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { DialogService } from "@bitwarden/components";
import { CollectionAdminView } from "../../app/organizations/core";
import { GroupService } from "../../app/organizations/core/services/group/group.service";
import { CollectionAdminView } from "../../organizations/core";
import { GroupService } from "../../organizations/core/services/group/group.service";
import {
CollectionDialogResult,
CollectionDialogTabType,
openCollectionDialog,
} from "../../app/organizations/shared/components/collection-dialog/collection-dialog.component";
} from "../../organizations/shared/components/collection-dialog/collection-dialog.component";
import {
BulkDeleteDialogResult,
openBulkDeleteDialog,

View File

@ -3,7 +3,7 @@ import { RouterModule, Routes } from "@angular/router";
import { canAccessVaultTab } from "@bitwarden/common/abstractions/organization/organization.service.abstraction";
import { OrganizationPermissionsGuard } from "../../app/organizations/guards/org-permissions.guard";
import { OrganizationPermissionsGuard } from "../../organizations/guards/org-permissions.guard";
import { VaultComponent } from "./vault.component";
const routes: Routes = [

View File

@ -24,8 +24,8 @@ import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.serv
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
import { DialogService } from "@bitwarden/components";
import { EntityEventsComponent } from "../../app/organizations/manage/entity-events.component";
import { CollectionsComponent } from "../../app/organizations/vault/collections.component";
import { EntityEventsComponent } from "../../organizations/manage/entity-events.component";
import { CollectionsComponent } from "../../organizations/vault/collections.component";
import { VaultFilterService } from "../../vault/individual-vault/vault-filter/services/abstractions/vault-filter.service";
import { VaultFilter } from "../../vault/individual-vault/vault-filter/shared/models/vault-filter.model";

View File

@ -2,11 +2,8 @@ import { NgModule } from "@angular/core";
import { BreadcrumbsModule } from "@bitwarden/components";
// TODO refine elsint rule for **/app/shared/* for both of these imports
// eslint-disable-next-line no-restricted-imports
import { LooseComponentsModule } from "../../app/shared/loose-components.module";
// eslint-disable-next-line no-restricted-imports
import { SharedModule } from "../../app/shared/shared.module";
import { LooseComponentsModule } from "../../shared/loose-components.module";
import { SharedModule } from "../../shared/shared.module";
import { OrganizationBadgeModule } from "../../vault/individual-vault/organization-badge/organization-badge.module";
import { PipesModule } from "../../vault/individual-vault/pipes/pipes.module";

View File

@ -13,7 +13,7 @@ import { AttachmentView } from "@bitwarden/common/vault/models/view/attachment.v
@Component({
selector: "emergency-access-attachments",
templateUrl: "../../../vault/individual-vault/attachments.component.html",
templateUrl: "../../../app/vault/individual-vault/attachments.component.html",
})
export class EmergencyAccessAttachmentsComponent extends BaseAttachmentsComponent {
viewOnly = true;

View File

@ -17,11 +17,11 @@ import { FolderService } from "@bitwarden/common/vault/abstractions/folder/folde
import { PasswordRepromptService } from "@bitwarden/common/vault/abstractions/password-reprompt.service";
import { Cipher } from "@bitwarden/common/vault/models/domain/cipher";
import { AddEditComponent as BaseAddEditComponent } from "../../../vault/individual-vault/add-edit.component";
import { AddEditComponent as BaseAddEditComponent } from "../../../app/vault/individual-vault/add-edit.component";
@Component({
selector: "app-org-vault-add-edit",
templateUrl: "../../../vault/individual-vault/add-edit.component.html",
templateUrl: "../../../app/vault/individual-vault/add-edit.component.html",
})
export class EmergencyAddEditComponent extends BaseAddEditComponent {
originalCipher: Cipher = null;