|
| 1 | +export const mockHomeData = { |
| 2 | + data: { |
| 3 | + recentProjects: [ |
| 4 | + { |
| 5 | + name: 'Project 1', |
| 6 | + type: 'CODE', |
| 7 | + createdAt: null, |
| 8 | + key: 'project-1', |
| 9 | + openIssuesCount: 12, |
| 10 | + repositoriesCount: 2, |
| 11 | + __typename: 'ProjectNode', |
| 12 | + }, |
| 13 | + { |
| 14 | + name: 'Project 2', |
| 15 | + type: 'DOCUMENTATION', |
| 16 | + createdAt: null, |
| 17 | + key: 'project-2', |
| 18 | + openIssuesCount: 5, |
| 19 | + repositoriesCount: 1, |
| 20 | + __typename: 'ProjectNode', |
| 21 | + }, |
| 22 | + { |
| 23 | + name: 'Project 3', |
| 24 | + type: 'CODE', |
| 25 | + createdAt: null, |
| 26 | + key: 'project-3', |
| 27 | + openIssuesCount: 8, |
| 28 | + repositoriesCount: 3, |
| 29 | + __typename: 'ProjectNode', |
| 30 | + }, |
| 31 | + { |
| 32 | + name: 'Project 4', |
| 33 | + type: 'DOCUMENTATION', |
| 34 | + createdAt: null, |
| 35 | + key: 'project-4', |
| 36 | + openIssuesCount: 3, |
| 37 | + repositoriesCount: 1, |
| 38 | + __typename: 'ProjectNode', |
| 39 | + }, |
| 40 | + { |
| 41 | + name: 'Project 5', |
| 42 | + type: 'CODE', |
| 43 | + createdAt: null, |
| 44 | + key: 'project-5', |
| 45 | + openIssuesCount: 15, |
| 46 | + repositoriesCount: 2, |
| 47 | + __typename: 'ProjectNode', |
| 48 | + }, |
| 49 | + ], |
| 50 | + recentChapters: [ |
| 51 | + { |
| 52 | + name: 'Chapter 1', |
| 53 | + createdAt: '2025-02-20T14:30:00+00:00', |
| 54 | + suggestedLocation: '', |
| 55 | + region: 'Region 1', |
| 56 | + key: 'chapter-1', |
| 57 | + topContributors: [], |
| 58 | + __typename: 'ChapterNode', |
| 59 | + }, |
| 60 | + { |
| 61 | + name: 'Chapter 2', |
| 62 | + createdAt: '2025-02-19T09:15:00+00:00', |
| 63 | + suggestedLocation: '', |
| 64 | + region: 'Region 2', |
| 65 | + key: 'chapter-2', |
| 66 | + topContributors: [], |
| 67 | + __typename: 'ChapterNode', |
| 68 | + }, |
| 69 | + { |
| 70 | + name: 'Chapter 3', |
| 71 | + createdAt: '2025-02-18T11:45:00+00:00', |
| 72 | + suggestedLocation: '', |
| 73 | + region: 'Region 3', |
| 74 | + key: 'chapter-3', |
| 75 | + topContributors: [], |
| 76 | + __typename: 'ChapterNode', |
| 77 | + }, |
| 78 | + { |
| 79 | + name: 'Chapter 4', |
| 80 | + createdAt: '2025-02-17T13:20:00+00:00', |
| 81 | + suggestedLocation: '', |
| 82 | + region: 'Region 4', |
| 83 | + key: 'chapter-4', |
| 84 | + topContributors: [], |
| 85 | + __typename: 'ChapterNode', |
| 86 | + }, |
| 87 | + { |
| 88 | + name: 'Chapter 5', |
| 89 | + createdAt: '2025-02-16T16:40:00+00:00', |
| 90 | + suggestedLocation: '', |
| 91 | + region: 'Region 5', |
| 92 | + key: 'chapter-5', |
| 93 | + topContributors: [ |
| 94 | + { |
| 95 | + name: '', |
| 96 | + __typename: 'RepositoryContributorNode', |
| 97 | + }, |
| 98 | + ], |
| 99 | + __typename: 'ChapterNode', |
| 100 | + }, |
| 101 | + ], |
| 102 | + topContributors: [ |
| 103 | + { |
| 104 | + name: 'Contributor 1', |
| 105 | + login: 'contributor1', |
| 106 | + contributionsCount: 15423, |
| 107 | + avatarUrl: 'https://avatars.githubusercontent.com/u/1?v=4', |
| 108 | + repositoryName: 'Repository 1', |
| 109 | + repositoryUrl: 'https://github.com/contributor1/repository1', |
| 110 | + __typename: 'RepositoryContributorNode', |
| 111 | + }, |
| 112 | + { |
| 113 | + name: 'Contributor 2', |
| 114 | + login: 'contributor2', |
| 115 | + contributionsCount: 8956, |
| 116 | + avatarUrl: 'https://avatars.githubusercontent.com/u/2?v=4', |
| 117 | + repositoryName: 'Repository 2', |
| 118 | + repositoryUrl: 'https://github.com/contributor2/repository2', |
| 119 | + __typename: 'RepositoryContributorNode', |
| 120 | + }, |
| 121 | + ], |
| 122 | + recentIssues: [ |
| 123 | + { |
| 124 | + commentsCount: 5, |
| 125 | + createdAt: '2025-02-23T18:45:30+00:00', |
| 126 | + number: 1, |
| 127 | + title: 'Issue 1', |
| 128 | + author: { |
| 129 | + avatarUrl: 'https://avatars.githubusercontent.com/u/1?v=4', |
| 130 | + name: 'Author 1', |
| 131 | + __typename: 'UserNode', |
| 132 | + }, |
| 133 | + __typename: 'IssueNode', |
| 134 | + }, |
| 135 | + { |
| 136 | + commentsCount: 2, |
| 137 | + createdAt: '2025-02-25T18:45:30+00:00', |
| 138 | + number: 1, |
| 139 | + title: 'Issue 2', |
| 140 | + author: { |
| 141 | + avatarUrl: 'https://avatars.githubusercontent.com/u/2?v=4', |
| 142 | + name: 'Author 2', |
| 143 | + __typename: 'UserNode', |
| 144 | + }, |
| 145 | + __typename: 'IssueNode', |
| 146 | + }, |
| 147 | + ], |
| 148 | + recentReleases: [ |
| 149 | + { |
| 150 | + author: null, |
| 151 | + isPreRelease: true, |
| 152 | + name: 'Release 1', |
| 153 | + publishedAt: '2025-02-22T10:15:00+00:00', |
| 154 | + tagName: 'v1', |
| 155 | + __typename: 'ReleaseNode', |
| 156 | + }, |
| 157 | + { |
| 158 | + author: null, |
| 159 | + isPreRelease: false, |
| 160 | + name: 'Release 2', |
| 161 | + publishedAt: '2025-02-24T10:15:00+00:00', |
| 162 | + tagName: 'v3', |
| 163 | + __typename: 'ReleaseNode', |
| 164 | + }, |
| 165 | + ], |
| 166 | + statsOverview: { |
| 167 | + activeChaptersStats: 100, |
| 168 | + activeProjectsStats: 100, |
| 169 | + contributorsStats: 1000, |
| 170 | + countriesStats: 100, |
| 171 | + __typename: 'StatsNode', |
| 172 | + }, |
| 173 | + }, |
| 174 | +} |
0 commit comments