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

Revert "reference barrels"

This reverts commit 2d9f53fbed.
This commit is contained in:
Kyle Spearrin 2018-02-19 13:07:19 -05:00
parent 2d9f53fbed
commit 166ed44392
62 changed files with 223 additions and 293 deletions

View File

@ -1,21 +1,17 @@
import { EnvironmentUrls } from '../models/domain';
import { EnvironmentUrls } from '../models/domain/environmentUrls';
import {
CipherRequest,
FolderRequest,
PasswordHintRequest,
RegisterRequest,
TokenRequest,
TwoFactorEmailRequest,
} from '../models/request';
import { CipherRequest } from '../models/request/cipherRequest';
import { FolderRequest } from '../models/request/folderRequest';
import { PasswordHintRequest } from '../models/request/passwordHintRequest';
import { RegisterRequest } from '../models/request/registerRequest';
import { TokenRequest } from '../models/request/tokenRequest';
import { TwoFactorEmailRequest } from '../models/request/twoFactorEmailRequest';
import {
CipherResponse,
FolderResponse,
IdentityTokenResponse,
IdentityTwoFactorResponse,
SyncResponse,
} from '../models/response';
import { CipherResponse } from '../models/response/cipherResponse';
import { FolderResponse } from '../models/response/folderResponse';
import { IdentityTokenResponse } from '../models/response/identityTokenResponse';
import { IdentityTwoFactorResponse } from '../models/response/identityTwoFactorResponse';
import { SyncResponse } from '../models/response/syncResponse';
export abstract class ApiService {
urlsSet: boolean;

View File

@ -1,6 +1,6 @@
import { TwoFactorProviderType } from '../enums';
import { TwoFactorProviderType } from '../enums/twoFactorProviderType';
import { AuthResult } from '../models/domain';
import { AuthResult } from '../models/domain/authResult';
export abstract class AuthService {
email: string;

View File

@ -1,15 +1,11 @@
import { CipherData } from '../models/data';
import { CipherData } from '../models/data/cipherData';
import {
Cipher,
Field,
SymmetricCryptoKey,
} from '../models/domain';
import { Cipher } from '../models/domain/cipher';
import { Field } from '../models/domain/field';
import { SymmetricCryptoKey } from '../models/domain/symmetricCryptoKey';
import {
CipherView,
FieldView,
} from '../models/view';
import { CipherView } from '../models/view/cipherView';
import { FieldView } from '../models/view/fieldView';
export abstract class CipherService {
decryptedCipherCache: CipherView[];

View File

@ -1,8 +1,8 @@
import { CollectionData } from '../models/data';
import { CollectionData } from '../models/data/collectionData';
import { Collection } from '../models/domain';
import { Collection } from '../models/domain/collection';
import { CollectionView } from '../models/view';
import { CollectionView } from '../models/view/collectionView';
export abstract class CollectionService {
decryptedCollectionCache: CollectionView[];

View File

@ -1,9 +1,7 @@
import {
CipherString,
SymmetricCryptoKey,
} from '../models/domain';
import { CipherString } from '../models/domain/cipherString';
import { SymmetricCryptoKey } from '../models/domain/symmetricCryptoKey';
import { ProfileOrganizationResponse } from '../models/response';
import { ProfileOrganizationResponse } from '../models/response/profileOrganizationResponse';
export abstract class CryptoService {
setKey: (key: SymmetricCryptoKey) => Promise<any>;

View File

@ -1,8 +1,8 @@
import { FolderData } from '../models/data';
import { FolderData } from '../models/data/folderData';
import { Folder } from '../models/domain';
import { Folder } from '../models/domain/folder';
import { FolderView } from '../models/view';
import { FolderView } from '../models/view/folderView';
export abstract class FolderService {
decryptedFolderCache: FolderView[];

View File

@ -1,4 +1,4 @@
import { PasswordHistory } from '../models/domain';
import { PasswordHistory } from '../models/domain/passwordHistory';
export abstract class PasswordGenerationService {
generatePassword: (options: any) => string;

View File

@ -1,4 +1,4 @@
import { DeviceType } from '../enums';
import { DeviceType } from '../enums/deviceType';
export abstract class PlatformUtilsService {
getDevice: () => DeviceType;

View File

@ -1,8 +1,6 @@
import {
AppIdService,
PlatformUtilsService,
StorageService,
} from '../abstractions';
import { AppIdService } from '../abstractions/appId.service';
import { PlatformUtilsService } from '../abstractions/platformUtils.service';
import { StorageService } from '../abstractions/storage.service';
import { ConstantsService } from '../services/constants.service';

View File

@ -1,4 +1,4 @@
import { AttachmentResponse } from '../response';
import { AttachmentResponse } from '../response/attachmentResponse';
export class AttachmentData {
id: string;

View File

@ -1,4 +1,4 @@
import { CipherType } from '../../enums';
import { CipherType } from '../../enums/cipherType';
import { AttachmentData } from './attachmentData';
import { CardData } from './cardData';
@ -7,7 +7,7 @@ import { IdentityData } from './identityData';
import { LoginData } from './loginData';
import { SecureNoteData } from './secureNoteData';
import { CipherResponse } from '../response';
import { CipherResponse } from '../response/cipherResponse';
export class CipherData {
id: string;

View File

@ -1,4 +1,4 @@
import { CollectionResponse } from '../response';
import { CollectionResponse } from '../response/collectionResponse';
export class CollectionData {
id: string;

View File

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

View File

@ -1,4 +1,4 @@
import { FolderResponse } from '../response';
import { FolderResponse } from '../response/folderResponse';
export class FolderData {
id: string;

View File

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

View File

@ -1,9 +1,9 @@
import { AttachmentData } from '../data';
import { AttachmentData } from '../data/attachmentData';
import { CipherString } from './cipherString';
import Domain from './domain';
import { AttachmentView } from '../view';
import { AttachmentView } from '../view/attachmentView';
export class Attachment extends Domain {
id: string;

View File

@ -1,4 +1,4 @@
import { TwoFactorProviderType } from '../../enums';
import { TwoFactorProviderType } from '../../enums/twoFactorProviderType';
export class AuthResult {
twoFactor: boolean = false;

View File

@ -1,9 +1,9 @@
import { CardData } from '../data';
import { CardData } from '../data/cardData';
import { CipherString } from './cipherString';
import Domain from './domain';
import { CardView } from '../view';
import { CardView } from '../view/cardView';
export class Card extends Domain {
cardholderName: CipherString;

View File

@ -1,8 +1,8 @@
import { CipherType } from '../../enums';
import { CipherType } from '../../enums/cipherType';
import { CipherData } from '../data';
import { CipherData } from '../data/cipherData';
import { CipherView } from '../view';
import { CipherView } from '../view/cipherView';
import { Attachment } from './attachment';
import { Card } from './card';

View File

@ -1,6 +1,6 @@
import { EncryptionType } from '../../enums';
import { EncryptionType } from '../../enums/encryptionType';
import { CryptoService } from '../../abstractions';
import { CryptoService } from '../../abstractions/crypto.service';
export class CipherString {
encryptedString?: string;

View File

@ -1,6 +1,6 @@
import { CollectionData } from '../data';
import { CollectionData } from '../data/collectionData';
import { CollectionView } from '../view';
import { CollectionView } from '../view/collectionView';
import { CipherString } from './cipherString';
import Domain from './domain';

View File

@ -1,6 +1,6 @@
import { CipherString } from './cipherString';
import { CipherString } from '../domain/cipherString';
import { View } from '../view';
import { View } from '../view/view';
export default abstract class Domain {
protected buildDomainModel<D extends Domain>(domain: D, dataObj: any, map: any,

View File

@ -1,11 +1,11 @@
import { FieldType } from '../../enums';
import { FieldType } from '../../enums/fieldType';
import { FieldData } from '../data';
import { FieldData } from '../data/fieldData';
import { CipherString } from './cipherString';
import Domain from './domain';
import { FieldView } from '../view';
import { FieldView } from '../view/fieldView';
export class Field extends Domain {
name: CipherString;

View File

@ -1,6 +1,6 @@
import { FolderData } from '../data';
import { FolderData } from '../data/folderData';
import { FolderView } from '../view';
import { FolderView } from '../view/folderView';
import { CipherString } from './cipherString';
import Domain from './domain';

View File

@ -1,9 +1,9 @@
import { IdentityData } from '../data';
import { IdentityData } from '../data/identityData';
import { CipherString } from './cipherString';
import Domain from './domain';
import { IdentityView } from '../view';
import { IdentityView } from '../view/identityView';
export class Identity extends Domain {
title: CipherString;

View File

@ -1,6 +1,6 @@
import { LoginData } from '../data';
import { LoginData } from '../data/loginData';
import { LoginView } from '../view';
import { LoginView } from '../view/loginView';
import { CipherString } from './cipherString';
import Domain from './domain';

View File

@ -1,10 +1,10 @@
import { SecureNoteType } from '../../enums';
import { SecureNoteType } from '../../enums/secureNoteType';
import { SecureNoteData } from '../data';
import { SecureNoteData } from '../data/secureNoteData';
import Domain from './domain';
import { SecureNoteView } from '../view';
import { SecureNoteView } from '../view/secureNoteView';
export class SecureNote extends Domain {
type: SecureNoteType;

View File

@ -1,6 +1,6 @@
import * as forge from 'node-forge';
import { EncryptionType } from '../../enums';
import { EncryptionType } from '../../enums/encryptionType';
import { SymmetricCryptoKeyBuffers } from './symmetricCryptoKeyBuffers';

View File

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

View File

@ -1,6 +1,6 @@
import { DeviceType } from '../../enums';
import { DeviceType } from '../../enums/deviceType';
import { PlatformUtilsService } from '../../abstractions';
import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
export class DeviceRequest {
type: DeviceType;

View File

@ -1,4 +1,4 @@
import { Folder } from '../domain';
import { Folder } from '../domain/folder';
export class FolderRequest {
name: string;

View File

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

View File

@ -1,4 +1,4 @@
import { TwoFactorProviderType } from '../../enums';
import { TwoFactorProviderType } from '../../enums/twoFactorProviderType';
export class IdentityTwoFactorResponse {
twoFactorProviders: TwoFactorProviderType[];

View File

@ -1,6 +1,6 @@
import { View } from './view';
import { Attachment } from '../domain';
import { Attachment } from '../domain/attachment';
export class AttachmentView implements View {
id: string;

View File

@ -1,6 +1,6 @@
import { View } from './view';
import { Card } from '../domain';
import { Card } from '../domain/card';
export class CardView implements View {
cardholderName: string;

View File

@ -1,6 +1,6 @@
import { CipherType } from '../../enums';
import { CipherType } from '../../enums/cipherType';
import { Cipher } from '../domain';
import { Cipher } from '../domain/cipher';
import { AttachmentView } from './attachmentView';
import { CardView } from './cardView';

View File

@ -1,6 +1,6 @@
import { View } from './view';
import { Collection } from '../domain';
import { Collection } from '../domain/collection';
export class CollectionView implements View {
id: string;

View File

@ -1,8 +1,8 @@
import { FieldType } from '../../enums';
import { FieldType } from '../../enums/fieldType';
import { View } from './view';
import { Field } from '../domain';
import { Field } from '../domain/field';
export class FieldView implements View {
name: string;

View File

@ -1,6 +1,6 @@
import { View } from './view';
import { Folder } from '../domain';
import { Folder } from '../domain/folder';
export class FolderView implements View {
id: string = null;

View File

@ -1,6 +1,6 @@
import { View } from './view';
import { Identity } from '../domain';
import { Identity } from '../domain/identity';
export class IdentityView implements View {
title: string = null;

View File

@ -1,9 +1,7 @@
export { AttachmentView } from './attachmentView';
export { CardView } from './cardView';
export { CipherView } from './cipherView';
export { CollectionView } from './collectionView';
export { FieldView } from './fieldView';
export { FolderView } from './folderView';
export { IdentityView } from './identityView';
export { LoginView } from './loginView';
export { SecureNoteView } from './secureNoteView';

View File

@ -1,8 +1,8 @@
import { View } from './view';
import { Login } from '../domain';
import { Login } from '../domain/login';
import { PlatformUtilsService } from '../../abstractions';
import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
export class LoginView implements View {
username: string;

View File

@ -1,8 +1,8 @@
import { SecureNoteType } from '../../enums';
import { SecureNoteType } from '../../enums/secureNoteType';
import { View } from './view';
import { SecureNote } from '../domain';
import { SecureNote } from '../domain/secureNote';
export class SecureNoteView implements View {
type: SecureNoteType;

View File

@ -1,30 +1,24 @@
import { ConstantsService } from './constants.service';
import {
ApiService as ApiServiceAbstraction,
PlatformUtilsService,
TokenService,
} from '../abstractions';
import { ApiService as ApiServiceAbstraction } from '../abstractions/api.service';
import { PlatformUtilsService } from '../abstractions/platformUtils.service';
import { TokenService } from '../abstractions/token.service';
import { EnvironmentUrls } from '../models/domain';
import { EnvironmentUrls } from '../models/domain/environmentUrls';
import {
CipherRequest,
FolderRequest,
PasswordHintRequest,
RegisterRequest,
TokenRequest,
TwoFactorEmailRequest,
} from '../models/request';
import { CipherRequest } from '../models/request/cipherRequest';
import { FolderRequest } from '../models/request/folderRequest';
import { PasswordHintRequest } from '../models/request/passwordHintRequest';
import { RegisterRequest } from '../models/request/registerRequest';
import { TokenRequest } from '../models/request/tokenRequest';
import { TwoFactorEmailRequest } from '../models/request/twoFactorEmailRequest';
import {
CipherResponse,
ErrorResponse,
FolderResponse,
IdentityTokenResponse,
IdentityTwoFactorResponse,
SyncResponse,
} from '../models/response';
import { CipherResponse } from '../models/response/cipherResponse';
import { ErrorResponse } from '../models/response/errorResponse';
import { FolderResponse } from '../models/response/folderResponse';
import { IdentityTokenResponse } from '../models/response/identityTokenResponse';
import { IdentityTwoFactorResponse } from '../models/response/identityTwoFactorResponse';
import { SyncResponse } from '../models/response/syncResponse';
export class ApiService implements ApiServiceAbstraction {
urlsSet: boolean = false;

View File

@ -1,9 +1,7 @@
import { UtilsService } from './utils.service';
import {
AppIdService as AppIdServiceInterface,
StorageService,
} from '../abstractions';
import { AppIdService as AppIdServiceInterface } from '../abstractions/appId.service';
import { StorageService } from '../abstractions/storage.service';
export class AppIdService implements AppIdServiceInterface {
constructor(private storageService: StorageService) {

View File

@ -1,32 +1,24 @@
import { TwoFactorProviderType } from '../enums';
import { TwoFactorProviderType } from '../enums/twoFactorProviderType';
import {
AuthResult,
SymmetricCryptoKey,
} from '../models/domain';
import { AuthResult } from '../models/domain/authResult';
import { SymmetricCryptoKey } from '../models/domain/symmetricCryptoKey';
import {
DeviceRequest,
TokenRequest,
} from '../models/request';
import { DeviceRequest } from '../models/request/deviceRequest';
import { TokenRequest } from '../models/request/tokenRequest';
import {
IdentityTokenResponse,
IdentityTwoFactorResponse,
} from '../models/response';
import { IdentityTokenResponse } from '../models/response/identityTokenResponse';
import { IdentityTwoFactorResponse } from '../models/response/identityTwoFactorResponse';
import { ConstantsService } from '../services/constants.service';
import {
ApiService,
AppIdService,
CryptoService,
I18nService,
MessagingService,
PlatformUtilsService,
TokenService,
UserService,
} from '../abstractions';
import { ApiService } from '../abstractions/api.service';
import { AppIdService } from '../abstractions/appId.service';
import { CryptoService } from '../abstractions/crypto.service';
import { I18nService } from '../abstractions/i18n.service';
import { MessagingService } from '../abstractions/messaging.service';
import { PlatformUtilsService } from '../abstractions/platformUtils.service';
import { TokenService } from '../abstractions/token.service';
import { UserService } from '../abstractions/user.service';
export const TwoFactorProviders = {
[TwoFactorProviderType.Authenticator]: {

View File

@ -1,47 +1,38 @@
import { CipherType } from '../enums';
import { CipherType } from '../enums/cipherType';
import { CipherData } from '../models/data';
import {
Card,
Cipher,
CipherString,
Field,
Identity,
Login,
SecureNote,
SymmetricCryptoKey,
} from '../models/domain';
import { CipherData } from '../models/data/cipherData';
import { Card } from '../models/domain/card';
import { Cipher } from '../models/domain/cipher';
import { CipherString } from '../models/domain/cipherString';
import Domain from '../models/domain/domain';
import { Field } from '../models/domain/field';
import { Identity } from '../models/domain/identity';
import { Login } from '../models/domain/login';
import { SecureNote } from '../models/domain/secureNote';
import { SymmetricCryptoKey } from '../models/domain/symmetricCryptoKey';
import { CipherRequest } from '../models/request';
import { CipherRequest } from '../models/request/cipherRequest';
import {
CipherResponse,
ErrorResponse,
} from '../models/response';
import { CipherResponse } from '../models/response/cipherResponse';
import { ErrorResponse } from '../models/response/errorResponse';
import {
CardView,
CipherView,
FieldView,
IdentityView,
LoginView,
View,
} from '../models/view';
import { CardView } from '../models/view/cardView';
import { CipherView } from '../models/view/cipherView';
import { FieldView } from '../models/view/fieldView';
import { IdentityView } from '../models/view/identityView';
import { LoginView } from '../models/view/loginView';
import { View } from '../models/view/view';
import { ConstantsService } from './constants.service';
import {
ApiService,
CipherService as CipherServiceAbstraction,
CryptoService,
I18nService,
SettingsService,
StorageService,
UserService,
} from '../abstractions';
import { ApiService } from '../abstractions/api.service';
import { CipherService as CipherServiceAbstraction } from '../abstractions/cipher.service';
import { CryptoService } from '../abstractions/crypto.service';
import { I18nService } from '../abstractions/i18n.service';
import { SettingsService } from '../abstractions/settings.service';
import { StorageService } from '../abstractions/storage.service';
import { UserService } from '../abstractions/user.service';
const Keys = {
ciphersPrefix: 'ciphers_',

View File

@ -1,16 +1,14 @@
import { CollectionData } from '../models/data';
import { CollectionData } from '../models/data/collectionData';
import { Collection } from '../models/domain';
import { CollectionView } from '../models/view';
import { CollectionView } from '../models/view/collectionView';
import {
CollectionService as CollectionServiceAbstraction,
CryptoService,
I18nService,
StorageService,
UserService,
} from '../abstractions';
import { CollectionService as CollectionServiceAbstraction } from '../abstractions/collection.service';
import { CryptoService } from '../abstractions/crypto.service';
import { I18nService } from '../abstractions/i18n.service';
import { StorageService } from '../abstractions/storage.service';
import { UserService } from '../abstractions/user.service';
const Keys = {
collectionsPrefix: 'collections_',

View File

@ -1,4 +1,4 @@
import { PlatformUtilsService } from '../abstractions';
import { PlatformUtilsService } from '../abstractions/platformUtils.service';
export class ConstantsService {
static readonly environmentUrlsKey: string = 'environmentUrls';

View File

@ -1,7 +1,5 @@
import {
CryptoService,
PlatformUtilsService,
} from '../abstractions';
import { CryptoService } from '../abstractions/crypto.service';
import { PlatformUtilsService } from '../abstractions/platformUtils.service';
export class ContainerService {
constructor(private cryptoService: CryptoService,

View File

@ -1,19 +1,14 @@
import * as forge from 'node-forge';
import { EncryptionType } from '../enums';
import { EncryptionType } from '../enums/encryptionType';
import {
CipherString,
EncryptedObject,
SymmetricCryptoKey,
} from '../models/domain';
import { CipherString } from '../models/domain/cipherString';
import { EncryptedObject } from '../models/domain/encryptedObject';
import { SymmetricCryptoKey } from '../models/domain/symmetricCryptoKey';
import { ProfileOrganizationResponse } from '../models/response/profileOrganizationResponse';
import { ProfileOrganizationResponse } from '../models/response';
import {
CryptoService as CryptoServiceAbstraction,
StorageService as StorageServiceAbstraction,
} from '../abstractions';
import { CryptoService as CryptoServiceAbstraction } from '../abstractions/crypto.service';
import { StorageService as StorageServiceInterface } from '../abstractions/storage.service';
import { ConstantsService } from './constants.service';
import { UtilsService } from './utils.service';
@ -46,8 +41,8 @@ export class CryptoService implements CryptoServiceAbstraction {
private privateKey: ArrayBuffer;
private orgKeys: Map<string, SymmetricCryptoKey>;
constructor(private storageService: StorageServiceAbstraction,
private secureStorageService: StorageServiceAbstraction) {
constructor(private storageService: StorageServiceInterface,
private secureStorageService: StorageServiceInterface) {
}
async setKey(key: SymmetricCryptoKey): Promise<any> {

View File

@ -1,12 +1,10 @@
import { EnvironmentUrls } from '../models/domain';
import { EnvironmentUrls } from '../models/domain/environmentUrls';
import { ConstantsService } from './constants.service';
import {
ApiService,
EnvironmentService as EnvironmentServiceAbstraction,
StorageService,
} from '../abstractions';
import { ApiService } from '../abstractions/api.service';
import { EnvironmentService as EnvironmentServiceAbstraction } from '../abstractions/environment.service';
import { StorageService } from '../abstractions/storage.service';
export class EnvironmentService implements EnvironmentServiceAbstraction {
baseUrl: string;

View File

@ -1,21 +1,19 @@
import { FolderData } from '../models/data';
import { FolderData } from '../models/data/folderData';
import { Folder } from '../models/domain';
import { Folder } from '../models/domain/folder';
import { FolderRequest } from '../models/request';
import { FolderRequest } from '../models/request/folderRequest';
import { FolderResponse } from '../models/response';
import { FolderResponse } from '../models/response/folderResponse';
import { FolderView } from '../models/view';
import { FolderView } from '../models/view/folderView';
import {
ApiService,
CryptoService,
FolderService as FolderServiceAbstraction,
I18nService,
StorageService,
UserService,
} from '../abstractions';
import { ApiService } from '../abstractions/api.service';
import { CryptoService } from '../abstractions/crypto.service';
import { FolderService as FolderServiceAbstraction } from '../abstractions/folder.service';
import { I18nService } from '../abstractions/i18n.service';
import { StorageService } from '../abstractions/storage.service';
import { UserService } from '../abstractions/user.service';
const Keys = {
foldersPrefix: 'folders_',

View File

@ -1,15 +1,13 @@
import { ConstantsService } from './constants.service';
import {
CipherService,
CollectionService,
CryptoService,
FolderService,
LockService as LockServiceAbstraction,
MessagingService,
PlatformUtilsService,
StorageService,
} from '../abstractions';
import { CipherService } from '../abstractions/cipher.service';
import { CollectionService } from '../abstractions/collection.service';
import { CryptoService } from '../abstractions/crypto.service';
import { FolderService } from '../abstractions/folder.service';
import { LockService as LockServiceAbstraction } from '../abstractions/lock.service';
import { MessagingService } from '../abstractions/messaging.service';
import { PlatformUtilsService } from '../abstractions/platformUtils.service';
import { StorageService } from '../abstractions/storage.service';
export class LockService implements LockServiceAbstraction {
constructor(private cipherService: CipherService, private folderService: FolderService,

View File

@ -1,15 +1,13 @@
import {
CipherString,
PasswordHistory,
} from '../models/domain';
import { CipherString } from '../models/domain/cipherString';
import { PasswordHistory } from '../models/domain/passwordHistory';
import { UtilsService } from './utils.service';
import { CryptoService } from '../abstractions/crypto.service';
import {
CryptoService,
PasswordGenerationService as PasswordGenerationServiceAbstraction,
StorageService,
} from '../abstractions';
} from '../abstractions/passwordGeneration.service';
import { StorageService } from '../abstractions/storage.service';
const DefaultOptions = {
length: 14,

View File

@ -1,8 +1,6 @@
import {
SettingsService as SettingsServiceAbstraction,
StorageService,
UserService,
} from '../abstractions';
import { SettingsService as SettingsServiceAbstraction } from '../abstractions/settings.service';
import { StorageService } from '../abstractions/storage.service';
import { UserService } from '../abstractions/user.service';
const Keys = {
settingsPrefix: 'settings_',

View File

@ -1,4 +1,4 @@
import { StateService as StateServiceAbstraction } from '../abstractions';
import { StateService as StateServiceAbstraction } from '../abstractions/state.service';
export class StateService implements StateServiceAbstraction {
private state: any = {};

View File

@ -1,29 +1,23 @@
import {
ApiService,
CipherService,
CollectionService,
CryptoService,
FolderService,
MessagingService,
SettingsService,
StorageService,
SyncService as SyncServiceAbstraction,
UserService,
} from '../abstractions';
import { ApiService } from '../abstractions/api.service';
import { CipherService } from '../abstractions/cipher.service';
import { CollectionService } from '../abstractions/collection.service';
import { CryptoService } from '../abstractions/crypto.service';
import { FolderService } from '../abstractions/folder.service';
import { MessagingService } from '../abstractions/messaging.service';
import { SettingsService } from '../abstractions/settings.service';
import { StorageService } from '../abstractions/storage.service';
import { SyncService as SyncServiceAbstraction } from '../abstractions/sync.service';
import { UserService } from '../abstractions/user.service';
import {
CipherData,
CollectionData,
FolderData,
} from '../models/data';
import { CipherData } from '../models/data/cipherData';
import { CollectionData } from '../models/data/collectionData';
import { FolderData } from '../models/data/folderData';
import {
CipherResponse,
CollectionResponse,
DomainsResponse,
FolderResponse,
ProfileResponse,
} from '../models/response';
import { CipherResponse } from '../models/response/cipherResponse';
import { CollectionResponse } from '../models/response/collectionResponse';
import { DomainsResponse } from '../models/response/domainsResponse';
import { FolderResponse } from '../models/response/folderResponse';
import { ProfileResponse } from '../models/response/profileResponse';
const Keys = {
lastSyncPrefix: 'lastSync_',

View File

@ -1,10 +1,8 @@
import { ConstantsService } from './constants.service';
import { UtilsService } from './utils.service';
import {
StorageService,
TokenService as TokenServiceAbstraction,
} from '../abstractions';
import { StorageService } from '../abstractions/storage.service';
import { TokenService as TokenServiceAbstraction } from '../abstractions/token.service';
const Keys = {
accessToken: 'accessToken',

View File

@ -1,9 +1,7 @@
import { ConstantsService } from './constants.service';
import {
StorageService,
TotpService as TotpServiceAbstraction,
} from '../abstractions';
import { StorageService } from '../abstractions/storage.service';
import { TotpService as TotpServiceAbstraction } from '../abstractions/totp.service';
const b32Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';

View File

@ -1,8 +1,6 @@
import {
StorageService,
TokenService,
UserService as UserServiceAbsrtaction,
} from '../abstractions';
import { StorageService } from '../abstractions/storage.service';
import { TokenService } from '../abstractions/token.service';
import { UserService as UserServiceAbsrtaction } from '../abstractions/user.service';
const Keys = {
userId: 'userId',

View File

@ -1,4 +1,4 @@
import { UtilsService as UtilsServiceAbstraction } from '../abstractions';
import { UtilsService as UtilsServiceAbstraction } from '../abstractions/utils.service';
export class UtilsService implements UtilsServiceAbstraction {
static copyToClipboard(text: string, doc?: Document): void {