gitbay/Views/Repos/RepoRoute.swift

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

24 lines · 832 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 profile(String)
21    case account
22    case addAccount
23    case notifications
24}