Merge branch 'group-web-pages'
This commit is contained in:
commit
5434e1abf0
|
@ -32,15 +32,14 @@ class AboutViewController: UITableViewController, TableModelHost {
|
||||||
let model: TableModel<SectionType, RowType> = {
|
let model: TableModel<SectionType, RowType> = {
|
||||||
let model: TableModel<SectionType, RowType> = TableModel()
|
let model: TableModel<SectionType, RowType> = TableModel()
|
||||||
model.add(.info)
|
model.add(.info)
|
||||||
model.add(.source)
|
model.add(.web)
|
||||||
model.add(.share)
|
model.add(.share)
|
||||||
model.add(.feedback)
|
model.add(.feedback)
|
||||||
model.setHeader(L10n.About.Sections.Info.header, for: .info)
|
model.setHeader(L10n.About.Sections.Web.header, for: .web)
|
||||||
model.setHeader(L10n.About.Sections.Source.header, for: .source)
|
|
||||||
model.setHeader(L10n.About.Sections.Share.header, for: .share)
|
model.setHeader(L10n.About.Sections.Share.header, for: .share)
|
||||||
model.setHeader(L10n.About.Sections.Feedback.header, for: .feedback)
|
model.setHeader(L10n.About.Sections.Feedback.header, for: .feedback)
|
||||||
model.set([.version, .website, .disclaimer, .privacyPolicy], in: .info)
|
model.set([.version], in: .info)
|
||||||
model.set([.sourcePassepartout, .sourceTunnelKit], in: .source)
|
model.set([.website, .disclaimer, .privacyPolicy], in: .web)
|
||||||
model.set([.shareTwitter, .shareGeneric], in: .share)
|
model.set([.shareTwitter, .shareGeneric], in: .share)
|
||||||
model.set([.joinCommunity, .writeReview], in: .feedback)
|
model.set([.joinCommunity, .writeReview], in: .feedback)
|
||||||
return model
|
return model
|
||||||
|
@ -116,7 +115,7 @@ extension AboutViewController {
|
||||||
enum SectionType: Int {
|
enum SectionType: Int {
|
||||||
case info
|
case info
|
||||||
|
|
||||||
case source
|
case web
|
||||||
|
|
||||||
case share
|
case share
|
||||||
|
|
||||||
|
@ -132,10 +131,6 @@ extension AboutViewController {
|
||||||
|
|
||||||
case privacyPolicy
|
case privacyPolicy
|
||||||
|
|
||||||
case sourcePassepartout
|
|
||||||
|
|
||||||
case sourceTunnelKit
|
|
||||||
|
|
||||||
case shareTwitter
|
case shareTwitter
|
||||||
|
|
||||||
case shareGeneric
|
case shareGeneric
|
||||||
|
@ -184,16 +179,6 @@ extension AboutViewController {
|
||||||
cell.leftText = L10n.About.Cells.PrivacyPolicy.caption
|
cell.leftText = L10n.About.Cells.PrivacyPolicy.caption
|
||||||
return cell
|
return cell
|
||||||
|
|
||||||
case .sourcePassepartout:
|
|
||||||
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
|
||||||
cell.leftText = GroupConstants.App.name
|
|
||||||
return cell
|
|
||||||
|
|
||||||
case .sourceTunnelKit:
|
|
||||||
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
|
||||||
cell.leftText = GroupConstants.App.tunnelKitName
|
|
||||||
return cell
|
|
||||||
|
|
||||||
case .shareTwitter:
|
case .shareTwitter:
|
||||||
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
||||||
cell.leftText = L10n.About.Cells.ShareTwitter.caption
|
cell.leftText = L10n.About.Cells.ShareTwitter.caption
|
||||||
|
@ -230,12 +215,6 @@ extension AboutViewController {
|
||||||
case .privacyPolicy:
|
case .privacyPolicy:
|
||||||
visitPrivacyPolicy()
|
visitPrivacyPolicy()
|
||||||
|
|
||||||
case .sourcePassepartout:
|
|
||||||
visitRepository(AppConstants.Repos.passepartout)
|
|
||||||
|
|
||||||
case .sourceTunnelKit:
|
|
||||||
visitRepository(AppConstants.Repos.tunnelKit)
|
|
||||||
|
|
||||||
case .shareTwitter:
|
case .shareTwitter:
|
||||||
tweetAboutApp()
|
tweetAboutApp()
|
||||||
|
|
||||||
|
|
|
@ -185,11 +185,10 @@
|
||||||
"issue_reporter.email.description" = "description of the issue:";
|
"issue_reporter.email.description" = "description of the issue:";
|
||||||
|
|
||||||
"about.title" = "About";
|
"about.title" = "About";
|
||||||
"about.sections.info.header" = "General";
|
"about.sections.web.header" = "Web";
|
||||||
"about.sections.source.header" = "Source code";
|
|
||||||
"about.sections.share.header" = "Share";
|
"about.sections.share.header" = "Share";
|
||||||
"about.sections.feedback.header" = "Feedback";
|
"about.sections.feedback.header" = "Feedback";
|
||||||
"about.cells.website.caption" = "Visit website";
|
"about.cells.website.caption" = "Home page";
|
||||||
"about.cells.disclaimer.caption" = "Disclaimer";
|
"about.cells.disclaimer.caption" = "Disclaimer";
|
||||||
"about.cells.privacy_policy.caption" = "Privacy policy";
|
"about.cells.privacy_policy.caption" = "Privacy policy";
|
||||||
"about.cells.share_twitter.caption" = "Tweet about it!";
|
"about.cells.share_twitter.caption" = "Tweet about it!";
|
||||||
|
@ -200,7 +199,7 @@
|
||||||
"share.message" = "Passepartout is an user-friendly, open source OpenVPN client for iOS and macOS";
|
"share.message" = "Passepartout is an user-friendly, open source OpenVPN client for iOS and macOS";
|
||||||
|
|
||||||
"version.title" = "Version";
|
"version.title" = "Version";
|
||||||
"version.labels.intro" = "Passepartout and TunnelKit are written and maintained by Davide De Rosa (keeshux).\n\nSource code for Passepartout and TunnelKit is publicly available on GitHub under the GPLv3.\n\nPassepartout is a non-official client and is in no way affiliated with OpenVPN Inc.";
|
"version.labels.intro" = "Passepartout and TunnelKit are written and maintained by Davide De Rosa (keeshux).\n\nSource code for Passepartout and TunnelKit is publicly available on GitHub under the GPLv3, you can find links in the home page.\n\nPassepartout is a non-official client and is in no way affiliated with OpenVPN Inc.";
|
||||||
"version.buttons.changelog" = "CHANGELOG";
|
"version.buttons.changelog" = "CHANGELOG";
|
||||||
"version.buttons.credits" = "CREDITS";
|
"version.buttons.credits" = "CREDITS";
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ internal enum L10n {
|
||||||
internal static let caption = L10n.tr("Localizable", "about.cells.share_twitter.caption")
|
internal static let caption = L10n.tr("Localizable", "about.cells.share_twitter.caption")
|
||||||
}
|
}
|
||||||
internal enum Website {
|
internal enum Website {
|
||||||
/// Visit website
|
/// Home page
|
||||||
internal static let caption = L10n.tr("Localizable", "about.cells.website.caption")
|
internal static let caption = L10n.tr("Localizable", "about.cells.website.caption")
|
||||||
}
|
}
|
||||||
internal enum WriteReview {
|
internal enum WriteReview {
|
||||||
|
@ -50,17 +50,13 @@ internal enum L10n {
|
||||||
/// Feedback
|
/// Feedback
|
||||||
internal static let header = L10n.tr("Localizable", "about.sections.feedback.header")
|
internal static let header = L10n.tr("Localizable", "about.sections.feedback.header")
|
||||||
}
|
}
|
||||||
internal enum Info {
|
|
||||||
/// General
|
|
||||||
internal static let header = L10n.tr("Localizable", "about.sections.info.header")
|
|
||||||
}
|
|
||||||
internal enum Share {
|
internal enum Share {
|
||||||
/// Share
|
/// Share
|
||||||
internal static let header = L10n.tr("Localizable", "about.sections.share.header")
|
internal static let header = L10n.tr("Localizable", "about.sections.share.header")
|
||||||
}
|
}
|
||||||
internal enum Source {
|
internal enum Web {
|
||||||
/// Source code
|
/// Web
|
||||||
internal static let header = L10n.tr("Localizable", "about.sections.source.header")
|
internal static let header = L10n.tr("Localizable", "about.sections.web.header")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -615,7 +611,7 @@ internal enum L10n {
|
||||||
internal static let credits = L10n.tr("Localizable", "version.buttons.credits")
|
internal static let credits = L10n.tr("Localizable", "version.buttons.credits")
|
||||||
}
|
}
|
||||||
internal enum Labels {
|
internal enum Labels {
|
||||||
/// Passepartout and TunnelKit are written and maintained by Davide De Rosa (keeshux).\n\nSource code for Passepartout and TunnelKit is publicly available on GitHub under the GPLv3.\n\nPassepartout is a non-official client and is in no way affiliated with OpenVPN Inc.
|
/// Passepartout and TunnelKit are written and maintained by Davide De Rosa (keeshux).\n\nSource code for Passepartout and TunnelKit is publicly available on GitHub under the GPLv3, you can find links in the home page.\n\nPassepartout is a non-official client and is in no way affiliated with OpenVPN Inc.
|
||||||
internal static let intro = L10n.tr("Localizable", "version.labels.intro")
|
internal static let intro = L10n.tr("Localizable", "version.labels.intro")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue