forked from AkkomaGang/akkoma-fe
remove parsing of sparkle
This commit is contained in:
parent
ca8689fc88
commit
261a9da374
1 changed files with 1 additions and 5 deletions
|
@ -1,13 +1,12 @@
|
||||||
import { defineComponent, h } from 'vue'
|
import { defineComponent, h } from 'vue'
|
||||||
import * as mfm from 'mfm-js'
|
import * as mfm from 'mfm-js'
|
||||||
import MentionLink from '../mention_link/mention_link.vue'
|
import MentionLink from '../mention_link/mention_link.vue'
|
||||||
import mention_link from '../mention_link/mention_link'
|
|
||||||
|
|
||||||
function concat (xss) {
|
function concat (xss) {
|
||||||
return ([]).concat(...xss)
|
return ([]).concat(...xss)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'font', 'blur', 'rainbow', 'sparkle', 'rotate']
|
export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'font', 'blur', 'rainbow', 'rotate']
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
props: {
|
props: {
|
||||||
|
@ -138,9 +137,6 @@ export default defineComponent({
|
||||||
style = 'animation: mfm-rainbow 1s linear infinite;'
|
style = 'animation: mfm-rainbow 1s linear infinite;'
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case 'sparkle': {
|
|
||||||
return h(MkSparkle, {}, genEl(token.children))
|
|
||||||
}
|
|
||||||
case 'rotate': {
|
case 'rotate': {
|
||||||
const degrees = parseInt(token.props.args.deg) || '90'
|
const degrees = parseInt(token.props.args.deg) || '90'
|
||||||
style = `transform: rotate(${degrees}deg); transform-origin: center center;`
|
style = `transform: rotate(${degrees}deg); transform-origin: center center;`
|
||||||
|
|
Loading…
Reference in a new issue