1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-19 15:57:42 +01:00

moved all enums to jslib

This commit is contained in:
Kyle Spearrin 2018-01-06 14:22:55 -05:00
parent fcdf473af1
commit dc15edcd4d
25 changed files with 25 additions and 52 deletions

View File

@ -1,4 +1,4 @@
import { CipherType } from '../enums/cipherType.enum';
import { CipherType } from '@bitwarden/jslib';
import { Cipher } from '../models/domain/cipher';

View File

@ -1,4 +1,4 @@
import { CipherType } from '../enums/cipherType.enum';
import { CipherType } from '@bitwarden/jslib';
import BrowserApi from '../browser/browserApi';

View File

@ -1,6 +0,0 @@
export enum CipherType {
Login = 1,
SecureNote = 2,
Card = 3,
Identity = 4,
}

View File

@ -1,8 +0,0 @@
export enum DeviceType {
Chrome = 2,
Firefox = 3,
Opera = 4,
Edge = 5,
Vivaldi = 19,
Safari = 20,
}

View File

@ -1,9 +0,0 @@
export enum EncryptionType {
AesCbc256_B64 = 0,
AesCbc128_HmacSha256_B64 = 1,
AesCbc256_HmacSha256_B64 = 2,
Rsa2048_OaepSha256_B64 = 3,
Rsa2048_OaepSha1_B64 = 4,
Rsa2048_OaepSha256_HmacSha256_B64 = 5,
Rsa2048_OaepSha1_HmacSha256_B64 = 6,
}

View File

@ -1,5 +0,0 @@
export enum FieldType {
Text = 0,
Hidden = 1,
Boolean = 2,
}

View File

@ -1,3 +0,0 @@
export enum SecureNoteType {
Generic = 0,
}

View File

@ -1,4 +1,4 @@
import { FieldType } from '../../enums/fieldType.enum';
import { FieldType } from '@bitwarden/jslib';
class FieldData {
type: FieldType;

View File

@ -1,4 +1,4 @@
import { SecureNoteType } from '../../enums/secureNoteType.enum';
import { SecureNoteType } from '@bitwarden/jslib';
class SecureNoteData {
type: SecureNoteType;

View File

@ -1,4 +1,4 @@
import { CipherType } from '../../enums/cipherType.enum';
import { CipherType } from '@bitwarden/jslib';
import { CipherData } from '../data/cipherData';

View File

@ -1,4 +1,4 @@
import { EncryptionType } from '../../enums/encryptionType.enum';
import { EncryptionType } from '@bitwarden/jslib';
import ContainerService from '../../services/container.service';

View File

@ -1,4 +1,4 @@
import { FieldType } from '../../enums/fieldType.enum';
import { FieldType } from '@bitwarden/jslib';
import { FieldData } from '../data/fieldData';

View File

@ -1,4 +1,4 @@
import { SecureNoteType } from '../../enums/secureNoteType.enum';
import { SecureNoteType } from '@bitwarden/jslib';
import { SecureNoteData } from '../data/secureNoteData';

View File

@ -1,4 +1,4 @@
import { CipherType } from '../../enums/cipherType.enum';
import { CipherType } from '@bitwarden/jslib';
class CipherRequest {
type: CipherType;

View File

@ -1,4 +1,4 @@
import { DeviceType } from '../../enums/deviceType.enum';
import { DeviceType } from '@bitwarden/jslib';
import { PlatformUtilsService } from '../../services/abstractions/platformUtils.service';
class DeviceRequest {

View File

@ -1,4 +1,4 @@
import { DeviceType } from '../../enums/deviceType.enum';
import { DeviceType } from '@bitwarden/jslib';
class DeviceResponse {
id: string;

View File

@ -1,4 +1,4 @@
import { CipherType } from '../../../enums/cipherType.enum';
import { CipherType } from '@bitwarden/jslib';
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
import { UtilsService } from '../../../services/abstractions/utils.service';

View File

@ -1,5 +1,7 @@
import * as angular from 'angular';
import { DeviceType } from '../../../enums/deviceType.enum';
import { DeviceType } from '@bitwarden/jslib';
import { CryptoService } from '../../../services/abstractions/crypto.service';
import { MessagingService } from '../../../services/abstractions/messaging.service';
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';

View File

@ -2,7 +2,7 @@ import * as angular from 'angular';
import * as papa from 'papaparse';
import * as template from './export.component.html';
import { CipherType } from '../../../enums/cipherType.enum';
import { CipherType } from '@bitwarden/jslib';
import { CryptoService } from '../../../services/abstractions/crypto.service';
import { UtilsService } from '../../../services/abstractions/utils.service';

View File

@ -1,4 +1,4 @@
import { DeviceType } from '../../enums/deviceType.enum';
import { DeviceType } from '@bitwarden/jslib';
export interface PlatformUtilsService {
getDevice(): DeviceType;

View File

@ -1,5 +1,5 @@
import { CipherType } from '../enums/cipherType.enum';
import { FieldType } from '../enums/fieldType.enum';
import { CipherType } from '@bitwarden/jslib';
import { FieldType } from '@bitwarden/jslib';
import AutofillField from '../models/domain/autofillField';
import AutofillPageDetails from '../models/domain/autofillPageDetails';

View File

@ -1,5 +1,5 @@
import BrowserPlatformUtilsService from './browserPlatformUtils.service';
import { DeviceType } from '../enums/deviceType.enum';
import { DeviceType } from '@bitwarden/jslib';
describe('Browser Utils Service', () => {
describe('getDomain', () => {

View File

@ -1,5 +1,7 @@
import * as tldjs from 'tldjs';
import { DeviceType } from '../enums/deviceType.enum';
import { DeviceType } from '@bitwarden/jslib';
import { PlatformUtilsService as PlatformUtilsServiceInterface } from './abstractions/platformUtils.service';
const AnalyticsIds = {

View File

@ -1,4 +1,4 @@
import { CipherType } from '../enums/cipherType.enum';
import { CipherType } from '@bitwarden/jslib';
import { Cipher } from '../models/domain/cipher';
import { CipherString } from '../models/domain/cipherString';

View File

@ -1,6 +1,6 @@
import * as forge from 'node-forge';
import { EncryptionType } from '../enums/encryptionType.enum';
import { EncryptionType } from '@bitwarden/jslib';
import { CipherString } from '../models/domain/cipherString';
import EncryptedObject from '../models/domain/encryptedObject';