nicer

Massimo Melina committed Jan 6, 2023 at 19:27 UTC 959138fcb03a800dc641d5888cc075418507cf73
2 files changed +3 -2
admin/src/ConfigPage.ts
+2 -2
@@ -75,8 +75,6 @@ export default function ConfigPage() {
75 : { sm: 6 }
76 },
77 fields: [
78 - { k: 'max_kbps', ...maxSpeedDefaults, label: "Limit output KB/s", helperText: "Doesn't apply to localhost" },
79 - { k: 'max_kbps_per_ip', ...maxSpeedDefaults, label: "Limit output KB/s per-ip" },
78 { k: 'port', comp: ServerPort, label:"HTTP port", status: status?.http||true, suggestedPort: 80 },
79 { k: 'https_port', comp: ServerPort, label: "HTTPS port", status: status?.https||true, suggestedPort: 443,
80 onChange(v: number) {
@@ -85,6 +83,8 @@ export default function ConfigPage() {
83 return v
84 }
85 },
86 + { k: 'max_kbps', ...maxSpeedDefaults, label: "Limit output KB/s", helperText: "Doesn't apply to localhost" },
87 + { k: 'max_kbps_per_ip', ...maxSpeedDefaults, label: "Limit output KB/s per-ip" },
88 values.https_port >= 0 && { k: 'cert', comp: FileField, label: "HTTPS certificate file",
89 ...with_(status?.https.error, e => isCertError(e) ? {
90 error: true,
admin/src/index.css
+1
@@ -6,6 +6,7 @@ body {
6 -webkit-font-smoothing: antialiased;
7 -moz-osx-font-smoothing: grayscale;
8 height: 100vh;
9 + background: #000;
10 }
11 #root { min-height: 100%; display:flex; }
12