Handle custom httpd port

We only supported fetching the default httpd port (8080).
This commit removes navigation to `radicle.local` which represents
`0.0.0.0:8080`, and prepares the app for defining custom port.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-06-14 16:17:21 +02:00
parent 4fcb7373a3
commit 52cece4680
11 changed files with 186 additions and 36 deletions
+3 -2
View File
@@ -4,6 +4,7 @@
import type { Project } from "@httpd-client";
import type { ProjectLoadedView } from "@app/views/projects/router";
import * as httpd from "@app/lib/httpd";
import * as router from "@app/lib/router";
import * as utils from "@app/lib/utils";
import { HttpdClient } from "@httpd-client";
@@ -49,8 +50,8 @@
void router.push({
resource: "projects",
params: {
id: id,
hostnamePort: baseUrl.hostname,
id,
hostnamePort: httpd.api.hostnamePort,
view: {
resource: "issue",
params: { issue: issueId },