mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 10:10:28 +08:00
Set custom httpd port in Settings
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { api, changeHttpdPort } from "@app/lib/httpd";
|
||||
import { config } from "@app/lib/config";
|
||||
import {
|
||||
codeFont,
|
||||
codeFonts,
|
||||
@@ -12,6 +14,9 @@
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import Radio from "@app/components/Radio.svelte";
|
||||
import Button from "@app/components/Button.svelte";
|
||||
import TextInput from "@app/components/TextInput.svelte";
|
||||
|
||||
$: customPort = api.port;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -104,4 +109,15 @@
|
||||
</Radio>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>Radicle HTTP Daemon Port</div>
|
||||
<div class="right txt-monospace" style:width="6rem">
|
||||
<TextInput
|
||||
name="httpd port"
|
||||
bind:value={customPort}
|
||||
placeholder={config.nodes.defaultLocalHttpdPort.toString()}
|
||||
valid={Number(customPort) >= 1 && Number(customPort) <= 65535}
|
||||
on:submit={() => changeHttpdPort(Number(customPort))} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
}
|
||||
input {
|
||||
background: var(--color-background-dip);
|
||||
font-family: inherit;
|
||||
font-size: var(--font-size-small);
|
||||
color: var(--color-foreground-contrast);
|
||||
border: 1px solid var(--color-border-hint);
|
||||
|
||||
Reference in New Issue
Block a user