Compare commits
21 Commits
b50ea5b573
...
kat/named-
Author | SHA1 | Date | |
---|---|---|---|
194d0dcd22 | |||
8fcaa1397a | |||
e8e318b919 | |||
ff0a11ea0d | |||
84192d1387 | |||
f1ae2b62d6 | |||
4f78cd94ab | |||
bfdda67d1a | |||
881350619a | |||
8bc67f75b0 | |||
df8495df77 | |||
0c45855f7d | |||
a2e659dfcb | |||
2a36a392ce | |||
145c2f9558 | |||
3f2e5d331f | |||
bf8e851139 | |||
eb15f4f3b8 | |||
82ff8546d4 | |||
284334606d | |||
a883bc3e2f |
650
src/index.tsx
650
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -36,6 +36,7 @@ fragment VideoCardFields on VideoGQL {
|
||||
screenshotUri
|
||||
stream {
|
||||
id
|
||||
lastIntendedSegmentBound
|
||||
isCompleted
|
||||
}
|
||||
tableSize
|
||||
|
32
src/operations/leaderboards.gql
Normal file
32
src/operations/leaderboards.gql
Normal file
@@ -0,0 +1,32 @@
|
||||
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||
getMakesLeaderboard(interval: $interval, when: $when) {
|
||||
entries {
|
||||
user {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
value
|
||||
proportionMade
|
||||
total
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
||||
entries {
|
||||
id
|
||||
runLength
|
||||
video {
|
||||
name
|
||||
createdAt
|
||||
}
|
||||
user {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -21,27 +21,19 @@ mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||
|
||||
mutation editProfileImageUri($profileImageUri: String!) {
|
||||
editProfileImageUri(profileImageUri: $profileImageUri) {
|
||||
id
|
||||
firebaseUid
|
||||
username
|
||||
profileImageUri
|
||||
createdAt
|
||||
updatedAt
|
||||
...UserFragment
|
||||
}
|
||||
}
|
||||
|
||||
query getLoggedInUser {
|
||||
getLoggedInUser {
|
||||
id
|
||||
firebaseUid
|
||||
username
|
||||
isAdmin
|
||||
profileImageUri
|
||||
fargoRating
|
||||
activeVideoId
|
||||
createdAt
|
||||
updatedAt
|
||||
videosPrivateByDefault
|
||||
...UserFragment
|
||||
}
|
||||
}
|
||||
|
||||
query GetUser($userId: Int!) {
|
||||
getUser(userId: $userId) {
|
||||
...UserFragment
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,6 +66,7 @@ query getUserRelationshipsMatching(
|
||||
relationships {
|
||||
toUser {
|
||||
username
|
||||
profileImageUri
|
||||
id
|
||||
}
|
||||
toUserFollows
|
||||
@@ -125,10 +118,12 @@ query getUserFollowingFollowers {
|
||||
following {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -157,3 +152,16 @@ mutation editUser(
|
||||
videosPrivateByDefault
|
||||
}
|
||||
}
|
||||
|
||||
fragment UserFragment on UserGQL {
|
||||
id
|
||||
firebaseUid
|
||||
username
|
||||
isAdmin
|
||||
profileImageUri
|
||||
fargoRating
|
||||
activeVideoId
|
||||
createdAt
|
||||
updatedAt
|
||||
videosPrivateByDefault
|
||||
}
|
||||
|
@@ -216,6 +216,23 @@ query GetHeaderInfoByVideoId($videoId: Int!) {
|
||||
startTime
|
||||
}
|
||||
}
|
||||
query GetBannerInfoByVideoId($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
id
|
||||
name
|
||||
stream {
|
||||
id
|
||||
lastIntendedSegmentBound
|
||||
}
|
||||
owner {
|
||||
id
|
||||
}
|
||||
currentProcessing {
|
||||
id
|
||||
status
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
||||
findPrerecordTableLayout(b64Image: $b64Image, videoId: $videoId) {
|
||||
|
@@ -101,13 +101,8 @@ query GetUploadStreams(
|
||||
}
|
||||
}
|
||||
}
|
||||
query GetUploadStreamsWithDetails(
|
||||
$limit: Int! = 5
|
||||
$after: String = null
|
||||
$filters: VideoFilterInput = null
|
||||
) {
|
||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||
videos {
|
||||
|
||||
fragment UploadStreamWithDetails on VideoGQL {
|
||||
id
|
||||
name
|
||||
startTime
|
||||
@@ -117,6 +112,16 @@ query GetUploadStreamsWithDetails(
|
||||
uploadCompletionCursor
|
||||
uploadsCompleted
|
||||
}
|
||||
}
|
||||
|
||||
query GetUploadStreamsWithDetails(
|
||||
$limit: Int! = 5
|
||||
$after: String = null
|
||||
$filters: VideoFilterInput = null
|
||||
) {
|
||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||
videos {
|
||||
...UploadStreamWithDetails
|
||||
}
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
|
@@ -71,6 +71,16 @@ type Query {
|
||||
filters: VideoFilterInput = null
|
||||
feedInput: VideoFeedInputGQL = null
|
||||
): VideoHistoryGQL!
|
||||
getLongestRunsLeaderboard(
|
||||
interval: TimeInterval = null
|
||||
when: DateTime = null
|
||||
limit: Int! = 100
|
||||
requiredTags: [String!] = null
|
||||
): RunLeaderboardGQL!
|
||||
getMakesLeaderboard(
|
||||
interval: TimeInterval = null
|
||||
when: DateTime = null
|
||||
): CountLeaderboardGQL!
|
||||
}
|
||||
|
||||
type AggregateResultGQL {
|
||||
@@ -173,6 +183,7 @@ input FilterInput @oneOf {
|
||||
shotDirection: [ShotDirectionEnum!]
|
||||
videoId: [Int!]
|
||||
userId: [Int!]
|
||||
runId: [Int!]
|
||||
username: [String!]
|
||||
fargoRating: FloatRangeFilter
|
||||
make: [Boolean!]
|
||||
@@ -338,6 +349,8 @@ type RunGQL {
|
||||
videoId: Int!
|
||||
userId: Int!
|
||||
shots: [ShotGQL!]!
|
||||
video: VideoGQL!
|
||||
user: UserGQL!
|
||||
}
|
||||
|
||||
type ShotGQL {
|
||||
@@ -356,6 +369,8 @@ type ShotGQL {
|
||||
annotations: [ShotAnnotationGQL!]!
|
||||
falsePositiveScore: Float
|
||||
video: VideoGQL
|
||||
run: RunGQL
|
||||
runFeatures: RunFeaturesGQL
|
||||
}
|
||||
|
||||
type CueObjectFeaturesGQL {
|
||||
@@ -595,6 +610,11 @@ type VideoProcessingStatusGQL {
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
type RunFeaturesGQL {
|
||||
runId: Int!
|
||||
indexInRun: Int!
|
||||
}
|
||||
|
||||
input RunFilterInput {
|
||||
videoId: [Int!]
|
||||
userId: [Int!]
|
||||
@@ -719,6 +739,22 @@ input VideoFeedInputGQL @oneOf {
|
||||
allUsers: Boolean
|
||||
}
|
||||
|
||||
type RunLeaderboardGQL {
|
||||
entries: [RunGQL!]!
|
||||
}
|
||||
|
||||
type CountLeaderboardGQL {
|
||||
entries: [UserShotCountEntry!]!
|
||||
}
|
||||
|
||||
type UserShotCountEntry {
|
||||
user: UserGQL!
|
||||
value: Int!
|
||||
total: Int!
|
||||
proportionMade: Float!
|
||||
videos: Int!
|
||||
}
|
||||
|
||||
type Mutation {
|
||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||
|
Reference in New Issue
Block a user