mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
moved service abstractions to jslib
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import * as template from './action-buttons.component.html';
|
||||
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
import { PlatformUtilsService } from '@bitwarden/jslib';
|
||||
|
||||
export class ActionButtonsController implements ng.IController {
|
||||
onView: Function;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as template from './pop-out.component.html';
|
||||
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
import { PlatformUtilsService } from '@bitwarden/jslib';
|
||||
|
||||
export class PopOutController implements ng.IController {
|
||||
i18n: any;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { CipherType } from '@bitwarden/jslib';
|
||||
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||
import { PlatformUtilsService, UtilsService } from '@bitwarden/jslib';
|
||||
import * as template from './current.component.html';
|
||||
|
||||
export class CurrentController {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||
import { UtilsService } from '@bitwarden/jslib';
|
||||
|
||||
export class MainController implements ng.IController {
|
||||
smBody: boolean;
|
||||
|
||||
@@ -2,8 +2,8 @@ import * as angular from 'angular';
|
||||
import * as template from './lock.component.html';
|
||||
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
import { MessagingService } from '../../../services/abstractions/messaging.service';
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
|
||||
import { MessagingService, PlatformUtilsService } from '@bitwarden/jslib';
|
||||
|
||||
export class LockController {
|
||||
i18n: any;
|
||||
|
||||
@@ -2,8 +2,8 @@ import { DeviceRequest } from '../../../models/request/deviceRequest';
|
||||
import { TokenRequest } from '../../../models/request/tokenRequest';
|
||||
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
import { MessagingService } from '../../../services/abstractions/messaging.service';
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
|
||||
import { MessagingService, PlatformUtilsService } from '@bitwarden/jslib';
|
||||
|
||||
class AuthService {
|
||||
constructor(public cryptoService: CryptoService, public apiService: any, public userService: any,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
import { StorageService } from '../../../services/abstractions/storage.service';
|
||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||
|
||||
import { PlatformUtilsService, StorageService, UtilsService } from '@bitwarden/jslib';
|
||||
|
||||
function getBackgroundService<T>(service: string) {
|
||||
return (): T => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { StorageService } from '../../../services/abstractions/storage.service';
|
||||
import { StorageService } from '@bitwarden/jslib';
|
||||
|
||||
class StateService {
|
||||
private state: any = {};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as angular from 'angular';
|
||||
import * as template from './environment.component.html';
|
||||
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
import { PlatformUtilsService } from '@bitwarden/jslib';
|
||||
|
||||
export class EnvironmentController {
|
||||
iconsUrl: string;
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as angular from 'angular';
|
||||
import { Folder } from '../../../../models/domain/folder';
|
||||
import * as template from './add-folder.component.html';
|
||||
|
||||
import { PlatformUtilsService } from '../../../../services/abstractions/platformUtils.service';
|
||||
import { PlatformUtilsService } from '@bitwarden/jslib';
|
||||
|
||||
export class AddFolderController {
|
||||
savePromise: any;
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as angular from 'angular';
|
||||
import { Folder } from '../../../../models/domain/folder';
|
||||
import * as template from './edit-folder.component.html';
|
||||
|
||||
import { PlatformUtilsService } from '../../../../services/abstractions/platformUtils.service';
|
||||
import { PlatformUtilsService } from '@bitwarden/jslib';
|
||||
|
||||
export class EditFolderController {
|
||||
$transition$: any;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as angular from 'angular';
|
||||
import { MessagingService } from '../../../services/abstractions/messaging.service';
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
import { StorageService } from '../../../services/abstractions/storage.service';
|
||||
|
||||
import { MessagingService, PlatformUtilsService, StorageService } from '@bitwarden/jslib';
|
||||
|
||||
import StateService from '../services/state.service';
|
||||
import * as template from './options.component.html';
|
||||
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
import * as angular from 'angular';
|
||||
|
||||
import { DeviceType } from '@bitwarden/jslib';
|
||||
import { DeviceType, MessagingService, PlatformUtilsService, StorageService } from '@bitwarden/jslib';
|
||||
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
import { MessagingService } from '../../../services/abstractions/messaging.service';
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
import { StorageService } from '../../../services/abstractions/storage.service';
|
||||
import ConstantsService from '../../../services/constants.service';
|
||||
|
||||
import * as template from './settings.component.html';
|
||||
|
||||
@@ -2,10 +2,9 @@ import * as angular from 'angular';
|
||||
import * as papa from 'papaparse';
|
||||
import * as template from './export.component.html';
|
||||
|
||||
import { CipherType } from '@bitwarden/jslib';
|
||||
import { CipherType, UtilsService } from '@bitwarden/jslib';
|
||||
|
||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||
|
||||
export class ExportController {
|
||||
i18n: any;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as angular from 'angular';
|
||||
import * as template from './password-generator.component.html';
|
||||
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
import { PlatformUtilsService } from '@bitwarden/jslib';
|
||||
|
||||
export class PasswordGeneratorController {
|
||||
$transition$: any;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as template from './tools.component.html';
|
||||
|
||||
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
|
||||
import { PlatformUtilsService } from '@bitwarden/jslib';
|
||||
|
||||
export class ToolsController {
|
||||
showExport: boolean;
|
||||
|
||||
Reference in New Issue
Block a user