feat: add new dashboard (#2574)

* feat: add new dashboard

* chore: comments

* fix duplicate

---------

Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
Alex Inkin
2024-03-19 22:56:16 +08:00
committed by GitHub
parent a5b1b4e103
commit f4fadd366e
47 changed files with 1093 additions and 1016 deletions

View File

@@ -72,16 +72,16 @@ export class ConfigService {
return window.isSecureContext || this.isTor()
}
launchableAddress(info: InterfaceInfo): string {
launchableAddress({ addressInfo }: InterfaceInfo): string {
return this.isTor()
? info.addressInfo.torHostname
? addressInfo.torHostname
: this.isLocalhost()
? `https://${info.addressInfo.lanHostname}`
? `https://${addressInfo.lanHostname}`
: this.isLocal() || this.isIpv4() || this.isIpv6()
? `https://${this.hostname}`
: info.addressInfo.domainInfo?.subdomain
? `https://${info.addressInfo.domainInfo.subdomain}${info.addressInfo.domainInfo.domain}`
: `https://${info.addressInfo.domainInfo?.domain}`
: addressInfo.domainInfo?.subdomain
? `https://${addressInfo.domainInfo.subdomain}${addressInfo.domainInfo.domain}`
: `https://${addressInfo.domainInfo?.domain}`
}
getHost(): string {