mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
Dashboard setting tweaks
This commit is contained in:
parent
969fd2e327
commit
a992aaae76
1 changed files with 5 additions and 13 deletions
|
|
@ -42,11 +42,6 @@ struct DashboardSettingsView: View {
|
||||||
serverManager: serverManager
|
serverManager: serverManager
|
||||||
)
|
)
|
||||||
|
|
||||||
ActiveSessionsSection(
|
|
||||||
activeSessions: activeSessions,
|
|
||||||
sessionService: sessionService
|
|
||||||
)
|
|
||||||
|
|
||||||
RemoteAccessStatusSection(
|
RemoteAccessStatusSection(
|
||||||
ngrokStatus: ngrokStatus,
|
ngrokStatus: ngrokStatus,
|
||||||
tailscaleStatus: tailscaleStatus,
|
tailscaleStatus: tailscaleStatus,
|
||||||
|
|
@ -54,6 +49,11 @@ struct DashboardSettingsView: View {
|
||||||
serverPort: serverPort,
|
serverPort: serverPort,
|
||||||
accessMode: accessMode
|
accessMode: accessMode
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ActiveSessionsSection(
|
||||||
|
activeSessions: activeSessions,
|
||||||
|
sessionService: sessionService
|
||||||
|
)
|
||||||
}
|
}
|
||||||
.formStyle(.grouped)
|
.formStyle(.grouped)
|
||||||
.frame(minWidth: 500, idealWidth: 600)
|
.frame(minWidth: 500, idealWidth: 600)
|
||||||
|
|
@ -230,14 +230,6 @@ private struct ServerStatusSection: View {
|
||||||
// Server Control
|
// Server Control
|
||||||
LabeledContent("HTTP Server") {
|
LabeledContent("HTTP Server") {
|
||||||
HStack {
|
HStack {
|
||||||
HStack(spacing: 4) {
|
|
||||||
Circle()
|
|
||||||
.fill(isServerRunning ? .green : .red)
|
|
||||||
.frame(width: 8, height: 8)
|
|
||||||
Text(isServerRunning ? "Running" : "Stopped")
|
|
||||||
.foregroundStyle(isServerRunning ? .primary : .secondary)
|
|
||||||
}
|
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
if serverStatus == .stopped {
|
if serverStatus == .stopped {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue