1
0
forked from mirror/misskey

lint fixes

This commit is contained in:
syuilo 2022-06-23 21:46:15 +09:00
parent 4f4d2b7c53
commit 3e1248ff35

View File

@ -17,30 +17,30 @@ export default defineComponent({
props: {
text: {
type: String,
required: true
required: true,
},
plain: {
type: Boolean,
default: false
default: false,
},
nowrap: {
type: Boolean,
default: false
default: false,
},
author: {
type: Object,
default: null
default: null,
},
i: {
type: Object,
default: null
default: null,
},
customEmojis: {
required: false,
},
isNote: {
type: Boolean,
default: true
default: true,
},
},
@ -82,7 +82,7 @@ export default defineComponent({
case 'italic': {
return h('i', {
style: 'font-style: oblique;'
style: 'font-style: oblique;',
}, genEl(token.children));
}
@ -201,13 +201,13 @@ export default defineComponent({
case 'small': {
return [h('small', {
style: 'opacity: 0.7;'
style: 'opacity: 0.7;',
}, genEl(token.children))];
}
case 'center': {
return [h('div', {
style: 'text-align:center;'
style: 'text-align:center;',
}, genEl(token.children))];
}
@ -231,7 +231,7 @@ export default defineComponent({
return [h(MkMention, {
key: Math.random(),
host: (token.props.host == null && this.author && this.author.host != null ? this.author.host : token.props.host) || host,
username: token.props.username
username: token.props.username,
})];
}
@ -239,7 +239,7 @@ export default defineComponent({
return [h(MkA, {
key: Math.random(),
to: this.isNote ? `/tags/${encodeURIComponent(token.props.hashtag)}` : `/explore/tags/${encodeURIComponent(token.props.hashtag)}`,
style: 'color:var(--hashtag);'
style: 'color:var(--hashtag);',
}, `#${token.props.hashtag}`)];
}
@ -255,18 +255,18 @@ export default defineComponent({
return [h(MkCode, {
key: Math.random(),
code: token.props.code,
inline: true
inline: true,
})];
}
case 'quote': {
if (!this.nowrap) {
return [h('div', {
class: 'quote'
class: 'quote',
}, genEl(token.children))];
} else {
return [h('span', {
class: 'quote'
class: 'quote',
}, genEl(token.children))];
}
}
@ -276,7 +276,7 @@ export default defineComponent({
key: Math.random(),
emoji: `:${token.props.name}:`,
customEmojis: this.customEmojis,
normal: this.plain
normal: this.plain,
})];
}
@ -285,7 +285,7 @@ export default defineComponent({
key: Math.random(),
emoji: token.props.emoji,
customEmojis: this.customEmojis,
normal: this.plain
normal: this.plain,
})];
}
@ -293,7 +293,7 @@ export default defineComponent({
return [h(MkFormula, {
key: Math.random(),
formula: token.props.formula,
block: false
block: false,
})];
}
@ -301,14 +301,14 @@ export default defineComponent({
return [h(MkFormula, {
key: Math.random(),
formula: token.props.formula,
block: true
block: true,
})];
}
case 'search': {
return [h(MkGoogle, {
key: Math.random(),
q: token.props.query
q: token.props.query,
})];
}
@ -322,5 +322,5 @@ export default defineComponent({
// Parse ast to DOM
return h('span', genEl(ast));
}
},
});