1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143 | 2x
4x
4x
4x
4x
4x
4x
4x
4x
4x
4x
| export const posts = [
{
id: '590a365d749c2018007b23c6',
hasPermission: true,
isConfirmingDelete: false,
isDeleting: false,
isPastDue: false,
isWorking: false,
imageUrls: [],
links: [],
linkAttachment: {},
manager: false,
draftDetails: {
via: 'api',
userName: 'Herminia Kirlin PhD',
email: 'herminiakirlinphd@gmail.com',
avatarUrl: 'https://secure.gravatar.com/avatar/cde7e88ad2321f54ef63a5b5132443b0?s=80&d=mm',
createdAt: 'May 3rd at 2:58 PM (CDT)',
postAction: 'This post is scheduled for May 3rd',
isRetweet: false,
},
retweetCommentLinks: [],
scheduledAt: 1495553578,
text: 'New thing',
type: 'text',
view: 'drafts',
},
{
id: '590a3693749c200e007b23c7',
hasPermission: true,
isConfirmingDelete: false,
isDeleting: false,
isPastDue: false,
isWorking: false,
imageUrls: [],
links: [],
linkAttachment: {},
manager: false,
draftDetails: {
via: 'api',
userName: 'Herminia Kirlin PhD',
email: 'herminiakirlinphd@gmail.com',
avatarUrl: 'https://secure.gravatar.com/avatar/cde7e88ad2321f54ef63a5b5132443b0?s=80&d=mm',
createdAt: 'May 3rd at 2:59 PM (CDT)',
postAction: 'This post is scheduled for May 3rd',
isRetweet: false,
},
retweetCommentLinks: [],
scheduledAt: 1495553578,
text: 'Another thing, that is also new',
type: 'text',
view: 'drafts',
},
];
export const unscheduledPosts = posts.map(post => ({
...post,
draftDetails: {
via: 'api',
userName: 'Herminia Kirlin PhD',
email: 'herminiakirlinphd@gmail.com',
avatarUrl: 'https://secure.gravatar.com/avatar/cde7e88ad2321f54ef63a5b5132443b0?s=80&d=mm',
createdAt: 'May 3rd at 2:59 PM (CDT)',
postAction: 'This post will be added to the queue',
isRetweet: false,
},
scheduledAt: undefined,
}));
export const linkPosts = posts.map(post => ({
...post,
links: [{
rawString: 'http://buff.ly/1LTbUqv',
displayString: 'http://buff.ly/1LTbUqv',
url: 'https://austinstartups.com/what-is-a-product-designer-who-cares-eb38fc7afa7b#.i3r34a75x',
indices: [74, 96],
}],
linkAttachment: {
title: 'What is a Product Designer?',
description: 'A brief history at how history and markets influence design titles',
url: 'https://austinstartups.com/what-is-a-product-designer-who-cares-eb38fc7afa7b#.i3r34a75x',
thumbnailUrl: 'https://cdn-images-1.medium.com/max/2000/1*1Kua7bNJfvLlTxWqgxVKfw.jpeg',
},
draftDetails: {
userName: 'Ash',
avatarUrl: 'https://buffer-uploads.s3.amazonaws.com/510521020a19000b6a00001e/a476fed03b1de4e06563d6063d7d3ee0.jpg',
email: 'ash@buffer.com',
via: 'web',
createdAt: 'March 2nd at 12:45pm (GMT)',
postAction: 'This post is scheduled for 9:42pm (GMT)',
},
text: 'What is a Product Designer? An awesome story by @jgadapee over on Medium! http://buff.ly/1LTbUqv',
type: 'link',
}));
export const missingTypePosts = posts.map(post => ({
...post,
type: undefined,
}));
export const imagePosts = posts.map(post => ({
...post,
imageSrc: 'https://cdn-images-1.medium.com/max/2000/1*1Kua7bNJfvLlTxWqgxVKfw.jpeg',
type: 'image',
}));
export const multipleImagePosts = posts.map(post => ({
...post,
imageUrls: [
'https://cdn-images-1.medium.com/max/2000/1*1Kua7bNJfvLlTxWqgxVKfw.jpeg',
'https://cdn-images-1.medium.com/max/2000/1*1Kua7bNJfvLlTxWqgxVKfw.jpeg',
'https://cdn-images-1.medium.com/max/2000/1*1Kua7bNJfvLlTxWqgxVKfw.jpeg',
'https://cdn-images-1.medium.com/max/2000/1*1Kua7bNJfvLlTxWqgxVKfw.jpeg',
],
type: 'multipleImage',
}));
export const videoPosts = posts.map(post => ({
...post,
imageSrc: 'https://cdn-images-1.medium.com/max/2000/1*1Kua7bNJfvLlTxWqgxVKfw.jpeg',
type: 'video',
}));
export const managerPosts = posts.map(post => ({
...post,
manager: true,
}));
export const confirmDeletePosts = posts.map(post => ({
...post,
isConfirmingDelete: true,
}));
export const pastDuePosts = posts.map(post => ({
...post,
isPastDue: true,
}));
export const approvalViewPosts = posts.map(post => ({
...post,
view: 'approval',
}));
|