Compare commits
3 Commits
e04447a140
...
9beb2e423e
Author | SHA1 | Date | |
---|---|---|---|
|
9beb2e423e | ||
|
efc68ad803 | ||
|
9444917186 |
BIN
Banner.key
BIN
Banner.key
Binary file not shown.
@ -29,10 +29,10 @@ struct HistoryListItem: View {
|
|||||||
return startText
|
return startText
|
||||||
}
|
}
|
||||||
let diff = Int(rCounter) - Int(sentCounter)
|
let diff = Int(rCounter) - Int(sentCounter)
|
||||||
guard diff != 1 else {
|
guard diff != 1 && diff != 0 else {
|
||||||
return startText
|
return startText
|
||||||
}
|
}
|
||||||
return startText + "→\(rCounter)"
|
return startText + " (\(diff))"
|
||||||
}
|
}
|
||||||
|
|
||||||
var timeOffsetText: String {
|
var timeOffsetText: String {
|
||||||
|
@ -9,8 +9,8 @@ struct KeyView: View {
|
|||||||
var isCompensatingDaylightTime: Bool
|
var isCompensatingDaylightTime: Bool
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
GeometryReader { geo in
|
ScrollView {
|
||||||
VStack(alignment: .leading, spacing: 16) {
|
VStack(alignment: .leading, spacing: 8) {
|
||||||
ForEach(KeyManagement.KeyType.allCases) { keyType in
|
ForEach(KeyManagement.KeyType.allCases) { keyType in
|
||||||
SingleKeyView(
|
SingleKeyView(
|
||||||
keyManager: $keyManager,
|
keyManager: $keyManager,
|
||||||
@ -21,6 +21,7 @@ struct KeyView: View {
|
|||||||
}
|
}
|
||||||
Text("If the remote has daylight savings time wrongly set, then the time validation will fail. Use this option to send messages with adjusted timestamps. Warning: Incorrect use of this option will allow replay attacks.")
|
Text("If the remote has daylight savings time wrongly set, then the time validation will fail. Use this option to send messages with adjusted timestamps. Warning: Incorrect use of this option will allow replay attacks.")
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
|
.foregroundColor(.secondary)
|
||||||
}.padding()
|
}.padding()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,13 +45,15 @@ struct SingleKeyView: View {
|
|||||||
keyManager.generate(type)
|
keyManager.generate(type)
|
||||||
needRefresh.toggle()
|
needRefresh.toggle()
|
||||||
}
|
}
|
||||||
.padding()
|
.padding([.horizontal, .bottom])
|
||||||
|
.padding(.top, 4)
|
||||||
|
|
||||||
Button(type.usesHashing ? "Copy hash" : "Copy") {
|
Button(type.usesHashing ? "Copy hash" : "Copy") {
|
||||||
UIPasteboard.general.string = copyText
|
UIPasteboard.general.string = copyText
|
||||||
}
|
}
|
||||||
.disabled(!hasKey)
|
.disabled(!hasKey)
|
||||||
.padding()
|
.padding([.horizontal, .bottom])
|
||||||
|
.padding(.top, 4)
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user