-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional CTA when there are less than two homepage sponsors.
- Loading branch information
1 parent
cc713a1
commit a2f3a22
Showing
3 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,28 +15,30 @@ | |
import Plot | ||
|
||
enum ExternalURL: URLRepresentable { | ||
case addNewPackage(_ owner: String, _ repository: String) | ||
case contactMailto | ||
case mastodon | ||
case podcast | ||
case projectGitHub | ||
case projectSponsorship | ||
case raiseNewIssue | ||
case podcast | ||
case addNewPackage(_ owner: String, _ repository: String) | ||
|
||
|
||
var description: String { | ||
switch(self) { | ||
case let .addNewPackage(owner, repository): | ||
return "https://github.com/SwiftPackageIndex/PackageList/issues/new?labels=Add+Package&template=add_package.yml&title=Add+\(repository)&list=https%3A%2F%2Fgithub.com%2F\(owner)%2F\(repository).git" | ||
case .contactMailto: | ||
return "mailto:[email protected]" | ||
case .mastodon: | ||
return "https://mas.to/@SwiftPackageIndex" | ||
case .podcast: | ||
return "https://swiftpackageindexing.transistor.fm" | ||
case .projectGitHub: | ||
return "https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server" | ||
case .projectSponsorship: | ||
return "https://github.com/sponsors/SwiftPackageIndex" | ||
case .raiseNewIssue: | ||
return "https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/new/choose" | ||
case .podcast: | ||
return "https://swiftpackageindexing.transistor.fm" | ||
case let .addNewPackage(owner, repository): | ||
return "https://github.com/SwiftPackageIndex/PackageList/issues/new?labels=Add+Package&template=add_package.yml&title=Add+\(repository)&list=https%3A%2F%2Fgithub.com%2F\(owner)%2F\(repository).git" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters