Server im LAN-Reiter des Steam-Serverbrowsers: LAN-Ports, Host-Netz, Teamnamen, CSTV +100
This commit is contained in:
1 parent
4521cdae72
commit
0a40688945
14 files changed
+269
-37
No files matched your search
@@ -555,13 +555,14 @@ function ServerSettingsPanel({ token, setNotice }) {
|
||||
);
|
||||
}
|
||||
|
||||
const EMPTY_HOST = { name: '', dockerHost: 'ssh://', publicHost: '', portStart: 27100, portEnd: 27139, volume: 'cs2-mapveto-gamefiles' };
|
||||
const EMPTY_HOST = { name: '', dockerHost: 'ssh://', publicHost: '', portStart: 27100, portEnd: 27139, lanPorts: '27015-27020', volume: 'cs2-mapveto-gamefiles' };
|
||||
const HOST_COLUMNS = [
|
||||
{ key: 'name', label: 'Name', placeholder: 'host1' },
|
||||
{ key: 'dockerHost', label: 'Docker-Ziel', placeholder: 'ssh://server@192.168.178.45' },
|
||||
{ key: 'publicHost', label: 'Adresse für Spieler', placeholder: '192.168.178.45' },
|
||||
{ key: 'portStart', label: 'Port von', type: 'number' },
|
||||
{ key: 'portEnd', label: 'Port bis', type: 'number' },
|
||||
{ key: 'lanPorts', label: 'LAN-Ports (Steam)', placeholder: '27015-27020' },
|
||||
{ key: 'volume', label: 'Volume', placeholder: 'cs2-mapveto-gamefiles' },
|
||||
];
|
||||
|
||||
@@ -623,6 +624,7 @@ function DockerHostsPanel({ token, setNotice }) {
|
||||
...(r.rconHost && r.rconHost !== r.publicHost ? { rconHost: r.rconHost } : {}),
|
||||
portStart: Number(r.portStart),
|
||||
portEnd: Number(r.portEnd),
|
||||
lanPorts: String(r.lanPorts ?? '').trim(),
|
||||
volume: r.volume.trim() || undefined,
|
||||
})),
|
||||
},
|
||||
|
||||
@@ -578,7 +578,7 @@ input:focus, select:focus { border-color: var(--link); outline: none; }
|
||||
.setting-field textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; }
|
||||
.setting-live { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; font-size: .7rem; font-weight: 600; color: var(--primary); border: 1px solid var(--primary); }
|
||||
.host-edit { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
|
||||
.host-edit-row { display: grid; grid-template-columns: 1fr 2fr 1.4fr .8fr .8fr 1.4fr auto; gap: 8px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
|
||||
.host-edit-row { display: grid; grid-template-columns: 1fr 2fr 1.4fr .8fr .8fr 1.1fr 1.4fr auto; gap: 8px; align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
|
||||
@media (max-width: 900px) {
|
||||
.host-edit-row { grid-template-columns: 1fr 1fr; }
|
||||
.host-col-dockerHost { grid-column: 1 / -1; }
|
||||
|
||||
Reference in new issue
Block a user