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:
parent
fcdf473af1
commit
dc15edcd4d
@ -1,4 +1,4 @@
|
||||
import { CipherType } from '../enums/cipherType.enum';
|
||||
import { CipherType } from '@bitwarden/jslib';
|
||||
|
||||
import { Cipher } from '../models/domain/cipher';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { CipherType } from '../enums/cipherType.enum';
|
||||
import { CipherType } from '@bitwarden/jslib';
|
||||
|
||||
import BrowserApi from '../browser/browserApi';
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
export enum CipherType {
|
||||
Login = 1,
|
||||
SecureNote = 2,
|
||||
Card = 3,
|
||||
Identity = 4,
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
export enum DeviceType {
|
||||
Chrome = 2,
|
||||
Firefox = 3,
|
||||
Opera = 4,
|
||||
Edge = 5,
|
||||
Vivaldi = 19,
|
||||
Safari = 20,
|
||||
}
|
@ -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,
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
export enum FieldType {
|
||||
Text = 0,
|
||||
Hidden = 1,
|
||||
Boolean = 2,
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
export enum SecureNoteType {
|
||||
Generic = 0,
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import { FieldType } from '../../enums/fieldType.enum';
|
||||
import { FieldType } from '@bitwarden/jslib';
|
||||
|
||||
class FieldData {
|
||||
type: FieldType;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { SecureNoteType } from '../../enums/secureNoteType.enum';
|
||||
import { SecureNoteType } from '@bitwarden/jslib';
|
||||
|
||||
class SecureNoteData {
|
||||
type: SecureNoteType;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { CipherType } from '../../enums/cipherType.enum';
|
||||
import { CipherType } from '@bitwarden/jslib';
|
||||
|
||||
import { CipherData } from '../data/cipherData';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { EncryptionType } from '../../enums/encryptionType.enum';
|
||||
import { EncryptionType } from '@bitwarden/jslib';
|
||||
|
||||
import ContainerService from '../../services/container.service';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { FieldType } from '../../enums/fieldType.enum';
|
||||
import { FieldType } from '@bitwarden/jslib';
|
||||
|
||||
import { FieldData } from '../data/fieldData';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { SecureNoteType } from '../../enums/secureNoteType.enum';
|
||||
import { SecureNoteType } from '@bitwarden/jslib';
|
||||
|
||||
import { SecureNoteData } from '../data/secureNoteData';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { CipherType } from '../../enums/cipherType.enum';
|
||||
import { CipherType } from '@bitwarden/jslib';
|
||||
|
||||
class CipherRequest {
|
||||
type: CipherType;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { DeviceType } from '../../enums/deviceType.enum';
|
||||
import { DeviceType } from '@bitwarden/jslib';
|
||||
import { PlatformUtilsService } from '../../services/abstractions/platformUtils.service';
|
||||
|
||||
class DeviceRequest {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { DeviceType } from '../../enums/deviceType.enum';
|
||||
import { DeviceType } from '@bitwarden/jslib';
|
||||
|
||||
class DeviceResponse {
|
||||
id: string;
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { DeviceType } from '../../enums/deviceType.enum';
|
||||
import { DeviceType } from '@bitwarden/jslib';
|
||||
|
||||
export interface PlatformUtilsService {
|
||||
getDevice(): DeviceType;
|
||||
|
@ -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';
|
||||
|
@ -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', () => {
|
||||
|
@ -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 = {
|
||||
|
@ -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';
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user