summaryrefslogtreecommitdiff
path: root/packages/client/src/ui/chat
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-11-18 23:32:43 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-11-18 23:32:43 +0900
commit73b5c129278bbcc19a95f2c599ac76f68f023c3a (patch)
tree62c4198ab091c14214eb3e552352a2ef41ee9055 /packages/client/src/ui/chat
parentUpdate CHANGELOG.md (diff)
downloadmisskey-73b5c129278bbcc19a95f2c599ac76f68f023c3a.tar.gz
misskey-73b5c129278bbcc19a95f2c599ac76f68f023c3a.tar.bz2
misskey-73b5c129278bbcc19a95f2c599ac76f68f023c3a.zip
introduce lint for client
Resolve #7998
Diffstat (limited to 'packages/client/src/ui/chat')
-rw-r--r--packages/client/src/ui/chat/date-separated-list.vue6
-rw-r--r--packages/client/src/ui/chat/index.vue4
-rw-r--r--packages/client/src/ui/chat/note.sub.vue2
-rw-r--r--packages/client/src/ui/chat/post-form.vue2
4 files changed, 2 insertions, 12 deletions
diff --git a/packages/client/src/ui/chat/date-separated-list.vue b/packages/client/src/ui/chat/date-separated-list.vue
index b21e425aba..1a36aca6dd 100644
--- a/packages/client/src/ui/chat/date-separated-list.vue
+++ b/packages/client/src/ui/chat/date-separated-list.vue
@@ -20,12 +20,6 @@ export default defineComponent({
},
},
- methods: {
- focus() {
- this.$slots.default[0].elm.focus();
- }
- },
-
render() {
const getDateText = (time: string) => {
const date = new Date(time).getDate();
diff --git a/packages/client/src/ui/chat/index.vue b/packages/client/src/ui/chat/index.vue
index e8d15b2cfc..68b179e0c0 100644
--- a/packages/client/src/ui/chat/index.vue
+++ b/packages/client/src/ui/chat/index.vue
@@ -194,10 +194,6 @@ export default defineComponent({
}
},
- onTransition() {
- if (window._scroll) window._scroll();
- },
-
showMenu() {
this.$refs.menu.show();
},
diff --git a/packages/client/src/ui/chat/note.sub.vue b/packages/client/src/ui/chat/note.sub.vue
index 75d9d98088..b9446753a0 100644
--- a/packages/client/src/ui/chat/note.sub.vue
+++ b/packages/client/src/ui/chat/note.sub.vue
@@ -6,7 +6,7 @@
<XNoteHeader class="header" :note="note" :mini="true"/>
<div class="body">
<p v-if="note.cw != null" class="cw">
- <Mfm v-if="note.cw != ''" class="text" :text="note.cw" :author="note.user" :i="$i" :custom-emojis="note.emojis" />
+ <Mfm v-if="note.cw != ''" class="text" :text="note.cw" :author="note.user" :i="$i" :custom-emojis="note.emojis"/>
<XCwButton v-model="showContent" :note="note"/>
</p>
<div class="content" v-show="note.cw == null || showContent">
diff --git a/packages/client/src/ui/chat/post-form.vue b/packages/client/src/ui/chat/post-form.vue
index 1f272c3603..dda9563f8d 100644
--- a/packages/client/src/ui/chat/post-form.vue
+++ b/packages/client/src/ui/chat/post-form.vue
@@ -18,7 +18,7 @@
</div>
</div>
<input v-show="useCw" ref="cw" class="cw" v-model="cw" :placeholder="$ts.annotation" @keydown="onKeydown">
- <textarea v-model="text" class="text" :class="{ withCw: useCw }" ref="text" :disabled="posting" :placeholder="placeholder" @keydown="onKeydown" @paste="onPaste" @compositionupdate="onCompositionUpdate" @compositionend="onCompositionEnd" />
+ <textarea v-model="text" class="text" :class="{ withCw: useCw }" ref="text" :disabled="posting" :placeholder="placeholder" @keydown="onKeydown" @paste="onPaste" @compositionupdate="onCompositionUpdate" @compositionend="onCompositionEnd"/>
<XPostFormAttaches class="attaches" :files="files" @updated="updateFiles" @detach="detachFile" @changeSensitive="updateFileSensitive" @changeName="updateFileName"/>
<XPollEditor v-if="poll" :poll="poll" @destroyed="poll = null" @updated="onPollUpdate"/>
<footer>