move container service to jslib
This commit is contained in:
parent
f20c217321
commit
893c41d7cf
|
@ -4,6 +4,7 @@ import {
|
||||||
ApiService,
|
ApiService,
|
||||||
AppIdService,
|
AppIdService,
|
||||||
ConstantsService,
|
ConstantsService,
|
||||||
|
ContainerService,
|
||||||
CryptoService,
|
CryptoService,
|
||||||
EnvironmentService,
|
EnvironmentService,
|
||||||
PasswordGenerationService,
|
PasswordGenerationService,
|
||||||
|
@ -44,7 +45,6 @@ import BrowserPlatformUtilsService from '../services/browserPlatformUtils.servic
|
||||||
import BrowserStorageService from '../services/browserStorage.service';
|
import BrowserStorageService from '../services/browserStorage.service';
|
||||||
import CipherService from '../services/cipher.service';
|
import CipherService from '../services/cipher.service';
|
||||||
import CollectionService from '../services/collection.service';
|
import CollectionService from '../services/collection.service';
|
||||||
import ContainerService from '../services/container.service';
|
|
||||||
import FolderService from '../services/folder.service';
|
import FolderService from '../services/folder.service';
|
||||||
import i18nService from '../services/i18n.service';
|
import i18nService from '../services/i18n.service';
|
||||||
import LockService from '../services/lock.service';
|
import LockService from '../services/lock.service';
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
import {
|
|
||||||
CryptoService,
|
|
||||||
PlatformUtilsService,
|
|
||||||
} from 'jslib/abstractions';
|
|
||||||
|
|
||||||
export default class ContainerService {
|
|
||||||
constructor(private cryptoService: CryptoService,
|
|
||||||
private platformUtilsService: PlatformUtilsService) {
|
|
||||||
}
|
|
||||||
|
|
||||||
attachToWindow(win: any) {
|
|
||||||
if (!win.BitwardenContainerService) {
|
|
||||||
win.BitwardenContainerService = this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
getCryptoService(): CryptoService {
|
|
||||||
return this.cryptoService;
|
|
||||||
}
|
|
||||||
|
|
||||||
getPlatformUtilsService(): PlatformUtilsService {
|
|
||||||
return this.platformUtilsService;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue