1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

remove model window assignments

This commit is contained in:
Kyle Spearrin
2018-01-20 14:12:18 -05:00
parent e753becd33
commit e157d5be6d
41 changed files with 41 additions and 164 deletions

View File

@@ -1,6 +1,6 @@
import { AttachmentResponse } from '../response/attachmentResponse';
class AttachmentData {
export class AttachmentData {
id: string;
url: string;
fileName: string;
@@ -15,6 +15,3 @@ class AttachmentData {
this.sizeName = response.sizeName;
}
}
export { AttachmentData };
(window as any).AttachmentData = AttachmentData;

View File

@@ -1,4 +1,4 @@
class CardData {
export class CardData {
cardholderName: string;
brand: string;
number: string;
@@ -15,6 +15,3 @@ class CardData {
this.code = data.Code;
}
}
export { CardData };
(window as any).CardData = CardData;

View File

@@ -9,7 +9,7 @@ import { SecureNoteData } from './secureNoteData';
import { CipherResponse } from '../response/cipherResponse';
class CipherData {
export class CipherData {
id: string;
organizationId: string;
folderId: string;
@@ -82,6 +82,3 @@ class CipherData {
}
}
}
export { CipherData };
(window as any).CipherData = CipherData;

View File

@@ -1,6 +1,6 @@
import { CollectionResponse } from '../response/collectionResponse';
class CollectionData {
export class CollectionData {
id: string;
organizationId: string;
name: string;
@@ -11,6 +11,3 @@ class CollectionData {
this.name = response.name;
}
}
export { CollectionData };
(window as any).CollectionData = CollectionData;

View File

@@ -1,6 +1,6 @@
import { FieldType } from '../../enums/fieldType';
class FieldData {
export class FieldData {
type: FieldType;
name: string;
value: string;
@@ -11,6 +11,3 @@ class FieldData {
this.value = response.Value;
}
}
export { FieldData };
(window as any).FieldData = FieldData;

View File

@@ -1,6 +1,6 @@
import { FolderResponse } from '../response/folderResponse';
class FolderData {
export class FolderData {
id: string;
userId: string;
name: string;
@@ -13,6 +13,3 @@ class FolderData {
this.revisionDate = response.revisionDate;
}
}
export { FolderData };
(window as any).FolderData = FolderData;

View File

@@ -1,4 +1,4 @@
class IdentityData {
export class IdentityData {
title: string;
firstName: string;
middleName: string;
@@ -39,6 +39,3 @@ class IdentityData {
this.licenseNumber = data.LicenseNumber;
}
}
export { IdentityData };
(window as any).IdentityData = IdentityData;

View File

@@ -1,4 +1,4 @@
class LoginData {
export class LoginData {
uri: string;
username: string;
password: string;
@@ -11,6 +11,3 @@ class LoginData {
this.totp = data.Totp;
}
}
export { LoginData };
(window as any).LoginData = LoginData;

View File

@@ -1,12 +1,9 @@
import { SecureNoteType } from '../../enums/secureNoteType';
class SecureNoteData {
export class SecureNoteData {
type: SecureNoteType;
constructor(data: any) {
this.type = data.Type;
}
}
export { SecureNoteData };
(window as any).SecureNoteData = SecureNoteData;