Add links to reply and reply all pages

This commit is contained in:
Christian Bundy 2019-08-06 19:44:09 -07:00
parent a5dbc26d04
commit b8384eea68
No known key found for this signature in database
GPG Key ID: EB541AAEF4366237
4 changed files with 27 additions and 11451 deletions

1
.gitignore vendored
View File

@ -4,4 +4,5 @@ coverage/
dist/
tmp/
npm-debug.log*
package-lock.json
.DS_Store

11433
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -137,8 +137,12 @@ pre {
pointer-events: none;
}
.message > footer {
display: flex;
justify-content: space-between;
}
.message > footer > * {
margin-right: 1rem;
text-decoration: none;
}

View File

@ -28,7 +28,9 @@ module.exports = ({ msg }) => {
context: `/thread/${encoded.key}#${encoded.key}`,
parent: `/thread/${encoded.parent}#${encoded.parent}`,
avatar: msg.value.meta.author.avatar.url,
raw: `/raw/${encoded.key}`
raw: `/raw/${encoded.key}`,
reply: `/reply/${encoded.key}`,
replyAll: `/reply-all/${encoded.key}`
}
const isPrivate = Boolean(msg.value.meta.private)
@ -103,6 +105,8 @@ module.exports = ({ msg }) => {
`${likeCount}`
)
),
a({ href: url.reply }, 'reply'),
a({ href: url.replyAll }, 'reply all'),
a({ href: url.context }, 'context'),
parentLink,
a({ href: url.raw }, 'raw')