|
| 1 | +import Feed from './feed-cards'; // Assuming Feed is the component you want to create a story for |
| 2 | + |
| 3 | +const feedData = [ |
| 4 | + { |
| 5 | + id: 10270250, |
| 6 | + node_id: 'MDEwOlJlcG9zaXRvcnkxMDI3MDI1MA==', |
| 7 | + name: 'react', |
| 8 | + full_name: 'facebook/react', |
| 9 | + private: false, |
| 10 | + html_url: 'https://github.com/facebook/react', |
| 11 | + description: 'The library for web and native user interfaces.', |
| 12 | + fork: false, |
| 13 | + url: 'https://api.github.com/repos/facebook/react', |
| 14 | + languages_url: 'https://api.github.com/repos/facebook/react/languages', |
| 15 | + created_at: '2013-05-24T16:15:54Z', |
| 16 | + updated_at: '2024-03-17T02:37:45Z', |
| 17 | + pushed_at: '2024-03-17T01:34:23Z', |
| 18 | + homepage: 'https://react.dev', |
| 19 | + size: 405436, |
| 20 | + stargazers_count: 220201, |
| 21 | + watchers_count: 220201, |
| 22 | + language: 'JavaScript', |
| 23 | + languageData: { |
| 24 | + JavaScript: 4168197, |
| 25 | + HTML: 120786, |
| 26 | + CSS: 64424, |
| 27 | + 'C++': 44290, |
| 28 | + TypeScript: 21136, |
| 29 | + CoffeeScript: 17378, |
| 30 | + C: 5227, |
| 31 | + Shell: 2205, |
| 32 | + Python: 259, |
| 33 | + Makefile: 189, |
| 34 | + }, |
| 35 | + forks_count: 44998, |
| 36 | + open_issues_count: 1620, |
| 37 | + license: { |
| 38 | + key: 'mit', |
| 39 | + name: 'MIT License', |
| 40 | + spdx_id: 'MIT', |
| 41 | + url: 'https://api.github.com/licenses/mit', |
| 42 | + node_id: 'MDc6TGljZW5zZTEz', |
| 43 | + }, |
| 44 | + topics: ['declarative', 'frontend', 'javascript', 'library', 'react', 'ui'], |
| 45 | + subscribers_count: 6634, |
| 46 | + owner: { |
| 47 | + login: 'facebook', |
| 48 | + id: 69631, |
| 49 | + node_id: 'MDEyOk9yZ2FuaXphdGlvbjY5NjMx', |
| 50 | + avatar_url: 'https://avatars.githubusercontent.com/u/69631?v=4', |
| 51 | + }, |
| 52 | + }, |
| 53 | + { |
| 54 | + id: 1296269, |
| 55 | + node_id: 'MDEwOlJlcG9zaXRvcnkxMjk2MjY5', |
| 56 | + name: 'Hello-World', |
| 57 | + full_name: 'octocat/Hello-World', |
| 58 | + private: false, |
| 59 | + html_url: 'https://github.com/octocat/Hello-World', |
| 60 | + description: 'This your first repo!', |
| 61 | + fork: false, |
| 62 | + url: 'https://api.github.com/repos/octocat/Hello-World', |
| 63 | + homepage: 'https://github.com', |
| 64 | + forks_count: 9, |
| 65 | + forks: 9, |
| 66 | + stargazers_count: 80, |
| 67 | + watchers_count: 80, |
| 68 | + watchers: 80, |
| 69 | + size: 108, |
| 70 | + default_branch: 'master', |
| 71 | + open_issues_count: 0, |
| 72 | + open_issues: 0, |
| 73 | + is_template: false, |
| 74 | + topics: ['octocat', 'atom', 'electron', 'api'], |
| 75 | + has_issues: true, |
| 76 | + has_projects: true, |
| 77 | + has_wiki: true, |
| 78 | + has_pages: false, |
| 79 | + has_downloads: true, |
| 80 | + has_discussions: false, |
| 81 | + archived: false, |
| 82 | + disabled: false, |
| 83 | + visibility: 'public', |
| 84 | + pushed_at: '2011-01-26T19:06:43Z', |
| 85 | + created_at: '2011-01-26T19:01:12Z', |
| 86 | + updated_at: '2011-01-26T19:14:43Z', |
| 87 | + permissions: { |
| 88 | + pull: true, |
| 89 | + push: false, |
| 90 | + admin: false, |
| 91 | + }, |
| 92 | + allow_rebase_merge: true, |
| 93 | + temp_clone_token: 'ABTLWHOULUVAXGTRYU7OC2876QJ2O', |
| 94 | + allow_squash_merge: true, |
| 95 | + allow_auto_merge: false, |
| 96 | + delete_branch_on_merge: true, |
| 97 | + allow_merge_commit: true, |
| 98 | + subscribers_count: 42, |
| 99 | + network_count: 0, |
| 100 | + license: { |
| 101 | + key: 'mit', |
| 102 | + name: 'MIT License', |
| 103 | + spdx_id: 'MIT', |
| 104 | + url: 'https://api.github.com/licenses/mit', |
| 105 | + node_id: 'MDc6TGljZW5zZW1pdA==', |
| 106 | + }, |
| 107 | + organization: { |
| 108 | + login: 'octocat', |
| 109 | + id: 1, |
| 110 | + node_id: 'MDQ6VXNlcjE=', |
| 111 | + avatar_url: 'https://github.com/images/error/octocat_happy.gif', |
| 112 | + gravatar_id: '', |
| 113 | + url: 'https://api.github.com/users/octocat', |
| 114 | + html_url: 'https://github.com/octocat', |
| 115 | + followers_url: 'https://api.github.com/users/octocat/followers', |
| 116 | + following_url: 'https://api.github.com/users/octocat/following{/other_user}', |
| 117 | + gists_url: 'https://api.github.com/users/octocat/gists{/gist_id}', |
| 118 | + starred_url: 'https://api.github.com/users/octocat/starred{/owner}{/repo}', |
| 119 | + subscriptions_url: 'https://api.github.com/users/octocat/subscriptions', |
| 120 | + organizations_url: 'https://api.github.com/users/octocat/orgs', |
| 121 | + repos_url: 'https://api.github.com/users/octocat/repos', |
| 122 | + events_url: 'https://api.github.com/users/octocat/events{/privacy}', |
| 123 | + received_events_url: 'https://api.github.com/users/octocat/received_events', |
| 124 | + type: 'Organization', |
| 125 | + site_admin: false, |
| 126 | + }, |
| 127 | + }, |
| 128 | + { |
| 129 | + id: 1296269, |
| 130 | + node_id: 'MDEwOlJlcG9zaXRvcnkxMjk2MjY5', |
| 131 | + name: 'Hello-World-Template', |
| 132 | + full_name: 'octocat/Hello-World-Template', |
| 133 | + owner: { |
| 134 | + login: 'octocat', |
| 135 | + id: 1, |
| 136 | + node_id: 'MDQ6VXNlcjE=', |
| 137 | + avatar_url: 'https://github.com/images/error/octocat_happy.gif', |
| 138 | + gravatar_id: '', |
| 139 | + url: 'https://api.github.com/users/octocat', |
| 140 | + html_url: 'https://github.com/octocat', |
| 141 | + followers_url: 'https://api.github.com/users/octocat/followers', |
| 142 | + following_url: 'https://api.github.com/users/octocat/following{/other_user}', |
| 143 | + gists_url: 'https://api.github.com/users/octocat/gists{/gist_id}', |
| 144 | + starred_url: 'https://api.github.com/users/octocat/starred{/owner}{/repo}', |
| 145 | + subscriptions_url: 'https://api.github.com/users/octocat/subscriptions', |
| 146 | + organizations_url: 'https://api.github.com/users/octocat/orgs', |
| 147 | + repos_url: 'https://api.github.com/users/octocat/repos', |
| 148 | + events_url: 'https://api.github.com/users/octocat/events{/privacy}', |
| 149 | + received_events_url: 'https://api.github.com/users/octocat/received_events', |
| 150 | + type: 'User', |
| 151 | + site_admin: false, |
| 152 | + }, |
| 153 | + private: false, |
| 154 | + html_url: 'https://github.com/octocat/Hello-World-Template', |
| 155 | + description: 'This your first repo!', |
| 156 | + fork: false, |
| 157 | + url: 'https://api.github.com/repos/octocat/Hello-World-Template', |
| 158 | + git_url: 'git:github.com/octocat/Hello-World-Template.git', |
| 159 | + homepage: 'https://github.com', |
| 160 | + language: null, |
| 161 | + forks: 9, |
| 162 | + forks_count: 9, |
| 163 | + stargazers_count: 80, |
| 164 | + watchers_count: 80, |
| 165 | + watchers: 80, |
| 166 | + size: 108, |
| 167 | + default_branch: 'master', |
| 168 | + open_issues: 0, |
| 169 | + open_issues_count: 0, |
| 170 | + is_template: true, |
| 171 | + license: { |
| 172 | + key: 'mit', |
| 173 | + name: 'MIT License', |
| 174 | + url: 'https://api.github.com/licenses/mit', |
| 175 | + spdx_id: 'MIT', |
| 176 | + node_id: 'MDc6TGljZW5zZW1pdA==', |
| 177 | + html_url: 'https://api.github.com/licenses/mit', |
| 178 | + }, |
| 179 | + topics: ['octocat', 'atom', 'electron', 'api'], |
| 180 | + has_issues: true, |
| 181 | + has_projects: true, |
| 182 | + has_wiki: true, |
| 183 | + has_pages: false, |
| 184 | + has_downloads: true, |
| 185 | + archived: false, |
| 186 | + disabled: false, |
| 187 | + visibility: 'public', |
| 188 | + pushed_at: '2011-01-26T19:06:43Z', |
| 189 | + created_at: '2011-01-26T19:01:12Z', |
| 190 | + updated_at: '2011-01-26T19:14:43Z', |
| 191 | + permissions: { |
| 192 | + admin: false, |
| 193 | + push: false, |
| 194 | + pull: true, |
| 195 | + }, |
| 196 | + allow_rebase_merge: true, |
| 197 | + temp_clone_token: 'ABTLWHOULUVAXGTRYU7OC2876QJ2O', |
| 198 | + allow_squash_merge: true, |
| 199 | + allow_auto_merge: false, |
| 200 | + delete_branch_on_merge: true, |
| 201 | + allow_merge_commit: true, |
| 202 | + subscribers_count: 42, |
| 203 | + network_count: 0, |
| 204 | + }, |
| 205 | +]; |
| 206 | + |
| 207 | +export default { |
| 208 | + title: 'gitstream/components/Feed', |
| 209 | + component: Feed, |
| 210 | + parameters: { |
| 211 | + layout: 'centered', |
| 212 | + }, |
| 213 | +}; |
| 214 | + |
| 215 | +export const Default = { |
| 216 | + args: { items: feedData }, |
| 217 | +}; |
0 commit comments