Skip to content

Commit

Permalink
Everything but the excerpt
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed May 21, 2024
1 parent 6603695 commit f1cbda6
Show file tree
Hide file tree
Showing 4 changed files with 279 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/lib/api/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function get(
"projects",
"revisions",
"sections",
"notes",
"notes.user",
];
endpoint.searchParams.set("expand", expand.join(","));

Expand Down
180 changes: 165 additions & 15 deletions src/lib/api/fixtures/documents/document-expanded.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,17 @@
"notes": [
{
"id": 551,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 0,
"access": "public",
Expand All @@ -90,7 +100,17 @@
},
{
"id": 549,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 0,
"access": "public",
Expand All @@ -106,7 +126,17 @@
},
{
"id": 550,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 0,
"access": "public",
Expand All @@ -122,7 +152,17 @@
},
{
"id": 552,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 0,
"access": "public",
Expand All @@ -138,7 +178,17 @@
},
{
"id": 554,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 1,
"access": "public",
Expand All @@ -154,7 +204,17 @@
},
{
"id": 553,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 1,
"access": "public",
Expand All @@ -170,7 +230,17 @@
},
{
"id": 556,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 2,
"access": "public",
Expand All @@ -186,7 +256,17 @@
},
{
"id": 555,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 2,
"access": "public",
Expand All @@ -202,7 +282,17 @@
},
{
"id": 557,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 2,
"access": "public",
Expand All @@ -218,7 +308,17 @@
},
{
"id": 558,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 2,
"access": "public",
Expand All @@ -234,7 +334,17 @@
},
{
"id": 560,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 4,
"access": "public",
Expand All @@ -250,7 +360,17 @@
},
{
"id": 559,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 4,
"access": "public",
Expand All @@ -266,7 +386,17 @@
},
{
"id": 562,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 5,
"access": "public",
Expand All @@ -282,7 +412,17 @@
},
{
"id": 561,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 5,
"access": "public",
Expand All @@ -298,7 +438,17 @@
},
{
"id": 563,
"user": 126,
"user": {
"id": 126,
"avatar_url": "",
"name": "Chris Amico",
"organization": 14187,
"organizations": [14187],
"admin_organizations": [14187],
"username": "ChrisAmico_lSozDZNW",
"uuid": "caea06a2-ee1c-43e6-865a-a09078522bf1",
"verified_journalist": true
},
"organization": 60,
"page_number": 6,
"access": "public",
Expand Down
Loading

0 comments on commit f1cbda6

Please sign in to comment.