mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-14 12:46:05 +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
|
||||
)
|
||||
|
||||
ActiveSessionsSection(
|
||||
activeSessions: activeSessions,
|
||||
sessionService: sessionService
|
||||
)
|
||||
|
||||
RemoteAccessStatusSection(
|
||||
ngrokStatus: ngrokStatus,
|
||||
tailscaleStatus: tailscaleStatus,
|
||||
|
|
@ -54,6 +49,11 @@ struct DashboardSettingsView: View {
|
|||
serverPort: serverPort,
|
||||
accessMode: accessMode
|
||||
)
|
||||
|
||||
ActiveSessionsSection(
|
||||
activeSessions: activeSessions,
|
||||
sessionService: sessionService
|
||||
)
|
||||
}
|
||||
.formStyle(.grouped)
|
||||
.frame(minWidth: 500, idealWidth: 600)
|
||||
|
|
@ -230,14 +230,6 @@ private struct ServerStatusSection: View {
|
|||
// Server Control
|
||||
LabeledContent("HTTP Server") {
|
||||
HStack {
|
||||
HStack(spacing: 4) {
|
||||
Circle()
|
||||
.fill(isServerRunning ? .green : .red)
|
||||
.frame(width: 8, height: 8)
|
||||
Text(isServerRunning ? "Running" : "Stopped")
|
||||
.foregroundStyle(isServerRunning ? .primary : .secondary)
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
||||
if serverStatus == .stopped {
|
||||
|
|
|
|||
Loading…
Reference in a new issue