Skip to content

Commit b6f8361

Browse files
committed
Layout tweaks; Add Google Analytics
1 parent 0c5d20a commit b6f8361

File tree

11 files changed

+181
-124
lines changed

11 files changed

+181
-124
lines changed

components/Hero.vue

Lines changed: 0 additions & 4 deletions
This file was deleted.

components/Thing.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,30 +48,30 @@
4848
</button>
4949

5050
<a
51-
:href="'https://reddit' + item.subreddit"
51+
:href="'https://reddit.com/' + item.subreddit"
5252
target="_blank"
5353
class="thing__subreddit"
5454
>{{ item.subreddit }}</a>
5555
</div>
5656

5757
<div class="thing__info">
58-
<a
58+
<a
5959
:href="'https://reddit.com/u/' + item.author"
6060
target="_blank"
6161
class="thing__author"
6262
>{{ item.author }}</a>
6363

6464
<span class="thing__separator">&middot;</span>
6565

66-
<span
66+
<span
6767
v-if="relativeCreated"
6868
class="thing__time"
6969
>{{ relativeCreated }}</span>
7070

7171
<template v-if="item.domain">
7272
<span class="thing__separator">&middot;</span>
7373

74-
<a
74+
<a
7575
:href="item.url"
7676
target="_blank"
7777
class="thing__url"
@@ -80,8 +80,8 @@
8080
</div>
8181
</div>
8282

83-
<div
84-
v-if="item.title"
83+
<div
84+
v-if="item.title"
8585
class="thing__title"
8686
>
8787
<a
@@ -96,7 +96,7 @@
9696
</a>
9797
</div>
9898

99-
<div
99+
<div
100100
v-if="item.html"
101101
class="thing__body"
102102
>
@@ -107,7 +107,7 @@
107107
/>
108108
</div>
109109

110-
<div
110+
<div
111111
v-if="preview"
112112
class="thing__preview"
113113
>
@@ -221,7 +221,7 @@
221221
.thing__body {
222222
display: -webkit-box;
223223
-webkit-line-clamp: 4;
224-
-webkit-box-orient: vertical;
224+
-webkit-box-orient: vertical;
225225
226226
margin: 5px 5px 15px;
227227
@@ -313,7 +313,7 @@
313313
if (this.showNsfw) {
314314
return this.previewValid(this.item.preview) ? this.item.preview : null;
315315
}
316-
316+
317317
return this.previewValid(this.item.previewBlurred) ? this.item.previewBlurred : null;
318318
}
319319
@@ -336,7 +336,7 @@
336336
},
337337
338338
observe(options) {
339-
this.$emit('observe', options);
339+
this.$emit('observe', options);
340340
},
341341
342342
unsave() {

nuxt.config.js

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,47 +14,47 @@ const config = {
1414
// API routes.
1515
serverMiddleware: [
1616
session({
17-
store: new RedisStore({
18-
client: redisClient
17+
store: new RedisStore({
18+
client: redisClient
1919
}),
2020
secret: process.env.SESSION_SECRET,
2121
resave: false,
2222
saveUninitialized: false,
2323
}),
24-
{
25-
path: 'api/login',
26-
handler: '~/api/login.js',
24+
{
25+
path: 'api/login',
26+
handler: '~/api/login.js',
2727
},
2828
{
29-
path: 'api/logout',
29+
path: 'api/logout',
3030
handler: '~/api/logout.js',
3131
},
32-
{
33-
path: 'api/oauth',
34-
handler: '~/api/oauth.js',
32+
{
33+
path: 'api/oauth',
34+
handler: '~/api/oauth.js',
3535
},
3636
{
37-
path: 'api/me',
37+
path: 'api/me',
3838
handler: '~/api/me.js',
3939
},
4040
{
41-
path: 'api/saved',
41+
path: 'api/saved',
4242
handler: '~/api/saved.js',
4343
},
4444
{
45-
path: 'api/unsave',
45+
path: 'api/unsave',
4646
handler: '~/api/unsave.js',
4747
},
4848
{
49-
path: 'api/save',
49+
path: 'api/save',
5050
handler: '~/api/save.js',
5151
},
5252
{
53-
path: 'api/pin',
53+
path: 'api/pin',
5454
handler: '~/api/pin.js',
5555
},
5656
{
57-
path: 'api/unpin',
57+
path: 'api/unpin',
5858
handler: '~/api/unpin.js',
5959
},
6060
],
@@ -89,7 +89,7 @@ const config = {
8989

9090
// Customize the progress-bar color
9191
loading: { color: '#fff' },
92-
92+
9393
// Global CSS
9494
css: [],
9595

@@ -109,6 +109,13 @@ const config = {
109109
// Doc: https://axios.nuxtjs.org/usage
110110
'@nuxtjs/axios',
111111
'@nuxtjs/pwa',
112+
113+
[
114+
'@nuxtjs/google-analytics',
115+
{
116+
id: 'UA-154128321-1',
117+
},
118+
],
112119
],
113120

114121
// Axios module configuration

0 commit comments

Comments
 (0)