Skip to content

Commit ce18f90

Browse files
committed
remove hash in push-sw.js. prettier formatting
1 parent 1ad0c5d commit ce18f90

File tree

7 files changed

+40
-44
lines changed

7 files changed

+40
-44
lines changed

components/LinkCard.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,9 @@ export default class LinkCard extends React.Component {
6767
<div className='item__footer'>
6868
<div className='info__stats'>
6969
<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')}
7573
</span>
7674
<span className='stats'>
7775
<a

components/MLinkCard.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,9 @@ export default class MLinkCard extends React.Component {
102102
<span>
103103
{' '}
104104
-{' '}
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')}
110108
</span>
111109
</div>
112110
<div className='bookmark'>

now.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linklet-app",
3-
"alias": "inklet-app.now.sh",
3+
"alias": "linklet-app.now.sh",
44
"env": {
55
"NODE_ENV": "production"
66
}

pages/profile.js

+9-12
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,15 @@ class Profile extends React.Component {
2020
/>
2121
<main>
2222
<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+
: ''}
3532
</p>
3633
{this.props.isAuthenticated ? (
3734
<div className='actual'>

push-sw.qwddbhjbhnj.js push-sw.js

File renamed without changes.

server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ app
4343
server.get('/sw.js', (req, res) =>
4444
res.sendFile(path.resolve('./.next/sw.js'))
4545
)
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'))
4848
)
4949

5050
// tos

static/favicons/manifest.json

+22-19
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
{
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+
}

0 commit comments

Comments
 (0)