-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3871 from stefanosansone/feature/following-screen
Android - Following screen
- Loading branch information
Showing
98 changed files
with
5,201 additions
and
3,479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
mutation SetLabels($input: SetLabelsInput!) { | ||
setLabels(input: $input) { | ||
... on SetLabelsSuccess { | ||
labels { | ||
...LabelFields | ||
} | ||
setLabels(input: $input) { | ||
... on SetLabelsSuccess { | ||
labels { | ||
...LabelFields | ||
} | ||
} | ||
... on SetLabelsError { | ||
errorCodes | ||
} | ||
} | ||
... on SetLabelsError { | ||
errorCodes | ||
} | ||
} | ||
} |
18 changes: 9 additions & 9 deletions
18
android/Omnivore/app/src/main/graphql/ArchiveSavedItem.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
mutation SetLinkArchived($input: ArchiveLinkInput!) { | ||
setLinkArchived(input: $input) { | ||
... on ArchiveLinkSuccess { | ||
linkId | ||
message | ||
setLinkArchived(input: $input) { | ||
... on ArchiveLinkSuccess { | ||
linkId | ||
message | ||
} | ||
... on ArchiveLinkError { | ||
message | ||
errorCodes | ||
} | ||
} | ||
... on ArchiveLinkError { | ||
message | ||
errorCodes | ||
} | ||
} | ||
} |
113 changes: 57 additions & 56 deletions
113
android/Omnivore/app/src/main/graphql/ArticleContent.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,71 @@ | ||
query GetArticle($slug: String!) { | ||
article(username: "me", slug: $slug) { | ||
... on ArticleSuccess { | ||
article { | ||
...ArticleFields | ||
content | ||
highlights(input: { includeFriends: false }) { | ||
...HighlightFields | ||
article(username: "me", slug: $slug) { | ||
... on ArticleSuccess { | ||
article { | ||
...ArticleFields | ||
content | ||
highlights(input: { includeFriends: false }) { | ||
...HighlightFields | ||
} | ||
labels { | ||
...LabelFields | ||
} | ||
} | ||
} | ||
labels { | ||
...LabelFields | ||
... on ArticleError { | ||
errorCodes | ||
} | ||
} | ||
} | ||
... on ArticleError { | ||
errorCodes | ||
} | ||
} | ||
} | ||
|
||
fragment ArticleFields on Article { | ||
id | ||
title | ||
url | ||
author | ||
image | ||
savedAt | ||
createdAt | ||
publishedAt | ||
contentReader | ||
originalArticleUrl | ||
readingProgressPercent | ||
readingProgressAnchorIndex | ||
slug | ||
isArchived | ||
description | ||
linkId | ||
siteName | ||
state | ||
readAt | ||
updatedAt | ||
content | ||
wordsCount | ||
id | ||
title | ||
folder | ||
url | ||
author | ||
image | ||
savedAt | ||
createdAt | ||
publishedAt | ||
contentReader | ||
originalArticleUrl | ||
readingProgressPercent | ||
readingProgressAnchorIndex | ||
slug | ||
isArchived | ||
description | ||
linkId | ||
siteName | ||
state | ||
readAt | ||
updatedAt | ||
content | ||
wordsCount | ||
} | ||
|
||
fragment HighlightFields on Highlight { | ||
id | ||
type | ||
shortId | ||
quote | ||
prefix | ||
suffix | ||
patch | ||
annotation | ||
createdByMe | ||
createdAt | ||
updatedAt | ||
sharedAt | ||
color | ||
highlightPositionPercent | ||
highlightPositionAnchorIndex | ||
id | ||
type | ||
shortId | ||
quote | ||
prefix | ||
suffix | ||
patch | ||
annotation | ||
createdByMe | ||
createdAt | ||
updatedAt | ||
sharedAt | ||
color | ||
highlightPositionPercent | ||
highlightPositionAnchorIndex | ||
} | ||
|
||
fragment LabelFields on Label { | ||
id | ||
name | ||
color | ||
description | ||
createdAt | ||
id | ||
name | ||
color | ||
description | ||
createdAt | ||
} |
18 changes: 9 additions & 9 deletions
18
android/Omnivore/app/src/main/graphql/CreateHighlight.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
mutation CreateHighlight($input: CreateHighlightInput!) { | ||
createHighlight(input: $input) { | ||
... on CreateHighlightSuccess { | ||
highlight { | ||
...HighlightFields | ||
} | ||
} | ||
createHighlight(input: $input) { | ||
... on CreateHighlightSuccess { | ||
highlight { | ||
...HighlightFields | ||
} | ||
} | ||
|
||
... on CreateHighlightError { | ||
errorCodes | ||
... on CreateHighlightError { | ||
errorCodes | ||
} | ||
} | ||
} | ||
} |
26 changes: 13 additions & 13 deletions
26
android/Omnivore/app/src/main/graphql/CreateLabel.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
mutation CreateLabel($input: CreateLabelInput!) { | ||
createLabel(input: $input) { | ||
... on CreateLabelSuccess { | ||
label { | ||
id | ||
name | ||
color | ||
description | ||
createdAt | ||
} | ||
createLabel(input: $input) { | ||
... on CreateLabelSuccess { | ||
label { | ||
id | ||
name | ||
color | ||
description | ||
createdAt | ||
} | ||
} | ||
... on CreateLabelError { | ||
errorCodes | ||
} | ||
} | ||
... on CreateLabelError { | ||
errorCodes | ||
} | ||
} | ||
} |
18 changes: 9 additions & 9 deletions
18
android/Omnivore/app/src/main/graphql/DeleteHighlight.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
mutation DeleteHighlight($highlightId: ID!) { | ||
deleteHighlight(highlightId: $highlightId) { | ||
... on DeleteHighlightSuccess { | ||
highlight { | ||
id | ||
} | ||
deleteHighlight(highlightId: $highlightId) { | ||
... on DeleteHighlightSuccess { | ||
highlight { | ||
id | ||
} | ||
} | ||
... on DeleteHighlightError { | ||
errorCodes | ||
} | ||
} | ||
... on DeleteHighlightError { | ||
errorCodes | ||
} | ||
} | ||
} |
18 changes: 9 additions & 9 deletions
18
android/Omnivore/app/src/main/graphql/DeleteSavedItem.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
mutation SetBookmarkArticle($input: SetBookmarkArticleInput!) { | ||
setBookmarkArticle(input: $input) { | ||
... on SetBookmarkArticleSuccess { | ||
bookmarkedArticle { | ||
id | ||
} | ||
setBookmarkArticle(input: $input) { | ||
... on SetBookmarkArticleSuccess { | ||
bookmarkedArticle { | ||
id | ||
} | ||
} | ||
... on SetBookmarkArticleError { | ||
errorCodes | ||
} | ||
} | ||
... on SetBookmarkArticleError { | ||
errorCodes | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
query GetLabels { | ||
labels { | ||
... on LabelsSuccess { | ||
labels { | ||
...LabelFields | ||
} | ||
labels { | ||
... on LabelsSuccess { | ||
labels { | ||
...LabelFields | ||
} | ||
} | ||
... on LabelsError { | ||
errorCodes | ||
} | ||
} | ||
... on LabelsError { | ||
errorCodes | ||
} | ||
} | ||
} |
40 changes: 20 additions & 20 deletions
40
android/Omnivore/app/src/main/graphql/MergeHighlight.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
mutation MergeHighlight($input: MergeHighlightInput!) { | ||
mergeHighlight(input: $input) { | ||
... on MergeHighlightSuccess { | ||
highlight { | ||
id | ||
shortId | ||
quote | ||
prefix | ||
suffix | ||
patch | ||
createdAt | ||
updatedAt | ||
annotation | ||
sharedAt | ||
createdByMe | ||
} | ||
overlapHighlightIdList | ||
mergeHighlight(input: $input) { | ||
... on MergeHighlightSuccess { | ||
highlight { | ||
id | ||
shortId | ||
quote | ||
prefix | ||
suffix | ||
patch | ||
createdAt | ||
updatedAt | ||
annotation | ||
sharedAt | ||
createdByMe | ||
} | ||
overlapHighlightIdList | ||
} | ||
... on MergeHighlightError { | ||
errorCodes | ||
} | ||
} | ||
... on MergeHighlightError { | ||
errorCodes | ||
} | ||
} | ||
} |
22 changes: 11 additions & 11 deletions
22
android/Omnivore/app/src/main/graphql/ReadingProgressMutation.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
mutation SaveArticleReadingProgress($input: SaveArticleReadingProgressInput!) { | ||
saveArticleReadingProgress(input: $input) { | ||
... on SaveArticleReadingProgressSuccess { | ||
updatedArticle { | ||
id | ||
readingProgressPercent | ||
readingProgressAnchorIndex | ||
} | ||
saveArticleReadingProgress(input: $input) { | ||
... on SaveArticleReadingProgressSuccess { | ||
updatedArticle { | ||
id | ||
readingProgressPercent | ||
readingProgressAnchorIndex | ||
} | ||
} | ||
... on SaveArticleReadingProgressError { | ||
errorCodes | ||
} | ||
} | ||
... on SaveArticleReadingProgressError { | ||
errorCodes | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
mutation SaveUrl($input: SaveUrlInput!) { | ||
saveUrl(input: $input) { | ||
... on SaveSuccess { | ||
url | ||
saveUrl(input: $input) { | ||
... on SaveSuccess { | ||
url | ||
} | ||
... on SaveError { | ||
errorCodes | ||
} | ||
} | ||
... on SaveError { | ||
errorCodes | ||
} | ||
} | ||
} |
Oops, something went wrong.