functions to get hosts and indexes matching input, and to update a host

added a hostkey checker - fatalerror rn
reordered ui in connection view to make more sense
added sections
moved connect button to toolbar, disconect is there too!
hostsview update
This commit is contained in:
neon443 committed 2025-06-21 11:03:30 +01:00
1 parent 57c6b6005b
commit d982d018b8
4 files changed
+162 -125

No files matched your search

+3 -2
View File
@@ -17,7 +17,7 @@ class SSHHandler: ObservableObject {
@Published var connected: Bool = false
@Published var authorized: Bool = false
@Published var testSuceeded: Bool = false
@Published var testSuceeded: Bool? = nil
@Published var host: Host
@Published var terminal: String = ""
@@ -86,8 +86,9 @@ class SSHHandler: ObservableObject {
ssh_free(session)
withAnimation { authorized = false }
withAnimation { connected = false }
withAnimation { testSuceeded = nil }
session = nil
host.key = nil
// host.key = nil
}
func testExec() {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.