0 Commits
19 changed files with 41 additions and 85 deletions

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@
<div align="center"> <div align="center">
<a href="https://shipwrecked.hackclub.com/?t=ghrm" target="_blank"> <a href="https://shipwrecked.hackclub.com/?t=ghrm" target="_blank">
<img src="https://github.com/neon443/AirAP/blob/main/Icon/shipwrecked.png?raw=true" <img src="https://hc-cdn.hel1.your-objectstorage.com/s/v3/739361f1d440b17fc9e2f74e49fc185d86cbec14_badge.png"
alt="This project is part of Shipwrecked, the world's first hackathon on an island!" alt="This project is part of Shipwrecked, the world's first hackathon on an island!"
style="width: 25%;"> style="width: 25%;">
</a> </a>
@@ -1,38 +0,0 @@
{
"images" : [
{
"filename" : "[email protected]",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "tinted"
}
],
"filename" : "[email protected]",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

+2 -2
View File
@@ -1,7 +1,7 @@
{ {
"images" : [ "images" : [
{ {
"filename" : "ShhShell-iOS-Default-1024@1x.png", "filename" : "ShhShell-light.png",
"idiom" : "universal" "idiom" : "universal"
}, },
{ {
@@ -11,7 +11,7 @@
"value" : "dark" "value" : "dark"
} }
], ],
"filename" : "ShhShell-iOS-Dark-1024@1x.png", "filename" : "ShhShell.png",
"idiom" : "universal" "idiom" : "universal"
} }
], ],
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 KiB

@@ -139,11 +139,9 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil")
} }
} }
#if compiler(>=6.2)
if #available(iOS 19, *) { if #available(iOS 19, *) {
ToolbarSpacer() ToolbarSpacer()
} }
#endif
ToolbarItem() { ToolbarItem() {
Button() { Button() {
@@ -23,6 +23,7 @@ struct HostSymbolPicker: View {
var body: some View { var body: some View {
ZStack { ZStack {
Rectangle() Rectangle()
.modifier(glassEffectCompat())
// .foregroundStyle(cScheme == .dark ? .black : .gray) // .foregroundStyle(cScheme == .dark ? .black : .gray)
VStack(alignment: .center, spacing: 0) { VStack(alignment: .center, spacing: 0) {
ScrollView(.horizontal) { ScrollView(.horizontal) {
-2
View File
@@ -46,7 +46,6 @@ struct KeyDetailView: View {
.buttonStyle(.plain) .buttonStyle(.plain)
} }
} }
if !hostsManager.hosts.isEmpty {
Menu() { Menu() {
ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in
Button() { Button() {
@@ -67,7 +66,6 @@ struct KeyDetailView: View {
.foregroundStyle(.green) .foregroundStyle(.green)
} }
} }
}
Section() { Section() {
TextBox(label: "Name", text: $keyname, prompt: "A name for your key") TextBox(label: "Name", text: $keyname, prompt: "A name for your key")
+10 -27
View File
@@ -9,7 +9,6 @@ import SwiftUI
struct KeyImporterView: View { struct KeyImporterView: View {
@ObservedObject var keyManager: KeyManager @ObservedObject var keyManager: KeyManager
@ObservedObject var hostsManager: HostsManager
@Environment(\.dismiss) var dismiss @Environment(\.dismiss) var dismiss
@@ -22,7 +21,6 @@ struct KeyImporterView: View {
} }
var body: some View { var body: some View {
NavigationStack {
List { List {
TextBox(label: "Name", text: $keyName, prompt: "A name for your key") TextBox(label: "Name", text: $keyName, prompt: "A name for your key")
@@ -47,15 +45,10 @@ struct KeyImporterView: View {
.listRowSeparator(.hidden) .listRowSeparator(.hidden)
TextEditor(text: $privkeyStr) TextEditor(text: $privkeyStr)
// .background(.gray.opacity(0.5)) .background(.gray.opacity(0.5))
// .clipShape(RoundedRectangle(cornerRadius: 8)) .clipShape(RoundedRectangle(cornerRadius: 8))
.padding(.bottom, 5) .padding(.bottom, 5)
.padding(.horizontal, -8) .padding(.horizontal, -8)
// .frame(minHeight: 20)
Button("Paste", systemImage: "doc.on.clipboard.fill") {
privkeyStr = UIPasteboard.general.string ?? privkeyStr
}
} }
if !keypair.openSshPubkey.isEmpty { if !keypair.openSshPubkey.isEmpty {
@@ -65,32 +58,22 @@ struct KeyImporterView: View {
} }
.preferredColorScheme(.dark) .preferredColorScheme(.dark)
.toolbar { .overlay(alignment: .bottom) {
ToolbarItem(placement: .topBarLeading) { Button {
Button("", systemImage: "xmark") {
dismiss()
}
.tint(.primary)
}
ToolbarItem(placement: .topBarTrailing) {
Button() {
keyManager.importKey(type: keyType, priv: privkeyStr, name: keyName) keyManager.importKey(type: keyType, priv: privkeyStr, name: keyName)
UINotificationFeedbackGenerator().notificationOccurred(.success) UINotificationFeedbackGenerator().notificationOccurred(.success)
dismiss() dismiss()
} label: { } label: {
Label("", systemImage: "checkmark") Text("Import")
.tint(hostsManager.selectedTheme.foreground.suiColor) .font(.title)
} .bold()
.disabled(privkeyStr.isEmpty || keyName.isEmpty)
}
} }
.modifier(glassButton(prominent: true))
.padding(.bottom, 15)
} }
} }
} }
#Preview { #Preview {
KeyImporterView( KeyImporterView(keyManager: KeyManager())
keyManager: KeyManager(),
hostsManager: HostsManager()
)
} }
+1 -1
View File
@@ -62,7 +62,7 @@ struct KeyManagerView: View {
showImporter.toggle() showImporter.toggle()
} }
.sheet(isPresented: $showImporter) { .sheet(isPresented: $showImporter) {
KeyImporterView(keyManager: keyManager, hostsManager: hostsManager) KeyImporterView(keyManager: keyManager)
.colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark) .colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark)
} }
} }
+10 -8
View File
@@ -8,6 +8,16 @@
import Foundation import Foundation
import SwiftUI import SwiftUI
struct glassEffectCompat: ViewModifier {
func body(content: Content) -> some View {
if #available(iOS 19, *) {
content.glassEffect()
} else {
content
}
}
}
struct glassButton: ViewModifier { struct glassButton: ViewModifier {
var prominent: Bool var prominent: Bool
@@ -16,13 +26,6 @@ struct glassButton: ViewModifier {
} }
func body(content: Content) -> some View { func body(content: Content) -> some View {
#if compiler(>=6.2)
if prominent {
content.buttonStyle(.borderedProminent)
} else {
content
}
#else
if #available(iOS 19, *) { if #available(iOS 19, *) {
if prominent { if prominent {
content.buttonStyle(.glassProminent) content.buttonStyle(.glassProminent)
@@ -36,7 +39,6 @@ struct glassButton: ViewModifier {
content content
} }
} }
#endif
} }
} }
+1 -3
View File
@@ -136,15 +136,13 @@ struct ThemeManagerView: View {
Button() { Button() {
showAlert.toggle() showAlert.toggle()
} label: { } label: {
Label("URL", systemImage: "document.on.clipboard") Label("URL", systemImage: "link")
} }
} }
#if compiler(>=6.2)
if #available(iOS 19, *) { if #available(iOS 19, *) {
ToolbarSpacer() ToolbarSpacer()
} }
#endif
ToolbarItem() { ToolbarItem() {
Button() { Button() {
+1 -1
View File
@@ -12,6 +12,6 @@ git submodule init
rm -rf SwiftTerm rm -rf SwiftTerm
git clone https://github.com/neon443/SwiftTerm -b jelly git clone https://github.com/neon443/SwiftTerm -b jelly
mkdir Frameworks; cd Frameworks mkdir Frameworks; cd Frameworks
curl -o frameworks.tar.xz https://copy.neon443.xyz/shhshell-frameworks.xz curl -o frameworks.tar.xz https://files.catbox.moe/f4pe0u.xz
tar xzf frameworks.tar.xz tar xzf frameworks.tar.xz
rm frameworks.tar.xz rm frameworks.tar.xz
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# ci_pre_xcodebuild.sh
# ShhShell
#
# Created by neon443 on 07/06/2025.
#
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# ci_prost_xcodebuild.sh
# ShhShell
#
# Created by neon443 on 07/06/2025.
#
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.