File tree 7 files changed +40
-44
lines changed
7 files changed +40
-44
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,9 @@ export default class LinkCard extends React.Component {
67
67
< div className = 'item__footer' >
68
68
< div className = 'info__stats' >
69
69
< span className = 'timestamp' >
70
- { isThisMonth ( link . timestamp ) ? (
71
- 'Added ' + distanceInWordsToNow ( link . timestamp ) + ' ' + 'ago'
72
- ) : (
73
- 'Added On ' + format ( link . timestamp , 'MMM, Do YYYY' )
74
- ) }
70
+ { isThisMonth ( link . timestamp )
71
+ ? 'Added ' + distanceInWordsToNow ( link . timestamp ) + ' ' + 'ago'
72
+ : 'Added On ' + format ( link . timestamp , 'MMM, Do YYYY' ) }
75
73
</ span >
76
74
< span className = 'stats' >
77
75
< a
Original file line number Diff line number Diff line change @@ -102,11 +102,9 @@ export default class MLinkCard extends React.Component {
102
102
< span >
103
103
{ ' ' }
104
104
-{ ' ' }
105
- { isThisMonth ( link . timestamp ) ? (
106
- distanceInWordsToNow ( link . timestamp ) + ' ' + 'ago'
107
- ) : (
108
- format ( link . timestamp , 'MMM, Do YYYY' )
109
- ) }
105
+ { isThisMonth ( link . timestamp )
106
+ ? distanceInWordsToNow ( link . timestamp ) + ' ' + 'ago'
107
+ : format ( link . timestamp , 'MMM, Do YYYY' ) }
110
108
</ span >
111
109
</ div >
112
110
< div className = 'bookmark' >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " linklet-app" ,
3
- "alias" : " inklet -app.now.sh" ,
3
+ "alias" : " linklet -app.now.sh" ,
4
4
"env" : {
5
5
"NODE_ENV" : " production"
6
6
}
Original file line number Diff line number Diff line change @@ -20,18 +20,15 @@ class Profile extends React.Component {
20
20
/>
21
21
< main >
22
22
< p className = 'info' >
23
- { this . props . url . query &&
24
- this . props . url . query . next === '/my-links' ? (
25
- 'Please login to view links added by you!...'
26
- ) : this . props . url . query &&
27
- this . props . url . query . next === '/submit-link' ? (
28
- 'Please login to submit new link'
29
- ) : this . props . url . query &&
30
- this . props . url . query . next === '/bookmarks' ? (
31
- 'Please login to view links bookmarked by you!..'
32
- ) : (
33
- ''
34
- ) }
23
+ { this . props . url . query && this . props . url . query . next === '/my-links'
24
+ ? 'Please login to view links added by you!...'
25
+ : this . props . url . query &&
26
+ this . props . url . query . next === '/submit-link'
27
+ ? 'Please login to submit new link'
28
+ : this . props . url . query &&
29
+ this . props . url . query . next === '/bookmarks'
30
+ ? 'Please login to view links bookmarked by you!..'
31
+ : '' }
35
32
</ p >
36
33
{ this . props . isAuthenticated ? (
37
34
< div className = 'actual' >
File renamed without changes.
Original file line number Diff line number Diff line change 43
43
server . get ( '/sw.js' , ( req , res ) =>
44
44
res . sendFile ( path . resolve ( './.next/sw.js' ) )
45
45
)
46
- server . get ( '/push-sw.qwddbhjbhnj. js' , ( req , res ) =>
47
- res . sendFile ( path . resolve ( './push-sw.qwddbhjbhnj. js' ) )
46
+ server . get ( '/push-sw.js' , ( req , res ) =>
47
+ res . sendFile ( path . resolve ( './push-sw.js' ) )
48
48
)
49
49
50
50
// tos
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " Linklet App" ,
3
- "short_name" : " Linklet" ,
4
- "description" : " The app that helps you find the best links shared by FCC community" ,
5
- "start_url" : " /" ,
6
- "theme_color" : " #253592" ,
7
- "background_color" : " #3f51b5" ,
8
- "display" : " standalone" ,
9
- "orientation" : " portrait" ,
10
- "gcm_sender_id" : " 73138728776" ,
11
- "icons" : [{
12
- "src" : " /static/favicons/android-chrome-192x192.png" ,
13
- "sizes" : " 192x192" ,
14
- "type" : " image/png"
15
- }, {
16
- "src" : " /static/favicons/android-chrome-512x512.png" ,
17
- "sizes" : " 512x512" ,
18
- "type" : " image/png"
19
- }]
20
- }
2
+ "name" : " Linklet App" ,
3
+ "short_name" : " Linklet" ,
4
+ "description" : " The app that helps you find the best links shared by FCC community" ,
5
+ "start_url" : " /" ,
6
+ "theme_color" : " #253592" ,
7
+ "background_color" : " #3f51b5" ,
8
+ "display" : " standalone" ,
9
+ "orientation" : " portrait" ,
10
+ "gcm_sender_id" : " 73138728776" ,
11
+ "icons" : [
12
+ {
13
+ "src" : " /static/favicons/android-chrome-192x192.png" ,
14
+ "sizes" : " 192x192" ,
15
+ "type" : " image/png"
16
+ },
17
+ {
18
+ "src" : " /static/favicons/android-chrome-512x512.png" ,
19
+ "sizes" : " 512x512" ,
20
+ "type" : " image/png"
21
+ }
22
+ ]
23
+ }
You can’t perform that action at this time.
0 commit comments