From 3178fad065e626fa33da94038ab4b9491a0507bf Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Sun, 24 Dec 2023 21:33:47 +0900 Subject: [PATCH] (add) avatar decoration preview --- assets/data/toolsNav.ts | 5 + components/tools/avatar-decoration/MkNote.vue | 67 ++++++ components/tools/avatar-decoration/MkProf.vue | 50 +++++ locales/ja-JP.yml | 19 ++ pages/tools/avatar-decoration-preview.vue | 199 ++++++++++++++++++ 5 files changed, 340 insertions(+) create mode 100644 components/tools/avatar-decoration/MkNote.vue create mode 100644 components/tools/avatar-decoration/MkProf.vue create mode 100644 pages/tools/avatar-decoration-preview.vue diff --git a/assets/data/toolsNav.ts b/assets/data/toolsNav.ts index 51e34f1e..ae47aef4 100644 --- a/assets/data/toolsNav.ts +++ b/assets/data/toolsNav.ts @@ -9,6 +9,11 @@ export default [ description: "_mfmPlayground.description", to: "/tools/mfm-playground/", }, + { + i18n: "_avatarDecorationPreview.title", + description: "_avatarDecorationPreview.description", + to: "/tools/avatar-decoration-preview/", + }, { i18n: "_aidConverter.title", description: "_aidConverter.description", diff --git a/components/tools/avatar-decoration/MkNote.vue b/components/tools/avatar-decoration/MkNote.vue new file mode 100644 index 00000000..572d458b --- /dev/null +++ b/components/tools/avatar-decoration/MkNote.vue @@ -0,0 +1,67 @@ + + + + + + \ No newline at end of file diff --git a/components/tools/avatar-decoration/MkProf.vue b/components/tools/avatar-decoration/MkProf.vue new file mode 100644 index 00000000..899e933c --- /dev/null +++ b/components/tools/avatar-decoration/MkProf.vue @@ -0,0 +1,50 @@ + + + + + \ No newline at end of file diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index c94449e1..d3ab12eb 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -6,6 +6,7 @@ copy: "コピー" share: "共有する" note: "ノート" other: "その他" +add: "追加" goToLegacyHub: "従来のMisskey Hub" _error: @@ -295,6 +296,24 @@ _goToMisskey: title: "Misskey Webに移動" heading: "このページを開きたいサーバーを選択してください" +_avatarDecorationPreview: + title: "アバターデコレーション プレビュー" + description: "アバターデコレーションがきれいに反映できるかをチェックできます。" + preview: "プレビュー" + settings: "設定" + decoration: "デコ #{number}" + placeholder: "「追加」から、アバターデコレーションを追加してプレビューできます。" + _options: + offsetX: "横位置調整" + offsetY: "縦位置調整" + angle: "角度" + flip: "左右反転" + overlayTemplate: "テンプレートを重ねる" + _placeholder: + username: "藍" + noteText: "チョコのかかったドーナツを食べました🍩😋" + profileDescription: "Misskey常駐AIの藍です!よろしくお願いします♪" + _api: _permissions: title: "権限" diff --git a/pages/tools/avatar-decoration-preview.vue b/pages/tools/avatar-decoration-preview.vue new file mode 100644 index 00000000..fd2345d9 --- /dev/null +++ b/pages/tools/avatar-decoration-preview.vue @@ -0,0 +1,199 @@ + + + + +