mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-17 13:15:53 +00:00
Improve ngrok
This commit is contained in:
parent
0bc40ffae9
commit
1056145bc0
1 changed files with 13 additions and 3 deletions
|
|
@ -360,9 +360,19 @@ struct AdvancedSettingsView: View {
|
|||
Text("Tunnel active")
|
||||
.font(.caption)
|
||||
Spacer()
|
||||
Button("Copy URL") {
|
||||
NSPasteboard.general.clearContents()
|
||||
NSPasteboard.general.setString(publicUrl, forType: .string)
|
||||
Image(systemName: "doc.on.doc")
|
||||
.font(.caption)
|
||||
.foregroundColor(.secondary)
|
||||
.help("Copy URL")
|
||||
.onTapGesture {
|
||||
NSPasteboard.general.clearContents()
|
||||
NSPasteboard.general.setString(publicUrl, forType: .string)
|
||||
}
|
||||
|
||||
Button("Open Browser") {
|
||||
if let url = URL(string: publicUrl) {
|
||||
NSWorkspace.shared.open(url)
|
||||
}
|
||||
}
|
||||
.buttonStyle(.bordered)
|
||||
.controlSize(.small)
|
||||
|
|
|
|||
Loading…
Reference in a new issue