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
|
screenshotUri
|
||||||
stream {
|
stream {
|
||||||
id
|
id
|
||||||
|
lastIntendedSegmentBound
|
||||||
isCompleted
|
isCompleted
|
||||||
}
|
}
|
||||||
tableSize
|
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!) {
|
mutation editProfileImageUri($profileImageUri: String!) {
|
||||||
editProfileImageUri(profileImageUri: $profileImageUri) {
|
editProfileImageUri(profileImageUri: $profileImageUri) {
|
||||||
id
|
...UserFragment
|
||||||
firebaseUid
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query getLoggedInUser {
|
query getLoggedInUser {
|
||||||
getLoggedInUser {
|
getLoggedInUser {
|
||||||
id
|
...UserFragment
|
||||||
firebaseUid
|
}
|
||||||
username
|
}
|
||||||
isAdmin
|
|
||||||
profileImageUri
|
query GetUser($userId: Int!) {
|
||||||
fargoRating
|
getUser(userId: $userId) {
|
||||||
activeVideoId
|
...UserFragment
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
videosPrivateByDefault
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,6 +66,7 @@ query getUserRelationshipsMatching(
|
|||||||
relationships {
|
relationships {
|
||||||
toUser {
|
toUser {
|
||||||
username
|
username
|
||||||
|
profileImageUri
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
toUserFollows
|
toUserFollows
|
||||||
@@ -125,10 +118,12 @@ query getUserFollowingFollowers {
|
|||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
|
profileImageUri
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
|
profileImageUri
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -157,3 +152,16 @@ mutation editUser(
|
|||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fragment UserFragment on UserGQL {
|
||||||
|
id
|
||||||
|
firebaseUid
|
||||||
|
username
|
||||||
|
isAdmin
|
||||||
|
profileImageUri
|
||||||
|
fargoRating
|
||||||
|
activeVideoId
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
|
videosPrivateByDefault
|
||||||
|
}
|
||||||
|
@@ -216,6 +216,23 @@ query GetHeaderInfoByVideoId($videoId: Int!) {
|
|||||||
startTime
|
startTime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
query GetBannerInfoByVideoId($videoId: Int!) {
|
||||||
|
getVideo(videoId: $videoId) {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
stream {
|
||||||
|
id
|
||||||
|
lastIntendedSegmentBound
|
||||||
|
}
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
currentProcessing {
|
||||||
|
id
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
mutation FindPrerecordTableLayout($b64Image: String!, $videoId: Int!) {
|
||||||
findPrerecordTableLayout(b64Image: $b64Image, videoId: $videoId) {
|
findPrerecordTableLayout(b64Image: $b64Image, videoId: $videoId) {
|
||||||
|
@@ -101,13 +101,8 @@ query GetUploadStreams(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
query GetUploadStreamsWithDetails(
|
|
||||||
$limit: Int! = 5
|
fragment UploadStreamWithDetails on VideoGQL {
|
||||||
$after: String = null
|
|
||||||
$filters: VideoFilterInput = null
|
|
||||||
) {
|
|
||||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
|
||||||
videos {
|
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
startTime
|
startTime
|
||||||
@@ -117,6 +112,16 @@ query GetUploadStreamsWithDetails(
|
|||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
uploadsCompleted
|
uploadsCompleted
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetUploadStreamsWithDetails(
|
||||||
|
$limit: Int! = 5
|
||||||
|
$after: String = null
|
||||||
|
$filters: VideoFilterInput = null
|
||||||
|
) {
|
||||||
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
|
videos {
|
||||||
|
...UploadStreamWithDetails
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
|
@@ -71,6 +71,16 @@ type Query {
|
|||||||
filters: VideoFilterInput = null
|
filters: VideoFilterInput = null
|
||||||
feedInput: VideoFeedInputGQL = null
|
feedInput: VideoFeedInputGQL = null
|
||||||
): VideoHistoryGQL!
|
): 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 {
|
type AggregateResultGQL {
|
||||||
@@ -173,6 +183,7 @@ input FilterInput @oneOf {
|
|||||||
shotDirection: [ShotDirectionEnum!]
|
shotDirection: [ShotDirectionEnum!]
|
||||||
videoId: [Int!]
|
videoId: [Int!]
|
||||||
userId: [Int!]
|
userId: [Int!]
|
||||||
|
runId: [Int!]
|
||||||
username: [String!]
|
username: [String!]
|
||||||
fargoRating: FloatRangeFilter
|
fargoRating: FloatRangeFilter
|
||||||
make: [Boolean!]
|
make: [Boolean!]
|
||||||
@@ -338,6 +349,8 @@ type RunGQL {
|
|||||||
videoId: Int!
|
videoId: Int!
|
||||||
userId: Int!
|
userId: Int!
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
|
video: VideoGQL!
|
||||||
|
user: UserGQL!
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShotGQL {
|
type ShotGQL {
|
||||||
@@ -356,6 +369,8 @@ type ShotGQL {
|
|||||||
annotations: [ShotAnnotationGQL!]!
|
annotations: [ShotAnnotationGQL!]!
|
||||||
falsePositiveScore: Float
|
falsePositiveScore: Float
|
||||||
video: VideoGQL
|
video: VideoGQL
|
||||||
|
run: RunGQL
|
||||||
|
runFeatures: RunFeaturesGQL
|
||||||
}
|
}
|
||||||
|
|
||||||
type CueObjectFeaturesGQL {
|
type CueObjectFeaturesGQL {
|
||||||
@@ -595,6 +610,11 @@ type VideoProcessingStatusGQL {
|
|||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RunFeaturesGQL {
|
||||||
|
runId: Int!
|
||||||
|
indexInRun: Int!
|
||||||
|
}
|
||||||
|
|
||||||
input RunFilterInput {
|
input RunFilterInput {
|
||||||
videoId: [Int!]
|
videoId: [Int!]
|
||||||
userId: [Int!]
|
userId: [Int!]
|
||||||
@@ -719,6 +739,22 @@ input VideoFeedInputGQL @oneOf {
|
|||||||
allUsers: Boolean
|
allUsers: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RunLeaderboardGQL {
|
||||||
|
entries: [RunGQL!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type CountLeaderboardGQL {
|
||||||
|
entries: [UserShotCountEntry!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type UserShotCountEntry {
|
||||||
|
user: UserGQL!
|
||||||
|
value: Int!
|
||||||
|
total: Int!
|
||||||
|
proportionMade: Float!
|
||||||
|
videos: Int!
|
||||||
|
}
|
||||||
|
|
||||||
type Mutation {
|
type Mutation {
|
||||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||||
setLoggerLevel(path: String!, level: String!): Boolean!
|
setLoggerLevel(path: String!, level: String!): Boolean!
|
||||||
|
Reference in New Issue
Block a user