Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2567680a8f | ||
|
|
04a464945f | ||
|
|
c80634b55c | ||
|
|
7cd0018889 | ||
|
|
abbd8f3a92 | ||
|
|
8f8b91069a | ||
|
|
ccb12351b3 | ||
|
|
bbc63c83a1 | ||
|
|
c2f7356d3f | ||
|
|
747af5a654 | ||
|
|
811c336bb7 | ||
|
|
b1baef2135 | ||
|
|
e901724619 | ||
|
|
19c1cd4688 | ||
|
|
c1e65b0826 |
No files matched your search
@@ -5,8 +5,8 @@
|
|||||||
// Created by neon443 on 06/06/2025.
|
// Created by neon443 on 06/06/2025.
|
||||||
//
|
//
|
||||||
|
|
||||||
VERSION = 1.10
|
VERSION = 1.10.2
|
||||||
BUILD = 186
|
BUILD = 202
|
||||||
|
|
||||||
// Configuration settings file format documentation can be found at:
|
// Configuration settings file format documentation can be found at:
|
||||||
// https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project
|
// https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project
|
||||||
@@ -10,6 +10,11 @@
|
|||||||
made by neon443
|
made by neon443
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="https://apps.apple.com/app/id6746970159">
|
||||||
|
<img src="https://github.com/neon443/ShhShell/blob/main/Resources/Download_on_the_App_Store_Badge_US-UK_blk_092917.png?raw=true" title="icon" alt="icon" width="100" />
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://testflight.apple.com/join/uNKEAtSw">
|
<a href="https://testflight.apple.com/join/uNKEAtSw">
|
||||||
testflight
|
testflight
|
||||||
@@ -20,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://hc-cdn.hel1.your-objectstorage.com/s/v3/739361f1d440b17fc9e2f74e49fc185d86cbec14_badge.png"
|
<img src="https://github.com/neon443/AirAP/blob/main/Icon/shipwrecked.png?raw=true"
|
||||||
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>
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"filename" : "ShhShell-light.png",
|
"filename" : "ShhShell-iOS-Default-1024@1x.png",
|
||||||
"idiom" : "universal"
|
"idiom" : "universal"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
"value" : "dark"
|
"value" : "dark"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"filename" : "ShhShell.png",
|
"filename" : "ShhShell-iOS-Dark-1024@1x.png",
|
||||||
"idiom" : "universal"
|
"idiom" : "universal"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 733 KiB |
|
After Width: | Height: | Size: 22 KiB |
@@ -1092,10 +1092,8 @@
|
|||||||
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
|
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
|
||||||
INFOPLIST_KEY_NSFaceIDUsageDescription = "ShhShell uses Face ID to verify your identity";
|
INFOPLIST_KEY_NSFaceIDUsageDescription = "ShhShell uses Face ID to verify your identity";
|
||||||
INFOPLIST_KEY_NSLocalNetworkUsageDescription = "Needed to communicate with SSH Servers";
|
INFOPLIST_KEY_NSLocalNetworkUsageDescription = "Needed to communicate with SSH Servers";
|
||||||
INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Required to keep SSH connections alive, if enabled";
|
|
||||||
INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Required to keep SSH connections alive, if enabled";
|
INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Required to keep SSH connections alive, if enabled";
|
||||||
INFOPLIST_KEY_NSLocationUsageDescription = "Required to keep SSH connections alive, if enabled";
|
INFOPLIST_KEY_NSLocationUsageDescription = "Required to keep SSH connections alive, if enabled";
|
||||||
INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Required to keep SSH connections alive, if enabled";
|
|
||||||
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||||
@@ -1136,10 +1134,8 @@
|
|||||||
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
|
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;
|
||||||
INFOPLIST_KEY_NSFaceIDUsageDescription = "ShhShell uses Face ID to verify your identity";
|
INFOPLIST_KEY_NSFaceIDUsageDescription = "ShhShell uses Face ID to verify your identity";
|
||||||
INFOPLIST_KEY_NSLocalNetworkUsageDescription = "Needed to communicate with SSH Servers";
|
INFOPLIST_KEY_NSLocalNetworkUsageDescription = "Needed to communicate with SSH Servers";
|
||||||
INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "Required to keep SSH connections alive, if enabled";
|
|
||||||
INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Required to keep SSH connections alive, if enabled";
|
INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "Required to keep SSH connections alive, if enabled";
|
||||||
INFOPLIST_KEY_NSLocationUsageDescription = "Required to keep SSH connections alive, if enabled";
|
INFOPLIST_KEY_NSLocationUsageDescription = "Required to keep SSH connections alive, if enabled";
|
||||||
INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "Required to keep SSH connections alive, if enabled";
|
|
||||||
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
|
||||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/apple/swift-argument-parser",
|
"location" : "https://github.com/apple/swift-argument-parser",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "309a47b2b1d9b5e991f36961c983ecec72275be3",
|
"revision" : "cdd0ef3755280949551dc26dee5de9ddeda89f54",
|
||||||
"version" : "1.6.1"
|
"version" : "1.6.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"location" : "https://github.com/swiftlang/swift-subprocess",
|
"location" : "https://github.com/swiftlang/swift-subprocess",
|
||||||
"state" : {
|
"state" : {
|
||||||
"branch" : "main",
|
"branch" : "main",
|
||||||
"revision" : "680621bba49ca5c6b1df8d1693684dfd83351af4"
|
"revision" : "ab2072d457d1464b17166cc02125fc9fc0791e1a"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/apple/swift-system",
|
"location" : "https://github.com/apple/swift-system",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "61e4ca4b81b9e09e2ec863b00c340eb13497dac6",
|
"revision" : "395a77f0aa927f0ff73941d7ac35f2b46d47c9db",
|
||||||
"version" : "1.5.0"
|
"version" : "1.6.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
<string>JetBrainsMonoNerdFontMono-BoldItalic.ttf</string>
|
<string>JetBrainsMonoNerdFontMono-BoldItalic.ttf</string>
|
||||||
</array>
|
</array>
|
||||||
<key>UIBackgroundModes</key>
|
<key>UIBackgroundModes</key>
|
||||||
<array>
|
<array/>
|
||||||
<string>location</string>
|
|
||||||
</array>
|
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
@@ -102,4 +102,22 @@ enum AppIcon: Codable, CaseIterable, Equatable, CustomStringConvertible {
|
|||||||
return "Blueprint"
|
return "Blueprint"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isiOS26: Bool {
|
||||||
|
switch self {
|
||||||
|
case .regular:
|
||||||
|
return true
|
||||||
|
case .beta, .betaBlueprint:
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var radius: CGFloat {
|
||||||
|
switch isiOS26 {
|
||||||
|
case true, false:
|
||||||
|
return 17.578125
|
||||||
|
// case false:
|
||||||
|
// return 16.5
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -139,9 +139,11 @@ 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,7 +23,6 @@ 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) {
|
||||||
|
|||||||
@@ -46,24 +46,26 @@ struct KeyDetailView: View {
|
|||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Menu() {
|
if !hostsManager.hosts.isEmpty {
|
||||||
ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in
|
Menu() {
|
||||||
Button() {
|
ForEach(hostsManager.hostsNotUsing(key: keypair)) { host in
|
||||||
hostsManager.set(keypair: keypair, onHost: host)
|
Button() {
|
||||||
} label: {
|
hostsManager.set(keypair: keypair, onHost: host)
|
||||||
host.symbol.image
|
} label: {
|
||||||
.resizable().scaledToFit()
|
host.symbol.image
|
||||||
.foregroundStyle(.blue)
|
.resizable().scaledToFit()
|
||||||
.frame(width: 20, height: 20)
|
.foregroundStyle(.blue)
|
||||||
Text(host.description)
|
.frame(width: 20, height: 20)
|
||||||
.foregroundStyle(.blue)
|
Text(host.description)
|
||||||
|
.foregroundStyle(.blue)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "plus.circle.fill")
|
||||||
|
.symbolRenderingMode(.multicolor)
|
||||||
|
Text("Add")
|
||||||
|
.foregroundStyle(.green)
|
||||||
}
|
}
|
||||||
} label: {
|
|
||||||
Image(systemName: "plus.circle.fill")
|
|
||||||
.symbolRenderingMode(.multicolor)
|
|
||||||
Text("Add")
|
|
||||||
.foregroundStyle(.green)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ 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
|
||||||
|
|
||||||
@@ -21,59 +22,75 @@ struct KeyImporterView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
List {
|
NavigationStack {
|
||||||
TextBox(label: "Name", text: $keyName, prompt: "A name for your key")
|
List {
|
||||||
|
TextBox(label: "Name", text: $keyName, prompt: "A name for your key")
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
Text("Key Type")
|
Text("Key Type")
|
||||||
Picker("Key type", selection: $keyType) {
|
Picker("Key type", selection: $keyType) {
|
||||||
ForEach(KeyType.allCases, id: \.self) { type in
|
ForEach(KeyType.allCases, id: \.self) { type in
|
||||||
Text(type.description)
|
Text(type.description)
|
||||||
.tag(type)
|
.tag(type)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.pickerStyle(SegmentedPickerStyle())
|
||||||
|
}
|
||||||
|
|
||||||
|
Section {
|
||||||
|
HStack {
|
||||||
|
Text("Private Key")
|
||||||
|
Spacer()
|
||||||
|
Text("Required")
|
||||||
|
.foregroundStyle(.red)
|
||||||
|
}
|
||||||
|
.listRowSeparator(.hidden)
|
||||||
|
|
||||||
|
TextEditor(text: $privkeyStr)
|
||||||
|
// .background(.gray.opacity(0.5))
|
||||||
|
// .clipShape(RoundedRectangle(cornerRadius: 8))
|
||||||
|
.padding(.bottom, 5)
|
||||||
|
.padding(.horizontal, -8)
|
||||||
|
// .frame(minHeight: 20)
|
||||||
|
|
||||||
|
Button("Paste", systemImage: "doc.on.clipboard.fill") {
|
||||||
|
privkeyStr = UIPasteboard.general.string ?? privkeyStr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.pickerStyle(SegmentedPickerStyle())
|
|
||||||
}
|
|
||||||
|
|
||||||
Section {
|
if !keypair.openSshPubkey.isEmpty {
|
||||||
HStack {
|
Text(keypair.openSshPubkey.trimmingCharacters(in: .whitespacesAndNewlines))
|
||||||
Text("Private Key")
|
.foregroundStyle(.gray)
|
||||||
Spacer()
|
|
||||||
Text("Required")
|
|
||||||
.foregroundStyle(.red)
|
|
||||||
}
|
}
|
||||||
.listRowSeparator(.hidden)
|
|
||||||
|
|
||||||
TextEditor(text: $privkeyStr)
|
|
||||||
.background(.gray.opacity(0.5))
|
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 8))
|
|
||||||
.padding(.bottom, 5)
|
|
||||||
.padding(.horizontal, -8)
|
|
||||||
}
|
}
|
||||||
|
.preferredColorScheme(.dark)
|
||||||
if !keypair.openSshPubkey.isEmpty {
|
.toolbar {
|
||||||
Text(keypair.openSshPubkey.trimmingCharacters(in: .whitespacesAndNewlines))
|
ToolbarItem(placement: .topBarLeading) {
|
||||||
.foregroundStyle(.gray)
|
Button("", systemImage: "xmark") {
|
||||||
|
dismiss()
|
||||||
|
}
|
||||||
|
.tint(.primary)
|
||||||
|
}
|
||||||
|
ToolbarItem(placement: .topBarTrailing) {
|
||||||
|
Button() {
|
||||||
|
keyManager.importKey(type: keyType, priv: privkeyStr, name: keyName)
|
||||||
|
UINotificationFeedbackGenerator().notificationOccurred(.success)
|
||||||
|
dismiss()
|
||||||
|
} label: {
|
||||||
|
Label("", systemImage: "checkmark")
|
||||||
|
.tint(hostsManager.selectedTheme.foreground.suiColor)
|
||||||
|
}
|
||||||
|
.disabled(privkeyStr.isEmpty || keyName.isEmpty)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
.preferredColorScheme(.dark)
|
|
||||||
.overlay(alignment: .bottom) {
|
|
||||||
Button {
|
|
||||||
keyManager.importKey(type: keyType, priv: privkeyStr, name: keyName)
|
|
||||||
UINotificationFeedbackGenerator().notificationOccurred(.success)
|
|
||||||
dismiss()
|
|
||||||
} label: {
|
|
||||||
Text("Import")
|
|
||||||
.font(.title)
|
|
||||||
.bold()
|
|
||||||
}
|
|
||||||
.modifier(glassButton(prominent: true))
|
|
||||||
.padding(.bottom, 15)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Preview {
|
#Preview {
|
||||||
KeyImporterView(keyManager: KeyManager())
|
KeyImporterView(
|
||||||
|
keyManager: KeyManager(),
|
||||||
|
hostsManager: HostsManager()
|
||||||
|
)
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,7 @@ struct KeyManagerView: View {
|
|||||||
showImporter.toggle()
|
showImporter.toggle()
|
||||||
}
|
}
|
||||||
.sheet(isPresented: $showImporter) {
|
.sheet(isPresented: $showImporter) {
|
||||||
KeyImporterView(keyManager: keyManager)
|
KeyImporterView(keyManager: keyManager, hostsManager: hostsManager)
|
||||||
.colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark)
|
.colorScheme(hostsManager.selectedTheme.background.luminance > 0.5 ? .light : .dark)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,16 +8,6 @@
|
|||||||
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
|
||||||
|
|
||||||
@@ -26,6 +16,13 @@ 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)
|
||||||
@@ -39,6 +36,7 @@ struct glassButton: ViewModifier {
|
|||||||
content
|
content
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ struct SettingsView: View {
|
|||||||
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
||||||
.ignoresSafeArea(.all)
|
.ignoresSafeArea(.all)
|
||||||
List {
|
List {
|
||||||
Section("Terminal") {
|
Section("Display") {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
HStack {
|
HStack {
|
||||||
Label("Scrollback", systemImage: "scroll")
|
Label("Scrollback", systemImage: "scroll")
|
||||||
@@ -52,7 +52,21 @@ struct SettingsView: View {
|
|||||||
step: 250
|
step: 250
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Toggle("Keep Display Awake", systemImage: "cup.and.saucer.fill", isOn: $hostsManager.settings.caffeinate)
|
||||||
|
if #unavailable(iOS 17), hostsManager.settings.filter == .crt {
|
||||||
|
Label("iOS 17 Required", systemImage: "exclamationmark.triangle.fill")
|
||||||
|
.foregroundStyle(.yellow)
|
||||||
|
.transition(.opacity)
|
||||||
|
}
|
||||||
|
Picker("", selection: $hostsManager.settings.filter) {
|
||||||
|
ForEach(TerminalFilter.allCases, id: \.self) { filter in
|
||||||
|
Text(filter.description).tag(filter)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.pickerStyle(.inline)
|
||||||
|
.labelsHidden()
|
||||||
}
|
}
|
||||||
|
.animation(.spring, value: hostsManager.settings.filter)
|
||||||
|
|
||||||
Section("Cursor") {
|
Section("Cursor") {
|
||||||
HStack(spacing: 20) {
|
HStack(spacing: 20) {
|
||||||
@@ -154,51 +168,34 @@ struct SettingsView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Section("Keepalive") {
|
// Section("Keepalive") {
|
||||||
Toggle("Location Persistence", systemImage: "location.fill", isOn: $hostsManager.settings.locationPersist)
|
// Toggle("Location Persistence", systemImage: "location.fill", isOn: $hostsManager.settings.locationPersist)
|
||||||
.onChange(of: hostsManager.settings.locationPersist) { _ in
|
// .onChange(of: hostsManager.settings.locationPersist) { _ in
|
||||||
if hostsManager.settings.locationPersist && !Backgrounder.shared.checkPermsStatus() {
|
// if hostsManager.settings.locationPersist && !Backgrounder.shared.checkPermsStatus() {
|
||||||
Backgrounder.shared.requestPerms()
|
// Backgrounder.shared.requestPerms()
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
Toggle("Keep Display Awake", systemImage: "cup.and.saucer.fill", isOn: $hostsManager.settings.caffeinate)
|
// }
|
||||||
}
|
|
||||||
|
|
||||||
Section("Bell Feedback") {
|
Section("Bell Feedback") {
|
||||||
Toggle("Sound", systemImage: "bell.and.waves.left.and.right", isOn: $hostsManager.settings.bellSound)
|
Toggle("Sound", systemImage: "bell.and.waves.left.and.right", isOn: $hostsManager.settings.bellSound)
|
||||||
Toggle("Haptic",systemImage: "iphone.radiowaves.left.and.right", isOn: $hostsManager.settings.bellHaptic)
|
Toggle("Haptic",systemImage: "iphone.radiowaves.left.and.right", isOn: $hostsManager.settings.bellHaptic)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Section("Terminal Filter") {
|
|
||||||
if #unavailable(iOS 17), hostsManager.settings.filter == .crt {
|
|
||||||
Label("iOS 17 Required", systemImage: "exclamationmark.triangle.fill")
|
|
||||||
.foregroundStyle(.yellow)
|
|
||||||
.transition(.opacity)
|
|
||||||
}
|
|
||||||
Picker("", selection: $hostsManager.settings.filter) {
|
|
||||||
ForEach(TerminalFilter.allCases, id: \.self) { filter in
|
|
||||||
Text(filter.description).tag(filter)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.pickerStyle(.inline)
|
|
||||||
.labelsHidden()
|
|
||||||
}
|
|
||||||
.animation(.spring, value: hostsManager.settings.filter)
|
|
||||||
|
|
||||||
Section("App Icon") {
|
Section("App Icon") {
|
||||||
ScrollView(.horizontal) {
|
ScrollView(.horizontal) {
|
||||||
HStack {
|
HStack {
|
||||||
ForEach(AppIcon.allCases, id: \.self) { icon in
|
ForEach(AppIcon.allCases, id: \.self) { icon in
|
||||||
let isSelected = hostsManager.settings.appIcon == icon
|
let isSelected = hostsManager.settings.appIcon == icon
|
||||||
ZStack(alignment: .top) {
|
ZStack(alignment: .top) {
|
||||||
RoundedRectangle(cornerRadius: 21.5)
|
RoundedRectangle(cornerRadius: icon.radius + 5)
|
||||||
.foregroundStyle(.gray.opacity(0.5))
|
.foregroundStyle(.gray.opacity(0.5))
|
||||||
.opacity(isSelected ? 1 : 0)
|
.opacity(isSelected ? 1 : 0)
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
icon.image
|
icon.image
|
||||||
.resizable().scaledToFit()
|
.resizable().scaledToFit()
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 16.5))
|
.frame(width: 85, height: 85)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: icon.radius))
|
||||||
.padding(5)
|
.padding(5)
|
||||||
Text(icon.description).tag(icon)
|
Text(icon.description).tag(icon)
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
@@ -207,7 +204,6 @@ struct SettingsView: View {
|
|||||||
.multilineTextAlignment(.center)
|
.multilineTextAlignment(.center)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxWidth: 85, maxHeight: 110)
|
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
withAnimation {
|
withAnimation {
|
||||||
hostsManager.settings.appIcon = icon
|
hostsManager.settings.appIcon = icon
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ struct AddSnippetView: View {
|
|||||||
TextEditor(text: $content)
|
TextEditor(text: $content)
|
||||||
.autocorrectionDisabled()
|
.autocorrectionDisabled()
|
||||||
.textInputAutocapitalization(.never)
|
.textInputAutocapitalization(.never)
|
||||||
.background(.black)
|
// .background(.black)
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 5))
|
.clipShape(RoundedRectangle(cornerRadius: 5))
|
||||||
.padding(.bottom)
|
.padding(.bottom)
|
||||||
.frame(minHeight: 50)
|
.frame(minHeight: 50)
|
||||||
|
|||||||
@@ -136,13 +136,15 @@ struct ThemeManagerView: View {
|
|||||||
Button() {
|
Button() {
|
||||||
showAlert.toggle()
|
showAlert.toggle()
|
||||||
} label: {
|
} label: {
|
||||||
Label("URL", systemImage: "link")
|
Label("URL", systemImage: "document.on.clipboard")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if compiler(>=6.2)
|
||||||
if #available(iOS 19, *) {
|
if #available(iOS 19, *) {
|
||||||
ToolbarSpacer()
|
ToolbarSpacer()
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ToolbarItem() {
|
ToolbarItem() {
|
||||||
Button() {
|
Button() {
|
||||||
|
|||||||
@@ -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://files.catbox.moe/f4pe0u.xz
|
curl -o frameworks.tar.xz https://copy.neon443.xyz/shhshell-frameworks.xz
|
||||||
tar xzf frameworks.tar.xz
|
tar xzf frameworks.tar.xz
|
||||||
rm frameworks.tar.xz
|
rm frameworks.tar.xz
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# ci_pre_xcodebuild.sh
|
|
||||||
# ShhShell
|
|
||||||
#
|
|
||||||
# Created by neon443 on 07/06/2025.
|
|
||||||
#
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# ci_prost_xcodebuild.sh
|
|
||||||
# ShhShell
|
|
||||||
#
|
|
||||||
# Created by neon443 on 07/06/2025.
|
|
||||||
#
|
|
||||||