gitbay/Views/Repos/RepoRoute.swift

v1.1.0
gitbay-ios/gitbay/Views/Repos/RepoRoute.swift history · blame · raw

27 lines · 924 bytes

 1import Foundation
 2
 3/// Navigation destinations for the repo stack. Values, so navigation is
 4/// testable and deep-linkable later.
 5nonisolated enum RepoRoute: Hashable {
 6    case repo(String)
 7    case tree(repo: String, directory: String, ref: String?)
 8    case file(repo: String, path: String, ref: String?)
 9    case log(repo: String, ref: String?, path: String?)
10    case settings(repo: String)
11    case grep(repo: String)
12    case blame(repo: String, path: String, ref: String?)
13    case refs(repo: String)
14    case compare(repo: String, defaultBranch: String?)
15    case milestones(repo: String)
16    case labels(repo: String)
17    case wiki(repo: String)
18    case wikiPage(repo: String, page: String)
19    case commit(repo: String, sha: String)
20    case bookmarks
21    case webhooks(repo: String)
22    case webhookDeliveries(repo: String)
23    case profile(String)
24    case account
25    case addAccount
26    case notifications
27}