diff options
Diffstat (limited to 'packages/frontend/src/const.ts')
| -rw-r--r-- | packages/frontend/src/const.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/frontend/src/const.ts b/packages/frontend/src/const.ts index 630e3a2a92..c0bf331ba6 100644 --- a/packages/frontend/src/const.ts +++ b/packages/frontend/src/const.ts @@ -162,3 +162,27 @@ export const DEFAULT_NOT_FOUND_IMAGE_URL = 'https://launcher.moe/missingpage.web export const DEFAULT_INFO_IMAGE_URL = 'https://launcher.moe/nothinghere.png'; export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'scale', 'position', 'fg', 'bg', 'border', 'font', 'blur', 'rainbow', 'sparkle', 'rotate', 'ruby', 'unixtime']; +export const MFM_PARAMS: Record<typeof MFM_TAGS[number], string[]> = { + tada: ['speed=', 'delay='], + jelly: ['speed=', 'delay='], + twitch: ['speed=', 'delay='], + shake: ['speed=', 'delay='], + spin: ['speed=', 'delay=', 'left', 'alternate', 'x', 'y'], + jump: ['speed=', 'delay='], + bounce: ['speed=', 'delay='], + flip: ['h', 'v'], + x2: [], + x3: [], + x4: [], + scale: ['x=', 'y='], + position: ['x=', 'y='], + fg: ['color='], + bg: ['color='], + border: ['width=', 'style=', 'color=', 'radius=', 'noclip'], + font: ['serif', 'monospace', 'cursive', 'fantasy', 'emoji', 'math'], + blur: [], + rainbow: ['speed=', 'delay='], + rotate: ['deg='], + ruby: [], + unixtime: [], +}; |