style: rename platform to bridge (#452)
* style: rename platform to bridge * chore: tsc
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
import angular from 'angular';
|
||||
import { getPlatformString } from '@/utils';
|
||||
import { AlertService } from '@/services/alertService';
|
||||
import { WebDeviceInterface } from '@/interface';
|
||||
import { WebDeviceInterface } from '@/web_device_interface';
|
||||
import {
|
||||
DesktopManager,
|
||||
LockManager,
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
} from '@/services';
|
||||
import { AppState } from '@/ui_models/app_state';
|
||||
import { SNWebCrypto } from 'sncrypto/dist/sncrypto-web';
|
||||
import { Platform } from '@/services/platform';
|
||||
import { Bridge } from '@/services/bridge';
|
||||
|
||||
type WebServices = {
|
||||
appState: AppState
|
||||
@@ -56,13 +56,13 @@ export class WebApplication extends SNApplication {
|
||||
$timeout: ng.ITimeoutService,
|
||||
scope: ng.IScope,
|
||||
onDeinit: (app: WebApplication) => void,
|
||||
platform: Platform,
|
||||
bridge: Bridge,
|
||||
) {
|
||||
const namespace = '';
|
||||
const deviceInterface = new WebDeviceInterface(
|
||||
namespace,
|
||||
$timeout,
|
||||
platform
|
||||
bridge
|
||||
);
|
||||
super(
|
||||
Environment.Web,
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
ThemeManager
|
||||
} from '@/services';
|
||||
import { AppState } from '@/ui_models/app_state';
|
||||
import { Platform } from '@/services/platform';
|
||||
import { Bridge } from '@/services/bridge';
|
||||
|
||||
type AppManagerChangeCallback = () => void
|
||||
|
||||
@@ -29,7 +29,7 @@ export class ApplicationGroup {
|
||||
$compile: ng.ICompileService,
|
||||
$rootScope: ng.IRootScopeService,
|
||||
$timeout: ng.ITimeoutService,
|
||||
private platform: Platform
|
||||
private bridge: Bridge
|
||||
) {
|
||||
this.$compile = $compile;
|
||||
this.$timeout = $timeout;
|
||||
@@ -71,7 +71,7 @@ export class ApplicationGroup {
|
||||
this.$timeout,
|
||||
scope,
|
||||
this.onApplicationDeinit,
|
||||
this.platform
|
||||
this.bridge
|
||||
);
|
||||
const appState = new AppState(
|
||||
this.$rootScope,
|
||||
|
||||
Reference in New Issue
Block a user