Implemented phase 6 for the POC prototype in the Website service.
This commit is contained in:
1 parent
256d22df40
commit
f2f445827b
40 files changed
+1906
-37
No files matched your search
@@ -7,8 +7,12 @@ extension String {
|
||||
enum Route {
|
||||
/// The account screen.
|
||||
static let account = "/account"
|
||||
/// The collection tracker.
|
||||
static let collection = "/collection"
|
||||
/// The side-by-side comparison of copies.
|
||||
static let compare = "/compare"
|
||||
/// The events where shops trade in person.
|
||||
static let events = "/events"
|
||||
/// The public grading guide.
|
||||
static let gradingGuide = "/grading-guide"
|
||||
/// The browse / home screen.
|
||||
@@ -17,6 +21,8 @@ extension String {
|
||||
static let messages = "/messages"
|
||||
/// The open-a-shop onboarding.
|
||||
static let openShop = "/sell/open-a-shop"
|
||||
/// The passkey recovery screen.
|
||||
static let recover = "/recover"
|
||||
/// The search results screen.
|
||||
static let search = "/search"
|
||||
/// The seller dashboard.
|
||||
@@ -101,6 +107,21 @@ extension String {
|
||||
"\(listing(slug))/offer"
|
||||
}
|
||||
|
||||
/// The path of the search narrowed to the copies that can be picked up at an event.
|
||||
/// - Parameter slug: the event's URL slug.
|
||||
static func pickup(
|
||||
at slug: String
|
||||
) -> String {
|
||||
"\(search)?pickup=\(slug)&ships-from=anywhere"
|
||||
}
|
||||
|
||||
/// The path a one-time recovery link leads to.
|
||||
static func recover(
|
||||
token: String
|
||||
) -> String {
|
||||
"\(recover)/\(token)"
|
||||
}
|
||||
|
||||
/// The path of a sale record.
|
||||
/// - Parameter number: the record's number.
|
||||
static func sale(
|
||||
|
||||
Reference in new issue
Block a user