mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 05:19:13 +00:00
made the connect button save the host first
make the thanks to pills look better add link to swiftterm
This commit is contained in:
@@ -11,6 +11,7 @@ struct AboutView: View {
|
||||
@ObservedObject var hostsManager: HostsManager
|
||||
|
||||
var body: some View {
|
||||
|
||||
ZStack {
|
||||
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
||||
.ignoresSafeArea(.all)
|
||||
@@ -36,12 +37,22 @@ struct AboutView: View {
|
||||
Link(destination: URL(string: "https://libssh.org")!) {
|
||||
Text("LibSSH")
|
||||
.padding(10)
|
||||
.background(hostsManager.selectedTheme.background.suiColor)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 5))
|
||||
.background(.gray.opacity(0.7))
|
||||
.foregroundStyle(.black)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 7.5))
|
||||
.shadow(radius: 2)
|
||||
}
|
||||
Link(destination: URL(string: "https://github.com/migueldeicaza/SwiftTerm")!) {
|
||||
Text("SwiftTerm")
|
||||
.padding(10)
|
||||
.background(.gray.opacity(0.7))
|
||||
.foregroundStyle(.black)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 7.5))
|
||||
.shadow(radius: 2)
|
||||
}
|
||||
}
|
||||
}
|
||||
.transition(.scale)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding()
|
||||
// }
|
||||
|
||||
@@ -12,8 +12,6 @@ struct ConnectionView: View {
|
||||
@ObservedObject var hostsManager: HostsManager
|
||||
@ObservedObject var keyManager: KeyManager
|
||||
|
||||
// @State private var shellView: ShellTabView? = nil
|
||||
|
||||
@State var pubkeyStr: String = ""
|
||||
@State var privkeyStr: String = ""
|
||||
|
||||
@@ -142,6 +140,7 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil")
|
||||
.toolbar {
|
||||
ToolbarItem() {
|
||||
Button() {
|
||||
hostsManager.updateHost(handler.host)
|
||||
handler.go()
|
||||
showTerminal = checkShell(handler.state)
|
||||
} label: {
|
||||
@@ -156,11 +155,6 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil")
|
||||
.fullScreenCover(isPresented: $showTerminal) {
|
||||
ShellTabView(handler: handler, hostsManager: hostsManager)
|
||||
}
|
||||
// .onAppear {
|
||||
// if shellView == nil {
|
||||
// shellView = ShellTabView(handler: handler, hostsManager: hostsManager)
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user