feat: ノート作成フォームの「ノート」ボタンを「にゃん!」に変更できるオプションを追加

This commit is contained in:
NoriDev 2023-08-07 16:59:10 +09:00
parent bd936458b5
commit 85e9e1da16
8 changed files with 26 additions and 2 deletions

View file

@ -27,6 +27,7 @@
### General
- 스크롤 시 요소 표시(헤더, 플로팅 버튼, 탐색 모음)를 사용자화 할 수 있는 옵션 추가
- 노트 작성 폼의 "노트" 버튼을 "냥!"으로 변경할 수 있는 옵션 추가
### Client
- 이모티콘 피커의 검색 건수를 100개로 증가 (misskey-dev/misskey#11371)

View file

@ -1,5 +1,6 @@
---
_lang_: "English"
nya: "Nyan!"
displayHeaderNavBarWhenScroll: "Show elements when scrolling (header, floating buttons, navigation bar)"
addSingle: "Add just one"
addMultiple: "Add multiple"
@ -1175,6 +1176,8 @@ _cherrypick:
reactableRemoteReaction: "Allow remote custom emoji reactions to react if there is an emoji with the same name on this server."
showFollowingMessageInsteadOfButton: "Do not show the follow button in the notification field if you are already following someone"
mobileTimelineHeaderChange: "Timeline header design change in mobile environment"
renameTheButtonInPostFormToNya: "Change the \"Note\" button on the note-posting form to \"Nyan!\""
renameTheButtonInPostFormToNyaDescription: "Outside of the note-posting form, they are still as \"Note\"."
_displayHeaderNavBarWhenScroll:
all: "Display all"
hideHeaderOnly: "Hide header only"

3
locales/index.d.ts vendored
View file

@ -3,6 +3,7 @@
// Do not edit this file directly.
export interface Locale {
"_lang_": string;
"nya": string;
"displayHeaderNavBarWhenScroll": string;
"addSingle": string;
"addMultiple": string;
@ -1179,6 +1180,8 @@ export interface Locale {
"reactableRemoteReaction": string;
"showFollowingMessageInsteadOfButton": string;
"mobileTimelineHeaderChange": string;
"renameTheButtonInPostFormToNya": string;
"renameTheButtonInPostFormToNyaDescription": string;
};
"_displayHeaderNavBarWhenScroll": {
"all": string;

View file

@ -1,5 +1,6 @@
_lang_: "日本語"
nya: "にゃん!"
displayHeaderNavBarWhenScroll: "スクロール時の要素表示(ヘッダー、フローティングボタン、ナビゲーションバー)"
addSingle: "一つだけ追加"
addMultiple: "複数追加"
@ -1177,6 +1178,8 @@ _cherrypick:
reactableRemoteReaction: "リモートのカスタム絵文字リアクションでも、このサーバーに同じ名前の絵文字があればリアクションできるようにする"
showFollowingMessageInsteadOfButton: "既にフォローしている場合、通知欄にフォローボタンを表示しない"
mobileTimelineHeaderChange: "モバイル環境でタイムラインのヘッダーデザインを変更"
renameTheButtonInPostFormToNya: "ノート作成画面の「ノート」ボタンを「にゃ!」に変更する"
renameTheButtonInPostFormToNyaDescription: "にゃあにゃんにゃんにゃんにゃにゃん?"
_displayHeaderNavBarWhenScroll:
all: "全て表示"

View file

@ -1,5 +1,6 @@
---
_lang_: "한국어"
nya: "냥!"
displayHeaderNavBarWhenScroll: "스크롤 시 요소 표시 (헤더, 플로팅 버튼, 탐색 모음)"
addSingle: "하나만 추가"
addMultiple: "여러 개 추가"
@ -1173,6 +1174,8 @@ _cherrypick:
reactableRemoteReaction: "서버에 리모트 이모지와 이름이 같은 이모지가 있으면 리모트 이모지에도 반응할 수 있음"
showFollowingMessageInsteadOfButton: "이미 팔로우한 경우 알림 필드에 팔로우 버튼을 표시하지 않음"
mobileTimelineHeaderChange: "모바일 환경에서 타임라인의 헤더 디자인을 변경"
renameTheButtonInPostFormToNya: "노트 작성 화면의 \"노트\" 버튼을 \"냥!\"으로 변경"
renameTheButtonInPostFormToNyaDescription: "냐앙냥냥냥냐냥?"
_displayHeaderNavBarWhenScroll:
all: "모두 표시"
hideHeaderOnly: "헤더만 숨기기"

View file

@ -46,7 +46,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template v-if="posted"></template>
<template v-else-if="posting"><MkEllipsis/></template>
<template v-else>{{ submitText }}</template>
<i style="margin-left: 6px;" :class="posted ? 'ti ti-check' : reply ? 'ti ti-arrow-back-up' : renote ? 'ti ti-quote' : 'ti ti-send'"></i>
<i style="margin-left: 6px;" :class="posted ? 'ti ti-check' : reply ? 'ti ti-arrow-back-up' : renote ? 'ti ti-quote' : defaultStore.state.renameTheButtonInPostFormToNya ? 'ti ti-paw-filled' : 'ti ti-send'"></i>
</div>
</button>
</div>
@ -238,7 +238,9 @@ const submitText = $computed((): string => {
? i18n.ts.quote
: props.reply
? i18n.ts.reply
: i18n.ts.note;
: defaultStore.state.renameTheButtonInPostFormToNya
? i18n.ts.nya
: i18n.ts.note;
});
const textLength = $computed((): number => {

View file

@ -55,6 +55,10 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkSwitch v-model="reactableRemoteReactionEnabled">{{ i18n.ts._cherrypick.reactableRemoteReaction }}</MkSwitch>
<MkSwitch v-model="showFollowingMessageInsteadOfButtonEnabled">{{ i18n.ts._cherrypick.showFollowingMessageInsteadOfButton }}</MkSwitch>
<MkSwitch v-model="mobileTimelineHeaderChange">{{ i18n.ts._cherrypick.mobileTimelineHeaderChange }}</MkSwitch>
<MkSwitch v-model="renameTheButtonInPostFormToNya">
{{ i18n.ts._cherrypick.renameTheButtonInPostFormToNya }}
<template #caption>{{ i18n.ts._cherrypick.renameTheButtonInPostFormToNyaDescription }}</template>
</MkSwitch>
</div>
</FormSection>
</div>
@ -91,6 +95,7 @@ const rememberPostFormToggleStateEnabled = computed(defaultStore.makeGetterSette
const showFollowingMessageInsteadOfButtonEnabled = computed(defaultStore.makeGetterSetter('showFollowingMessageInsteadOfButtonEnabled'));
const mobileTimelineHeaderChange = computed(defaultStore.makeGetterSetter('mobileTimelineHeaderChange'));
const displayHeaderNavBarWhenScroll = computed(defaultStore.makeGetterSetter('displayHeaderNavBarWhenScroll'));
const renameTheButtonInPostFormToNya = computed(defaultStore.makeGetterSetter('renameTheButtonInPostFormToNya'));
watch([
infoButtonForNoteActionsEnabled,

View file

@ -476,6 +476,10 @@ export const defaultStore = markRaw(new Storage('base', {
where: 'device',
default: false,
},
renameTheButtonInPostFormToNya: {
where: 'device',
default: false,
},
// - etc
friendlyEnableNotifications: {