summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-07-25 01:47:01 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-07-25 01:47:01 +0900
commitda874f3383088dddbf7ce441b0c9d8f6512dfc9b (patch)
treeb7eb972a66372de998bcf37970ac3c69e229fe0a /src/client
parentrefactor(client): Use v-t for i18n (diff)
downloadsharkey-da874f3383088dddbf7ce441b0c9d8f6512dfc9b.tar.gz
sharkey-da874f3383088dddbf7ce441b0c9d8f6512dfc9b.tar.bz2
sharkey-da874f3383088dddbf7ce441b0c9d8f6512dfc9b.zip
perf(client): Use v-once for static contents
Diffstat (limited to 'src/client')
-rw-r--r--src/client/components/note.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue
index 062ca50188..376894f34b 100644
--- a/src/client/components/note.vue
+++ b/src/client/components/note.vue
@@ -34,19 +34,19 @@
</div>
</div>
<article class="article">
- <mk-avatar class="avatar" :user="appearNote.user"/>
+ <mk-avatar class="avatar" :user="appearNote.user" v-once/>
<div class="main">
<x-note-header class="header" :note="appearNote" :mini="true"/>
<div class="body" v-if="appearNote.deletedAt == null" ref="noteBody">
<p v-if="appearNote.cw != null" class="cw">
- <mfm v-if="appearNote.cw != ''" class="text" :text="appearNote.cw" :author="appearNote.user" :i="$store.state.i" :custom-emojis="appearNote.emojis" />
+ <mfm v-if="appearNote.cw != ''" class="text" :text="appearNote.cw" :author="appearNote.user" :i="$store.state.i" :custom-emojis="appearNote.emojis" v-once/>
<x-cw-button v-model="showContent" :note="appearNote"/>
</p>
<div class="content" v-show="appearNote.cw == null || showContent">
<div class="text">
<span v-if="appearNote.isHidden" style="opacity: 0.5">({{ $t('private') }})</span>
<router-link class="reply" v-if="appearNote.replyId" :to="`/notes/${appearNote.replyId}`"><fa :icon="faReply"/></router-link>
- <mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$store.state.i" :custom-emojis="appearNote.emojis"/>
+ <mfm v-if="appearNote.text" :text="appearNote.text" :author="appearNote.user" :i="$store.state.i" :custom-emojis="appearNote.emojis" v-once/>
<a class="rp" v-if="appearNote.renote != null">RN:</a>
</div>
<div class="files" v-if="appearNote.files.length > 0">