Add timeline events you're going to
Mix format Fix chocobozzz feedback Only show upcoming events on feed Remove console log calls Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -3,6 +3,7 @@ import gql from 'graphql-tag';
|
||||
export const FETCH_PERSON = gql`
|
||||
query($name:String!) {
|
||||
person(preferredUsername: $name) {
|
||||
id,
|
||||
url,
|
||||
name,
|
||||
domain,
|
||||
@@ -11,9 +12,13 @@ query($name:String!) {
|
||||
suspended,
|
||||
avatarUrl,
|
||||
bannerUrl,
|
||||
feedTokens {
|
||||
token
|
||||
},
|
||||
organizedEvents {
|
||||
uuid,
|
||||
title
|
||||
title,
|
||||
beginsOn
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -28,6 +33,26 @@ query {
|
||||
}
|
||||
}`;
|
||||
|
||||
export const LOGGED_PERSON_WITH_GOING_TO_EVENTS = gql`
|
||||
query {
|
||||
loggedPerson {
|
||||
id,
|
||||
avatarUrl,
|
||||
preferredUsername,
|
||||
goingToEvents {
|
||||
uuid,
|
||||
title,
|
||||
beginsOn,
|
||||
participants {
|
||||
actor {
|
||||
id,
|
||||
preferredUsername
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}`;
|
||||
|
||||
export const IDENTITIES = gql`
|
||||
query {
|
||||
identities {
|
||||
|
||||
49
js/src/graphql/feed_tokens.ts
Normal file
49
js/src/graphql/feed_tokens.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const LOGGED_PERSON = gql`
|
||||
query {
|
||||
loggedPerson {
|
||||
id,
|
||||
avatarUrl,
|
||||
preferredUsername,
|
||||
}
|
||||
}`;
|
||||
|
||||
export const CREATE_FEED_TOKEN_ACTOR = gql`
|
||||
mutation createFeedToken($actor_id: Int!) {
|
||||
createFeedToken(actor_id: $actor_id) {
|
||||
token,
|
||||
actor {
|
||||
id
|
||||
},
|
||||
user {
|
||||
id
|
||||
}
|
||||
}
|
||||
}`;
|
||||
|
||||
export const CREATE_FEED_TOKEN = gql`
|
||||
mutation {
|
||||
createFeedToken {
|
||||
token,
|
||||
actor {
|
||||
id
|
||||
},
|
||||
user {
|
||||
id
|
||||
}
|
||||
}
|
||||
}`;
|
||||
|
||||
export const DELETE_FEED_TOKEN = gql`
|
||||
mutation deleteFeedToken($token: String!) {
|
||||
deleteFeedToken(token: $token) {
|
||||
actor {
|
||||
id
|
||||
},
|
||||
user {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user