mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 06:06:43 -06:00
Add MFM cheatsheet setting in Pari Plus!
This commit is contained in:
parent
938b9d5896
commit
950b507a71
6 changed files with 10 additions and 1 deletions
|
@ -1288,6 +1288,7 @@ autoTranslateButton: "Display translation function on notes in different languag
|
||||||
showDetailTimeWhenHover: "Hover the timestamp of the note to expand the detailed time"
|
showDetailTimeWhenHover: "Hover the timestamp of the note to expand the detailed time"
|
||||||
noteClickToOpen: "Click to open note details"
|
noteClickToOpen: "Click to open note details"
|
||||||
enableFallbackReactButton: "Enable fallback reaction button"
|
enableFallbackReactButton: "Enable fallback reaction button"
|
||||||
|
enableMFMCheatsheet: "Enable MFM Cheatsheet in post form"
|
||||||
performance: "Performance"
|
performance: "Performance"
|
||||||
modified: "Modified"
|
modified: "Modified"
|
||||||
discard: "Discard"
|
discard: "Discard"
|
||||||
|
|
|
@ -1297,6 +1297,7 @@ autoTranslateButton: "在不同语言的帖文上显示翻译功能"
|
||||||
showDetailTimeWhenHover: "悬浮/长按帖文时间戳时,展开详细时间"
|
showDetailTimeWhenHover: "悬浮/长按帖文时间戳时,展开详细时间"
|
||||||
noteClickToOpen: "点击展开帖文详情"
|
noteClickToOpen: "点击展开帖文详情"
|
||||||
enableFallbackReactButton: "开启Fallback回应按钮"
|
enableFallbackReactButton: "开启Fallback回应按钮"
|
||||||
|
enableMFMCheatsheet: "在帖文编辑框中启用MFM Cheatsheet"
|
||||||
messageToFollower: "给关注者的消息"
|
messageToFollower: "给关注者的消息"
|
||||||
target: "对象"
|
target: "对象"
|
||||||
testCaptchaWarning: "这是用于验证码测试的功能。**请勿在生产环境中使用。**"
|
testCaptchaWarning: "这是用于验证码测试的功能。**请勿在生产环境中使用。**"
|
||||||
|
|
|
@ -1297,6 +1297,7 @@ autoTranslateButton: "在不同語言的貼文上顯示翻譯功能"
|
||||||
showDetailTimeWhenHover: "長按貼文時間戳記時展開詳細時間"
|
showDetailTimeWhenHover: "長按貼文時間戳記時展開詳細時間"
|
||||||
noteClickToOpen: "點擊展開貼文詳情"
|
noteClickToOpen: "點擊展開貼文詳情"
|
||||||
enableFallbackReactButton: "啓用Fallback回應鍵"
|
enableFallbackReactButton: "啓用Fallback回應鍵"
|
||||||
|
enableMFMCheatsheet: "在貼文編輯框中啓用MFM Cheatsheet"
|
||||||
messageToFollower: "給追隨者的訊息"
|
messageToFollower: "給追隨者的訊息"
|
||||||
target: "目標 "
|
target: "目標 "
|
||||||
testCaptchaWarning: "這是用於驗證碼測試的功能。**請勿在生產環境中使用。**"
|
testCaptchaWarning: "這是用於驗證碼測試的功能。**請勿在生產環境中使用。**"
|
||||||
|
|
|
@ -90,7 +90,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
<div :class="$style.footerRight">
|
<div :class="$style.footerRight">
|
||||||
<button v-tooltip="i18n.ts.previewNoteText" class="_button" :class="[$style.footerButton, { [$style.previewButtonActive]: showPreview }]" @click="showPreview = !showPreview"><i class="ti ti-eye"></i></button>
|
<button v-tooltip="i18n.ts.previewNoteText" class="_button" :class="[$style.footerButton, { [$style.previewButtonActive]: showPreview }]" @click="showPreview = !showPreview"><i class="ti ti-eye"></i></button>
|
||||||
<button v-tooltip="'MFM Cheatsheet'" class="_button" :class="$style.footerButton" @click="MFMWindow"><i class="ti ti-note"></i></button>
|
<button v-if="defaultStore.state.enableMFMCheatsheet" v-tooltip="'MFM Cheatsheet'" class="_button" :class="$style.footerButton" @click="MFMWindow"><i class="ti ti-note"></i></button>
|
||||||
<!--<button v-tooltip="i18n.ts.more" class="_button" :class="$style.footerButton" @click="showingOptions = !showingOptions"><i class="ti ti-dots"></i></button>-->
|
<!--<button v-tooltip="i18n.ts.more" class="_button" :class="$style.footerButton" @click="showingOptions = !showingOptions"><i class="ti ti-dots"></i></button>-->
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -10,6 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkSwitch v-model="showDetailTimeWhenHover">{{ i18n.ts.showDetailTimeWhenHover }}</MkSwitch>
|
<MkSwitch v-model="showDetailTimeWhenHover">{{ i18n.ts.showDetailTimeWhenHover }}</MkSwitch>
|
||||||
<MkSwitch v-model="noteClickToOpen">{{ i18n.ts.noteClickToOpen }}</MkSwitch>
|
<MkSwitch v-model="noteClickToOpen">{{ i18n.ts.noteClickToOpen }}</MkSwitch>
|
||||||
<MkSwitch v-model="enableFallbackReactButton">{{ i18n.ts.enableFallbackReactButton }}</MkSwitch>
|
<MkSwitch v-model="enableFallbackReactButton">{{ i18n.ts.enableFallbackReactButton }}</MkSwitch>
|
||||||
|
<MkSwitch v-model="enableMFMCheatsheet">{{ i18n.ts.enableMFMCheatsheet }}</MkSwitch>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -24,6 +25,7 @@ const autoTranslateButton = computed(defaultStore.makeGetterSetter('autoTranslat
|
||||||
const showDetailTimeWhenHover = computed(defaultStore.makeGetterSetter('showDetailTimeWhenHover'));
|
const showDetailTimeWhenHover = computed(defaultStore.makeGetterSetter('showDetailTimeWhenHover'));
|
||||||
const noteClickToOpen = computed(defaultStore.makeGetterSetter('noteClickToOpen'));
|
const noteClickToOpen = computed(defaultStore.makeGetterSetter('noteClickToOpen'));
|
||||||
const enableFallbackReactButton = computed(defaultStore.makeGetterSetter('enableFallbackReactButton'));
|
const enableFallbackReactButton = computed(defaultStore.makeGetterSetter('enableFallbackReactButton'));
|
||||||
|
const enableMFMCheatsheet = computed(defaultStore.makeGetterSetter('enableMFMCheatsheet'));
|
||||||
|
|
||||||
definePageMetadata(() => ({
|
definePageMetadata(() => ({
|
||||||
title: 'Pari Plus!',
|
title: 'Pari Plus!',
|
||||||
|
|
|
@ -523,6 +523,10 @@ export const defaultStore = markRaw(new Storage('base', {
|
||||||
where: 'device',
|
where: 'device',
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
enableMFMCheatsheet: {
|
||||||
|
where: 'device',
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// TODO: 他のタブと永続化されたstateを同期
|
// TODO: 他のタブと永続化されたstateを同期
|
||||||
|
|
Loading…
Reference in a new issue