Merge GitHub URLs

This commit is contained in:
Davide De Rosa 2021-01-01 17:41:47 +01:00
parent c02c6de493
commit 9a360c3acf
3 changed files with 8 additions and 12 deletions

View File

@ -209,7 +209,7 @@ extension AboutViewController {
showCredits() showCredits()
case .readme: case .readme:
visitURL(AppConstants.URLs.iOS.readme) visitURL(AppConstants.URLs.readme)
case .changelog: case .changelog:
visitURL(AppConstants.URLs.iOS.changelog) visitURL(AppConstants.URLs.iOS.changelog)

View File

@ -14,8 +14,8 @@ body {
</style> </style>
</head> </head>
<body> <body>
<a href="https://github.com/passepartoutvpn/passepartout-macos/blob/master/README.md">README</a> &centerdot; <a href="https://github.com/passepartoutvpn/passepartout-apple/blob/master/README.md">README</a> &centerdot;
<a href="https://github.com/passepartoutvpn/passepartout-macos/blob/master/CHANGELOG.md">CHANGELOG</a> &centerdot; <a href="https://github.com/passepartoutvpn/passepartout-apple/blob/master/Passepartout/App/macOS/CHANGELOG.md">CHANGELOG</a> &centerdot;
<a href="https://passepartoutvpn.app/faq/">FAQ</a> <a href="https://passepartoutvpn.app/faq/">FAQ</a>
<hr /> <hr />
<a href="https://passepartoutvpn.app/disclaimer/">Disclaimer</a> &centerdot; <a href="https://passepartoutvpn.app/disclaimer/">Disclaimer</a> &centerdot;

View File

@ -177,16 +177,14 @@ public class AppConstants {
} }
public class URLs { public class URLs {
public static let readme = Repos.apple.appendingPathComponent("blob/master/README.md")
public class iOS { public class iOS {
public static let readme = Repos.ios.appendingPathComponent("blob/master/README.md") public static let changelog = Repos.apple.appendingPathComponent("blob/master/Passepartout/App/iOS/CHANGELOG.md")
public static let changelog = Repos.ios.appendingPathComponent("blob/master/CHANGELOG.md")
} }
public class macOS { public class macOS {
public static let readme = Repos.macos.appendingPathComponent("blob/master/README.md") public static let changelog = Repos.apple.appendingPathComponent("blob/master/Passepartout/App/macOS/CHANGELOG.md")
public static let changelog = Repos.macos.appendingPathComponent("blob/master/CHANGELOG.md")
} }
public static let filetypes = ["public.content", "public.data"] public static let filetypes = ["public.content", "public.data"]
@ -265,9 +263,7 @@ public class AppConstants {
return githubRawRoot.appendingPathComponent(repo) return githubRawRoot.appendingPathComponent(repo)
} }
public static let ios = github(repo: "passepartout-ios") public static let apple = github(repo: "passepartout-apple")
public static let macos = github(repo: "passepartout-macos")
public static let api = githubRaw(repo: "api") public static let api = githubRaw(repo: "api")
} }