From be3b84882f183f6820491da2654a8f2dbafd9899 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Sat, 27 May 2023 17:43:04 +0900 Subject: [PATCH] =?UTF-8?q?feat(client):=20=E3=82=A2=E3=82=AB=E3=82=A6?= =?UTF-8?q?=E3=83=B3=E3=83=88=E5=88=9D=E6=9C=9F=E8=A8=AD=E5=AE=9A=E3=82=A6?= =?UTF-8?q?=E3=82=A3=E3=82=B6=E3=83=BC=E3=83=89=E3=81=AB=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=82=B5=E3=82=A4=E3=82=BA=E8=A8=AD=E5=AE=9A?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG_CHERRYPICK.md | 1 + locales/en-US.yml | 1 + locales/index.d.ts | 1 + locales/ja-JP.yml | 1 + locales/ko-KR.yml | 1 + ...MkUserSetupDialog.FontSize.stories.impl.ts | 31 +++++ .../components/MkUserSetupDialog.FontSize.vue | 127 ++++++++++++++++++ .../src/components/MkUserSetupDialog.vue | 33 +++-- 8 files changed, 186 insertions(+), 10 deletions(-) create mode 100644 packages/frontend/src/components/MkUserSetupDialog.FontSize.stories.impl.ts create mode 100644 packages/frontend/src/components/MkUserSetupDialog.FontSize.vue diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index fc6b6e4a58..4552115c78 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -27,6 +27,7 @@ - 계정 초기 설정 마법사 개선 - 뒤로 가기 버튼 추가 - 나중에 버튼 추가 + - 글자 크기 설정 추가 - 흐림 효과 설정 추가 - MFM 및 움직이는 이미지 설정 추가 - 초기 설정을 완료하면 페이지를 새로 고치도록 (일부 옵션이 페이지를 새로 고쳐야만 반영되므로) diff --git a/locales/en-US.yml b/locales/en-US.yml index 54e6134786..7e40b86747 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1085,6 +1085,7 @@ _initialAccountSetting: letsFillYourProfile: "First, let's set up your profile." profileSetting: "Profile settings" privacySetting: "Privacy settings" + fontSizeSetting: "Font size settings" blurEffectsSetting: "Blur effects settings" mfmAndAnimatedImagesSetting: "MFM and Animated images settings" theseSettingsCanEditLater: "You can always change these settings later." diff --git a/locales/index.d.ts b/locales/index.d.ts index c0472f454d..c4ef92e22f 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1104,6 +1104,7 @@ export interface Locale { "letsFillYourProfile": string; "profileSetting": string; "privacySetting": string; + "fontSizeSetting": string; "blurEffectsSetting": string; "mfmAndAnimatedImagesSetting": string; "theseSettingsCanEditLater": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 06eeefaa86..a1d9b5023b 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1102,6 +1102,7 @@ _initialAccountSetting: letsFillYourProfile: "まずはあなたのプロフィールを設定しましょう。" profileSetting: "プロフィール設定" privacySetting: "プライバシー設定" + fontSizeSetting: "フォントサイズ設定" blurEffectsSetting: "ぼかし効果設定" mfmAndAnimatedImagesSetting: "MFMとアニメーション画像設定" theseSettingsCanEditLater: "これらの設定は後から変更できます。" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index 765f1b9345..72c3efb43f 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -1084,6 +1084,7 @@ _initialAccountSetting: letsFillYourProfile: "우선 나의 프로필을 설정해 보아요." profileSetting: "프로필 설정" privacySetting: "프라이버시 설정" + fontSizeSetting: "글자 크기 설정" blurEffectsSetting: "흐림 효과 설정" mfmAndAnimatedImagesSetting: "MFM 및 움직이는 이미지 설정" theseSettingsCanEditLater: "이 설정들은 나중에도 변경할 수 있어요." diff --git a/packages/frontend/src/components/MkUserSetupDialog.FontSize.stories.impl.ts b/packages/frontend/src/components/MkUserSetupDialog.FontSize.stories.impl.ts new file mode 100644 index 0000000000..5c8990f564 --- /dev/null +++ b/packages/frontend/src/components/MkUserSetupDialog.FontSize.stories.impl.ts @@ -0,0 +1,31 @@ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ +import { StoryObj } from '@storybook/vue3'; +import MkUserSetupDialog_FontSize from './MkUserSetupDialog.FontSize.vue'; +export const Default = { + render(args) { + return { + components: { + MkUserSetupDialog_FontSize, + }, + setup() { + return { + args, + }; + }, + computed: { + props() { + return { + ...this.args, + }; + }, + }, + template: '', + }; + }, + args: { + + }, + parameters: { + layout: 'centered', + }, +} satisfies StoryObj; diff --git a/packages/frontend/src/components/MkUserSetupDialog.FontSize.vue b/packages/frontend/src/components/MkUserSetupDialog.FontSize.vue new file mode 100644 index 0000000000..71e9e2cda3 --- /dev/null +++ b/packages/frontend/src/components/MkUserSetupDialog.FontSize.vue @@ -0,0 +1,127 @@ + + + + + diff --git a/packages/frontend/src/components/MkUserSetupDialog.vue b/packages/frontend/src/components/MkUserSetupDialog.vue index 866e5ee8db..41be0ab84d 100644 --- a/packages/frontend/src/components/MkUserSetupDialog.vue +++ b/packages/frontend/src/components/MkUserSetupDialog.vue @@ -9,16 +9,17 @@ > - - - - - + + + + + +
-
+
- +
{{ i18n.ts.goBack }} {{ i18n.ts.continue }} @@ -77,7 +78,7 @@ + -