refactor: component manager usecases (#2354)

This commit is contained in:
Mo
2023-07-13 05:46:52 -05:00
committed by GitHub
parent ecc5b5e503
commit 2c68ea1d76
52 changed files with 1454 additions and 1078 deletions

View File

@@ -512,15 +512,15 @@ export class MobileDevice implements MobileDeviceInterface {
)
}
addComponentUrl(componentUuid: UuidString, componentUrl: string) {
registerComponentUrl(componentUuid: UuidString, componentUrl: string) {
this.componentUrls.set(componentUuid, componentUrl)
}
removeComponentUrl(componentUuid: UuidString) {
deregisterComponentUrl(componentUuid: UuidString) {
this.componentUrls.delete(componentUuid)
}
isUrlComponentUrl(url: string): boolean {
isUrlRegisteredComponentUrl(url: string): boolean {
return Array.from(this.componentUrls.values()).includes(url)
}