blob: 5da1a3d1ecbdd6343ad1e838d6c5b4280fd1d61d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
import SwiftUI
struct SafariExtensionHelpView: View {
private let supportedServices = [
"git.sr.ht",
"hg.sr.ht",
"todo.sr.ht",
"builds.sr.ht",
"lists.sr.ht",
"meta.sr.ht",
"sr.ht",
]
var body: some View {
Form {
Section {
Text("Enable Open in Hutch from Settings > Apps > Safari > Extensions, then turn on Hutch and allow it for SourceHut websites.")
.font(.subheadline)
.foregroundStyle(.secondary)
.themedRow()
} header: {
Text("Enable")
}
Section("Supported Services") {
ForEach(supportedServices, id: \.self) { service in
Label(service, systemImage: "checkmark.circle")
.themedRow()
}
}
Section {
Text("The extension adds a Safari action named Open in Hutch. It converts supported SourceHut web URLs into Hutch deep links, then opens the matching screen in the app.")
.font(.subheadline)
.foregroundStyle(.secondary)
.themedRow()
Text("This is separate from Universal Links. Hutch cannot claim sr.ht links system-wide because those domains are owned by SourceHut and would need Apple App Site Association files hosted there.")
.font(.subheadline)
.foregroundStyle(.secondary)
.themedRow()
} header: {
Text("How It Works")
}
Section {
Text("Pages are never redirected automatically by default. The optional in-page Open in Hutch banner is off unless the extension setting is explicitly enabled.")
.font(.subheadline)
.foregroundStyle(.secondary)
.themedRow()
} header: {
Text("Privacy")
}
}
.themedList()
.navigationTitle("Safari Extension")
.navigationBarTitleDisplayMode(.inline)
}
}
|