mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Merged with master and fixed conflicts
This commit is contained in:
@@ -90,22 +90,21 @@
|
|||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"zones": [
|
"zones": [
|
||||||
// Do not allow angular/node code to be imported into common
|
|
||||||
{
|
{
|
||||||
|
// avoid specific frameworks or large dependencies in common
|
||||||
"target": "./libs/common/**/*",
|
"target": "./libs/common/**/*",
|
||||||
"from": "./libs/angular/**/*"
|
"from": [
|
||||||
},
|
// Angular
|
||||||
{
|
"./libs/angular/**/*",
|
||||||
"target": "./libs/common/**/*",
|
"./node_modules/@angular*/**/*",
|
||||||
"from": "./libs/node/**/*"
|
|
||||||
},
|
// Node
|
||||||
{
|
"./libs/node/**/*",
|
||||||
"target": "./libs/common/**/*",
|
|
||||||
"from": "./libs/importer/**/*"
|
// Import/export
|
||||||
},
|
"./libs/importer/**/*",
|
||||||
{
|
"./libs/exporter/**/*"
|
||||||
"target": "./libs/common/**/*",
|
]
|
||||||
"from": "./libs/exporter/**/*"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
19
.github/CODEOWNERS
vendored
19
.github/CODEOWNERS
vendored
@@ -54,4 +54,23 @@ libs/angular/src/billing @bitwarden/team-billing-dev
|
|||||||
libs/common/src/billing @bitwarden/team-billing-dev
|
libs/common/src/billing @bitwarden/team-billing-dev
|
||||||
|
|
||||||
## Platform team files ##
|
## Platform team files ##
|
||||||
|
apps/browser/src/platform @bitwarden/team-platform-dev
|
||||||
|
apps/cli/src/platform @bitwarden/team-platform-dev
|
||||||
|
apps/desktop/src/platform @bitwarden/team-platform-dev
|
||||||
|
apps/web/src/app/platform @bitwarden/team-platform-dev
|
||||||
|
libs/angular/src/platform @bitwarden/team-platform-dev
|
||||||
|
libs/common/src/platform @bitwarden/team-platform-dev
|
||||||
|
# Node-specifc platform files
|
||||||
|
libs/node @bitwarden/team-platform-dev
|
||||||
|
# Web utils used across app and connectors
|
||||||
|
apps/web/src/utils/ @bitwarden/team-platform-dev
|
||||||
|
# Web core and shared files
|
||||||
|
apps/web/src/app/core @bitwarden/team-platform-dev
|
||||||
|
apps/web/src/app/shared @bitwarden/team-platform-dev
|
||||||
|
apps/web/src/translation-constants.ts @bitwarden/team-platform-dev
|
||||||
|
|
||||||
|
## Component Library ##
|
||||||
libs/components @bitwarden/team-platform-dev
|
libs/components @bitwarden/team-platform-dev
|
||||||
|
|
||||||
|
## Desktop native module ##
|
||||||
|
apps/desktop/desktop_native @bitwarden/team-platform-dev
|
||||||
|
|||||||
39
.github/whitelist-capital-letters.txt
vendored
39
.github/whitelist-capital-letters.txt
vendored
@@ -4,7 +4,6 @@
|
|||||||
./apps/browser/src/safari/desktop/Base.lproj
|
./apps/browser/src/safari/desktop/Base.lproj
|
||||||
./apps/browser/src/services/vaultTimeout
|
./apps/browser/src/services/vaultTimeout
|
||||||
./apps/browser/store/windows/Assets
|
./apps/browser/store/windows/Assets
|
||||||
./libs/common/src/abstractions/fileDownload
|
|
||||||
./libs/common/src/abstractions/userVerification
|
./libs/common/src/abstractions/userVerification
|
||||||
./libs/common/src/abstractions/vaultTimeout
|
./libs/common/src/abstractions/vaultTimeout
|
||||||
./libs/common/src/services/vaultTimeout
|
./libs/common/src/services/vaultTimeout
|
||||||
@@ -27,35 +26,14 @@
|
|||||||
./libs/common/src/misc/linkedFieldOption.decorator.ts
|
./libs/common/src/misc/linkedFieldOption.decorator.ts
|
||||||
./libs/common/src/misc/serviceUtils.ts
|
./libs/common/src/misc/serviceUtils.ts
|
||||||
./libs/common/src/misc/serviceUtils.spec.ts
|
./libs/common/src/misc/serviceUtils.spec.ts
|
||||||
./libs/common/src/factories/accountFactory.ts
|
|
||||||
./libs/common/src/factories/globalStateFactory.ts
|
|
||||||
./libs/common/src/factories/stateFactory.ts
|
|
||||||
./libs/common/src/abstractions/userVerification/userVerification.service.abstraction.ts
|
./libs/common/src/abstractions/userVerification/userVerification.service.abstraction.ts
|
||||||
./libs/common/src/abstractions/userVerification/userVerification-api.service.abstraction.ts
|
./libs/common/src/abstractions/userVerification/userVerification-api.service.abstraction.ts
|
||||||
./libs/common/src/abstractions/platformUtils.service.ts
|
|
||||||
./libs/common/src/abstractions/stateMigration.service.ts
|
|
||||||
./libs/common/src/abstractions/fileDownload/fileDownloadBuilder.ts
|
|
||||||
./libs/common/src/abstractions/fileDownload/fileDownload.service.ts
|
|
||||||
./libs/common/src/abstractions/fileDownload/fileDownloadRequest.ts
|
|
||||||
./libs/common/src/abstractions/formValidationErrors.service.ts
|
|
||||||
./libs/common/src/abstractions/vaultTimeout/vaultTimeoutSettings.service.ts
|
./libs/common/src/abstractions/vaultTimeout/vaultTimeoutSettings.service.ts
|
||||||
./libs/common/src/abstractions/vaultTimeout/vaultTimeout.service.ts
|
./libs/common/src/abstractions/vaultTimeout/vaultTimeout.service.ts
|
||||||
./libs/common/src/abstractions/cryptoFunction.service.ts
|
|
||||||
./libs/common/src/abstractions/anonymousHub.service.ts
|
./libs/common/src/abstractions/anonymousHub.service.ts
|
||||||
./libs/common/src/abstractions/appId.service.ts
|
|
||||||
./libs/common/src/services/azureFileUpload.service.ts
|
|
||||||
./libs/common/src/services/stateMigration.service.ts
|
|
||||||
./libs/common/src/services/consoleLog.service.ts
|
|
||||||
./libs/common/src/services/formValidationErrors.service.ts
|
|
||||||
./libs/common/src/services/vaultTimeout/vaultTimeoutSettings.service.ts
|
./libs/common/src/services/vaultTimeout/vaultTimeoutSettings.service.ts
|
||||||
./libs/common/src/services/vaultTimeout/vaultTimeout.service.ts
|
./libs/common/src/services/vaultTimeout/vaultTimeout.service.ts
|
||||||
./libs/common/src/services/anonymousHub.service.ts
|
./libs/common/src/services/anonymousHub.service.ts
|
||||||
./libs/common/src/services/appId.service.ts
|
|
||||||
./libs/common/src/services/noopMessaging.service.ts
|
|
||||||
./libs/common/src/services/memoryStorage.service.ts
|
|
||||||
./libs/common/src/services/bitwardenFileUpload.service.ts
|
|
||||||
./libs/common/src/services/webCryptoFunction.service.ts
|
|
||||||
./libs/common/src/interfaces/IEncrypted.ts
|
|
||||||
./README.md
|
./README.md
|
||||||
./LICENSE_BITWARDEN.txt
|
./LICENSE_BITWARDEN.txt
|
||||||
./CONTRIBUTING.md
|
./CONTRIBUTING.md
|
||||||
@@ -92,7 +70,6 @@
|
|||||||
./apps/browser/src/models/browserGroupingsComponentState.ts
|
./apps/browser/src/models/browserGroupingsComponentState.ts
|
||||||
./apps/browser/src/models/biometricErrors.ts
|
./apps/browser/src/models/biometricErrors.ts
|
||||||
./apps/browser/src/browser/safariApp.ts
|
./apps/browser/src/browser/safariApp.ts
|
||||||
./apps/browser/src/browser/browserApi.ts
|
|
||||||
./apps/browser/src/safari/desktop/ViewController.swift
|
./apps/browser/src/safari/desktop/ViewController.swift
|
||||||
./apps/browser/src/safari/desktop/Assets.xcassets/AppIcon.appiconset/Contents.json
|
./apps/browser/src/safari/desktop/Assets.xcassets/AppIcon.appiconset/Contents.json
|
||||||
./apps/browser/src/safari/desktop/Assets.xcassets/AccentColor.colorset/Contents.json
|
./apps/browser/src/safari/desktop/Assets.xcassets/AccentColor.colorset/Contents.json
|
||||||
@@ -103,21 +80,5 @@
|
|||||||
./apps/browser/src/safari/safari/SafariWebExtensionHandler.swift
|
./apps/browser/src/safari/safari/SafariWebExtensionHandler.swift
|
||||||
./apps/browser/src/safari/safari/Info.plist
|
./apps/browser/src/safari/safari/Info.plist
|
||||||
./apps/browser/src/safari/desktop.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
|
./apps/browser/src/safari/desktop.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
|
||||||
./apps/browser/src/listeners/onCommandListener.ts
|
|
||||||
./apps/browser/src/listeners/onInstallListener.ts
|
|
||||||
./apps/browser/src/services/browserFileDownloadService.ts
|
|
||||||
./apps/browser/src/services/localBackedSessionStorage.service.spec.ts
|
|
||||||
./apps/browser/src/services/browserMessagingPrivateModeBackground.service.ts
|
|
||||||
./apps/browser/src/services/browserPlatformUtils.service.spec.ts
|
|
||||||
./apps/browser/src/services/browserMemoryStorage.service.ts
|
|
||||||
./apps/browser/src/services/vaultTimeout/vaultTimeout.service.ts
|
./apps/browser/src/services/vaultTimeout/vaultTimeout.service.ts
|
||||||
./apps/browser/src/services/browserCrypto.service.ts
|
|
||||||
./apps/browser/src/services/browserPlatformUtils.service.ts
|
|
||||||
./apps/browser/src/services/abstractions/abstractKeyGeneration.service.ts
|
|
||||||
./apps/browser/src/services/browserLocalStorage.service.ts
|
|
||||||
./apps/browser/src/services/localBackedSessionStorage.service.ts
|
|
||||||
./apps/browser/src/services/browserMessagingPrivateModePopup.service.ts
|
|
||||||
./apps/browser/src/services/browserMessaging.service.ts
|
|
||||||
./apps/browser/src/services/keyGeneration.service.ts
|
|
||||||
./apps/browser/src/services/abstractChromeStorageApi.service.ts
|
|
||||||
./SECURITY.md
|
./SECURITY.md
|
||||||
|
|||||||
2
.github/workflows/build-web.yml
vendored
2
.github/workflows/build-web.yml
vendored
@@ -84,7 +84,7 @@ jobs:
|
|||||||
npm_command: "build:bit:poc"
|
npm_command: "build:bit:poc"
|
||||||
- name: "ee"
|
- name: "ee"
|
||||||
npm_command: "build:bit:ee"
|
npm_command: "build:bit:ee"
|
||||||
- name: "eudevtest"
|
- name: "cloud-eudevtest"
|
||||||
npm_command: "build:bit:eudevtest"
|
npm_command: "build:bit:eudevtest"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"cSpell.words": ["Csprng", "Popout", "Reprompt", "takeuntil"]
|
"cSpell.words": ["Csprng", "decryptable", "Popout", "Reprompt", "takeuntil"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1412,13 +1412,13 @@
|
|||||||
"message": "استنساخ"
|
"message": "استنساخ"
|
||||||
},
|
},
|
||||||
"passwordGeneratorPolicyInEffect": {
|
"passwordGeneratorPolicyInEffect": {
|
||||||
"message": "One or more organization policies are affecting your generator settings."
|
"message": "واحدة أو أكثر من سياسات المؤسسة تؤثر على إعدادات المولدات الخاصة بك."
|
||||||
},
|
},
|
||||||
"vaultTimeoutAction": {
|
"vaultTimeoutAction": {
|
||||||
"message": "Vault timeout action"
|
"message": "إجراء مهلة المخزن"
|
||||||
},
|
},
|
||||||
"lock": {
|
"lock": {
|
||||||
"message": "Lock",
|
"message": "قفل",
|
||||||
"description": "Verb form: to make secure or inaccesible by"
|
"description": "Verb form: to make secure or inaccesible by"
|
||||||
},
|
},
|
||||||
"trash": {
|
"trash": {
|
||||||
@@ -1426,7 +1426,7 @@
|
|||||||
"description": "Noun: a special folder to hold deleted items"
|
"description": "Noun: a special folder to hold deleted items"
|
||||||
},
|
},
|
||||||
"searchTrash": {
|
"searchTrash": {
|
||||||
"message": "Search trash"
|
"message": "البحث عن سلة المهملات"
|
||||||
},
|
},
|
||||||
"permanentlyDeleteItem": {
|
"permanentlyDeleteItem": {
|
||||||
"message": "حذف العنصر بشكل دائم"
|
"message": "حذف العنصر بشكل دائم"
|
||||||
@@ -1435,13 +1435,13 @@
|
|||||||
"message": "هل أنت متأكد من أنك تريد حذف هذا العنصر بشكل دائم؟"
|
"message": "هل أنت متأكد من أنك تريد حذف هذا العنصر بشكل دائم؟"
|
||||||
},
|
},
|
||||||
"permanentlyDeletedItem": {
|
"permanentlyDeletedItem": {
|
||||||
"message": "Item permanently deleted"
|
"message": "تم حذف العنصر بشكل دائم"
|
||||||
},
|
},
|
||||||
"restoreItem": {
|
"restoreItem": {
|
||||||
"message": "استعادة العنصر"
|
"message": "استعادة العنصر"
|
||||||
},
|
},
|
||||||
"restoreItemConfirmation": {
|
"restoreItemConfirmation": {
|
||||||
"message": "Are you sure you want to restore this item?"
|
"message": "هل أنت متأكد من أنك تريد استعادة هذا العنصر؟"
|
||||||
},
|
},
|
||||||
"restoredItem": {
|
"restoredItem": {
|
||||||
"message": "Item restored"
|
"message": "Item restored"
|
||||||
|
|||||||
@@ -2246,5 +2246,8 @@
|
|||||||
"us": {
|
"us": {
|
||||||
"message": "US",
|
"message": "US",
|
||||||
"description": "United States"
|
"description": "United States"
|
||||||
|
},
|
||||||
|
"accessDenied": {
|
||||||
|
"message": "Access denied. You do not have permission to view this page."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,7 +98,7 @@
|
|||||||
"message": "Copiar nome do campo personalizado"
|
"message": "Copiar nome do campo personalizado"
|
||||||
},
|
},
|
||||||
"noMatchingLogins": {
|
"noMatchingLogins": {
|
||||||
"message": "Sem inícios de sessão correspondentes"
|
"message": "Sem credenciais correspondentes"
|
||||||
},
|
},
|
||||||
"unlockVaultMenu": {
|
"unlockVaultMenu": {
|
||||||
"message": "Desbloqueie o seu cofre"
|
"message": "Desbloqueie o seu cofre"
|
||||||
@@ -107,10 +107,10 @@
|
|||||||
"message": "Inicie sessão para abrir o seu cofre"
|
"message": "Inicie sessão para abrir o seu cofre"
|
||||||
},
|
},
|
||||||
"autoFillInfo": {
|
"autoFillInfo": {
|
||||||
"message": "Não existem inícios de sessão disponíveis para preenchimento automático no separador atual do navegador."
|
"message": "Não existem credenciais disponíveis para preenchimento automático no separador atual do navegador."
|
||||||
},
|
},
|
||||||
"addLogin": {
|
"addLogin": {
|
||||||
"message": "Adicionar um início de sessão"
|
"message": "Adicionar uma credencial"
|
||||||
},
|
},
|
||||||
"addItem": {
|
"addItem": {
|
||||||
"message": "Adicionar item"
|
"message": "Adicionar item"
|
||||||
@@ -221,7 +221,7 @@
|
|||||||
"description": "Short for 'Password Generator'."
|
"description": "Short for 'Password Generator'."
|
||||||
},
|
},
|
||||||
"passGenInfo": {
|
"passGenInfo": {
|
||||||
"message": "Gera automaticamente palavras-passe fortes e únicas para os seus inícios de sessão."
|
"message": "Gera automaticamente palavras-passe fortes e únicas para as suas credenciais."
|
||||||
},
|
},
|
||||||
"bitWebVault": {
|
"bitWebVault": {
|
||||||
"message": "Cofre web Bitwarden"
|
"message": "Cofre web Bitwarden"
|
||||||
@@ -415,7 +415,7 @@
|
|||||||
"message": "No bloqueio do sistema"
|
"message": "No bloqueio do sistema"
|
||||||
},
|
},
|
||||||
"onRestart": {
|
"onRestart": {
|
||||||
"message": "Ao reiniciar o sistema"
|
"message": "Ao reiniciar o navegador"
|
||||||
},
|
},
|
||||||
"never": {
|
"never": {
|
||||||
"message": "Nunca"
|
"message": "Nunca"
|
||||||
@@ -583,7 +583,7 @@
|
|||||||
"message": "Procurar no tipo"
|
"message": "Procurar no tipo"
|
||||||
},
|
},
|
||||||
"noneFolder": {
|
"noneFolder": {
|
||||||
"message": "Em nenhuma pasta",
|
"message": "Sem pasta",
|
||||||
"description": "This is the folder for uncategorized items"
|
"description": "This is the folder for uncategorized items"
|
||||||
},
|
},
|
||||||
"enableAddLoginNotification": {
|
"enableAddLoginNotification": {
|
||||||
@@ -641,7 +641,7 @@
|
|||||||
"description": "Default URI match detection for auto-fill."
|
"description": "Default URI match detection for auto-fill."
|
||||||
},
|
},
|
||||||
"defaultUriMatchDetectionDesc": {
|
"defaultUriMatchDetectionDesc": {
|
||||||
"message": "Escolha a forma predefinida como a deteção de correspondência de URI é tratada para inícios de sessão ao executar ações como o preenchimento automático."
|
"message": "Escolha a forma predefinida como a deteção de correspondência de URI é tratada para credenciais ao executar ações como o preenchimento automático."
|
||||||
},
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"message": "Tema"
|
"message": "Tema"
|
||||||
@@ -793,7 +793,7 @@
|
|||||||
"message": "Higiene de palavras-passe, saúde da conta e relatórios de violação de dados para manter o seu cofre seguro."
|
"message": "Higiene de palavras-passe, saúde da conta e relatórios de violação de dados para manter o seu cofre seguro."
|
||||||
},
|
},
|
||||||
"ppremiumSignUpTotp": {
|
"ppremiumSignUpTotp": {
|
||||||
"message": "Gerador de código de verificação TOTP (2FA) para inícios de sessão no seu cofre."
|
"message": "Gerador de códigos de verificação TOTP (2FA) para credenciais no seu cofre."
|
||||||
},
|
},
|
||||||
"ppremiumSignUpSupport": {
|
"ppremiumSignUpSupport": {
|
||||||
"message": "Prioridade no apoio ao cliente."
|
"message": "Prioridade no apoio ao cliente."
|
||||||
@@ -829,7 +829,7 @@
|
|||||||
"message": "Copy TOTP automatically"
|
"message": "Copy TOTP automatically"
|
||||||
},
|
},
|
||||||
"disableAutoTotpCopyDesc": {
|
"disableAutoTotpCopyDesc": {
|
||||||
"message": "Se um início de sessão tiver uma chave de autenticação, copie o código de verificação TOTP para a sua área de transferência quando preencher automaticamente o início de sessão."
|
"message": "Se uma credencial tiver uma chave de autenticação, copie o código de verificação TOTP para a sua área de transferência quando preencher automaticamente o início de sessão."
|
||||||
},
|
},
|
||||||
"enableAutoBiometricsPrompt": {
|
"enableAutoBiometricsPrompt": {
|
||||||
"message": "Ask for biometrics on launch"
|
"message": "Ask for biometrics on launch"
|
||||||
@@ -865,7 +865,7 @@
|
|||||||
"message": "Memorizar-me"
|
"message": "Memorizar-me"
|
||||||
},
|
},
|
||||||
"sendVerificationCodeEmailAgain": {
|
"sendVerificationCodeEmailAgain": {
|
||||||
"message": "Enviar código de verificação novamente"
|
"message": "Enviar e-mail com o código de verificação novamente"
|
||||||
},
|
},
|
||||||
"useAnotherTwoStepMethod": {
|
"useAnotherTwoStepMethod": {
|
||||||
"message": "Utilizar outro método de verificação de dois passos"
|
"message": "Utilizar outro método de verificação de dois passos"
|
||||||
@@ -892,7 +892,7 @@
|
|||||||
"message": "Esta conta tem a verificação de dois passos configurada, no entanto, nenhum dos fornecedores da verificação de dois passos configurada é suportado por este navegador web."
|
"message": "Esta conta tem a verificação de dois passos configurada, no entanto, nenhum dos fornecedores da verificação de dois passos configurada é suportado por este navegador web."
|
||||||
},
|
},
|
||||||
"noTwoStepProviders2": {
|
"noTwoStepProviders2": {
|
||||||
"message": "Utilize um navegador web suportado (como o Chrome) e/ou adicione fornecedores adicionais que sejam mais bem suportados nos navegadores web (como uma aplicação de autenticação)."
|
"message": "Por favor, utilize um navegador web suportado (como o Chrome) e/ou adicione fornecedores adicionais que sejam mais bem suportados nos navegadores web (como uma aplicação de autenticação)."
|
||||||
},
|
},
|
||||||
"twoStepOptions": {
|
"twoStepOptions": {
|
||||||
"message": "Opções de verificação de dois passos"
|
"message": "Opções de verificação de dois passos"
|
||||||
@@ -1146,7 +1146,7 @@
|
|||||||
"message": "Mx"
|
"message": "Mx"
|
||||||
},
|
},
|
||||||
"firstName": {
|
"firstName": {
|
||||||
"message": "Primeiro nome"
|
"message": "Nome próprio"
|
||||||
},
|
},
|
||||||
"middleName": {
|
"middleName": {
|
||||||
"message": "Segundo nome"
|
"message": "Segundo nome"
|
||||||
@@ -1179,16 +1179,16 @@
|
|||||||
"message": "Telefone"
|
"message": "Telefone"
|
||||||
},
|
},
|
||||||
"address": {
|
"address": {
|
||||||
"message": "Morada"
|
"message": "Endereço"
|
||||||
},
|
},
|
||||||
"address1": {
|
"address1": {
|
||||||
"message": "1.ª morada"
|
"message": "Endereço 1"
|
||||||
},
|
},
|
||||||
"address2": {
|
"address2": {
|
||||||
"message": "2.ª morada"
|
"message": "Endereço 2"
|
||||||
},
|
},
|
||||||
"address3": {
|
"address3": {
|
||||||
"message": "3.ª morada"
|
"message": "Endereço 3"
|
||||||
},
|
},
|
||||||
"cityTown": {
|
"cityTown": {
|
||||||
"message": "Cidade / Localidade"
|
"message": "Cidade / Localidade"
|
||||||
@@ -1206,10 +1206,10 @@
|
|||||||
"message": "Tipo"
|
"message": "Tipo"
|
||||||
},
|
},
|
||||||
"typeLogin": {
|
"typeLogin": {
|
||||||
"message": "Início de sessão"
|
"message": "Credencial"
|
||||||
},
|
},
|
||||||
"typeLogins": {
|
"typeLogins": {
|
||||||
"message": "Inícios de sessão"
|
"message": "Credenciais"
|
||||||
},
|
},
|
||||||
"typeSecureNote": {
|
"typeSecureNote": {
|
||||||
"message": "Nota segura"
|
"message": "Nota segura"
|
||||||
@@ -1245,7 +1245,7 @@
|
|||||||
"message": "Identidades"
|
"message": "Identidades"
|
||||||
},
|
},
|
||||||
"logins": {
|
"logins": {
|
||||||
"message": "Inícios de sessão"
|
"message": "Credenciais"
|
||||||
},
|
},
|
||||||
"secureNotes": {
|
"secureNotes": {
|
||||||
"message": "Notas seguras"
|
"message": "Notas seguras"
|
||||||
@@ -1406,10 +1406,10 @@
|
|||||||
"message": "Deve selecionar pelo menos uma coleção."
|
"message": "Deve selecionar pelo menos uma coleção."
|
||||||
},
|
},
|
||||||
"cloneItem": {
|
"cloneItem": {
|
||||||
"message": "Clonar item"
|
"message": "Duplicar item"
|
||||||
},
|
},
|
||||||
"clone": {
|
"clone": {
|
||||||
"message": "Clonar"
|
"message": "Duplicar"
|
||||||
},
|
},
|
||||||
"passwordGeneratorPolicyInEffect": {
|
"passwordGeneratorPolicyInEffect": {
|
||||||
"message": "Uma ou mais políticas da organização estão a afetar as suas definições do gerador."
|
"message": "Uma ou mais políticas da organização estão a afetar as suas definições do gerador."
|
||||||
@@ -1432,7 +1432,7 @@
|
|||||||
"message": "Eliminar item permanentemente"
|
"message": "Eliminar item permanentemente"
|
||||||
},
|
},
|
||||||
"permanentlyDeleteItemConfirmation": {
|
"permanentlyDeleteItemConfirmation": {
|
||||||
"message": "Tem a certeza de que pretende eliminar este item permanentemente?"
|
"message": "Tem a certeza de que pretende eliminar permanentemente este item?"
|
||||||
},
|
},
|
||||||
"permanentlyDeletedItem": {
|
"permanentlyDeletedItem": {
|
||||||
"message": "Item eliminado permanentemente"
|
"message": "Item eliminado permanentemente"
|
||||||
@@ -1799,7 +1799,7 @@
|
|||||||
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
||||||
},
|
},
|
||||||
"editedSend": {
|
"editedSend": {
|
||||||
"message": "Send saved",
|
"message": "Send editado",
|
||||||
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
"description": "'Send' is a noun and the name of a feature called 'Bitwarden Send'. It should not be translated."
|
||||||
},
|
},
|
||||||
"sendLinuxChromiumFileWarning": {
|
"sendLinuxChromiumFileWarning": {
|
||||||
@@ -1869,10 +1869,10 @@
|
|||||||
"message": "Atualizar palavra-passe mestra"
|
"message": "Atualizar palavra-passe mestra"
|
||||||
},
|
},
|
||||||
"updateMasterPasswordWarning": {
|
"updateMasterPasswordWarning": {
|
||||||
"message": "A sua palavra-passe mestra foi recentemente alterada por um administrador da sua organização. Para aceder ao cofre, tem de atualizar a sua palavra-passe mestra agora. Se prosseguir, sairá da sua sessão atual e terá de iniciar sessão novamente. As sessões ativas noutros dispositivos poderão continuar ativas até uma hora."
|
"message": "A sua palavra-passe mestra foi recentemente alterada por um administrador da sua organização. Para aceder ao cofre, tem de atualizar a sua palavra-passe mestra agora. Ao prosseguir, terminará a sua sessão atual e terá de iniciar sessão novamente. As sessões ativas noutros dispositivos poderão continuar ativas até uma hora."
|
||||||
},
|
},
|
||||||
"updateWeakMasterPasswordWarning": {
|
"updateWeakMasterPasswordWarning": {
|
||||||
"message": "A sua palavra-passe mestra não cumpre uma ou mais políticas da sua organização. Para aceder ao cofre, tem de atualizar a sua palavra-passe mestra agora. Se prosseguir, sairá da sua sessão atual e terá de iniciar sessão novamente. As sessões ativas noutros dispositivos poderão continuar ativas até uma hora."
|
"message": "A sua palavra-passe mestra não cumpre uma ou mais políticas da sua organização. Para aceder ao cofre, tem de atualizar a sua palavra-passe mestra agora. Ao prosseguir, terminará a sua sessão atual e terá de iniciar sessão novamente. As sessões ativas noutros dispositivos poderão continuar ativas até uma hora."
|
||||||
},
|
},
|
||||||
"resetPasswordPolicyAutoEnroll": {
|
"resetPasswordPolicyAutoEnroll": {
|
||||||
"message": "Inscrição automática"
|
"message": "Inscrição automática"
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import {
|
|||||||
FactoryOptions,
|
FactoryOptions,
|
||||||
CachedServices,
|
CachedServices,
|
||||||
factory,
|
factory,
|
||||||
} from "../../../background/service_factories/factory-options";
|
} from "../../../platform/background/service-factories/factory-options";
|
||||||
import {
|
import {
|
||||||
stateServiceFactory,
|
stateServiceFactory,
|
||||||
StateServiceInitOptions,
|
StateServiceInitOptions,
|
||||||
} from "../../../background/service_factories/state-service.factory";
|
} from "../../../platform/background/service-factories/state-service.factory";
|
||||||
import { BrowserOrganizationService } from "../../services/browser-organization.service";
|
import { BrowserOrganizationService } from "../../services/browser-organization.service";
|
||||||
|
|
||||||
type OrganizationServiceFactoryOptions = FactoryOptions;
|
type OrganizationServiceFactoryOptions = FactoryOptions;
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import {
|
|||||||
CachedServices,
|
CachedServices,
|
||||||
factory,
|
factory,
|
||||||
FactoryOptions,
|
FactoryOptions,
|
||||||
} from "../../../background/service_factories/factory-options";
|
} from "../../../platform/background/service-factories/factory-options";
|
||||||
import {
|
import {
|
||||||
stateServiceFactory as stateServiceFactory,
|
stateServiceFactory as stateServiceFactory,
|
||||||
StateServiceInitOptions,
|
StateServiceInitOptions,
|
||||||
} from "../../../background/service_factories/state-service.factory";
|
} from "../../../platform/background/service-factories/state-service.factory";
|
||||||
import { BrowserPolicyService } from "../../services/browser-policy.service";
|
import { BrowserPolicyService } from "../../services/browser-policy.service";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { BehaviorSubject } from "rxjs";
|
|||||||
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
|
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
|
||||||
import { OrganizationService } from "@bitwarden/common/admin-console/services/organization/organization.service";
|
import { OrganizationService } from "@bitwarden/common/admin-console/services/organization/organization.service";
|
||||||
|
|
||||||
import { browserSession, sessionSync } from "../../decorators/session-sync-observable";
|
import { browserSession, sessionSync } from "../../platform/decorators/session-sync-observable";
|
||||||
|
|
||||||
@browserSession
|
@browserSession
|
||||||
export class BrowserOrganizationService extends OrganizationService {
|
export class BrowserOrganizationService extends OrganizationService {
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import { BehaviorSubject, filter, map, Observable, switchMap, tap } from "rxjs";
|
import { BehaviorSubject, filter, map, Observable, switchMap, tap } from "rxjs";
|
||||||
import { Jsonify } from "type-fest";
|
import { Jsonify } from "type-fest";
|
||||||
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
||||||
import { PolicyType } from "@bitwarden/common/admin-console/enums";
|
import { PolicyType } from "@bitwarden/common/admin-console/enums";
|
||||||
import { Policy } from "@bitwarden/common/admin-console/models/domain/policy";
|
import { Policy } from "@bitwarden/common/admin-console/models/domain/policy";
|
||||||
import { PolicyService } from "@bitwarden/common/admin-console/services/policy/policy.service";
|
import { PolicyService } from "@bitwarden/common/admin-console/services/policy/policy.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
|
|
||||||
import { browserSession, sessionSync } from "../../decorators/session-sync-observable";
|
import { browserSession, sessionSync } from "../../platform/decorators/session-sync-observable";
|
||||||
|
|
||||||
@browserSession
|
@browserSession
|
||||||
export class BrowserPolicyService extends PolicyService {
|
export class BrowserPolicyService extends PolicyService {
|
||||||
|
|||||||
@@ -8,49 +8,49 @@ import {
|
|||||||
import {
|
import {
|
||||||
apiServiceFactory,
|
apiServiceFactory,
|
||||||
ApiServiceInitOptions,
|
ApiServiceInitOptions,
|
||||||
} from "../../../background/service_factories/api-service.factory";
|
} from "../../../platform/background/service-factories/api-service.factory";
|
||||||
import { appIdServiceFactory } from "../../../background/service_factories/app-id-service.factory";
|
import { appIdServiceFactory } from "../../../platform/background/service-factories/app-id-service.factory";
|
||||||
import {
|
import {
|
||||||
cryptoServiceFactory,
|
|
||||||
CryptoServiceInitOptions,
|
CryptoServiceInitOptions,
|
||||||
} from "../../../background/service_factories/crypto-service.factory";
|
cryptoServiceFactory,
|
||||||
|
} from "../../../platform/background/service-factories/crypto-service.factory";
|
||||||
import {
|
import {
|
||||||
encryptServiceFactory,
|
|
||||||
EncryptServiceInitOptions,
|
EncryptServiceInitOptions,
|
||||||
} from "../../../background/service_factories/encrypt-service.factory";
|
encryptServiceFactory,
|
||||||
|
} from "../../../platform/background/service-factories/encrypt-service.factory";
|
||||||
import {
|
import {
|
||||||
environmentServiceFactory,
|
environmentServiceFactory,
|
||||||
EnvironmentServiceInitOptions,
|
EnvironmentServiceInitOptions,
|
||||||
} from "../../../background/service_factories/environment-service.factory";
|
} from "../../../platform/background/service-factories/environment-service.factory";
|
||||||
import {
|
import {
|
||||||
CachedServices,
|
CachedServices,
|
||||||
factory,
|
factory,
|
||||||
FactoryOptions,
|
FactoryOptions,
|
||||||
} from "../../../background/service_factories/factory-options";
|
} from "../../../platform/background/service-factories/factory-options";
|
||||||
import {
|
import {
|
||||||
i18nServiceFactory,
|
i18nServiceFactory,
|
||||||
I18nServiceInitOptions,
|
I18nServiceInitOptions,
|
||||||
} from "../../../background/service_factories/i18n-service.factory";
|
} from "../../../platform/background/service-factories/i18n-service.factory";
|
||||||
import {
|
import {
|
||||||
logServiceFactory,
|
logServiceFactory,
|
||||||
LogServiceInitOptions,
|
LogServiceInitOptions,
|
||||||
} from "../../../background/service_factories/log-service.factory";
|
} from "../../../platform/background/service-factories/log-service.factory";
|
||||||
import {
|
import {
|
||||||
messagingServiceFactory,
|
messagingServiceFactory,
|
||||||
MessagingServiceInitOptions,
|
MessagingServiceInitOptions,
|
||||||
} from "../../../background/service_factories/messaging-service.factory";
|
} from "../../../platform/background/service-factories/messaging-service.factory";
|
||||||
import {
|
|
||||||
passwordGenerationServiceFactory,
|
|
||||||
PasswordGenerationServiceInitOptions,
|
|
||||||
} from "../../../background/service_factories/password-generation-service.factory";
|
|
||||||
import {
|
import {
|
||||||
platformUtilsServiceFactory,
|
platformUtilsServiceFactory,
|
||||||
PlatformUtilsServiceInitOptions,
|
PlatformUtilsServiceInitOptions,
|
||||||
} from "../../../background/service_factories/platform-utils-service.factory";
|
} from "../../../platform/background/service-factories/platform-utils-service.factory";
|
||||||
import {
|
import {
|
||||||
stateServiceFactory,
|
stateServiceFactory,
|
||||||
StateServiceInitOptions,
|
StateServiceInitOptions,
|
||||||
} from "../../../background/service_factories/state-service.factory";
|
} from "../../../platform/background/service-factories/state-service.factory";
|
||||||
|
import {
|
||||||
|
passwordStrengthServiceFactory,
|
||||||
|
PasswordStrengthServiceInitOptions,
|
||||||
|
} from "../../../tools/background/service_factories/password-strength-service.factory";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
keyConnectorServiceFactory,
|
keyConnectorServiceFactory,
|
||||||
@@ -75,7 +75,7 @@ export type AuthServiceInitOptions = AuthServiceFactoyOptions &
|
|||||||
I18nServiceInitOptions &
|
I18nServiceInitOptions &
|
||||||
EncryptServiceInitOptions &
|
EncryptServiceInitOptions &
|
||||||
PolicyServiceInitOptions &
|
PolicyServiceInitOptions &
|
||||||
PasswordGenerationServiceInitOptions;
|
PasswordStrengthServiceInitOptions;
|
||||||
|
|
||||||
export function authServiceFactory(
|
export function authServiceFactory(
|
||||||
cache: { authService?: AbstractAuthService } & CachedServices,
|
cache: { authService?: AbstractAuthService } & CachedServices,
|
||||||
@@ -100,7 +100,7 @@ export function authServiceFactory(
|
|||||||
await twoFactorServiceFactory(cache, opts),
|
await twoFactorServiceFactory(cache, opts),
|
||||||
await i18nServiceFactory(cache, opts),
|
await i18nServiceFactory(cache, opts),
|
||||||
await encryptServiceFactory(cache, opts),
|
await encryptServiceFactory(cache, opts),
|
||||||
await passwordGenerationServiceFactory(cache, opts),
|
await passwordStrengthServiceFactory(cache, opts),
|
||||||
await policyServiceFactory(cache, opts)
|
await policyServiceFactory(cache, opts)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -8,28 +8,28 @@ import {
|
|||||||
import {
|
import {
|
||||||
apiServiceFactory,
|
apiServiceFactory,
|
||||||
ApiServiceInitOptions,
|
ApiServiceInitOptions,
|
||||||
} from "../../../background/service_factories/api-service.factory";
|
} from "../../../platform/background/service-factories/api-service.factory";
|
||||||
import {
|
import {
|
||||||
cryptoFunctionServiceFactory,
|
|
||||||
CryptoFunctionServiceInitOptions,
|
CryptoFunctionServiceInitOptions,
|
||||||
} from "../../../background/service_factories/crypto-function-service.factory";
|
cryptoFunctionServiceFactory,
|
||||||
|
} from "../../../platform/background/service-factories/crypto-function-service.factory";
|
||||||
import {
|
import {
|
||||||
CryptoServiceInitOptions,
|
CryptoServiceInitOptions,
|
||||||
cryptoServiceFactory,
|
cryptoServiceFactory,
|
||||||
} from "../../../background/service_factories/crypto-service.factory";
|
} from "../../../platform/background/service-factories/crypto-service.factory";
|
||||||
import {
|
import {
|
||||||
FactoryOptions,
|
FactoryOptions,
|
||||||
CachedServices,
|
CachedServices,
|
||||||
factory,
|
factory,
|
||||||
} from "../../../background/service_factories/factory-options";
|
} from "../../../platform/background/service-factories/factory-options";
|
||||||
import {
|
import {
|
||||||
logServiceFactory,
|
logServiceFactory,
|
||||||
LogServiceInitOptions,
|
LogServiceInitOptions,
|
||||||
} from "../../../background/service_factories/log-service.factory";
|
} from "../../../platform/background/service-factories/log-service.factory";
|
||||||
import {
|
import {
|
||||||
stateServiceFactory,
|
stateServiceFactory,
|
||||||
StateServiceInitOptions,
|
StateServiceInitOptions,
|
||||||
} from "../../../background/service_factories/state-service.factory";
|
} from "../../../platform/background/service-factories/state-service.factory";
|
||||||
|
|
||||||
import { TokenServiceInitOptions, tokenServiceFactory } from "./token-service.factory";
|
import { TokenServiceInitOptions, tokenServiceFactory } from "./token-service.factory";
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import {
|
|||||||
FactoryOptions,
|
FactoryOptions,
|
||||||
CachedServices,
|
CachedServices,
|
||||||
factory,
|
factory,
|
||||||
} from "../../../background/service_factories/factory-options";
|
} from "../../../platform/background/service-factories/factory-options";
|
||||||
import {
|
import {
|
||||||
stateServiceFactory,
|
stateServiceFactory,
|
||||||
StateServiceInitOptions,
|
StateServiceInitOptions,
|
||||||
} from "../../../background/service_factories/state-service.factory";
|
} from "../../../platform/background/service-factories/state-service.factory";
|
||||||
|
|
||||||
type TokenServiceFactoryOptions = FactoryOptions;
|
type TokenServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
|
|||||||
@@ -4,16 +4,16 @@ import { TotpService } from "@bitwarden/common/services/totp.service";
|
|||||||
import {
|
import {
|
||||||
CryptoFunctionServiceInitOptions,
|
CryptoFunctionServiceInitOptions,
|
||||||
cryptoFunctionServiceFactory,
|
cryptoFunctionServiceFactory,
|
||||||
} from "../../../background/service_factories/crypto-function-service.factory";
|
} from "../../../platform/background/service-factories/crypto-function-service.factory";
|
||||||
import {
|
import {
|
||||||
FactoryOptions,
|
FactoryOptions,
|
||||||
CachedServices,
|
CachedServices,
|
||||||
factory,
|
factory,
|
||||||
} from "../../../background/service_factories/factory-options";
|
} from "../../../platform/background/service-factories/factory-options";
|
||||||
import {
|
import {
|
||||||
LogServiceInitOptions,
|
LogServiceInitOptions,
|
||||||
logServiceFactory,
|
logServiceFactory,
|
||||||
} from "../../../background/service_factories/log-service.factory";
|
} from "../../../platform/background/service-factories/log-service.factory";
|
||||||
|
|
||||||
type TotpServiceOptions = FactoryOptions;
|
type TotpServiceOptions = FactoryOptions;
|
||||||
|
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import {
|
|||||||
FactoryOptions,
|
FactoryOptions,
|
||||||
CachedServices,
|
CachedServices,
|
||||||
factory,
|
factory,
|
||||||
} from "../../../background/service_factories/factory-options";
|
} from "../../../platform/background/service-factories/factory-options";
|
||||||
import {
|
import {
|
||||||
I18nServiceInitOptions,
|
I18nServiceInitOptions,
|
||||||
i18nServiceFactory,
|
i18nServiceFactory,
|
||||||
} from "../../../background/service_factories/i18n-service.factory";
|
} from "../../../platform/background/service-factories/i18n-service.factory";
|
||||||
import {
|
import {
|
||||||
PlatformUtilsServiceInitOptions,
|
PlatformUtilsServiceInitOptions,
|
||||||
platformUtilsServiceFactory,
|
platformUtilsServiceFactory,
|
||||||
} from "../../../background/service_factories/platform-utils-service.factory";
|
} from "../../../platform/background/service-factories/platform-utils-service.factory";
|
||||||
|
|
||||||
type TwoFactorServiceFactoryOptions = FactoryOptions;
|
type TwoFactorServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ import { Router } from "@angular/router";
|
|||||||
|
|
||||||
import { EnvironmentComponent as BaseEnvironmentComponent } from "@bitwarden/angular/components/environment.component";
|
import { EnvironmentComponent as BaseEnvironmentComponent } from "@bitwarden/angular/components/environment.component";
|
||||||
import { ModalService } from "@bitwarden/angular/services/modal.service";
|
import { ModalService } from "@bitwarden/angular/services/modal.service";
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
|
||||||
import { BrowserEnvironmentService } from "../../services/browser-environment.service";
|
import { BrowserEnvironmentService } from "../../platform/services/browser-environment.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-environment",
|
selector: "app-environment",
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ import { ActivatedRoute, Router } from "@angular/router";
|
|||||||
|
|
||||||
import { HintComponent as BaseHintComponent } from "@bitwarden/angular/auth/components/hint.component";
|
import { HintComponent as BaseHintComponent } from "@bitwarden/angular/auth/components/hint.component";
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-hint",
|
selector: "app-hint",
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import { Router } from "@angular/router";
|
|||||||
import { Subject, takeUntil } from "rxjs";
|
import { Subject, takeUntil } from "rxjs";
|
||||||
|
|
||||||
import { EnvironmentSelectorComponent } from "@bitwarden/angular/auth/components/environment-selector.component";
|
import { EnvironmentSelectorComponent } from "@bitwarden/angular/auth/components/environment-selector.component";
|
||||||
import { EnvironmentService } from "@bitwarden/common/abstractions/environment.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
||||||
|
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-home",
|
selector: "app-home",
|
||||||
|
|||||||
@@ -4,13 +4,6 @@ import { Router } from "@angular/router";
|
|||||||
import { LockComponent as BaseLockComponent } from "@bitwarden/angular/auth/components/lock.component";
|
import { LockComponent as BaseLockComponent } from "@bitwarden/angular/auth/components/lock.component";
|
||||||
import { DialogServiceAbstraction } from "@bitwarden/angular/services/dialog";
|
import { DialogServiceAbstraction } from "@bitwarden/angular/services/dialog";
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
|
|
||||||
import { EnvironmentService } from "@bitwarden/common/abstractions/environment.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { MessagingService } from "@bitwarden/common/abstractions/messaging.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { VaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
import { VaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
||||||
import { VaultTimeoutSettingsService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeoutSettings.service";
|
import { VaultTimeoutSettingsService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeoutSettings.service";
|
||||||
import { PolicyApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/policy/policy-api.service.abstraction";
|
import { PolicyApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/policy/policy-api.service.abstraction";
|
||||||
@@ -18,7 +11,14 @@ import { InternalPolicyService } from "@bitwarden/common/admin-console/abstracti
|
|||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { KeyConnectorService } from "@bitwarden/common/auth/abstractions/key-connector.service";
|
import { KeyConnectorService } from "@bitwarden/common/auth/abstractions/key-connector.service";
|
||||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||||
|
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
|
import { PasswordStrengthServiceAbstraction } from "@bitwarden/common/tools/password-strength";
|
||||||
|
|
||||||
import { BiometricErrors, BiometricErrorTypes } from "../../models/biometricErrors";
|
import { BiometricErrors, BiometricErrorTypes } from "../../models/biometricErrors";
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ export class LockComponent extends BaseLockComponent {
|
|||||||
ngZone: NgZone,
|
ngZone: NgZone,
|
||||||
policyApiService: PolicyApiServiceAbstraction,
|
policyApiService: PolicyApiServiceAbstraction,
|
||||||
policyService: InternalPolicyService,
|
policyService: InternalPolicyService,
|
||||||
passwordGenerationService: PasswordGenerationServiceAbstraction,
|
passwordStrengthService: PasswordStrengthServiceAbstraction,
|
||||||
private authService: AuthService,
|
private authService: AuthService,
|
||||||
dialogService: DialogServiceAbstraction
|
dialogService: DialogServiceAbstraction
|
||||||
) {
|
) {
|
||||||
@@ -68,7 +68,7 @@ export class LockComponent extends BaseLockComponent {
|
|||||||
ngZone,
|
ngZone,
|
||||||
policyApiService,
|
policyApiService,
|
||||||
policyService,
|
policyService,
|
||||||
passwordGenerationService,
|
passwordStrengthService,
|
||||||
dialogService
|
dialogService
|
||||||
);
|
);
|
||||||
this.successRoute = "/tabs/current";
|
this.successRoute = "/tabs/current";
|
||||||
|
|||||||
@@ -4,17 +4,17 @@ import { Router } from "@angular/router";
|
|||||||
import { LoginWithDeviceComponent as BaseLoginWithDeviceComponent } from "@bitwarden/angular/auth/components/login-with-device.component";
|
import { LoginWithDeviceComponent as BaseLoginWithDeviceComponent } from "@bitwarden/angular/auth/components/login-with-device.component";
|
||||||
import { AnonymousHubService } from "@bitwarden/common/abstractions/anonymousHub.service";
|
import { AnonymousHubService } from "@bitwarden/common/abstractions/anonymousHub.service";
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
import { AppIdService } from "@bitwarden/common/abstractions/appId.service";
|
|
||||||
import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
|
|
||||||
import { CryptoFunctionService } from "@bitwarden/common/abstractions/cryptoFunction.service";
|
|
||||||
import { EnvironmentService } from "@bitwarden/common/abstractions/environment.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { ValidationService } from "@bitwarden/common/abstractions/validation.service";
|
|
||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
||||||
|
import { AppIdService } from "@bitwarden/common/platform/abstractions/app-id.service";
|
||||||
|
import { CryptoFunctionService } from "@bitwarden/common/platform/abstractions/crypto-function.service";
|
||||||
|
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||||
|
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
|
import { ValidationService } from "@bitwarden/common/platform/abstractions/validation.service";
|
||||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||||
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
||||||
|
|
||||||
|
|||||||
@@ -3,22 +3,22 @@ import { FormBuilder } from "@angular/forms";
|
|||||||
import { ActivatedRoute, Router } from "@angular/router";
|
import { ActivatedRoute, Router } from "@angular/router";
|
||||||
|
|
||||||
import { LoginComponent as BaseLoginComponent } from "@bitwarden/angular/auth/components/login.component";
|
import { LoginComponent as BaseLoginComponent } from "@bitwarden/angular/auth/components/login.component";
|
||||||
import { AppIdService } from "@bitwarden/common/abstractions/appId.service";
|
import { FormValidationErrorsService } from "@bitwarden/angular/platform/abstractions/form-validation-errors.service";
|
||||||
import { CryptoFunctionService } from "@bitwarden/common/abstractions/cryptoFunction.service";
|
|
||||||
import { DevicesApiServiceAbstraction } from "@bitwarden/common/abstractions/devices/devices-api.service.abstraction";
|
import { DevicesApiServiceAbstraction } from "@bitwarden/common/abstractions/devices/devices-api.service.abstraction";
|
||||||
import { EnvironmentService } from "@bitwarden/common/abstractions/environment.service";
|
|
||||||
import { FormValidationErrorsService } from "@bitwarden/common/abstractions/formValidationErrors.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
import { AppIdService } from "@bitwarden/common/platform/abstractions/app-id.service";
|
||||||
|
import { CryptoFunctionService } from "@bitwarden/common/platform/abstractions/crypto-function.service";
|
||||||
|
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||||
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
||||||
|
|
||||||
import { flagEnabled } from "../../flags";
|
import { flagEnabled } from "../../platform/flags";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-login",
|
selector: "app-login",
|
||||||
|
|||||||
@@ -3,17 +3,17 @@ import { UntypedFormBuilder } from "@angular/forms";
|
|||||||
import { Router } from "@angular/router";
|
import { Router } from "@angular/router";
|
||||||
|
|
||||||
import { RegisterComponent as BaseRegisterComponent } from "@bitwarden/angular/components/register.component";
|
import { RegisterComponent as BaseRegisterComponent } from "@bitwarden/angular/components/register.component";
|
||||||
|
import { FormValidationErrorsService } from "@bitwarden/angular/platform/abstractions/form-validation-errors.service";
|
||||||
import { DialogServiceAbstraction } from "@bitwarden/angular/services/dialog";
|
import { DialogServiceAbstraction } from "@bitwarden/angular/services/dialog";
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
import { AuditService } from "@bitwarden/common/abstractions/audit.service";
|
import { AuditService } from "@bitwarden/common/abstractions/audit.service";
|
||||||
import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
|
|
||||||
import { EnvironmentService } from "@bitwarden/common/abstractions/environment.service";
|
|
||||||
import { FormValidationErrorsService } from "@bitwarden/common/abstractions/formValidationErrors.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
|
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||||
|
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -4,15 +4,15 @@ import { ActivatedRoute, Router } from "@angular/router";
|
|||||||
import { SetPasswordComponent as BaseSetPasswordComponent } from "@bitwarden/angular/components/set-password.component";
|
import { SetPasswordComponent as BaseSetPasswordComponent } from "@bitwarden/angular/components/set-password.component";
|
||||||
import { DialogServiceAbstraction } from "@bitwarden/angular/services/dialog";
|
import { DialogServiceAbstraction } from "@bitwarden/angular/services/dialog";
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { MessagingService } from "@bitwarden/common/abstractions/messaging.service";
|
|
||||||
import { OrganizationUserService } from "@bitwarden/common/abstractions/organization-user/organization-user.service";
|
import { OrganizationUserService } from "@bitwarden/common/abstractions/organization-user/organization-user.service";
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { OrganizationApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/organization/organization-api.service.abstraction";
|
import { OrganizationApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/organization/organization-api.service.abstraction";
|
||||||
import { PolicyApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/policy/policy-api.service.abstraction";
|
import { PolicyApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/policy/policy-api.service.abstraction";
|
||||||
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
import { PolicyService } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
||||||
|
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||||
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
||||||
|
|
||||||
|
|||||||
@@ -3,19 +3,19 @@ import { ActivatedRoute, Router } from "@angular/router";
|
|||||||
|
|
||||||
import { SsoComponent as BaseSsoComponent } from "@bitwarden/angular/auth/components/sso.component";
|
import { SsoComponent as BaseSsoComponent } from "@bitwarden/angular/auth/components/sso.component";
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
import { CryptoFunctionService } from "@bitwarden/common/abstractions/cryptoFunction.service";
|
|
||||||
import { EnvironmentService } from "@bitwarden/common/abstractions/environment.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { VaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
import { VaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||||
|
import { CryptoFunctionService } from "@bitwarden/common/platform/abstractions/crypto-function.service";
|
||||||
|
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||||
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
||||||
|
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-sso",
|
selector: "app-sso",
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import { Component } from "@angular/core";
|
|||||||
import { ActivatedRoute, Router } from "@angular/router";
|
import { ActivatedRoute, Router } from "@angular/router";
|
||||||
|
|
||||||
import { TwoFactorOptionsComponent as BaseTwoFactorOptionsComponent } from "@bitwarden/angular/auth/components/two-factor-options.component";
|
import { TwoFactorOptionsComponent as BaseTwoFactorOptionsComponent } from "@bitwarden/angular/auth/components/two-factor-options.component";
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { TwoFactorService } from "@bitwarden/common/auth/abstractions/two-factor.service";
|
import { TwoFactorService } from "@bitwarden/common/auth/abstractions/two-factor.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-options",
|
selector: "app-two-factor-options",
|
||||||
|
|||||||
@@ -5,21 +5,21 @@ import { first } from "rxjs/operators";
|
|||||||
import { TwoFactorComponent as BaseTwoFactorComponent } from "@bitwarden/angular/auth/components/two-factor.component";
|
import { TwoFactorComponent as BaseTwoFactorComponent } from "@bitwarden/angular/auth/components/two-factor.component";
|
||||||
import { DialogServiceAbstraction, SimpleDialogType } from "@bitwarden/angular/services/dialog";
|
import { DialogServiceAbstraction, SimpleDialogType } from "@bitwarden/angular/services/dialog";
|
||||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||||
import { AppIdService } from "@bitwarden/common/abstractions/appId.service";
|
|
||||||
import { BroadcasterService } from "@bitwarden/common/abstractions/broadcaster.service";
|
|
||||||
import { EnvironmentService } from "@bitwarden/common/abstractions/environment.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { MessagingService } from "@bitwarden/common/abstractions/messaging.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
import { LoginService } from "@bitwarden/common/auth/abstractions/login.service";
|
||||||
import { TwoFactorService } from "@bitwarden/common/auth/abstractions/two-factor.service";
|
import { TwoFactorService } from "@bitwarden/common/auth/abstractions/two-factor.service";
|
||||||
import { TwoFactorProviderType } from "@bitwarden/common/auth/enums/two-factor-provider-type";
|
import { TwoFactorProviderType } from "@bitwarden/common/auth/enums/two-factor-provider-type";
|
||||||
|
import { AppIdService } from "@bitwarden/common/platform/abstractions/app-id.service";
|
||||||
|
import { BroadcasterService } from "@bitwarden/common/platform/abstractions/broadcaster.service";
|
||||||
|
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
import { SyncService } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
||||||
|
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
import { PopupUtilsService } from "../../popup/services/popup-utils.service";
|
import { PopupUtilsService } from "../../popup/services/popup-utils.service";
|
||||||
|
|
||||||
const BroadcasterSubscriptionId = "TwoFactorComponent";
|
const BroadcasterSubscriptionId = "TwoFactorComponent";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import LockedVaultPendingNotificationsItem from "../../background/models/lockedVaultPendingNotificationsItem";
|
import LockedVaultPendingNotificationsItem from "../../background/models/lockedVaultPendingNotificationsItem";
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
import { ContextMenuClickedHandler } from "../browser/context-menu-clicked-handler";
|
import { ContextMenuClickedHandler } from "../browser/context-menu-clicked-handler";
|
||||||
|
|
||||||
export default class ContextMenusBackground {
|
export default class ContextMenusBackground {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { PolicyType } from "@bitwarden/common/admin-console/enums";
|
|||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||||
import { ThemeType } from "@bitwarden/common/enums";
|
import { ThemeType } from "@bitwarden/common/enums";
|
||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
import { FolderService } from "@bitwarden/common/vault/abstractions/folder/folder.service.abstraction";
|
import { FolderService } from "@bitwarden/common/vault/abstractions/folder/folder.service.abstraction";
|
||||||
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
||||||
@@ -17,8 +17,8 @@ import AddLoginRuntimeMessage from "../../background/models/addLoginRuntimeMessa
|
|||||||
import ChangePasswordRuntimeMessage from "../../background/models/changePasswordRuntimeMessage";
|
import ChangePasswordRuntimeMessage from "../../background/models/changePasswordRuntimeMessage";
|
||||||
import LockedVaultPendingNotificationsItem from "../../background/models/lockedVaultPendingNotificationsItem";
|
import LockedVaultPendingNotificationsItem from "../../background/models/lockedVaultPendingNotificationsItem";
|
||||||
import { NotificationQueueMessageType } from "../../background/models/notificationQueueMessageType";
|
import { NotificationQueueMessageType } from "../../background/models/notificationQueueMessageType";
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
import { BrowserStateService } from "../../services/abstractions/browser-state.service";
|
import { BrowserStateService } from "../../platform/services/abstractions/browser-state.service";
|
||||||
import { AutofillService } from "../services/abstractions/autofill.service";
|
import { AutofillService } from "../services/abstractions/autofill.service";
|
||||||
|
|
||||||
export default class NotificationBackground {
|
export default class NotificationBackground {
|
||||||
|
|||||||
@@ -5,24 +5,24 @@ import {
|
|||||||
import {
|
import {
|
||||||
EventCollectionServiceInitOptions,
|
EventCollectionServiceInitOptions,
|
||||||
eventCollectionServiceFactory,
|
eventCollectionServiceFactory,
|
||||||
} from "../../../background/service_factories/event-collection-service.factory";
|
} from "../../../background/service-factories/event-collection-service.factory";
|
||||||
|
import {
|
||||||
|
settingsServiceFactory,
|
||||||
|
SettingsServiceInitOptions,
|
||||||
|
} from "../../../background/service-factories/settings-service.factory";
|
||||||
import {
|
import {
|
||||||
CachedServices,
|
CachedServices,
|
||||||
factory,
|
factory,
|
||||||
FactoryOptions,
|
FactoryOptions,
|
||||||
} from "../../../background/service_factories/factory-options";
|
} from "../../../platform/background/service-factories/factory-options";
|
||||||
import {
|
import {
|
||||||
logServiceFactory,
|
logServiceFactory,
|
||||||
LogServiceInitOptions,
|
LogServiceInitOptions,
|
||||||
} from "../../../background/service_factories/log-service.factory";
|
} from "../../../platform/background/service-factories/log-service.factory";
|
||||||
import {
|
|
||||||
settingsServiceFactory,
|
|
||||||
SettingsServiceInitOptions,
|
|
||||||
} from "../../../background/service_factories/settings-service.factory";
|
|
||||||
import {
|
import {
|
||||||
stateServiceFactory,
|
stateServiceFactory,
|
||||||
StateServiceInitOptions,
|
StateServiceInitOptions,
|
||||||
} from "../../../background/service_factories/state-service.factory";
|
} from "../../../platform/background/service-factories/state-service.factory";
|
||||||
import {
|
import {
|
||||||
cipherServiceFactory,
|
cipherServiceFactory,
|
||||||
CipherServiceInitOptions,
|
CipherServiceInitOptions,
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||||
import { StateFactory } from "@bitwarden/common/factories/stateFactory";
|
import { StateFactory } from "@bitwarden/common/platform/factories/state-factory";
|
||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
import { GlobalState } from "@bitwarden/common/models/domain/global-state";
|
import { GlobalState } from "@bitwarden/common/platform/models/domain/global-state";
|
||||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
import { CipherRepromptType } from "@bitwarden/common/vault/enums/cipher-reprompt-type";
|
import { CipherRepromptType } from "@bitwarden/common/vault/enums/cipher-reprompt-type";
|
||||||
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
||||||
@@ -12,9 +12,9 @@ import {
|
|||||||
authServiceFactory,
|
authServiceFactory,
|
||||||
AuthServiceInitOptions,
|
AuthServiceInitOptions,
|
||||||
} from "../../auth/background/service-factories/auth-service.factory";
|
} from "../../auth/background/service-factories/auth-service.factory";
|
||||||
import { CachedServices } from "../../background/service_factories/factory-options";
|
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
|
||||||
import { Account } from "../../models/account";
|
import { Account } from "../../models/account";
|
||||||
|
import { CachedServices } from "../../platform/background/service-factories/factory-options";
|
||||||
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
import {
|
import {
|
||||||
cipherServiceFactory,
|
cipherServiceFactory,
|
||||||
CipherServiceInitOptions,
|
CipherServiceInitOptions,
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import { TotpService } from "@bitwarden/common/abstractions/totp.service";
|
|||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||||
import { EventType } from "@bitwarden/common/enums";
|
import { EventType } from "@bitwarden/common/enums";
|
||||||
import { StateFactory } from "@bitwarden/common/factories/stateFactory";
|
import { StateFactory } from "@bitwarden/common/platform/factories/state-factory";
|
||||||
import { GlobalState } from "@bitwarden/common/models/domain/global-state";
|
import { GlobalState } from "@bitwarden/common/platform/models/domain/global-state";
|
||||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
import { CipherRepromptType } from "@bitwarden/common/vault/enums/cipher-reprompt-type";
|
import { CipherRepromptType } from "@bitwarden/common/vault/enums/cipher-reprompt-type";
|
||||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
@@ -15,12 +15,12 @@ import {
|
|||||||
} from "../../auth/background/service-factories/auth-service.factory";
|
} from "../../auth/background/service-factories/auth-service.factory";
|
||||||
import { totpServiceFactory } from "../../auth/background/service-factories/totp-service.factory";
|
import { totpServiceFactory } from "../../auth/background/service-factories/totp-service.factory";
|
||||||
import LockedVaultPendingNotificationsItem from "../../background/models/lockedVaultPendingNotificationsItem";
|
import LockedVaultPendingNotificationsItem from "../../background/models/lockedVaultPendingNotificationsItem";
|
||||||
import { eventCollectionServiceFactory } from "../../background/service_factories/event-collection-service.factory";
|
import { eventCollectionServiceFactory } from "../../background/service-factories/event-collection-service.factory";
|
||||||
import { CachedServices } from "../../background/service_factories/factory-options";
|
|
||||||
import { passwordGenerationServiceFactory } from "../../background/service_factories/password-generation-service.factory";
|
|
||||||
import { stateServiceFactory } from "../../background/service_factories/state-service.factory";
|
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
|
||||||
import { Account } from "../../models/account";
|
import { Account } from "../../models/account";
|
||||||
|
import { CachedServices } from "../../platform/background/service-factories/factory-options";
|
||||||
|
import { stateServiceFactory } from "../../platform/background/service-factories/state-service.factory";
|
||||||
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
|
import { passwordGenerationServiceFactory } from "../../tools/background/service_factories/password-generation-service.factory";
|
||||||
import {
|
import {
|
||||||
cipherServiceFactory,
|
cipherServiceFactory,
|
||||||
CipherServiceInitOptions,
|
CipherServiceInitOptions,
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { mock, MockProxy } from "jest-mock-extended";
|
import { mock, MockProxy } from "jest-mock-extended";
|
||||||
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
||||||
import { Cipher } from "@bitwarden/common/vault/models/domain/cipher";
|
import { Cipher } from "@bitwarden/common/vault/models/domain/cipher";
|
||||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
|
|
||||||
import { BrowserStateService } from "../../services/abstractions/browser-state.service";
|
import { BrowserStateService } from "../../platform/services/abstractions/browser-state.service";
|
||||||
|
|
||||||
import { MainContextMenuHandler } from "./main-context-menu-handler";
|
import { MainContextMenuHandler } from "./main-context-menu-handler";
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,26 @@
|
|||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
import { StateFactory } from "@bitwarden/common/factories/stateFactory";
|
import { StateFactory } from "@bitwarden/common/platform/factories/state-factory";
|
||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
import { GlobalState } from "@bitwarden/common/models/domain/global-state";
|
import { GlobalState } from "@bitwarden/common/platform/models/domain/global-state";
|
||||||
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
||||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
|
|
||||||
import { CachedServices } from "../../background/service_factories/factory-options";
|
import { Account } from "../../models/account";
|
||||||
|
import { CachedServices } from "../../platform/background/service-factories/factory-options";
|
||||||
import {
|
import {
|
||||||
i18nServiceFactory,
|
i18nServiceFactory,
|
||||||
I18nServiceInitOptions,
|
I18nServiceInitOptions,
|
||||||
} from "../../background/service_factories/i18n-service.factory";
|
} from "../../platform/background/service-factories/i18n-service.factory";
|
||||||
import {
|
import {
|
||||||
logServiceFactory,
|
logServiceFactory,
|
||||||
LogServiceInitOptions,
|
LogServiceInitOptions,
|
||||||
} from "../../background/service_factories/log-service.factory";
|
} from "../../platform/background/service-factories/log-service.factory";
|
||||||
import {
|
import {
|
||||||
stateServiceFactory,
|
stateServiceFactory,
|
||||||
StateServiceInitOptions,
|
StateServiceInitOptions,
|
||||||
} from "../../background/service_factories/state-service.factory";
|
} from "../../platform/background/service-factories/state-service.factory";
|
||||||
import { Account } from "../../models/account";
|
import { BrowserStateService } from "../../platform/services/abstractions/browser-state.service";
|
||||||
import { BrowserStateService } from "../../services/abstractions/browser-state.service";
|
|
||||||
|
|
||||||
export const ROOT_ID = "root";
|
export const ROOT_ID = "root";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
|
|
||||||
import { ClearClipboard } from "./clear-clipboard";
|
import { ClearClipboard } from "./clear-clipboard";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
|
|
||||||
export const clearClipboardAlarmName = "clearClipboard";
|
export const clearClipboardAlarmName = "clearClipboard";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copies text to the clipboard in a MV3 safe way.
|
* Copies text to the clipboard in a MV3 safe way.
|
||||||
|
|||||||
@@ -2,14 +2,14 @@ import { mock, MockProxy } from "jest-mock-extended";
|
|||||||
|
|
||||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||||
|
|
||||||
import { setAlarmTime } from "../../alarms/alarm-state";
|
import { setAlarmTime } from "../../platform/alarms/alarm-state";
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
import { BrowserStateService } from "../../services/abstractions/browser-state.service";
|
import { BrowserStateService } from "../../platform/services/abstractions/browser-state.service";
|
||||||
|
|
||||||
import { clearClipboardAlarmName } from "./clear-clipboard";
|
import { clearClipboardAlarmName } from "./clear-clipboard";
|
||||||
import { GeneratePasswordToClipboardCommand } from "./generate-password-to-clipboard-command";
|
import { GeneratePasswordToClipboardCommand } from "./generate-password-to-clipboard-command";
|
||||||
|
|
||||||
jest.mock("../../alarms/alarm-state", () => {
|
jest.mock("../../platform/alarms/alarm-state", () => {
|
||||||
return {
|
return {
|
||||||
setAlarmTime: jest.fn(),
|
setAlarmTime: jest.fn(),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||||
|
|
||||||
import { setAlarmTime } from "../../alarms/alarm-state";
|
import { setAlarmTime } from "../../platform/alarms/alarm-state";
|
||||||
import { BrowserStateService } from "../../services/abstractions/browser-state.service";
|
import { BrowserStateService } from "../../platform/services/abstractions/browser-state.service";
|
||||||
|
|
||||||
import { clearClipboardAlarmName } from "./clear-clipboard";
|
import { clearClipboardAlarmName } from "./clear-clipboard";
|
||||||
import { copyToClipboard } from "./copy-to-clipboard-command";
|
import { copyToClipboard } from "./copy-to-clipboard-command";
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
import { EventCollectionService } from "@bitwarden/common/abstractions/event/event-collection.service";
|
import { EventCollectionService } from "@bitwarden/common/abstractions/event/event-collection.service";
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { SettingsService } from "@bitwarden/common/abstractions/settings.service";
|
import { SettingsService } from "@bitwarden/common/abstractions/settings.service";
|
||||||
import { TotpService } from "@bitwarden/common/abstractions/totp.service";
|
import { TotpService } from "@bitwarden/common/abstractions/totp.service";
|
||||||
import { EventType, FieldType, UriMatchType } from "@bitwarden/common/enums";
|
import { EventType, FieldType, UriMatchType } from "@bitwarden/common/enums";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
import { CipherRepromptType } from "@bitwarden/common/vault/enums/cipher-reprompt-type";
|
import { CipherRepromptType } from "@bitwarden/common/vault/enums/cipher-reprompt-type";
|
||||||
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
||||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import { FieldView } from "@bitwarden/common/vault/models/view/field.view";
|
import { FieldView } from "@bitwarden/common/vault/models/view/field.view";
|
||||||
|
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../platform/browser/browser-api";
|
||||||
import { BrowserStateService } from "../../services/abstractions/browser-state.service";
|
import { BrowserStateService } from "../../platform/services/abstractions/browser-state.service";
|
||||||
import AutofillField from "../models/autofill-field";
|
import AutofillField from "../models/autofill-field";
|
||||||
import AutofillPageDetails from "../models/autofill-page-details";
|
import AutofillPageDetails from "../models/autofill-page-details";
|
||||||
import AutofillScript from "../models/autofill-script";
|
import AutofillScript from "../models/autofill-script";
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { VaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
import { VaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
import { PasswordGenerationServiceAbstraction } from "@bitwarden/common/tools/generator/password";
|
||||||
|
|
||||||
import { BrowserApi } from "../browser/browserApi";
|
import { BrowserApi } from "../platform/browser/browser-api";
|
||||||
|
|
||||||
import MainBackground from "./main.background";
|
import MainBackground from "./main.background";
|
||||||
import LockedVaultPendingNotificationsItem from "./models/lockedVaultPendingNotificationsItem";
|
import LockedVaultPendingNotificationsItem from "./models/lockedVaultPendingNotificationsItem";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { NotificationsService } from "@bitwarden/common/abstractions/notificatio
|
|||||||
import { VaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
import { VaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
||||||
import { VaultTimeoutAction } from "@bitwarden/common/enums/vault-timeout-action.enum";
|
import { VaultTimeoutAction } from "@bitwarden/common/enums/vault-timeout-action.enum";
|
||||||
|
|
||||||
import { BrowserStateService } from "../services/abstractions/browser-state.service";
|
import { BrowserStateService } from "../platform/services/abstractions/browser-state.service";
|
||||||
|
|
||||||
const IdleInterval = 60 * 5; // 5 minutes
|
const IdleInterval = 60 * 5; // 5 minutes
|
||||||
|
|
||||||
|
|||||||
@@ -1,38 +1,20 @@
|
|||||||
import { AvatarUpdateService as AvatarUpdateServiceAbstraction } from "@bitwarden/common/abstractions/account/avatar-update.service";
|
import { AvatarUpdateService as AvatarUpdateServiceAbstraction } from "@bitwarden/common/abstractions/account/avatar-update.service";
|
||||||
import { ApiService as ApiServiceAbstraction } from "@bitwarden/common/abstractions/api.service";
|
import { ApiService as ApiServiceAbstraction } from "@bitwarden/common/abstractions/api.service";
|
||||||
import { AppIdService as AppIdServiceAbstraction } from "@bitwarden/common/abstractions/appId.service";
|
|
||||||
import { AuditService as AuditServiceAbstraction } from "@bitwarden/common/abstractions/audit.service";
|
import { AuditService as AuditServiceAbstraction } from "@bitwarden/common/abstractions/audit.service";
|
||||||
import { ConfigApiServiceAbstraction } from "@bitwarden/common/abstractions/config/config-api.service.abstraction";
|
|
||||||
import { ConfigServiceAbstraction } from "@bitwarden/common/abstractions/config/config.service.abstraction";
|
|
||||||
import { CryptoService as CryptoServiceAbstraction } from "@bitwarden/common/abstractions/crypto.service";
|
|
||||||
import { CryptoFunctionService as CryptoFunctionServiceAbstraction } from "@bitwarden/common/abstractions/cryptoFunction.service";
|
|
||||||
import { EncryptService } from "@bitwarden/common/abstractions/encrypt.service";
|
|
||||||
import { EventCollectionService as EventCollectionServiceAbstraction } from "@bitwarden/common/abstractions/event/event-collection.service";
|
import { EventCollectionService as EventCollectionServiceAbstraction } from "@bitwarden/common/abstractions/event/event-collection.service";
|
||||||
import { EventUploadService as EventUploadServiceAbstraction } from "@bitwarden/common/abstractions/event/event-upload.service";
|
import { EventUploadService as EventUploadServiceAbstraction } from "@bitwarden/common/abstractions/event/event-upload.service";
|
||||||
import { FileUploadService as FileUploadServiceAbstraction } from "@bitwarden/common/abstractions/file-upload/file-upload.service";
|
|
||||||
import { I18nService as I18nServiceAbstraction } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService as LogServiceAbstraction } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { MessagingService as MessagingServiceAbstraction } from "@bitwarden/common/abstractions/messaging.service";
|
|
||||||
import { NotificationsService as NotificationsServiceAbstraction } from "@bitwarden/common/abstractions/notifications.service";
|
import { NotificationsService as NotificationsServiceAbstraction } from "@bitwarden/common/abstractions/notifications.service";
|
||||||
import { PlatformUtilsService as PlatformUtilsServiceAbstraction } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { SearchService as SearchServiceAbstraction } from "@bitwarden/common/abstractions/search.service";
|
import { SearchService as SearchServiceAbstraction } from "@bitwarden/common/abstractions/search.service";
|
||||||
import { SettingsService as SettingsServiceAbstraction } from "@bitwarden/common/abstractions/settings.service";
|
import { SettingsService as SettingsServiceAbstraction } from "@bitwarden/common/abstractions/settings.service";
|
||||||
import {
|
|
||||||
AbstractMemoryStorageService,
|
|
||||||
AbstractStorageService,
|
|
||||||
} from "@bitwarden/common/abstractions/storage.service";
|
|
||||||
import { SystemService as SystemServiceAbstraction } from "@bitwarden/common/abstractions/system.service";
|
|
||||||
import { TotpService as TotpServiceAbstraction } from "@bitwarden/common/abstractions/totp.service";
|
import { TotpService as TotpServiceAbstraction } from "@bitwarden/common/abstractions/totp.service";
|
||||||
import { UserVerificationApiServiceAbstraction } from "@bitwarden/common/abstractions/userVerification/userVerification-api.service.abstraction";
|
import { UserVerificationApiServiceAbstraction } from "@bitwarden/common/abstractions/userVerification/userVerification-api.service.abstraction";
|
||||||
import { UserVerificationService as UserVerificationServiceAbstraction } from "@bitwarden/common/abstractions/userVerification/userVerification.service.abstraction";
|
import { UserVerificationService as UserVerificationServiceAbstraction } from "@bitwarden/common/abstractions/userVerification/userVerification.service.abstraction";
|
||||||
import { VaultTimeoutService as VaultTimeoutServiceAbstraction } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
import { VaultTimeoutService as VaultTimeoutServiceAbstraction } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
||||||
import { VaultTimeoutSettingsService as VaultTimeoutSettingsServiceAbstraction } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeoutSettings.service";
|
import { VaultTimeoutSettingsService as VaultTimeoutSettingsServiceAbstraction } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeoutSettings.service";
|
||||||
import { CollectionService as CollectionServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/collection.service";
|
|
||||||
import { InternalOrganizationService as InternalOrganizationServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
import { InternalOrganizationService as InternalOrganizationServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
||||||
import { PolicyApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/policy/policy-api.service.abstraction";
|
import { PolicyApiServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/policy/policy-api.service.abstraction";
|
||||||
import { InternalPolicyService as InternalPolicyServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
import { InternalPolicyService as InternalPolicyServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/policy/policy.service.abstraction";
|
||||||
import { ProviderService as ProviderServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/provider.service";
|
import { ProviderService as ProviderServiceAbstraction } from "@bitwarden/common/admin-console/abstractions/provider.service";
|
||||||
import { CollectionService } from "@bitwarden/common/admin-console/services/collection.service";
|
|
||||||
import { PolicyApiService } from "@bitwarden/common/admin-console/services/policy/policy-api.service";
|
import { PolicyApiService } from "@bitwarden/common/admin-console/services/policy/policy-api.service";
|
||||||
import { ProviderService } from "@bitwarden/common/admin-console/services/provider.service";
|
import { ProviderService } from "@bitwarden/common/admin-console/services/provider.service";
|
||||||
import { AuthService as AuthServiceAbstraction } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService as AuthServiceAbstraction } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
@@ -45,29 +27,45 @@ import { TokenService } from "@bitwarden/common/auth/services/token.service";
|
|||||||
import { TwoFactorService } from "@bitwarden/common/auth/services/two-factor.service";
|
import { TwoFactorService } from "@bitwarden/common/auth/services/two-factor.service";
|
||||||
import { UserVerificationApiService } from "@bitwarden/common/auth/services/user-verification/user-verification-api.service";
|
import { UserVerificationApiService } from "@bitwarden/common/auth/services/user-verification/user-verification-api.service";
|
||||||
import { UserVerificationService } from "@bitwarden/common/auth/services/user-verification/user-verification.service";
|
import { UserVerificationService } from "@bitwarden/common/auth/services/user-verification/user-verification.service";
|
||||||
import { StateFactory } from "@bitwarden/common/factories/stateFactory";
|
import { AppIdService as AppIdServiceAbstraction } from "@bitwarden/common/platform/abstractions/app-id.service";
|
||||||
import { GlobalState } from "@bitwarden/common/models/domain/global-state";
|
import { ConfigApiServiceAbstraction } from "@bitwarden/common/platform/abstractions/config/config-api.service.abstraction";
|
||||||
|
import { ConfigServiceAbstraction } from "@bitwarden/common/platform/abstractions/config/config.service.abstraction";
|
||||||
|
import { CryptoFunctionService as CryptoFunctionServiceAbstraction } from "@bitwarden/common/platform/abstractions/crypto-function.service";
|
||||||
|
import { CryptoService as CryptoServiceAbstraction } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||||
|
import { EncryptService } from "@bitwarden/common/platform/abstractions/encrypt.service";
|
||||||
|
import { FileUploadService as FileUploadServiceAbstraction } from "@bitwarden/common/platform/abstractions/file-upload/file-upload.service";
|
||||||
|
import { I18nService as I18nServiceAbstraction } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService as LogServiceAbstraction } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { MessagingService as MessagingServiceAbstraction } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||||
|
import { PlatformUtilsService as PlatformUtilsServiceAbstraction } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import {
|
||||||
|
AbstractMemoryStorageService,
|
||||||
|
AbstractStorageService,
|
||||||
|
} from "@bitwarden/common/platform/abstractions/storage.service";
|
||||||
|
import { SystemService as SystemServiceAbstraction } from "@bitwarden/common/platform/abstractions/system.service";
|
||||||
|
import { StateFactory } from "@bitwarden/common/platform/factories/state-factory";
|
||||||
|
import { GlobalState } from "@bitwarden/common/platform/models/domain/global-state";
|
||||||
|
import { AppIdService } from "@bitwarden/common/platform/services/app-id.service";
|
||||||
|
import { ConfigApiService } from "@bitwarden/common/platform/services/config/config-api.service";
|
||||||
|
import { ConfigService } from "@bitwarden/common/platform/services/config/config.service";
|
||||||
|
import { ConsoleLogService } from "@bitwarden/common/platform/services/console-log.service";
|
||||||
|
import { ContainerService } from "@bitwarden/common/platform/services/container.service";
|
||||||
|
import { EncryptServiceImplementation } from "@bitwarden/common/platform/services/cryptography/encrypt.service.implementation";
|
||||||
|
import { MultithreadEncryptServiceImplementation } from "@bitwarden/common/platform/services/cryptography/multithread-encrypt.service.implementation";
|
||||||
|
import { FileUploadService } from "@bitwarden/common/platform/services/file-upload/file-upload.service";
|
||||||
|
import { MemoryStorageService } from "@bitwarden/common/platform/services/memory-storage.service";
|
||||||
|
import { StateMigrationService } from "@bitwarden/common/platform/services/state-migration.service";
|
||||||
|
import { SystemService } from "@bitwarden/common/platform/services/system.service";
|
||||||
|
import { WebCryptoFunctionService } from "@bitwarden/common/platform/services/web-crypto-function.service";
|
||||||
import { AvatarUpdateService } from "@bitwarden/common/services/account/avatar-update.service";
|
import { AvatarUpdateService } from "@bitwarden/common/services/account/avatar-update.service";
|
||||||
import { ApiService } from "@bitwarden/common/services/api.service";
|
import { ApiService } from "@bitwarden/common/services/api.service";
|
||||||
import { AppIdService } from "@bitwarden/common/services/appId.service";
|
|
||||||
import { AuditService } from "@bitwarden/common/services/audit.service";
|
import { AuditService } from "@bitwarden/common/services/audit.service";
|
||||||
import { ConfigApiService } from "@bitwarden/common/services/config/config-api.service";
|
|
||||||
import { ConfigService } from "@bitwarden/common/services/config/config.service";
|
|
||||||
import { ConsoleLogService } from "@bitwarden/common/services/consoleLog.service";
|
|
||||||
import { ContainerService } from "@bitwarden/common/services/container.service";
|
|
||||||
import { EncryptServiceImplementation } from "@bitwarden/common/services/cryptography/encrypt.service.implementation";
|
|
||||||
import { MultithreadEncryptServiceImplementation } from "@bitwarden/common/services/cryptography/multithread-encrypt.service.implementation";
|
|
||||||
import { EventCollectionService } from "@bitwarden/common/services/event/event-collection.service";
|
import { EventCollectionService } from "@bitwarden/common/services/event/event-collection.service";
|
||||||
import { EventUploadService } from "@bitwarden/common/services/event/event-upload.service";
|
import { EventUploadService } from "@bitwarden/common/services/event/event-upload.service";
|
||||||
import { FileUploadService } from "@bitwarden/common/services/file-upload/file-upload.service";
|
|
||||||
import { MemoryStorageService } from "@bitwarden/common/services/memoryStorage.service";
|
|
||||||
import { NotificationsService } from "@bitwarden/common/services/notifications.service";
|
import { NotificationsService } from "@bitwarden/common/services/notifications.service";
|
||||||
import { SearchService } from "@bitwarden/common/services/search.service";
|
import { SearchService } from "@bitwarden/common/services/search.service";
|
||||||
import { StateMigrationService } from "@bitwarden/common/services/stateMigration.service";
|
|
||||||
import { SystemService } from "@bitwarden/common/services/system.service";
|
|
||||||
import { TotpService } from "@bitwarden/common/services/totp.service";
|
import { TotpService } from "@bitwarden/common/services/totp.service";
|
||||||
import { VaultTimeoutSettingsService } from "@bitwarden/common/services/vaultTimeout/vaultTimeoutSettings.service";
|
import { VaultTimeoutSettingsService } from "@bitwarden/common/services/vaultTimeout/vaultTimeoutSettings.service";
|
||||||
import { WebCryptoFunctionService } from "@bitwarden/common/services/webCryptoFunction.service";
|
|
||||||
import {
|
import {
|
||||||
PasswordGenerationService,
|
PasswordGenerationService,
|
||||||
PasswordGenerationServiceAbstraction,
|
PasswordGenerationServiceAbstraction,
|
||||||
@@ -76,10 +74,15 @@ import {
|
|||||||
UsernameGenerationService,
|
UsernameGenerationService,
|
||||||
UsernameGenerationServiceAbstraction,
|
UsernameGenerationServiceAbstraction,
|
||||||
} from "@bitwarden/common/tools/generator/username";
|
} from "@bitwarden/common/tools/generator/username";
|
||||||
|
import {
|
||||||
|
PasswordStrengthService,
|
||||||
|
PasswordStrengthServiceAbstraction,
|
||||||
|
} from "@bitwarden/common/tools/password-strength";
|
||||||
import { SendApiService } from "@bitwarden/common/tools/send/services/send-api.service";
|
import { SendApiService } from "@bitwarden/common/tools/send/services/send-api.service";
|
||||||
import { SendApiService as SendApiServiceAbstraction } from "@bitwarden/common/tools/send/services/send-api.service.abstraction";
|
import { SendApiService as SendApiServiceAbstraction } from "@bitwarden/common/tools/send/services/send-api.service.abstraction";
|
||||||
import { InternalSendService as InternalSendServiceAbstraction } from "@bitwarden/common/tools/send/services/send.service.abstraction";
|
import { InternalSendService as InternalSendServiceAbstraction } from "@bitwarden/common/tools/send/services/send.service.abstraction";
|
||||||
import { CipherService as CipherServiceAbstraction } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService as CipherServiceAbstraction } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
|
import { CollectionService as CollectionServiceAbstraction } from "@bitwarden/common/vault/abstractions/collection.service";
|
||||||
import { Fido2AuthenticatorService as Fido2AuthenticatorServiceAbstraction } from "@bitwarden/common/vault/abstractions/fido2/fido2-authenticator.service.abstraction";
|
import { Fido2AuthenticatorService as Fido2AuthenticatorServiceAbstraction } from "@bitwarden/common/vault/abstractions/fido2/fido2-authenticator.service.abstraction";
|
||||||
import { Fido2ClientService as Fido2ClientServiceAbstraction } from "@bitwarden/common/vault/abstractions/fido2/fido2-client.service.abstraction";
|
import { Fido2ClientService as Fido2ClientServiceAbstraction } from "@bitwarden/common/vault/abstractions/fido2/fido2-client.service.abstraction";
|
||||||
import { Fido2UserInterfaceService as Fido2UserInterfaceServiceAbstraction } from "@bitwarden/common/vault/abstractions/fido2/fido2-user-interface.service.abstraction";
|
import { Fido2UserInterfaceService as Fido2UserInterfaceServiceAbstraction } from "@bitwarden/common/vault/abstractions/fido2/fido2-user-interface.service.abstraction";
|
||||||
@@ -90,6 +93,7 @@ import { SyncNotifierService as SyncNotifierServiceAbstraction } from "@bitwarde
|
|||||||
import { SyncService as SyncServiceAbstraction } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
import { SyncService as SyncServiceAbstraction } from "@bitwarden/common/vault/abstractions/sync/sync.service.abstraction";
|
||||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import { CipherService } from "@bitwarden/common/vault/services/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/services/cipher.service";
|
||||||
|
import { CollectionService } from "@bitwarden/common/vault/services/collection.service";
|
||||||
import { Fido2AuthenticatorService } from "@bitwarden/common/vault/services/fido2/fido2-authenticator.service";
|
import { Fido2AuthenticatorService } from "@bitwarden/common/vault/services/fido2/fido2-authenticator.service";
|
||||||
import { Fido2ClientService } from "@bitwarden/common/vault/services/fido2/fido2-client.service";
|
import { Fido2ClientService } from "@bitwarden/common/vault/services/fido2/fido2-client.service";
|
||||||
import { CipherFileUploadService } from "@bitwarden/common/vault/services/file-upload/cipher-file-upload.service";
|
import { CipherFileUploadService } from "@bitwarden/common/vault/services/file-upload/cipher-file-upload.service";
|
||||||
@@ -111,26 +115,26 @@ import { ContextMenuClickedHandler } from "../autofill/browser/context-menu-clic
|
|||||||
import { MainContextMenuHandler } from "../autofill/browser/main-context-menu-handler";
|
import { MainContextMenuHandler } from "../autofill/browser/main-context-menu-handler";
|
||||||
import { AutofillService as AutofillServiceAbstraction } from "../autofill/services/abstractions/autofill.service";
|
import { AutofillService as AutofillServiceAbstraction } from "../autofill/services/abstractions/autofill.service";
|
||||||
import AutofillService from "../autofill/services/autofill.service";
|
import AutofillService from "../autofill/services/autofill.service";
|
||||||
import { BrowserApi } from "../browser/browserApi";
|
|
||||||
import { SafariApp } from "../browser/safariApp";
|
import { SafariApp } from "../browser/safariApp";
|
||||||
import { flagEnabled } from "../flags";
|
|
||||||
import { UpdateBadge } from "../listeners/update-badge";
|
|
||||||
import { Account } from "../models/account";
|
import { Account } from "../models/account";
|
||||||
|
import { BrowserApi } from "../platform/browser/browser-api";
|
||||||
|
import { flagEnabled } from "../platform/flags";
|
||||||
|
import { UpdateBadge } from "../platform/listeners/update-badge";
|
||||||
|
import { BrowserStateService as StateServiceAbstraction } from "../platform/services/abstractions/browser-state.service";
|
||||||
|
import { BrowserCryptoService } from "../platform/services/browser-crypto.service";
|
||||||
|
import { BrowserEnvironmentService } from "../platform/services/browser-environment.service";
|
||||||
|
import { BrowserI18nService } from "../platform/services/browser-i18n.service";
|
||||||
|
import BrowserLocalStorageService from "../platform/services/browser-local-storage.service";
|
||||||
|
import BrowserMessagingPrivateModeBackgroundService from "../platform/services/browser-messaging-private-mode-background.service";
|
||||||
|
import BrowserMessagingService from "../platform/services/browser-messaging.service";
|
||||||
|
import BrowserPlatformUtilsService from "../platform/services/browser-platform-utils.service";
|
||||||
|
import { BrowserStateService } from "../platform/services/browser-state.service";
|
||||||
|
import { KeyGenerationService } from "../platform/services/key-generation.service";
|
||||||
|
import { LocalBackedSessionStorageService } from "../platform/services/local-backed-session-storage.service";
|
||||||
import { PopupUtilsService } from "../popup/services/popup-utils.service";
|
import { PopupUtilsService } from "../popup/services/popup-utils.service";
|
||||||
import { BrowserStateService as StateServiceAbstraction } from "../services/abstractions/browser-state.service";
|
|
||||||
import { BrowserEnvironmentService } from "../services/browser-environment.service";
|
|
||||||
import { BrowserI18nService } from "../services/browser-i18n.service";
|
|
||||||
import { BrowserSendService } from "../services/browser-send.service";
|
import { BrowserSendService } from "../services/browser-send.service";
|
||||||
import { BrowserSettingsService } from "../services/browser-settings.service";
|
import { BrowserSettingsService } from "../services/browser-settings.service";
|
||||||
import { BrowserStateService } from "../services/browser-state.service";
|
|
||||||
import { BrowserCryptoService } from "../services/browserCrypto.service";
|
|
||||||
import BrowserLocalStorageService from "../services/browserLocalStorage.service";
|
|
||||||
import BrowserMessagingService from "../services/browserMessaging.service";
|
|
||||||
import BrowserMessagingPrivateModeBackgroundService from "../services/browserMessagingPrivateModeBackground.service";
|
|
||||||
import BrowserPlatformUtilsService from "../services/browserPlatformUtils.service";
|
|
||||||
import { BrowserFido2UserInterfaceService } from "../services/fido2/browser-fido2-user-interface.service";
|
import { BrowserFido2UserInterfaceService } from "../services/fido2/browser-fido2-user-interface.service";
|
||||||
import { KeyGenerationService } from "../services/keyGeneration.service";
|
|
||||||
import { LocalBackedSessionStorageService } from "../services/localBackedSessionStorage.service";
|
|
||||||
import VaultTimeoutService from "../services/vaultTimeout/vaultTimeout.service";
|
import VaultTimeoutService from "../services/vaultTimeout/vaultTimeout.service";
|
||||||
import { BrowserFolderService } from "../vault/services/browser-folder.service";
|
import { BrowserFolderService } from "../vault/services/browser-folder.service";
|
||||||
import { VaultFilterService } from "../vault/services/vault-filter.service";
|
import { VaultFilterService } from "../vault/services/vault-filter.service";
|
||||||
@@ -163,6 +167,7 @@ export default class MainBackground {
|
|||||||
vaultTimeoutSettingsService: VaultTimeoutSettingsServiceAbstraction;
|
vaultTimeoutSettingsService: VaultTimeoutSettingsServiceAbstraction;
|
||||||
syncService: SyncServiceAbstraction;
|
syncService: SyncServiceAbstraction;
|
||||||
passwordGenerationService: PasswordGenerationServiceAbstraction;
|
passwordGenerationService: PasswordGenerationServiceAbstraction;
|
||||||
|
passwordStrengthService: PasswordStrengthServiceAbstraction;
|
||||||
totpService: TotpServiceAbstraction;
|
totpService: TotpServiceAbstraction;
|
||||||
autofillService: AutofillServiceAbstraction;
|
autofillService: AutofillServiceAbstraction;
|
||||||
containerService: ContainerService;
|
containerService: ContainerService;
|
||||||
@@ -372,6 +377,9 @@ export default class MainBackground {
|
|||||||
this.collectionService,
|
this.collectionService,
|
||||||
this.policyService
|
this.policyService
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.passwordStrengthService = new PasswordStrengthService();
|
||||||
|
|
||||||
this.passwordGenerationService = new PasswordGenerationService(
|
this.passwordGenerationService = new PasswordGenerationService(
|
||||||
this.cryptoService,
|
this.cryptoService,
|
||||||
this.policyService,
|
this.policyService,
|
||||||
@@ -403,7 +411,7 @@ export default class MainBackground {
|
|||||||
this.twoFactorService,
|
this.twoFactorService,
|
||||||
this.i18nService,
|
this.i18nService,
|
||||||
this.encryptService,
|
this.encryptService,
|
||||||
this.passwordGenerationService,
|
this.passwordStrengthService,
|
||||||
this.policyService
|
this.policyService
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -510,7 +518,7 @@ export default class MainBackground {
|
|||||||
this.userVerificationApiService
|
this.userVerificationApiService
|
||||||
);
|
);
|
||||||
|
|
||||||
this.configApiService = new ConfigApiService(this.apiService);
|
this.configApiService = new ConfigApiService(this.apiService, this.authService);
|
||||||
|
|
||||||
this.configService = new ConfigService(
|
this.configService = new ConfigService(
|
||||||
this.stateService,
|
this.stateService,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
||||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
import { LoginUriView } from "@bitwarden/common/vault/models/view/login-uri.view";
|
import { LoginUriView } from "@bitwarden/common/vault/models/view/login-uri.view";
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
import { AppIdService } from "@bitwarden/common/abstractions/appId.service";
|
|
||||||
import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
|
|
||||||
import { CryptoFunctionService } from "@bitwarden/common/abstractions/cryptoFunction.service";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { MessagingService } from "@bitwarden/common/abstractions/messaging.service";
|
|
||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { StateService } from "@bitwarden/common/abstractions/state.service";
|
|
||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
import { AppIdService } from "@bitwarden/common/platform/abstractions/app-id.service";
|
||||||
import { EncString } from "@bitwarden/common/models/domain/enc-string";
|
import { CryptoFunctionService } from "@bitwarden/common/platform/abstractions/crypto-function.service";
|
||||||
import { SymmetricCryptoKey } from "@bitwarden/common/models/domain/symmetric-crypto-key";
|
import { CryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||||
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
|
||||||
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
|
import { EncString } from "@bitwarden/common/platform/models/domain/enc-string";
|
||||||
|
import { SymmetricCryptoKey } from "@bitwarden/common/platform/models/domain/symmetric-crypto-key";
|
||||||
|
|
||||||
import { BrowserApi } from "../browser/browserApi";
|
import { BrowserApi } from "../platform/browser/browser-api";
|
||||||
|
|
||||||
import RuntimeBackground from "./runtime.background";
|
import RuntimeBackground from "./runtime.background";
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import { ConfigServiceAbstraction } from "@bitwarden/common/abstractions/config/config.service.abstraction";
|
|
||||||
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
|
||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { MessagingService } from "@bitwarden/common/abstractions/messaging.service";
|
|
||||||
import { NotificationsService } from "@bitwarden/common/abstractions/notifications.service";
|
import { NotificationsService } from "@bitwarden/common/abstractions/notifications.service";
|
||||||
import { SystemService } from "@bitwarden/common/abstractions/system.service";
|
import { ConfigServiceAbstraction } from "@bitwarden/common/platform/abstractions/config/config.service.abstraction";
|
||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||||
|
import { SystemService } from "@bitwarden/common/platform/abstractions/system.service";
|
||||||
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
|
|
||||||
import { AutofillService } from "../autofill/services/abstractions/autofill.service";
|
import { AutofillService } from "../autofill/services/abstractions/autofill.service";
|
||||||
import { BrowserApi } from "../browser/browserApi";
|
import { BrowserApi } from "../platform/browser/browser-api";
|
||||||
import { BrowserEnvironmentService } from "../services/browser-environment.service";
|
import { BrowserEnvironmentService } from "../platform/services/browser-environment.service";
|
||||||
import BrowserPlatformUtilsService from "../services/browserPlatformUtils.service";
|
import BrowserPlatformUtilsService from "../platform/services/browser-platform-utils.service";
|
||||||
|
|
||||||
import MainBackground from "./main.background";
|
import MainBackground from "./main.background";
|
||||||
import LockedVaultPendingNotificationsItem from "./models/lockedVaultPendingNotificationsItem";
|
import LockedVaultPendingNotificationsItem from "./models/lockedVaultPendingNotificationsItem";
|
||||||
|
|||||||
@@ -1,12 +1,19 @@
|
|||||||
import { CipherFileUploadService as CipherFileUploadServiceAbstraction } from "@bitwarden/common/vault/abstractions/file-upload/cipher-file-upload.service";
|
import { CipherFileUploadService as CipherFileUploadServiceAbstraction } from "@bitwarden/common/vault/abstractions/file-upload/cipher-file-upload.service";
|
||||||
import { CipherFileUploadService } from "@bitwarden/common/vault/services/file-upload/cipher-file-upload.service";
|
import { CipherFileUploadService } from "@bitwarden/common/vault/services/file-upload/cipher-file-upload.service";
|
||||||
|
|
||||||
import { apiServiceFactory, ApiServiceInitOptions } from "./api-service.factory";
|
|
||||||
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
|
||||||
import {
|
import {
|
||||||
fileUploadServiceFactory,
|
ApiServiceInitOptions,
|
||||||
|
apiServiceFactory,
|
||||||
|
} from "../../platform/background/service-factories/api-service.factory";
|
||||||
|
import {
|
||||||
|
FactoryOptions,
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
FileUploadServiceInitOptions,
|
FileUploadServiceInitOptions,
|
||||||
} from "./file-upload-service.factory";
|
fileUploadServiceFactory,
|
||||||
|
} from "../../platform/background/service-factories/file-upload-service.factory";
|
||||||
|
|
||||||
type CipherFileUploadServiceFactoyOptions = FactoryOptions;
|
type CipherFileUploadServiceFactoyOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -1,12 +1,19 @@
|
|||||||
import { CipherFileUploadService as CipherFileUploadServiceAbstraction } from "@bitwarden/common/vault/abstractions/file-upload/cipher-file-upload.service";
|
import { CipherFileUploadService as CipherFileUploadServiceAbstraction } from "@bitwarden/common/vault/abstractions/file-upload/cipher-file-upload.service";
|
||||||
import { CipherFileUploadService } from "@bitwarden/common/vault/services/file-upload/cipher-file-upload.service";
|
import { CipherFileUploadService } from "@bitwarden/common/vault/services/file-upload/cipher-file-upload.service";
|
||||||
|
|
||||||
import { apiServiceFactory, ApiServiceInitOptions } from "./api-service.factory";
|
|
||||||
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
|
||||||
import {
|
import {
|
||||||
fileUploadServiceFactory,
|
ApiServiceInitOptions,
|
||||||
|
apiServiceFactory,
|
||||||
|
} from "../../platform/background/service-factories/api-service.factory";
|
||||||
|
import {
|
||||||
|
FactoryOptions,
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
FileUploadServiceInitOptions,
|
FileUploadServiceInitOptions,
|
||||||
} from "./file-upload-service.factory";
|
fileUploadServiceFactory,
|
||||||
|
} from "../../platform/background/service-factories/file-upload-service.factory";
|
||||||
|
|
||||||
type CipherFileUploadServiceFactoyOptions = FactoryOptions;
|
type CipherFileUploadServiceFactoyOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -5,6 +5,15 @@ import {
|
|||||||
organizationServiceFactory,
|
organizationServiceFactory,
|
||||||
OrganizationServiceInitOptions,
|
OrganizationServiceInitOptions,
|
||||||
} from "../../admin-console/background/service-factories/organization-service.factory";
|
} from "../../admin-console/background/service-factories/organization-service.factory";
|
||||||
|
import {
|
||||||
|
FactoryOptions,
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
|
stateServiceFactory,
|
||||||
|
StateServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/state-service.factory";
|
||||||
import {
|
import {
|
||||||
cipherServiceFactory,
|
cipherServiceFactory,
|
||||||
CipherServiceInitOptions,
|
CipherServiceInitOptions,
|
||||||
@@ -14,8 +23,6 @@ import {
|
|||||||
eventUploadServiceFactory,
|
eventUploadServiceFactory,
|
||||||
EventUploadServiceInitOptions,
|
EventUploadServiceInitOptions,
|
||||||
} from "./event-upload-service.factory";
|
} from "./event-upload-service.factory";
|
||||||
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
|
||||||
import { stateServiceFactory, StateServiceInitOptions } from "./state-service.factory";
|
|
||||||
|
|
||||||
type EventCollectionServiceOptions = FactoryOptions;
|
type EventCollectionServiceOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -1,10 +1,23 @@
|
|||||||
import { EventUploadService as AbstractEventUploadService } from "@bitwarden/common/abstractions/event/event-upload.service";
|
import { EventUploadService as AbstractEventUploadService } from "@bitwarden/common/abstractions/event/event-upload.service";
|
||||||
import { EventUploadService } from "@bitwarden/common/services/event/event-upload.service";
|
import { EventUploadService } from "@bitwarden/common/services/event/event-upload.service";
|
||||||
|
|
||||||
import { apiServiceFactory, ApiServiceInitOptions } from "./api-service.factory";
|
import {
|
||||||
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
ApiServiceInitOptions,
|
||||||
import { logServiceFactory, LogServiceInitOptions } from "./log-service.factory";
|
apiServiceFactory,
|
||||||
import { stateServiceFactory, StateServiceInitOptions } from "./state-service.factory";
|
} from "../../platform/background/service-factories/api-service.factory";
|
||||||
|
import {
|
||||||
|
FactoryOptions,
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
|
logServiceFactory,
|
||||||
|
LogServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/log-service.factory";
|
||||||
|
import {
|
||||||
|
stateServiceFactory,
|
||||||
|
StateServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/state-service.factory";
|
||||||
|
|
||||||
type EventUploadServiceOptions = FactoryOptions;
|
type EventUploadServiceOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -7,10 +7,19 @@ import {
|
|||||||
policyServiceFactory,
|
policyServiceFactory,
|
||||||
PolicyServiceInitOptions,
|
PolicyServiceInitOptions,
|
||||||
} from "../../admin-console/background/service-factories/policy-service.factory";
|
} from "../../admin-console/background/service-factories/policy-service.factory";
|
||||||
|
import {
|
||||||
import { cryptoServiceFactory, CryptoServiceInitOptions } from "./crypto-service.factory";
|
CryptoServiceInitOptions,
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
cryptoServiceFactory,
|
||||||
import { stateServiceFactory, StateServiceInitOptions } from "./state-service.factory";
|
} from "../../platform/background/service-factories/crypto-service.factory";
|
||||||
|
import {
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
FactoryOptions,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
|
stateServiceFactory,
|
||||||
|
StateServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/state-service.factory";
|
||||||
|
|
||||||
type PasswordGenerationServiceFactoryOptions = FactoryOptions;
|
type PasswordGenerationServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -1,9 +1,19 @@
|
|||||||
import { SearchService as AbstractSearchService } from "@bitwarden/common/abstractions/search.service";
|
import { SearchService as AbstractSearchService } from "@bitwarden/common/abstractions/search.service";
|
||||||
import { SearchService } from "@bitwarden/common/services/search.service";
|
import { SearchService } from "@bitwarden/common/services/search.service";
|
||||||
|
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
import {
|
||||||
import { i18nServiceFactory, I18nServiceInitOptions } from "./i18n-service.factory";
|
CachedServices,
|
||||||
import { logServiceFactory, LogServiceInitOptions } from "./log-service.factory";
|
factory,
|
||||||
|
FactoryOptions,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
|
i18nServiceFactory,
|
||||||
|
I18nServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/i18n-service.factory";
|
||||||
|
import {
|
||||||
|
logServiceFactory,
|
||||||
|
LogServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/log-service.factory";
|
||||||
|
|
||||||
type SearchServiceFactoryOptions = FactoryOptions;
|
type SearchServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -1,13 +1,25 @@
|
|||||||
import { InternalSendService } from "@bitwarden/common/tools/send/services/send.service.abstraction";
|
import { InternalSendService } from "@bitwarden/common/tools/send/services/send.service.abstraction";
|
||||||
|
|
||||||
|
import { cryptoFunctionServiceFactory } from "../../platform/background/service-factories/crypto-function-service.factory";
|
||||||
|
import {
|
||||||
|
CryptoServiceInitOptions,
|
||||||
|
cryptoServiceFactory,
|
||||||
|
} from "../../platform/background/service-factories/crypto-service.factory";
|
||||||
|
import {
|
||||||
|
FactoryOptions,
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
|
i18nServiceFactory,
|
||||||
|
I18nServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/i18n-service.factory";
|
||||||
|
import {
|
||||||
|
stateServiceFactory,
|
||||||
|
StateServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/state-service.factory";
|
||||||
import { BrowserSendService } from "../../services/browser-send.service";
|
import { BrowserSendService } from "../../services/browser-send.service";
|
||||||
|
|
||||||
import { cryptoFunctionServiceFactory } from "./crypto-function-service.factory";
|
|
||||||
import { cryptoServiceFactory, CryptoServiceInitOptions } from "./crypto-service.factory";
|
|
||||||
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
|
||||||
import { i18nServiceFactory, I18nServiceInitOptions } from "./i18n-service.factory";
|
|
||||||
import { stateServiceFactory, StateServiceInitOptions } from "./state-service.factory";
|
|
||||||
|
|
||||||
type SendServiceFactoryOptions = FactoryOptions;
|
type SendServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
export type SendServiceInitOptions = SendServiceFactoryOptions &
|
export type SendServiceInitOptions = SendServiceFactoryOptions &
|
||||||
@@ -1,10 +1,16 @@
|
|||||||
import { SettingsService as AbstractSettingsService } from "@bitwarden/common/abstractions/settings.service";
|
import { SettingsService as AbstractSettingsService } from "@bitwarden/common/abstractions/settings.service";
|
||||||
|
|
||||||
|
import {
|
||||||
|
FactoryOptions,
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
|
stateServiceFactory,
|
||||||
|
StateServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/state-service.factory";
|
||||||
import { BrowserSettingsService } from "../../services/browser-settings.service";
|
import { BrowserSettingsService } from "../../services/browser-settings.service";
|
||||||
|
|
||||||
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
|
||||||
import { stateServiceFactory, StateServiceInitOptions } from "./state-service.factory";
|
|
||||||
|
|
||||||
type SettingsServiceFactoryOptions = FactoryOptions;
|
type SettingsServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
export type SettingsServiceInitOptions = SettingsServiceFactoryOptions & StateServiceInitOptions;
|
export type SettingsServiceInitOptions = SettingsServiceFactoryOptions & StateServiceInitOptions;
|
||||||
@@ -1,9 +1,5 @@
|
|||||||
import { VaultTimeoutService as AbstractVaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
import { VaultTimeoutService as AbstractVaultTimeoutService } from "@bitwarden/common/abstractions/vaultTimeout/vaultTimeout.service";
|
||||||
|
|
||||||
import {
|
|
||||||
collectionServiceFactory,
|
|
||||||
CollectionServiceInitOptions,
|
|
||||||
} from "../../admin-console/background/service-factories/collection-service.factory";
|
|
||||||
import {
|
import {
|
||||||
authServiceFactory,
|
authServiceFactory,
|
||||||
AuthServiceInitOptions,
|
AuthServiceInitOptions,
|
||||||
@@ -12,28 +8,42 @@ import {
|
|||||||
keyConnectorServiceFactory,
|
keyConnectorServiceFactory,
|
||||||
KeyConnectorServiceInitOptions,
|
KeyConnectorServiceInitOptions,
|
||||||
} from "../../auth/background/service-factories/key-connector-service.factory";
|
} from "../../auth/background/service-factories/key-connector-service.factory";
|
||||||
|
import {
|
||||||
|
CryptoServiceInitOptions,
|
||||||
|
cryptoServiceFactory,
|
||||||
|
} from "../../platform/background/service-factories/crypto-service.factory";
|
||||||
|
import {
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
FactoryOptions,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
|
messagingServiceFactory,
|
||||||
|
MessagingServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/messaging-service.factory";
|
||||||
|
import {
|
||||||
|
platformUtilsServiceFactory,
|
||||||
|
PlatformUtilsServiceInitOptions,
|
||||||
|
} from "../../platform/background/service-factories/platform-utils-service.factory";
|
||||||
|
import {
|
||||||
|
StateServiceInitOptions,
|
||||||
|
stateServiceFactory,
|
||||||
|
} from "../../platform/background/service-factories/state-service.factory";
|
||||||
import VaultTimeoutService from "../../services/vaultTimeout/vaultTimeout.service";
|
import VaultTimeoutService from "../../services/vaultTimeout/vaultTimeout.service";
|
||||||
import {
|
import {
|
||||||
cipherServiceFactory,
|
cipherServiceFactory,
|
||||||
CipherServiceInitOptions,
|
CipherServiceInitOptions,
|
||||||
} from "../../vault/background/service_factories/cipher-service.factory";
|
} from "../../vault/background/service_factories/cipher-service.factory";
|
||||||
|
import {
|
||||||
|
collectionServiceFactory,
|
||||||
|
CollectionServiceInitOptions,
|
||||||
|
} from "../../vault/background/service_factories/collection-service.factory";
|
||||||
import {
|
import {
|
||||||
folderServiceFactory,
|
folderServiceFactory,
|
||||||
FolderServiceInitOptions,
|
FolderServiceInitOptions,
|
||||||
} from "../../vault/background/service_factories/folder-service.factory";
|
} from "../../vault/background/service_factories/folder-service.factory";
|
||||||
|
|
||||||
import { cryptoServiceFactory, CryptoServiceInitOptions } from "./crypto-service.factory";
|
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
|
||||||
import { messagingServiceFactory, MessagingServiceInitOptions } from "./messaging-service.factory";
|
|
||||||
import {
|
|
||||||
platformUtilsServiceFactory,
|
|
||||||
PlatformUtilsServiceInitOptions,
|
|
||||||
} from "./platform-utils-service.factory";
|
|
||||||
import { searchServiceFactory, SearchServiceInitOptions } from "./search-service.factory";
|
import { searchServiceFactory, SearchServiceInitOptions } from "./search-service.factory";
|
||||||
import {
|
|
||||||
stateServiceFactory as stateServiceFactory,
|
|
||||||
StateServiceInitOptions,
|
|
||||||
} from "./state-service.factory";
|
|
||||||
import {
|
import {
|
||||||
vaultTimeoutSettingsServiceFactory,
|
vaultTimeoutSettingsServiceFactory,
|
||||||
VaultTimeoutSettingsServiceInitOptions,
|
VaultTimeoutSettingsServiceInitOptions,
|
||||||
@@ -9,13 +9,19 @@ import {
|
|||||||
tokenServiceFactory,
|
tokenServiceFactory,
|
||||||
TokenServiceInitOptions,
|
TokenServiceInitOptions,
|
||||||
} from "../../auth/background/service-factories/token-service.factory";
|
} from "../../auth/background/service-factories/token-service.factory";
|
||||||
|
|
||||||
import { cryptoServiceFactory, CryptoServiceInitOptions } from "./crypto-service.factory";
|
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
|
||||||
import {
|
import {
|
||||||
stateServiceFactory as stateServiceFactory,
|
CryptoServiceInitOptions,
|
||||||
|
cryptoServiceFactory,
|
||||||
|
} from "../../platform/background/service-factories/crypto-service.factory";
|
||||||
|
import {
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
FactoryOptions,
|
||||||
|
} from "../../platform/background/service-factories/factory-options";
|
||||||
|
import {
|
||||||
StateServiceInitOptions,
|
StateServiceInitOptions,
|
||||||
} from "./state-service.factory";
|
stateServiceFactory,
|
||||||
|
} from "../../platform/background/service-factories/state-service.factory";
|
||||||
|
|
||||||
type VaultTimeoutSettingsServiceFactoryOptions = FactoryOptions;
|
type VaultTimeoutSettingsServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
|
||||||
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
import { AuthService } from "@bitwarden/common/auth/abstractions/auth.service";
|
||||||
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authentication-status";
|
||||||
import { UriMatchType } from "@bitwarden/common/enums";
|
import { UriMatchType } from "@bitwarden/common/enums";
|
||||||
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
|
||||||
|
|
||||||
import { BrowserApi } from "../browser/browserApi";
|
import { BrowserApi } from "../platform/browser/browser-api";
|
||||||
|
|
||||||
export default class WebRequestBackground {
|
export default class WebRequestBackground {
|
||||||
private pendingAuthRequests: any[] = [];
|
private pendingAuthRequests: any[] = [];
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { BrowserApi } from "./browserApi";
|
import { BrowserApi } from "../platform/browser/browser-api";
|
||||||
|
|
||||||
export class SafariApp {
|
export class SafariApp {
|
||||||
static sendMessageToApp(command: string, data: any = null, resolveNow = false): Promise<any> {
|
static sendMessageToApp(command: string, data: any = null, resolveNow = false): Promise<any> {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Jsonify } from "type-fest";
|
|||||||
import {
|
import {
|
||||||
Account as BaseAccount,
|
Account as BaseAccount,
|
||||||
AccountSettings as BaseAccountSettings,
|
AccountSettings as BaseAccountSettings,
|
||||||
} from "@bitwarden/common/models/domain/account";
|
} from "@bitwarden/common/platform/models/domain/account";
|
||||||
|
|
||||||
import { BrowserComponentState } from "./browserComponentState";
|
import { BrowserComponentState } from "./browserComponentState";
|
||||||
import { BrowserGroupingsComponentState } from "./browserGroupingsComponentState";
|
import { BrowserGroupingsComponentState } from "./browserGroupingsComponentState";
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { CollectionView } from "@bitwarden/common/admin-console/models/view/collection.view";
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
|
||||||
import { DeepJsonify } from "@bitwarden/common/types/deep-jsonify";
|
import { DeepJsonify } from "@bitwarden/common/types/deep-jsonify";
|
||||||
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
import { CipherType } from "@bitwarden/common/vault/enums/cipher-type";
|
||||||
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
import { CipherView } from "@bitwarden/common/vault/models/view/cipher.view";
|
||||||
|
import { CollectionView } from "@bitwarden/common/vault/models/view/collection.view";
|
||||||
import { FolderView } from "@bitwarden/common/vault/models/view/folder.view";
|
import { FolderView } from "@bitwarden/common/vault/models/view/folder.view";
|
||||||
|
|
||||||
import { BrowserComponentState } from "./browserComponentState";
|
import { BrowserComponentState } from "./browserComponentState";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
import { SendType } from "@bitwarden/common/tools/send/enums/send-type";
|
import { SendType } from "@bitwarden/common/tools/send/enums/send-type";
|
||||||
import { SendView } from "@bitwarden/common/tools/send/models/view/send.view";
|
import { SendView } from "@bitwarden/common/tools/send/models/view/send.view";
|
||||||
import { DeepJsonify } from "@bitwarden/common/types/deep-jsonify";
|
import { DeepJsonify } from "@bitwarden/common/types/deep-jsonify";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { clearClipboardAlarmName } from "../autofill/clipboard";
|
import { clearClipboardAlarmName } from "../../autofill/clipboard";
|
||||||
import { BrowserApi } from "../browser/browserApi";
|
import { BrowserApi } from "../browser/browser-api";
|
||||||
|
|
||||||
export const alarmKeys = [clearClipboardAlarmName] as const;
|
export const alarmKeys = [clearClipboardAlarmName] as const;
|
||||||
export type AlarmKeys = (typeof alarmKeys)[number];
|
export type AlarmKeys = (typeof alarmKeys)[number];
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ClearClipboard, clearClipboardAlarmName } from "../autofill/clipboard";
|
import { ClearClipboard, clearClipboardAlarmName } from "../../autofill/clipboard";
|
||||||
|
|
||||||
import { alarmKeys, clearAlarmTime, getAlarmTime } from "./alarm-state";
|
import { alarmKeys, clearAlarmTime, getAlarmTime } from "./alarm-state";
|
||||||
|
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
|
import MainBackground from "../background/main.background";
|
||||||
|
|
||||||
import { onAlarmListener } from "./alarms/on-alarm-listener";
|
import { onAlarmListener } from "./alarms/on-alarm-listener";
|
||||||
import { registerAlarms } from "./alarms/register-alarms";
|
import { registerAlarms } from "./alarms/register-alarms";
|
||||||
import MainBackground from "./background/main.background";
|
import { BrowserApi } from "./browser/browser-api";
|
||||||
import { BrowserApi } from "./browser/browserApi";
|
|
||||||
import {
|
import {
|
||||||
contextMenusClickedListener,
|
contextMenusClickedListener,
|
||||||
onCommandListener,
|
onCommandListener,
|
||||||
@@ -4,14 +4,18 @@ import { ApiService } from "@bitwarden/common/services/api.service";
|
|||||||
import {
|
import {
|
||||||
tokenServiceFactory,
|
tokenServiceFactory,
|
||||||
TokenServiceInitOptions,
|
TokenServiceInitOptions,
|
||||||
} from "../../auth/background/service-factories/token-service.factory";
|
} from "../../../auth/background/service-factories/token-service.factory";
|
||||||
|
import {
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
FactoryOptions,
|
||||||
|
} from "../../background/service-factories/factory-options";
|
||||||
|
|
||||||
import { AppIdServiceInitOptions, appIdServiceFactory } from "./app-id-service.factory";
|
import { AppIdServiceInitOptions, appIdServiceFactory } from "./app-id-service.factory";
|
||||||
import {
|
import {
|
||||||
environmentServiceFactory,
|
environmentServiceFactory,
|
||||||
EnvironmentServiceInitOptions,
|
EnvironmentServiceInitOptions,
|
||||||
} from "./environment-service.factory";
|
} from "./environment-service.factory";
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
|
||||||
import {
|
import {
|
||||||
PlatformUtilsServiceInitOptions,
|
PlatformUtilsServiceInitOptions,
|
||||||
platformUtilsServiceFactory,
|
platformUtilsServiceFactory,
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { DiskStorageOptions } from "@koa/multer";
|
import { DiskStorageOptions } from "@koa/multer";
|
||||||
|
|
||||||
import { AppIdService as AbstractAppIdService } from "@bitwarden/common/abstractions/appId.service";
|
import { AppIdService as AbstractAppIdService } from "@bitwarden/common/platform/abstractions/app-id.service";
|
||||||
import { AppIdService } from "@bitwarden/common/services/appId.service";
|
import { AppIdService } from "@bitwarden/common/platform/services/app-id.service";
|
||||||
|
|
||||||
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
||||||
import { diskStorageServiceFactory } from "./storage-service.factory";
|
import { diskStorageServiceFactory } from "./storage-service.factory";
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { CryptoFunctionService } from "@bitwarden/common/abstractions/cryptoFunction.service";
|
import { CryptoFunctionService } from "@bitwarden/common/platform/abstractions/crypto-function.service";
|
||||||
import { WebCryptoFunctionService } from "@bitwarden/common/services/webCryptoFunction.service";
|
import { WebCryptoFunctionService } from "@bitwarden/common/platform/services/web-crypto-function.service";
|
||||||
|
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
||||||
|
|
||||||
@@ -1,6 +1,14 @@
|
|||||||
import { CryptoService as AbstractCryptoService } from "@bitwarden/common/abstractions/crypto.service";
|
import { CryptoService as AbstractCryptoService } from "@bitwarden/common/platform/abstractions/crypto.service";
|
||||||
|
|
||||||
import { BrowserCryptoService } from "../../services/browserCrypto.service";
|
import {
|
||||||
|
StateServiceInitOptions,
|
||||||
|
stateServiceFactory,
|
||||||
|
} from "../../../platform/background/service-factories/state-service.factory";
|
||||||
|
import {
|
||||||
|
LogServiceInitOptions,
|
||||||
|
logServiceFactory,
|
||||||
|
} from "../../background/service-factories/log-service.factory";
|
||||||
|
import { BrowserCryptoService } from "../../services/browser-crypto.service";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
cryptoFunctionServiceFactory,
|
cryptoFunctionServiceFactory,
|
||||||
@@ -8,12 +16,10 @@ import {
|
|||||||
} from "./crypto-function-service.factory";
|
} from "./crypto-function-service.factory";
|
||||||
import { encryptServiceFactory, EncryptServiceInitOptions } from "./encrypt-service.factory";
|
import { encryptServiceFactory, EncryptServiceInitOptions } from "./encrypt-service.factory";
|
||||||
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
||||||
import { logServiceFactory, LogServiceInitOptions } from "./log-service.factory";
|
|
||||||
import {
|
import {
|
||||||
platformUtilsServiceFactory,
|
|
||||||
PlatformUtilsServiceInitOptions,
|
PlatformUtilsServiceInitOptions,
|
||||||
|
platformUtilsServiceFactory,
|
||||||
} from "./platform-utils-service.factory";
|
} from "./platform-utils-service.factory";
|
||||||
import { stateServiceFactory, StateServiceInitOptions } from "./state-service.factory";
|
|
||||||
|
|
||||||
type CryptoServiceFactoryOptions = FactoryOptions;
|
type CryptoServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -1,11 +1,15 @@
|
|||||||
import { EncryptServiceImplementation } from "@bitwarden/common/services/cryptography/encrypt.service.implementation";
|
import { EncryptServiceImplementation } from "@bitwarden/common/platform/services/cryptography/encrypt.service.implementation";
|
||||||
|
|
||||||
|
import {
|
||||||
|
LogServiceInitOptions,
|
||||||
|
logServiceFactory,
|
||||||
|
} from "../../background/service-factories/log-service.factory";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
cryptoFunctionServiceFactory,
|
cryptoFunctionServiceFactory,
|
||||||
CryptoFunctionServiceInitOptions,
|
CryptoFunctionServiceInitOptions,
|
||||||
} from "./crypto-function-service.factory";
|
} from "./crypto-function-service.factory";
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
||||||
import { LogServiceInitOptions, logServiceFactory } from "./log-service.factory";
|
|
||||||
|
|
||||||
type EncryptServiceFactoryOptions = FactoryOptions & {
|
type EncryptServiceFactoryOptions = FactoryOptions & {
|
||||||
encryptServiceOptions: {
|
encryptServiceOptions: {
|
||||||
@@ -1,7 +1,12 @@
|
|||||||
import { FileUploadService as FileUploadServiceAbstraction } from "@bitwarden/common/abstractions/file-upload/file-upload.service";
|
import { FileUploadService as FileUploadServiceAbstraction } from "@bitwarden/common/platform/abstractions/file-upload/file-upload.service";
|
||||||
import { FileUploadService } from "@bitwarden/common/services/file-upload/file-upload.service";
|
import { FileUploadService } from "@bitwarden/common/platform/services/file-upload/file-upload.service";
|
||||||
|
|
||||||
|
import {
|
||||||
|
CachedServices,
|
||||||
|
factory,
|
||||||
|
FactoryOptions,
|
||||||
|
} from "../../background/service-factories/factory-options";
|
||||||
|
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
|
||||||
import { logServiceFactory, LogServiceInitOptions } from "./log-service.factory";
|
import { logServiceFactory, LogServiceInitOptions } from "./log-service.factory";
|
||||||
|
|
||||||
type FileUploadServiceFactoryOptions = FactoryOptions;
|
type FileUploadServiceFactoryOptions = FactoryOptions;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { I18nService as AbstractI18nService } from "@bitwarden/common/abstractions/i18n.service";
|
import { I18nService as AbstractI18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||||
import { I18nService as BaseI18nService } from "@bitwarden/common/services/i18n.service";
|
import { I18nService as BaseI18nService } from "@bitwarden/common/platform/services/i18n.service";
|
||||||
|
|
||||||
import I18nService from "../../services/i18n.service";
|
import I18nService from "../../services/i18n.service";
|
||||||
|
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
import { KeyGenerationService } from "../../services/keyGeneration.service";
|
import { KeyGenerationService } from "../../services/key-generation.service";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
cryptoFunctionServiceFactory,
|
cryptoFunctionServiceFactory,
|
||||||
CryptoFunctionServiceInitOptions,
|
CryptoFunctionServiceInitOptions,
|
||||||
} from "./crypto-function-service.factory";
|
} from "./crypto-function-service.factory";
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
||||||
|
|
||||||
type KeyGenerationServiceFactoryOptions = FactoryOptions;
|
type KeyGenerationServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { LogService } from "@bitwarden/common/abstractions/log.service";
|
|
||||||
import { LogLevelType } from "@bitwarden/common/enums";
|
import { LogLevelType } from "@bitwarden/common/enums";
|
||||||
import { ConsoleLogService } from "@bitwarden/common/services/consoleLog.service";
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
|
import { ConsoleLogService } from "@bitwarden/common/platform/services/console-log.service";
|
||||||
|
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
import { FactoryOptions, CachedServices, factory } from "./factory-options";
|
||||||
|
|
||||||
type LogServiceFactoryOptions = FactoryOptions & {
|
type LogServiceFactoryOptions = FactoryOptions & {
|
||||||
logServiceOptions: {
|
logServiceOptions: {
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
import { MessagingService as AbstractMessagingService } from "@bitwarden/common/abstractions/messaging.service";
|
import { MessagingService as AbstractMessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||||
|
|
||||||
import BrowserMessagingService from "../../services/browserMessaging.service";
|
import {
|
||||||
|
CachedServices,
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
factory,
|
||||||
|
FactoryOptions,
|
||||||
|
} from "../../background/service-factories/factory-options";
|
||||||
|
import BrowserMessagingService from "../../services/browser-messaging.service";
|
||||||
|
|
||||||
type MessagingServiceFactoryOptions = FactoryOptions;
|
type MessagingServiceFactoryOptions = FactoryOptions;
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
|
|
||||||
import BrowserPlatformUtilsService from "../../services/browserPlatformUtils.service";
|
import BrowserPlatformUtilsService from "../../services/browser-platform-utils.service";
|
||||||
|
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
||||||
import { MessagingServiceInitOptions, messagingServiceFactory } from "./messaging-service.factory";
|
import { MessagingServiceInitOptions, messagingServiceFactory } from "./messaging-service.factory";
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import { StateFactory } from "@bitwarden/common/factories/stateFactory";
|
import { StateFactory } from "@bitwarden/common/platform/factories/state-factory";
|
||||||
import { GlobalState } from "@bitwarden/common/models/domain/global-state";
|
import { GlobalState } from "@bitwarden/common/platform/models/domain/global-state";
|
||||||
import { StateMigrationService } from "@bitwarden/common/services/stateMigration.service";
|
import { StateMigrationService } from "@bitwarden/common/platform/services/state-migration.service";
|
||||||
|
|
||||||
import { Account } from "../../models/account";
|
import { Account } from "../../../models/account";
|
||||||
|
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
||||||
import {
|
import {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { StateFactory } from "@bitwarden/common/factories/stateFactory";
|
import { StateFactory } from "@bitwarden/common/platform/factories/state-factory";
|
||||||
import { GlobalState } from "@bitwarden/common/models/domain/global-state";
|
import { GlobalState } from "@bitwarden/common/platform/models/domain/global-state";
|
||||||
|
|
||||||
import { Account } from "../../models/account";
|
import { Account } from "../../../models/account";
|
||||||
import { BrowserStateService } from "../../services/browser-state.service";
|
import { BrowserStateService } from "../../services/browser-state.service";
|
||||||
|
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
||||||
@@ -1,18 +1,18 @@
|
|||||||
import {
|
import {
|
||||||
AbstractMemoryStorageService,
|
AbstractMemoryStorageService,
|
||||||
AbstractStorageService,
|
AbstractStorageService,
|
||||||
} from "@bitwarden/common/abstractions/storage.service";
|
} from "@bitwarden/common/platform/abstractions/storage.service";
|
||||||
import { MemoryStorageService } from "@bitwarden/common/services/memoryStorage.service";
|
import { MemoryStorageService } from "@bitwarden/common/platform/services/memory-storage.service";
|
||||||
|
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../browser/browser-api";
|
||||||
import BrowserLocalStorageService from "../../services/browserLocalStorage.service";
|
import BrowserLocalStorageService from "../../services/browser-local-storage.service";
|
||||||
import { LocalBackedSessionStorageService } from "../../services/localBackedSessionStorage.service";
|
import { LocalBackedSessionStorageService } from "../../services/local-backed-session-storage.service";
|
||||||
|
|
||||||
import { encryptServiceFactory, EncryptServiceInitOptions } from "./encrypt-service.factory";
|
import { EncryptServiceInitOptions, encryptServiceFactory } from "./encrypt-service.factory";
|
||||||
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
import { CachedServices, factory, FactoryOptions } from "./factory-options";
|
||||||
import {
|
import {
|
||||||
keyGenerationServiceFactory,
|
|
||||||
KeyGenerationServiceInitOptions,
|
KeyGenerationServiceInitOptions,
|
||||||
|
keyGenerationServiceFactory,
|
||||||
} from "./key-generation-service.factory";
|
} from "./key-generation-service.factory";
|
||||||
|
|
||||||
type StorageServiceFactoryOptions = FactoryOptions;
|
type StorageServiceFactoryOptions = FactoryOptions;
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { Observable } from "rxjs";
|
import { Observable } from "rxjs";
|
||||||
|
|
||||||
import { DeviceType } from "@bitwarden/common/enums/device-type.enum";
|
import { DeviceType } from "@bitwarden/common/enums";
|
||||||
|
|
||||||
import BrowserPlatformUtilsService from "../services/browserPlatformUtils.service";
|
import { TabMessage } from "../../types/tab-messages";
|
||||||
import { TabMessage } from "../types/tab-messages";
|
import BrowserPlatformUtilsService from "../services/browser-platform-utils.service";
|
||||||
|
|
||||||
export class BrowserApi {
|
export class BrowserApi {
|
||||||
static isWebExtensionsApi: boolean = typeof browser !== "undefined";
|
static isWebExtensionsApi: boolean = typeof browser !== "undefined";
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { BehaviorSubject } from "rxjs";
|
import { BehaviorSubject } from "rxjs";
|
||||||
|
|
||||||
import { AbstractMemoryStorageService } from "@bitwarden/common/abstractions/storage.service";
|
import { AbstractMemoryStorageService } from "@bitwarden/common/platform/abstractions/storage.service";
|
||||||
import { MemoryStorageService } from "@bitwarden/common/services/memoryStorage.service";
|
import { MemoryStorageService } from "@bitwarden/common/platform/services/memory-storage.service";
|
||||||
|
|
||||||
import { BrowserStateService } from "../../services/browser-state.service";
|
import { BrowserStateService } from "../../services/browser-state.service";
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Constructor } from "type-fest";
|
import { Constructor } from "type-fest";
|
||||||
|
|
||||||
import { AbstractMemoryStorageService } from "@bitwarden/common/abstractions/storage.service";
|
import { AbstractMemoryStorageService } from "@bitwarden/common/platform/abstractions/storage.service";
|
||||||
|
|
||||||
import { SessionStorable } from "./session-storable";
|
import { SessionStorable } from "./session-storable";
|
||||||
import { SessionSyncer } from "./session-syncer";
|
import { SessionSyncer } from "./session-syncer";
|
||||||
@@ -2,9 +2,9 @@ import { awaitAsync } from "@bitwarden/angular/../test-utils";
|
|||||||
import { mock, MockProxy } from "jest-mock-extended";
|
import { mock, MockProxy } from "jest-mock-extended";
|
||||||
import { BehaviorSubject, ReplaySubject } from "rxjs";
|
import { BehaviorSubject, ReplaySubject } from "rxjs";
|
||||||
|
|
||||||
import { MemoryStorageService } from "@bitwarden/common/services/memoryStorage.service";
|
import { MemoryStorageService } from "@bitwarden/common/platform/services/memory-storage.service";
|
||||||
|
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../browser/browser-api";
|
||||||
|
|
||||||
import { SessionSyncer } from "./session-syncer";
|
import { SessionSyncer } from "./session-syncer";
|
||||||
import { SyncedItemMetadata } from "./sync-item-metadata";
|
import { SyncedItemMetadata } from "./sync-item-metadata";
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
import { BehaviorSubject, concatMap, ReplaySubject, skip, Subject, Subscription } from "rxjs";
|
import { BehaviorSubject, concatMap, ReplaySubject, skip, Subject, Subscription } from "rxjs";
|
||||||
|
|
||||||
import { AbstractMemoryStorageService } from "@bitwarden/common/abstractions/storage.service";
|
import { AbstractMemoryStorageService } from "@bitwarden/common/platform/abstractions/storage.service";
|
||||||
import { Utils } from "@bitwarden/common/misc/utils";
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
|
|
||||||
import { BrowserApi } from "../../browser/browserApi";
|
import { BrowserApi } from "../../browser/browser-api";
|
||||||
|
|
||||||
import { SyncedItemMetadata } from "./sync-item-metadata";
|
import { SyncedItemMetadata } from "./sync-item-metadata";
|
||||||
|
|
||||||
@@ -4,9 +4,9 @@ import {
|
|||||||
devFlagValue as baseDevFlagValue,
|
devFlagValue as baseDevFlagValue,
|
||||||
SharedFlags,
|
SharedFlags,
|
||||||
SharedDevFlags,
|
SharedDevFlags,
|
||||||
} from "@bitwarden/common/misc/flags";
|
} from "@bitwarden/common/platform/misc/flags";
|
||||||
|
|
||||||
import { GroupPolicyEnvironment } from "./admin-console/types/group-policy-environment";
|
import { GroupPolicyEnvironment } from "../admin-console/types/group-policy-environment";
|
||||||
|
|
||||||
// required to avoid linting errors when there are no flags
|
// required to avoid linting errors when there are no flags
|
||||||
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
/* eslint-disable-next-line @typescript-eslint/ban-types */
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { CachedServices } from "../background/service_factories/factory-options";
|
import { CachedServices } from "../background/service-factories/factory-options";
|
||||||
|
|
||||||
type Listener<T extends unknown[]> = (...args: [...T, CachedServices]) => Promise<void>;
|
type Listener<T extends unknown[]> = (...args: [...T, CachedServices]) => Promise<void>;
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user