1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-16 23:58:59 +09:00
cherrypick/packages/frontend/src/pages/mfm-cheat-sheet.vue

445 lines
17 KiB
Vue
Raw Normal View History

2023-06-05 21:39:53 +09:00
<template>
<MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
<MkSpacer :contentMax="800">
2023-06-06 01:12:20 +09:00
<div :class="$style.root">
<div style="margin-bottom: 30px; padding-bottom: 16px; border-bottom: solid .5px var(--divider);">{{ i18n.ts._mfm.intro }}</div>
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.mention }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.mentionDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_mention"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_mention" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.hashtag }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.hashtagDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_hashtag"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_hashtag" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.url }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.urlDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_url"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_url" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.link }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.linkDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_link"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_link" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.emoji }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.emojiDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_emoji"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_emoji" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.bold }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.boldDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_bold"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_bold" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.small }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.smallDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_small"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_small" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.quote }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.quoteDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_quote"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_quote" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.center }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.centerDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_center"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_center" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.inlineCode }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.inlineCodeDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_inlineCode"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_inlineCode" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.blockCode }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.blockCodeDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_blockCode"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_blockCode" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
</div>
</div>
</div>
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.inlineMath }}</div>
<div :class="$style.content">
<p>{{ i18n.ts._mfm.inlineMathDescription }}</p>
<div :class="$style.preview">
<Mfm :text="preview_inlineMath"/>
<MkTextarea v-model="preview_inlineMath" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
<!-- deprecated
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.search }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.searchDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_search"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_search" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
-->
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.flip }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.flipDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_flip"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_flip" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.font }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.fontDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_font"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_font" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.x2 }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.x2Description }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_x2"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_x2" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.x3 }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.x3Description }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_x3"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_x3" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.x4 }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.x4Description }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_x4"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_x4" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.blur }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.blurDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_blur"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_blur" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.jelly }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.jellyDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_jelly"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_jelly" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.tada }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.tadaDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_tada"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_tada" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.jump }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.jumpDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_jump"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_jump" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.bounce }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.bounceDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_bounce"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_bounce" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.spin }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.spinDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_spin"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_spin" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.shake }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.shakeDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_shake"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_shake" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.twitch }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.twitchDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_twitch"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_twitch" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.rainbow }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.rainbowDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_rainbow"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_rainbow" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.sparkle }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.sparkleDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_sparkle"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_sparkle" :class="$style.text"><span>MFM {{ i18n.ts.sample }}</span></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.rotate }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.rotateDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_rotate"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_rotate" :class="$style.text"><span>MFM {{ i18n.ts.sample }}</span></MkTextarea>
</div>
</div>
</div>
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.position }}</div>
<div :class="$style.content">
<p>{{ i18n.ts._mfm.positionDescription }}</p>
<div :class="$style.preview">
<Mfm :text="preview_position"/>
<MkTextarea v-model="preview_position" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
</div>
</div>
</div>
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.scale }}</div>
<div :class="$style.content">
<p>{{ i18n.ts._mfm.scaleDescription }}</p>
<div :class="$style.preview">
<Mfm :text="preview_scale"/>
<MkTextarea v-model="preview_scale" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.fg }}</div>
<div :class="$style.content">
<p>{{ i18n.ts._mfm.fgDescription }}</p>
<div :class="$style.preview">
<Mfm :text="preview_fg"/>
<MkTextarea v-model="preview_fg" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
</div>
</div>
</div>
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.bg }}</div>
<div :class="$style.content">
<p>{{ i18n.ts._mfm.bgDescription }}</p>
<div :class="$style.preview">
<Mfm :text="preview_bg"/>
<MkTextarea v-model="preview_bg" :class="$style.text"><template #label>MFM {{ i18n.ts.sample }}</template></MkTextarea>
</div>
</div>
</div>
2023-06-06 01:12:20 +09:00
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.plain }}</div>
<div :class="$style.content">
2023-06-05 21:39:53 +09:00
<p>{{ i18n.ts._mfm.plainDescription }}</p>
2023-06-06 01:12:20 +09:00
<div :class="$style.preview">
2023-06-05 21:39:53 +09:00
<Mfm :text="preview_plain"/>
2023-06-06 01:12:20 +09:00
<MkTextarea v-model="preview_plain" :class="$style.text"><span>MFM {{ i18n.ts.sample }}</span></MkTextarea>
2023-06-05 21:39:53 +09:00
</div>
</div>
</div>
</div>
</MkSpacer>
</MkStickyContainer>
</template>
<script lang="ts" setup>
import { } from 'vue';
import MkTextarea from '@/components/MkTextarea.vue';
import { definePageMetadata } from '@/scripts/page-metadata';
import { i18n } from '@/i18n';
import { instance } from '@/instance';
import { customEmojis } from '@/custom-emojis';
let preview_mention = $ref('@example');
let preview_hashtag = $ref('#test');
let preview_url = $ref('https://example.com');
let preview_link = $ref(`[${i18n.ts._mfm.dummy}](https://example.com)`);
let preview_emoji = $ref(customEmojis.value.length ? `:${customEmojis.value[0].name}:` : ':emojiname:');
let preview_bold = $ref(`**${i18n.ts._mfm.dummy}**`);
let preview_small = $ref(`<small>${i18n.ts._mfm.dummy}</small>`);
let preview_center = $ref(`<center>${i18n.ts._mfm.dummy}</center>`);
let preview_inlineCode = $ref('`<: "Hello, world!"`');
let preview_blockCode = $ref('```\n~ (#i, 100) {\n\t<: ? ((i % 15) = 0) "FizzBuzz"\n\t\t.? ((i % 3) = 0) "Fizz"\n\t\t.? ((i % 5) = 0) "Buzz"\n\t\t. i\n}\n```');
2023-06-06 01:12:20 +09:00
let preview_inlineMath = $ref('\\(x= \\frac{-b\' \\pm \\sqrt{(b\')^2-ac}}{a}\\)');
2023-06-05 21:39:53 +09:00
let preview_quote = $ref(`> ${i18n.ts._mfm.dummy}`);
let preview_search = $ref(`${i18n.ts._mfm.dummy} 検索`);
let preview_jelly = $ref('$[jelly 🍮] $[jelly.speed=5s 🍮]');
let preview_tada = $ref('$[tada 🍮] $[tada.speed=5s 🍮]');
let preview_jump = $ref('$[jump 🍮] $[jump.speed=5s 🍮]');
let preview_bounce = $ref('$[bounce 🍮] $[bounce.speed=5s 🍮]');
let preview_shake = $ref('$[shake 🍮] $[shake.speed=5s 🍮]');
let preview_twitch = $ref('$[twitch 🍮] $[twitch.speed=5s 🍮]');
let preview_spin = $ref('$[spin 🍮] $[spin.left 🍮] $[spin.alternate 🍮]\n$[spin.x 🍮] $[spin.x,left 🍮] $[spin.x,alternate 🍮]\n$[spin.y 🍮] $[spin.y,left 🍮] $[spin.y,alternate 🍮]\n\n$[spin.speed=5s 🍮]');
let preview_flip = $ref(`$[flip ${i18n.ts._mfm.dummy}]\n$[flip.v ${i18n.ts._mfm.dummy}]\n$[flip.h,v ${i18n.ts._mfm.dummy}]`);
let preview_font = $ref(`$[font.serif ${i18n.ts._mfm.dummy}]\n$[font.monospace ${i18n.ts._mfm.dummy}]\n$[font.cursive ${i18n.ts._mfm.dummy}]\n$[font.fantasy ${i18n.ts._mfm.dummy}]`);
let preview_x2 = $ref('$[x2 🍮]');
let preview_x3 = $ref('$[x3 🍮]');
let preview_x4 = $ref('$[x4 🍮]');
let preview_blur = $ref(`$[blur ${i18n.ts._mfm.dummy}]`);
let preview_rainbow = $ref('$[rainbow 🍮] $[rainbow.speed=5s 🍮]');
let preview_sparkle = $ref('$[sparkle 🍮]');
2023-06-06 01:12:20 +09:00
let preview_rotate = $ref('$[rotate.deg=90 🍮]');
let preview_position = $ref('$[position.x=1 🍮]\n$[position.y=-1 🍮]\n\n$[position.x=3,y=-3 🍮]');
let preview_scale = $ref('$[scale.x=2 🍮]\n$[scale.y=2 🍮]\n\n$[scale.x=2.5,y=2 🍮]');
let preview_fg = $ref('$[fg.color=ffbcdc Cherry]$[fg.color=b1d3ff Pick]');
let preview_bg = $ref('$[bg.color=ffbcdc Cherry]$[bg.color=b1d3ff Pick]');
2023-06-05 21:39:53 +09:00
let preview_plain = $ref('<plain>**bold** @mention #hashtag `code` $[x2 🍮]</plain>');
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts._mfm.cheatSheet,
icon: 'ti ti-help-circle',
});
</script>
2023-06-06 01:12:20 +09:00
<style lang="scss" module>
.root {
2023-06-05 21:39:53 +09:00
background: var(--bg);
2023-06-06 01:12:20 +09:00
}
2023-06-05 21:39:53 +09:00
2023-06-06 01:12:20 +09:00
.section {
&:not(:last-child) {
margin-bottom: 30px;
}
}
2023-06-05 21:39:53 +09:00
2023-06-06 01:12:20 +09:00
.title {
position: sticky;
z-index: 1;
top: var(--stickyTop, 0px);
padding: 16px;
font-weight: bold;
-webkit-backdrop-filter: var(--blur, blur(10px));
backdrop-filter: var(--blur, blur(10px));
background-color: var(--X16);
}
2023-06-05 21:39:53 +09:00
2023-06-06 01:12:20 +09:00
.content {
> p {
margin: 0;
padding: 16px;
2023-06-05 21:39:53 +09:00
}
}
2023-06-06 01:12:20 +09:00
.preview {
border-top: solid 0.5px var(--divider);
padding: 16px;
}
.text {
padding: 12px 0 8px;
}
2023-06-05 21:39:53 +09:00
</style>