2020-11-08 06:24:46 +00:00
|
|
|
<template>
|
|
|
|
<div class="mwysmxbg">
|
|
|
|
<div class="_section">
|
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.intro }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.mention }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.mentionDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_mention"/>
|
|
|
|
<MkTextarea v-model:value="preview_mention"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.hashtag }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.hashtagDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_hashtag"/>
|
|
|
|
<MkTextarea v-model:value="preview_hashtag"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.url }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.urlDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_url"/>
|
|
|
|
<MkTextarea v-model:value="preview_url"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.link }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.linkDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_link"/>
|
|
|
|
<MkTextarea v-model:value="preview_link"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.emoji }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.emojiDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_emoji"/>
|
|
|
|
<MkTextarea v-model:value="preview_emoji"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.bold }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.boldDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_bold"/>
|
|
|
|
<MkTextarea v-model:value="preview_bold"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.small }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.smallDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_small"/>
|
|
|
|
<MkTextarea v-model:value="preview_small"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-08 07:14:49 +00:00
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.quote }}</div>
|
2020-11-08 07:14:49 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.quoteDescription }}</p>
|
2020-11-08 07:14:49 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_quote"/>
|
|
|
|
<MkTextarea v-model:value="preview_quote"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.center }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.centerDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_center"/>
|
|
|
|
<MkTextarea v-model:value="preview_center"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.inlineCode }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.inlineCodeDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_inlineCode"/>
|
|
|
|
<MkTextarea v-model:value="preview_inlineCode"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.blockCode }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.blockCodeDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_blockCode"/>
|
|
|
|
<MkTextarea v-model:value="preview_blockCode"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.inlineMath }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.inlineMathDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
2020-11-08 07:14:49 +00:00
|
|
|
<Mfm :text="preview_inlineMath"/>
|
|
|
|
<MkTextarea v-model:value="preview_inlineMath"><span>MFM</span></MkTextarea>
|
2020-11-08 06:24:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.search }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.searchDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_search"/>
|
|
|
|
<MkTextarea v-model:value="preview_search"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.flip }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.flipDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_flip"/>
|
|
|
|
<MkTextarea v-model:value="preview_flip"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.jelly }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.jellyDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_jelly"/>
|
|
|
|
<MkTextarea v-model:value="preview_jelly"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.tada }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.tadaDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_tada"/>
|
|
|
|
<MkTextarea v-model:value="preview_tada"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.jump }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.jumpDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_jump"/>
|
|
|
|
<MkTextarea v-model:value="preview_jump"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-08 08:08:51 +00:00
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.bounce }}</div>
|
2020-11-08 08:08:51 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.bounceDescription }}</p>
|
2020-11-08 08:08:51 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_bounce"/>
|
|
|
|
<MkTextarea v-model:value="preview_bounce"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.spin }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.spinDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_spin"/>
|
|
|
|
<MkTextarea v-model:value="preview_spin"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.shake }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.shakeDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_shake"/>
|
|
|
|
<MkTextarea v-model:value="preview_shake"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="_section">
|
2020-12-26 01:47:36 +00:00
|
|
|
<div class="_title">{{ $ts._mfm.twitch }}</div>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="_content">
|
2020-12-26 01:47:36 +00:00
|
|
|
<p>{{ $ts._mfm.twitchDescription }}</p>
|
2020-11-08 06:24:46 +00:00
|
|
|
<div class="preview _panel">
|
|
|
|
<Mfm :text="preview_twitch"/>
|
|
|
|
<MkTextarea v-model:value="preview_twitch"><span>MFM</span></MkTextarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
import { faQuestionCircle } from '@fortawesome/free-regular-svg-icons';
|
|
|
|
import MkTextarea from '@/components/ui/textarea.vue';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
|
|
|
MkTextarea
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
INFO: {
|
2020-12-26 01:47:36 +00:00
|
|
|
title: this.$ts._mfm.cheatSheet,
|
2020-11-08 06:24:46 +00:00
|
|
|
icon: faQuestionCircle,
|
|
|
|
},
|
|
|
|
preview_mention: '@example',
|
|
|
|
preview_hashtag: '#test',
|
|
|
|
preview_url: `https://example.com`,
|
2020-12-26 01:47:36 +00:00
|
|
|
preview_link: `[${this.$ts._mfm.dummy}](https://example.com)`,
|
2020-12-19 01:55:52 +00:00
|
|
|
preview_emoji: `:${this.$instance.emojis[0].name}:`,
|
2020-12-26 01:47:36 +00:00
|
|
|
preview_bold: `**${this.$ts._mfm.dummy}**`,
|
|
|
|
preview_small: `<small>${this.$ts._mfm.dummy}</small>`,
|
|
|
|
preview_center: `<center>${this.$ts._mfm.dummy}</center>`,
|
2020-11-08 06:24:46 +00:00
|
|
|
preview_inlineCode: '`<: "Hello, world!"`',
|
|
|
|
preview_blockCode: '```\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```',
|
2020-11-08 07:14:49 +00:00
|
|
|
preview_inlineMath: '\\(x= \\frac{-b\' \\pm \\sqrt{(b\')^2-ac}}{a}\\)',
|
2020-12-26 01:47:36 +00:00
|
|
|
preview_quote: `> ${this.$ts._mfm.dummy}`,
|
|
|
|
preview_search: `${this.$ts._mfm.dummy} 検索`,
|
2020-11-08 06:24:46 +00:00
|
|
|
preview_jelly: `[jelly 🍮]`,
|
|
|
|
preview_tada: `[tada 🍮]`,
|
|
|
|
preview_jump: `[jump 🍮]`,
|
2020-11-08 08:08:51 +00:00
|
|
|
preview_bounce: `[bounce 🍮]`,
|
2020-11-08 06:24:46 +00:00
|
|
|
preview_shake: `[shake 🍮]`,
|
|
|
|
preview_twitch: `[twitch 🍮]`,
|
|
|
|
preview_spin: `[spin 🍮] [spin.left 🍮] [spin.alternate 🍮]\n[spin.x 🍮] [spin.x,left 🍮] [spin.x,alternate 🍮]\n[spin.y 🍮] [spin.y,left 🍮] [spin.y,alternate 🍮]`,
|
2020-12-26 01:47:36 +00:00
|
|
|
preview_flip: `[flip ${this.$ts._mfm.dummy}]\n[flip.v ${this.$ts._mfm.dummy}]\n[flip.h,v ${this.$ts._mfm.dummy}]`,
|
2020-11-08 06:24:46 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.mwysmxbg {
|
|
|
|
.preview {
|
|
|
|
padding: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|