feat(MkPostForm): CW時に注釈の内容に関する説明とルールへの誘導 (#4)
This commit is contained in:
parent
4bc48fb54e
commit
99fa7ea967
3 changed files with 7 additions and 0 deletions
1
locales/index.d.ts
vendored
1
locales/index.d.ts
vendored
|
|
@ -988,6 +988,7 @@ export interface Locale {
|
|||
"disableFederationConfirm": string;
|
||||
"disableFederationConfirmWarn": string;
|
||||
"disableFederationOk": string;
|
||||
"contentWarningCheckRule": string;
|
||||
"invitationRequiredToRegister": string;
|
||||
"emailNotSupported": string;
|
||||
"postToTheChannel": string;
|
||||
|
|
|
|||
|
|
@ -985,6 +985,7 @@ letsLookAtTimeline: "タイムラインを見てみる"
|
|||
disableFederationConfirm: "連合なしにしますか?"
|
||||
disableFederationConfirmWarn: "連合なしにしても投稿は非公開になりません。ほとんどの場合、連合なしにする必要はありません。"
|
||||
disableFederationOk: "連合なしにする"
|
||||
contentWarningCheckRule: "R18に相当する内容を投稿する場合は、注釈に投稿の内容に関する簡単な説明を記述してください。\n詳しくはルールをご覧ください。https://service.misskey.art"
|
||||
invitationRequiredToRegister: "現在このサーバーは招待制です。招待コードをお持ちの方のみ登録できます。"
|
||||
emailNotSupported: "このサーバーではメール配信はサポートされていません"
|
||||
postToTheChannel: "チャンネルに投稿"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue