|
| 1 | +import _keyBy from 'lodash/keyBy' |
| 2 | +import moment from 'moment' |
| 3 | +import User from '../../_types/User' |
| 4 | +import organizationsToUsersData from './organizationsToUsersData' |
| 5 | + |
| 6 | +const list: User[] = [ |
| 7 | + { |
| 8 | + id: 1, |
| 9 | + firstName: 'Gevorg', |
| 10 | + lastName: 'H', |
| 11 | + username: 'johndoe1', |
| 12 | + email: 'john@doe.com', |
| 13 | + avatarUrl: 'https://avatars3.githubusercontent.com/u/3959008?v=3&s=40', |
| 14 | + userToOrganizations: organizationsToUsersData.byUserId[1], |
| 15 | + globalRole: 'admin', |
| 16 | + }, |
| 17 | + { |
| 18 | + id: 2, |
| 19 | + firstName: 'Jay', |
| 20 | + lastName: 'Nickolson', |
| 21 | + username: null, |
| 22 | + email: 'example@gmail.com', |
| 23 | + avatarUrl: |
| 24 | + 'https://tinyfac.es/data/avatars/475605E3-69C5-4D2B-8727-61B7BB8C4699-500w.jpeg', |
| 25 | + userToOrganizations: organizationsToUsersData.byUserId[2], |
| 26 | + }, |
| 27 | + { |
| 28 | + id: 3, |
| 29 | + firstName: 'Ana', |
| 30 | + lastName: 'De Armas', |
| 31 | + username: null, |
| 32 | + email: 'Ana+De+Armas@example.com', |
| 33 | + avatarUrl: |
| 34 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg', |
| 35 | + userToOrganizations: organizationsToUsersData.byUserId[3], |
| 36 | + }, |
| 37 | + { |
| 38 | + id: 4, |
| 39 | + firstName: 'Armas', |
| 40 | + lastName: 'De Ana', |
| 41 | + username: null, |
| 42 | + email: 'Ana+De+Armas@example.com', |
| 43 | + avatarUrl: |
| 44 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg', |
| 45 | + userToOrganizations: organizationsToUsersData.byUserId[4], |
| 46 | + }, |
| 47 | + { |
| 48 | + id: 5, |
| 49 | + firstName: 'Sonequa', |
| 50 | + lastName: 'Martin-Green', |
| 51 | + email: 'Sonequa+Martin+Green@example.com', |
| 52 | + avatarUrl: |
| 53 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMTgxMTc1MTYzM15BMl5BanBnXkFtZTgwNzI5NjMwOTE@._V1_UY256_CR16,0,172,256_AL_.jpg', |
| 54 | + userToOrganizations: organizationsToUsersData.byUserId[5], |
| 55 | + }, |
| 56 | + { |
| 57 | + id: 6, |
| 58 | + firstName: 'Gevorg', |
| 59 | + lastName: 'H', |
| 60 | + username: 'johndoe1', |
| 61 | + email: 'john@doe.com', |
| 62 | + avatarUrl: 'https://avatars3.githubusercontent.com/u/3959008?v=3&s=40', |
| 63 | + userToOrganizations: organizationsToUsersData.byUserId[1], |
| 64 | + globalRole: 'admin', |
| 65 | + }, |
| 66 | + { |
| 67 | + id: 7, |
| 68 | + firstName: 'Jay', |
| 69 | + lastName: 'Nickolson', |
| 70 | + username: null, |
| 71 | + email: 'example@gmail.com', |
| 72 | + avatarUrl: |
| 73 | + 'https://tinyfac.es/data/avatars/475605E3-69C5-4D2B-8727-61B7BB8C4699-500w.jpeg', |
| 74 | + userToOrganizations: organizationsToUsersData.byUserId[2], |
| 75 | + }, |
| 76 | + { |
| 77 | + id: 8, |
| 78 | + firstName: 'Ana', |
| 79 | + lastName: 'De Armas', |
| 80 | + username: null, |
| 81 | + email: 'Ana+De+Armas@example.com', |
| 82 | + avatarUrl: |
| 83 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg', |
| 84 | + userToOrganizations: organizationsToUsersData.byUserId[3], |
| 85 | + }, |
| 86 | + { |
| 87 | + id: 9, |
| 88 | + firstName: 'Armas', |
| 89 | + lastName: 'De Ana', |
| 90 | + username: null, |
| 91 | + email: 'Ana+De+Armas@example.com', |
| 92 | + avatarUrl: |
| 93 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg', |
| 94 | + userToOrganizations: organizationsToUsersData.byUserId[4], |
| 95 | + }, |
| 96 | + { |
| 97 | + id: 10, |
| 98 | + firstName: 'Sonequa', |
| 99 | + lastName: 'Martin-Green', |
| 100 | + email: 'Sonequa+Martin+Green@example.com', |
| 101 | + avatarUrl: |
| 102 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMTgxMTc1MTYzM15BMl5BanBnXkFtZTgwNzI5NjMwOTE@._V1_UY256_CR16,0,172,256_AL_.jpg', |
| 103 | + userToOrganizations: organizationsToUsersData.byUserId[5], |
| 104 | + }, |
| 105 | + { |
| 106 | + id: 11, |
| 107 | + firstName: 'Gevorg', |
| 108 | + lastName: 'H', |
| 109 | + username: 'johndoe1', |
| 110 | + email: 'john@doe.com', |
| 111 | + avatarUrl: 'https://avatars3.githubusercontent.com/u/3959008?v=3&s=40', |
| 112 | + userToOrganizations: organizationsToUsersData.byUserId[1], |
| 113 | + globalRole: 'admin', |
| 114 | + }, |
| 115 | + { |
| 116 | + id: 12, |
| 117 | + firstName: 'Jay', |
| 118 | + lastName: 'Nickolson', |
| 119 | + username: null, |
| 120 | + email: 'example@gmail.com', |
| 121 | + avatarUrl: |
| 122 | + 'https://tinyfac.es/data/avatars/475605E3-69C5-4D2B-8727-61B7BB8C4699-500w.jpeg', |
| 123 | + userToOrganizations: organizationsToUsersData.byUserId[2], |
| 124 | + }, |
| 125 | + { |
| 126 | + id: 13, |
| 127 | + firstName: 'Ana', |
| 128 | + lastName: 'De Armas', |
| 129 | + username: null, |
| 130 | + email: 'Ana+De+Armas@example.com', |
| 131 | + avatarUrl: |
| 132 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg', |
| 133 | + userToOrganizations: organizationsToUsersData.byUserId[3], |
| 134 | + }, |
| 135 | + { |
| 136 | + id: 14, |
| 137 | + firstName: 'Armas', |
| 138 | + lastName: 'De Ana', |
| 139 | + username: null, |
| 140 | + email: 'Ana+De+Armas@example.com', |
| 141 | + avatarUrl: |
| 142 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMjA3NjYzMzE1MV5BMl5BanBnXkFtZTgwNTA4NDY4OTE@._V1_UX172_CR0,0,172,256_AL_.jpg', |
| 143 | + userToOrganizations: organizationsToUsersData.byUserId[4], |
| 144 | + }, |
| 145 | + { |
| 146 | + id: 15, |
| 147 | + firstName: 'Sonequa', |
| 148 | + lastName: 'Martin-Green', |
| 149 | + email: 'Sonequa+Martin+Green@example.com', |
| 150 | + avatarUrl: |
| 151 | + 'https://images-na.ssl-images-amazon.com/images/M/MV5BMTgxMTc1MTYzM15BMl5BanBnXkFtZTgwNzI5NjMwOTE@._V1_UY256_CR16,0,172,256_AL_.jpg', |
| 152 | + userToOrganizations: organizationsToUsersData.byUserId[5], |
| 153 | + }, |
| 154 | +].map(item => { |
| 155 | + return { |
| 156 | + ...item, |
| 157 | + createdAt: moment() |
| 158 | + .subtract(item.id, 'days') |
| 159 | + .format(), |
| 160 | + } |
| 161 | +}) |
| 162 | + |
| 163 | +const byId: { [key: number]: User } = _keyBy(list, 'id') |
| 164 | + |
| 165 | +const usersData = { |
| 166 | + list, |
| 167 | + byId, |
| 168 | + current: byId[1], |
| 169 | +} |
| 170 | + |
| 171 | +export default usersData |
0 commit comments