lint & cleanup

This commit is contained in:
Henry Jameson 2021-06-11 11:52:50 +03:00
parent 5834790d0b
commit 9421501c1e
3 changed files with 9 additions and 15 deletions

View File

@ -320,7 +320,3 @@ export const preProcessPerLine = (html, greentext) => {
return { newHtml, lastMentions } return { newHtml, lastMentions }
} }
export const getHeadTailLinks = (html) => {
// Exported object properties
}

View File

@ -222,15 +222,15 @@
</span> </span>
</div> </div>
<div <div
class="heading-reply-row"
v-if="isReply || hasMentionsLine" v-if="isReply || hasMentionsLine"
> class="heading-reply-row"
>
<span <span
class="glued-label"
v-if="isReply" v-if="isReply"
class="glued-label"
> >
<StatusPopover <StatusPopover
v-if="!isPreview" v-if="!isPreview"
:status-id="status.parent_visible && status.in_reply_to_status_id" :status-id="status.parent_visible && status.in_reply_to_status_id"
class="reply-to-popover" class="reply-to-popover"
style="min-width: 0" style="min-width: 0"
@ -301,6 +301,7 @@
</div> </div>
<StatusContent <StatusContent
ref="content"
:status="status" :status="status"
:no-heading="noHeading" :no-heading="noHeading"
:highlight="highlight" :highlight="highlight"
@ -309,23 +310,22 @@
@mediaplay="addMediaPlaying($event)" @mediaplay="addMediaPlaying($event)"
@mediapause="removeMediaPlaying($event)" @mediapause="removeMediaPlaying($event)"
@parseReady="setHeadTailLinks" @parseReady="setHeadTailLinks"
ref="content"
/> />
<div <div
v-if="inConversation && !isPreview && replies && replies.length" v-if="inConversation && !isPreview && replies && replies.length"
class="replies" class="replies"
> >
<span class="faint">{{ $t('status.replies_list') }}</span> <span class="faint">{{ $t('status.replies_list') }}</span>
<StatusPopover <StatusPopover
v-for="reply in replies" v-for="reply in replies"
:key="reply.id" :key="reply.id"
:status-id="reply.id" :status-id="reply.id"
> >
<button <button
class="button-unstyled -link reply-link" class="button-unstyled -link reply-link"
@click.prevent="gotoOriginal(reply.id)" @click.prevent="gotoOriginal(reply.id)"
> >
{{ reply.name }} {{ reply.name }}
</button> </button>
</StatusPopover> </StatusPopover>

View File

@ -52,9 +52,7 @@
:hide-mentions="hideMentions" :hide-mentions="hideMentions"
:greentext="mergedConfig.greentext" :greentext="mergedConfig.greentext"
@parseReady="setHeadTailLinks" @parseReady="setHeadTailLinks"
ref="text" />
>
</RichContent>
<MentionsLine <MentionsLine
v-if="!hideMentions && lastMentions.length > 0 && firstMentions.length === 0" v-if="!hideMentions && lastMentions.length > 0 && firstMentions.length === 0"
:mentions="lastMentions" :mentions="lastMentions"