Front-end fixes and updates

Especially Join/Leave event, Vue-Markdown replacement

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-02-25 17:20:06 +01:00
parent 3507438f17
commit c4e327508b
11 changed files with 772 additions and 950 deletions

View File

@@ -5,7 +5,8 @@ const participantQuery = `
actor {
preferredUsername,
avatarUrl,
name
name,
id
}
`;
@@ -117,23 +118,20 @@ export const EDIT_EVENT = gql`
`;
export const JOIN_EVENT = gql`
mutation JoinEvent($id: Int!, $actorId: Int!) {
mutation JoinEvent($eventId: Int!, $actorId: Int!) {
joinEvent(
id: $id,
eventId: $eventId,
actorId: $actorId
) {
actor {
${participantQuery}
},
role
}
}
`;
export const LEAVE_EVENT = gql`
mutation LeaveEvent($id: Int!, $actorId: Int!) {
mutation LeaveEvent($eventId: Int!, $actorId: Int!) {
leaveEvent(
id: $id,
eventId: $eventId,
actorId: $actorId
) {
actor {