From 1c108927ea469179950b14885d06e61335213d14 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Wed, 3 Jan 2024 01:25:32 +0900 Subject: [PATCH] =?UTF-8?q?=E8=89=B2=E3=80=85=E3=83=AA=E3=83=95=E3=82=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/avatar-decorations/create.ts | 2 + .../admin/avatar-decorations/list.ts | 1 + .../src/components/MkEmojiPicker.section.vue | 4 +- .../src/components/MkFoldableSection.vue | 211 +++++++++++------- .../frontend/src/components/MkNoteSimple.vue | 2 +- .../frontend/src/components/MkPollEditor.vue | 6 +- .../frontend/src/components/MkPostForm.vue | 10 +- .../src/pages/admin/instance-block.vue | 10 +- .../frontend/src/pages/settings/general.vue | 120 +++++----- packages/misskey-js/src/autogen/types.ts | 2 + 10 files changed, 208 insertions(+), 160 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/admin/avatar-decorations/create.ts b/packages/backend/src/server/api/endpoints/admin/avatar-decorations/create.ts index 4ac74253cc..60afe88bbf 100644 --- a/packages/backend/src/server/api/endpoints/admin/avatar-decorations/create.ts +++ b/packages/backend/src/server/api/endpoints/admin/avatar-decorations/create.ts @@ -24,6 +24,7 @@ export const paramDef = { roleIdsThatCanBeUsedThisDecoration: { type: 'array', items: { type: 'string', } }, + category: { type: 'string', nullable: true }, }, required: ['name', 'description', 'url'], } as const; @@ -39,6 +40,7 @@ export default class extends Endpoint { // eslint- description: ps.description, url: ps.url, roleIdsThatCanBeUsedThisDecoration: ps.roleIdsThatCanBeUsedThisDecoration, + category: ps.category ?? '', }, me); }); } diff --git a/packages/backend/src/server/api/endpoints/admin/avatar-decorations/list.ts b/packages/backend/src/server/api/endpoints/admin/avatar-decorations/list.ts index 33122c3eef..39297de536 100644 --- a/packages/backend/src/server/api/endpoints/admin/avatar-decorations/list.ts +++ b/packages/backend/src/server/api/endpoints/admin/avatar-decorations/list.ts @@ -95,6 +95,7 @@ export default class extends Endpoint { // eslint- name: avatarDecoration.name, description: avatarDecoration.description, url: avatarDecoration.url, + category: avatarDecoration.category, roleIdsThatCanBeUsedThisDecoration: avatarDecoration.roleIdsThatCanBeUsedThisDecoration, })); }); diff --git a/packages/frontend/src/components/MkEmojiPicker.section.vue b/packages/frontend/src/components/MkEmojiPicker.section.vue index 5875b678a1..9391c39066 100644 --- a/packages/frontend/src/components/MkEmojiPicker.section.vue +++ b/packages/frontend/src/components/MkEmojiPicker.section.vue @@ -6,8 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only