1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-27 14:28:53 +09:00

docs: MFMヘルプドキュメントの更新

This commit is contained in:
NoriDev 2023-06-06 01:30:22 +09:00
parent f690477229
commit f167691a7c
5 changed files with 38 additions and 0 deletions

View File

@ -1614,6 +1614,10 @@ _mfm:
positionDescription: "Moves content by a specified location."
scale: "Scale"
scaleDescription: "Loosen content by the specified value."
fg: "Foreground color"
fgDescription: "Set the foreground color to the specified value."
bg: "Background color"
bgDescription: "Set the background color to the specified value."
plain: "Plain"
plainDescription: "Deactivates the effects of all MFM contained within this MFM effect."
_instanceTicker:

4
locales/index.d.ts vendored
View File

@ -1720,6 +1720,10 @@ export interface Locale {
"positionDescription": string;
"scale": string;
"scaleDescription": string;
"fg": string;
"fgDescription": string;
"bg": string;
"bgDescription": string;
"plain": string;
"plainDescription": string;
};

View File

@ -1636,6 +1636,10 @@ _mfm:
positionDescription: "指定した位置に移動させます。"
scale: "スケール"
scaleDescription: "指定した値で緩めます。"
fg: "描画色"
fgDescription: "指定した値で描画色を指定します。"
bg: "背景色"
bgDescription: "指定した値で背景色を指定します。"
plain: "プレーン"
plainDescription: "内側の構文を全て無効にします。"

View File

@ -1615,6 +1615,10 @@ _mfm:
positionDescription: "지정한 위치로 이동시켜요."
scale: "스케일"
scaleDescription: "지정한 값으로 늘려요."
fg: "전경색"
fgDescription: "지정한 값으로 전경색을 지정해요."
bg: "배경색"
bgDescription: "지정한 값으로 배경색을 지정해요."
plain: "평문"
plainDescription: "안에 있는 MFM 구문을 모두 무시하고 평문으로 표시해요."
_instanceTicker:

View File

@ -316,6 +316,26 @@
</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>
<div :class="$style.section">
<div :class="$style.title">{{ i18n.ts._mfm.plain }}</div>
<div :class="$style.content">
@ -370,6 +390,8 @@ let preview_sparkle = $ref('$[sparkle 🍮]');
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]');
let preview_plain = $ref('<plain>**bold** @mention #hashtag `code` $[x2 🍮]</plain>');
const headerActions = $computed(() => []);