mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 08:53:05 +08:00
f4037ce6fb
* feat: sort stream * feat: add FieldSet component to ui * feat: make accessible and add feature test * test: fix snapshots
47 lines
739 B
GraphQL
47 lines
739 B
GraphQL
# Extend graph with local types
|
|
type Network {
|
|
isOffline: Boolean!
|
|
}
|
|
|
|
enum View {
|
|
SIGN_UP
|
|
SIGN_IN
|
|
FORGOT_PASSWORD
|
|
}
|
|
|
|
enum Tab {
|
|
COMMENTS
|
|
}
|
|
|
|
type AuthPopup {
|
|
open: Boolean!
|
|
focus: Boolean!
|
|
view: View
|
|
}
|
|
|
|
extend type Comment {
|
|
# pending is true during the optimistic response.
|
|
pending: Boolean
|
|
# localReplies contains only comments created by the user
|
|
# on the ultimate threading level.
|
|
localReplies: [Comment!]
|
|
}
|
|
|
|
type Local {
|
|
network: Network!
|
|
accessToken: String
|
|
accessTokenExp: Int
|
|
accessTokenJTI: String
|
|
loggedIn: Boolean!
|
|
activeTab: Tab!
|
|
authPopup: AuthPopup!
|
|
storyID: String
|
|
storyURL: String
|
|
commentID: String
|
|
defaultStreamOrderBy: COMMENT_SORT!
|
|
}
|
|
|
|
extend type Query {
|
|
local: Local!
|
|
}
|