Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SKIP_PREFLIGHT_CHECK=true
REACT_APP_DOMAIN=https://quote.vote
NODE_ENV=production
REACT_APP_SERVER=https://api.quote.vote
REACT_APP_SERVER_WS=ws://api.quote.vote
NODE_ENV=development
REACT_APP_SERVER=https://sandbox.quote.vote
REACT_APP_SERVER_WS=ws://sandbox.quote.vote
HUSKY_SKIP_HOOKS=1 git rebase
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ and democratic technologists alike.
`git clone https://github.com/QuoteVote/quotevote-react.git && cd quotevote-react`
3. Create a `.env` file and add the following:
```
NODE_ENV=dev
REACT_APP_SERVER=https://api.quote.vote
REACT_APP_SERVER_WS=wss://api.quote.vote
NODE_ENV=development
REACT_APP_SERVER=https://sandbox.quote.vote
REACT_APP_SERVER_WS=wss://sandbox.quote.vote
REACT_APP_DOMAIN=https://quote.vote
```

Expand Down
37 changes: 21 additions & 16 deletions src/graphql/mutations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export const CREATE_GROUP = gql`
url
created
}
}`
}
`

export const SUBMIT_POST = gql`
mutation addPost($post: PostInput!) {
Expand Down Expand Up @@ -70,7 +71,7 @@ export const ADD_QUOTE = gql`
export const UPDATE_POST_BOOKMARK = gql`
mutation updatePostBookmark($postId: String!, $userId: String!) {
updatePostBookmark(postId: $postId, userId: $userId) {
_id,
_id
bookmarkedBy
}
}
Expand Down Expand Up @@ -100,12 +101,12 @@ export const FOLLOW_MUTATION = gql`
`

export const REQUEST_USER_ACCESS_MUTATION = gql`
mutation requestUserAccess($requestUserAccessInput: RequestUserAccessInput!) {
requestUserAccess(requestUserAccessInput: $requestUserAccessInput) {
_id
email
mutation requestUserAccess($requestUserAccessInput: RequestUserAccessInput!) {
requestUserAccess(requestUserAccessInput: $requestUserAccessInput) {
_id
email
}
}
}
`

export const SEND_INVESTOR_EMAIL = gql`
Expand Down Expand Up @@ -143,10 +144,7 @@ export const UPDATE_USER = gql`
`

export const UPDATE_USER_AVATAR = gql`
mutation updateUserAvatar(
$user_id: String!
$avatarQualities: JSON
) {
mutation updateUserAvatar($user_id: String!, $avatarQualities: JSON) {
updateUserAvatar(user_id: $user_id, avatarQualities: $avatarQualities) {
_id
username
Expand All @@ -158,9 +156,7 @@ export const UPDATE_USER_AVATAR = gql`
`

export const CREATE_POST_MESSAGE_ROOM = gql`
mutation createPostMessageRoom(
$postId: String!
) {
mutation createPostMessageRoom($postId: String!) {
createPostMessageRoom(postId: $postId) {
_id
users
Expand Down Expand Up @@ -214,7 +210,7 @@ export const ADD_ACTION_REACTION = gql`
`

export const UPDATE_MESSAGE_REACTION = gql`
mutation updateReaction($_id: String! $emoji: String!) {
mutation updateReaction($_id: String!, $emoji: String!) {
updateReaction(_id: $_id, emoji: $emoji) {
_id
emoji
Expand All @@ -223,7 +219,7 @@ export const UPDATE_MESSAGE_REACTION = gql`
`

export const UPDATE_ACTION_REACTION = gql`
mutation updateReaction($_id: String! $emoji: String!) {
mutation updateReaction($_id: String!, $emoji: String!) {
updateReaction(_id: $_id, emoji: $emoji) {
_id
emoji
Expand All @@ -247,3 +243,12 @@ export const DELETE_POST = gql`
}
}
`

export const UPDATE_FEATURED_SLOT = gql`
mutation updateFeaturedSlot($postId: String!, $featuredSlot: Int) {
updateFeaturedSlot(postId: $postId, featuredSlot: $featuredSlot) {
_id
featuredSlot
}
}
`
Loading