mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
* Feature: Add in the clear bindings * wip: Working on network * fix: Make it so the config gives the url * chore: Remove the repeated types * chore: Add in the todo's here * chore: UPdate and remove some poorly name var * chore: Remove the clear-bindings impl * chore: Remove the wrapper * handle HostnameInfo for Host bindings Co-authored-by: Jade <Blu-J@users.noreply.github.com> * ?? * chore: Make the install work * Fix: Url's not being created * chore: Fix the local onion in url * include port in hostname * Chore of adding a comment just to modify. --------- Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: Jade <Blu-J@users.noreply.github.com>
26 lines
696 B
TypeScript
26 lines
696 B
TypeScript
import { Inject, Injectable } from '@angular/core'
|
|
import { WINDOW } from '@ng-web-apis/common'
|
|
import { PackageDataEntry } from 'src/app/services/patch-db/data-model'
|
|
import { ConfigService } from './config.service'
|
|
import { T } from '@start9labs/start-sdk'
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class UiLauncherService {
|
|
constructor(
|
|
@Inject(WINDOW) private readonly windowRef: Window,
|
|
private readonly config: ConfigService,
|
|
) {}
|
|
|
|
launch(interfaces: PackageDataEntry['serviceInterfaces']): void {
|
|
// TODO @Matt
|
|
const host = {} as any
|
|
this.windowRef.open(
|
|
this.config.launchableAddress(interfaces, host),
|
|
'_blank',
|
|
'noreferrer',
|
|
)
|
|
}
|
|
}
|