|
| 1 | +export const getArticles = async () => { |
| 2 | + return articleMocks() |
| 3 | +} |
| 4 | + |
| 5 | +const articleMocks = () => { |
| 6 | + return [ |
| 7 | + { |
| 8 | + id: 1, |
| 9 | + _v: 1, |
| 10 | + placeId: 1, |
| 11 | + defaultLocale: "en", |
| 12 | + slug: "my-super-article", |
| 13 | + title: "My Super Article", |
| 14 | + mainImage: "https://picsum.photos/400/200", |
| 15 | + excerpt: "Lorem Ipsum has been the industry's standard dummy text.", |
| 16 | + body: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.", |
| 17 | + authorId: 1, |
| 18 | + authorName: "John Doe", |
| 19 | + publicationDate: "2021-01-01" |
| 20 | + }, |
| 21 | + { |
| 22 | + id: 2, |
| 23 | + _v: 1, |
| 24 | + placeId: 1, |
| 25 | + defaultLocale: "en", |
| 26 | + slug: "new-year-is-there", |
| 27 | + title: "New Year is there!", |
| 28 | + mainImage: "https://picsum.photos/400/200", |
| 29 | + excerpt: "Lorem Ipsum has been the industry's standard dummy text.", |
| 30 | + body: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.", |
| 31 | + authorId: 1, |
| 32 | + authorName: "John Doe", |
| 33 | + publicationDate: "2021-01-01" |
| 34 | + }, |
| 35 | + { |
| 36 | + id: 3, |
| 37 | + _v: 1, |
| 38 | + placeId: 1, |
| 39 | + defaultLocale: "en", |
| 40 | + slug: "all-you-want-to-know-about-x", |
| 41 | + title: "All you want to know about X", |
| 42 | + mainImage: "https://picsum.photos/400/200", |
| 43 | + excerpt: "Lorem Ipsum has been the industry's standard dummy text.", |
| 44 | + body: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.", |
| 45 | + authorId: 1, |
| 46 | + authorName: "John Doe", |
| 47 | + publicationDate: "2021-01-01" |
| 48 | + }, |
| 49 | + { |
| 50 | + id: 4, |
| 51 | + _v: 1, |
| 52 | + placeId: 2, |
| 53 | + defaultLocale: "en", |
| 54 | + slug: "he-is-gone-wooohoo", |
| 55 | + title: "He is gone, wooohoo!", |
| 56 | + mainImage: "https://picsum.photos/400/200", |
| 57 | + excerpt: "Lorem Ipsum has been the industry's standard dummy text.", |
| 58 | + body: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.", |
| 59 | + authorId: 1, |
| 60 | + authorName: "John Doe", |
| 61 | + publicationDate: "2021-01-01" |
| 62 | + }, |
| 63 | + { |
| 64 | + id: 5, |
| 65 | + _v: 1, |
| 66 | + placeId: 2, |
| 67 | + defaultLocale: "en", |
| 68 | + slug: "super-cool-stuff-here", |
| 69 | + title: "Super cool stuff here", |
| 70 | + mainImage: "https://picsum.photos/400/200", |
| 71 | + excerpt: "Lorem Ipsum has been the industry's standard dummy text.", |
| 72 | + body: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.", |
| 73 | + authorId: 1, |
| 74 | + authorName: "John Doe", |
| 75 | + publicationDate: "2021-01-01" |
| 76 | + }, |
| 77 | + { |
| 78 | + id: 6, |
| 79 | + _v: 1, |
| 80 | + placeId: 2, |
| 81 | + defaultLocale: "en", |
| 82 | + slug: "did-you-know-that", |
| 83 | + title: "Did you know that?", |
| 84 | + mainImage: "https://picsum.photos/400/200", |
| 85 | + excerpt: "Lorem Ipsum has been the industry's standard dummy text.", |
| 86 | + body: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.", |
| 87 | + authorId: 1, |
| 88 | + authorName: "John Doe", |
| 89 | + publicationDate: "2021-01-01" |
| 90 | + }, |
| 91 | + ] |
| 92 | +} |
| 93 | + |
0 commit comments