mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +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")
|
Text("Tunnel active")
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
Spacer()
|
Spacer()
|
||||||
Button("Copy URL") {
|
Image(systemName: "doc.on.doc")
|
||||||
NSPasteboard.general.clearContents()
|
.font(.caption)
|
||||||
NSPasteboard.general.setString(publicUrl, forType: .string)
|
.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)
|
.buttonStyle(.bordered)
|
||||||
.controlSize(.small)
|
.controlSize(.small)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue