fix: refactor application event observing on web
This commit is contained in:
@@ -4,11 +4,16 @@ import {
|
||||
ApplicationInterface,
|
||||
InternalEventBusInterface,
|
||||
} from '@standardnotes/services'
|
||||
|
||||
import { RouteParser } from './RouteParser'
|
||||
import { RouteParserInterface } from './RouteParserInterface'
|
||||
import { RouteServiceEvent } from './RouteServiceEvent'
|
||||
import { RouteServiceInterface } from './RouteServiceInterface'
|
||||
|
||||
export class RouteService extends AbstractService<RouteServiceEvent, RouteParserInterface> {
|
||||
export class RouteService
|
||||
extends AbstractService<RouteServiceEvent, RouteParserInterface>
|
||||
implements RouteServiceInterface
|
||||
{
|
||||
private unsubApp!: () => void
|
||||
|
||||
constructor(
|
||||
|
||||
7
packages/ui-services/src/Route/RouteServiceInterface.ts
Normal file
7
packages/ui-services/src/Route/RouteServiceInterface.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { RouteParserInterface } from './RouteParserInterface'
|
||||
|
||||
export interface RouteServiceInterface {
|
||||
deinit(): void
|
||||
getRoute(): RouteParserInterface
|
||||
removeSettingsFromURLQueryParameters(): void
|
||||
}
|
||||
@@ -11,6 +11,7 @@ export * from './Route/Params/SubscriptionInviteParams'
|
||||
export * from './Route/RouteParser'
|
||||
export * from './Route/RouteType'
|
||||
export * from './Route/RouteService'
|
||||
export * from './Route/RouteServiceInterface'
|
||||
export * from './Route/RouteServiceEvent'
|
||||
export * from './Security/AutolockService'
|
||||
export * from './Storage/LocalStorage'
|
||||
|
||||
Reference in New Issue
Block a user