mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
linting
This commit is contained in:
parent
ed9a692101
commit
9f0792eefe
6 changed files with 29 additions and 26 deletions
|
|
@ -91,7 +91,9 @@ struct DashboardSettingsView: View {
|
||||||
.alert("ngrok Auth Token Required", isPresented: $showingAuthTokenAlert) {
|
.alert("ngrok Auth Token Required", isPresented: $showingAuthTokenAlert) {
|
||||||
Button("OK") {}
|
Button("OK") {}
|
||||||
} message: {
|
} message: {
|
||||||
Text("Please enter your ngrok auth token before enabling the tunnel. You can get a free auth token at ngrok.com")
|
Text(
|
||||||
|
"Please enter your ngrok auth token before enabling the tunnel. You can get a free auth token at ngrok.com"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
.alert("Keychain Access Error", isPresented: $showingKeychainAlert) {
|
.alert("Keychain Access Error", isPresented: $showingKeychainAlert) {
|
||||||
Button("OK") {}
|
Button("OK") {}
|
||||||
|
|
@ -522,7 +524,7 @@ private struct PortConfigurationView: View {
|
||||||
@Binding var serverPort: String
|
@Binding var serverPort: String
|
||||||
let restartServerWithNewPort: (Int) -> Void
|
let restartServerWithNewPort: (Int) -> Void
|
||||||
|
|
||||||
@State private var portNumber: Int = 4020
|
@State private var portNumber: Int = 4_020
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(alignment: .leading, spacing: 4) {
|
VStack(alignment: .leading, spacing: 4) {
|
||||||
|
|
@ -544,7 +546,7 @@ private struct PortConfigurationView: View {
|
||||||
|
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
Button(action: {
|
Button(action: {
|
||||||
if portNumber < 65535 {
|
if portNumber < 65_535 {
|
||||||
portNumber += 1
|
portNumber += 1
|
||||||
serverPort = String(portNumber)
|
serverPort = String(portNumber)
|
||||||
restartServerWithNewPort(portNumber)
|
restartServerWithNewPort(portNumber)
|
||||||
|
|
@ -573,7 +575,7 @@ private struct PortConfigurationView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
portNumber = Int(serverPort) ?? 4020
|
portNumber = Int(serverPort) ?? 4_020
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Text("The server will automatically restart when the port is changed.")
|
Text("The server will automatically restart when the port is changed.")
|
||||||
|
|
@ -635,7 +637,9 @@ private struct NgrokIntegrationSection: View {
|
||||||
Text("ngrok Integration")
|
Text("ngrok Integration")
|
||||||
.font(.headline)
|
.font(.headline)
|
||||||
} footer: {
|
} footer: {
|
||||||
Text("Alternatively, we recommend [Tailscale](https://tailscale.com/) to create a virtual network to access your Mac.")
|
Text(
|
||||||
|
"Alternatively, we recommend [Tailscale](https://tailscale.com/) to create a virtual network to access your Mac."
|
||||||
|
)
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
.tint(.blue)
|
.tint(.blue)
|
||||||
|
|
@ -809,4 +813,3 @@ private struct NgrokErrorView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue