feat(MkPostForm): CW時に注釈の内容に関する説明とルールへの誘導 (#4)

This commit is contained in:
Alliana 2023-07-06 01:14:59 +09:00 committed by Mogyuchi
parent 4bc48fb54e
commit 99fa7ea967
No known key found for this signature in database
GPG key ID: 59FD1FE61E03F2B4
3 changed files with 7 additions and 0 deletions

1
locales/index.d.ts vendored
View file

@ -988,6 +988,7 @@ export interface Locale {
"disableFederationConfirm": string;
"disableFederationConfirmWarn": string;
"disableFederationOk": string;
"contentWarningCheckRule": string;
"invitationRequiredToRegister": string;
"emailNotSupported": string;
"postToTheChannel": string;

View file

@ -985,6 +985,7 @@ letsLookAtTimeline: "タイムラインを見てみる"
disableFederationConfirm: "連合なしにしますか?"
disableFederationConfirmWarn: "連合なしにしても投稿は非公開になりません。ほとんどの場合、連合なしにする必要はありません。"
disableFederationOk: "連合なしにする"
contentWarningCheckRule: "R18に相当する内容を投稿する場合は、注釈に投稿の内容に関する簡単な説明を記述してください。\n詳しくはルールをご覧ください。https://service.misskey.art"
invitationRequiredToRegister: "現在このサーバーは招待制です。招待コードをお持ちの方のみ登録できます。"
emailNotSupported: "このサーバーではメール配信はサポートされていません"
postToTheChannel: "チャンネルに投稿"

View file

@ -59,6 +59,7 @@
<button class="_buttonPrimary" style="padding: 4px; border-radius: 8px;" @click="addVisibleUser"><i class="ti ti-plus ti-fw"></i></button>
</div>
</div>
<MkInfo v-if="useCw" warn :class="$style.contentWarningCheckRule">{{ i18n.ts.contentWarningCheckRule }}</MkInfo>
<MkInfo v-if="hasNotSpecifiedMentions" warn :class="$style.hasNotSpecifiedMentions">{{ i18n.ts.notSpecifiedMentionWarning }} - <button class="_textButton" @click="addMissingMention()">{{ i18n.ts.add }}</button></MkInfo>
<input v-show="useCw" ref="cwInputEl" v-model="cw" :class="$style.cw" :placeholder="i18n.ts.annotation" @keydown="onKeydown">
<div :class="[$style.textOuter, { [$style.withCw]: useCw }]">
@ -1046,6 +1047,10 @@ defineExpose({
background: var(--X4);
}
.contentWarningCheckRule {
margin: 0 20px 16px 20px;
}
.hasNotSpecifiedMentions {
margin: 0 20px 16px 20px;
}