summaryrefslogtreecommitdiff
path: root/packages/client/src/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-06-23 21:46:15 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-06-23 21:46:15 +0900
commit3e1248ff3581ecba8c5456d2cea5a1c44adbf489 (patch)
tree7417291c2f0f5c3c5fbd5e0f34b1b7a5832ab7a8 /packages/client/src/components
parentrefactor: simplify ap/show with DbResolver (#8838) (diff)
downloadmisskey-3e1248ff3581ecba8c5456d2cea5a1c44adbf489.tar.gz
misskey-3e1248ff3581ecba8c5456d2cea5a1c44adbf489.tar.bz2
misskey-3e1248ff3581ecba8c5456d2cea5a1c44adbf489.zip
lint fixes
Diffstat (limited to 'packages/client/src/components')
-rw-r--r--packages/client/src/components/mfm.ts40
1 files changed, 20 insertions, 20 deletions
diff --git a/packages/client/src/components/mfm.ts b/packages/client/src/components/mfm.ts
index 4556a82d55..f7dbca0d30 100644
--- a/packages/client/src/components/mfm.ts
+++ b/packages/client/src/components/mfm.ts
@@ -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));
- }
+ },
});