introduce lint for client

Resolve #7998
This commit is contained in:
syuilo
2021-11-18 23:32:43 +09:00
parent c850cef711
commit 73b5c12927
40 changed files with 817 additions and 153 deletions

View File

@ -128,7 +128,7 @@ export default defineComponent({
type: Boolean,
required: false
},
visibleUsers: {
initialVisibleUsers: {
type: Array,
required: false,
default: () => []
@ -167,6 +167,7 @@ export default defineComponent({
cw: null,
localOnly: this.$store.state.rememberNoteVisibility ? this.$store.state.localOnly : this.$store.state.defaultNoteLocalOnly,
visibility: (this.$store.state.rememberNoteVisibility ? this.$store.state.visibility : this.$store.state.defaultNoteVisibility) as typeof noteVisibilities[number],
visibleUsers: [],
autocomplete: null,
draghover: false,
quoteId: null,
@ -273,6 +274,10 @@ export default defineComponent({
this.localOnly = this.initialLocalOnly;
}
if (this.initialVisibleUsers) {
this.visibleUsers = this.initialVisibleUsers;
}
if (this.mention) {
this.text = this.mention.host ? `@${this.mention.username}@${toASCII(this.mention.host)}` : `@${this.mention.username}`;
this.text += ' ';