From 574ab894b82b79d071350a6feb3aeb138b2c7377 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih Date: Tue, 23 Jan 2024 09:06:54 +0900 Subject: [PATCH] (update) misskey-js at v2023.2.0-beta.3 --- components/tools/mocks/MkNote.vue | 5 +- components/tools/mocks/MkProf.vue | 5 +- locales/ja-JP.yml | 49 ++ package.json | 2 +- pages/tools/avatar-decoration-preview.vue | 4 +- pnpm-lock.yaml | 707 +++++++++++++++++++--- 6 files changed, 673 insertions(+), 99 deletions(-) diff --git a/components/tools/mocks/MkNote.vue b/components/tools/mocks/MkNote.vue index 7389a050..7b746f06 100644 --- a/components/tools/mocks/MkNote.vue +++ b/components/tools/mocks/MkNote.vue @@ -40,10 +40,11 @@ import ReplyIco from 'bi/arrow-return-left.svg'; import RenoteIco from 'bi/repeat.svg'; import ReactionIco from 'bi/plus-lg.svg'; import MoreIco from 'bi/three-dots.svg'; +import type { HTMLAttributes } from 'nuxt/dist/app/compat/capi'; withDefaults(defineProps<{ avatar?: string; - decorations?: (Omit & { offsetX?: number; offsetY?: number; })[]; + decorations?: (Omit)[]; reactions?: { name: string; url?: string; @@ -53,7 +54,7 @@ withDefaults(defineProps<{ avatar: '/img/docs/fukidashi/doya_ai.webp', }); -function getStyle(decoration: Omit & { offsetX?: number; offsetY?: number; }): HTMLAttributes['style'] { +function getStyle(decoration: Omit): HTMLAttributes['style'] { const angle = decoration.angle ?? 0; const rotate = angle === 0 ? undefined : `${angle * 360}deg`; const scaleX = decoration.flipH ? -1 : 1; diff --git a/components/tools/mocks/MkProf.vue b/components/tools/mocks/MkProf.vue index 2dfc1d4a..1c372c5f 100644 --- a/components/tools/mocks/MkProf.vue +++ b/components/tools/mocks/MkProf.vue @@ -23,15 +23,16 @@