From 5dd1fd7c5f1331cfe9f4dc60f4a388f96c63e296 Mon Sep 17 00:00:00 2001 From: samunohito <46447427+samunohito@users.noreply.github.com> Date: Mon, 12 Feb 2024 12:04:27 +0900 Subject: [PATCH] add columns --- .../src/core/entities/EmojiEntityService.ts | 1 + .../backend/src/models/json-schema/emoji.ts | 4 ++++ .../api/endpoints/admin/emoji/v2/list.ts | 1 + .../admin/custom-emojis-grid.local.list.vue | 19 ++++++++++++++++--- packages/misskey-js/src/autogen/types.ts | 2 ++ 5 files changed, 24 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/core/entities/EmojiEntityService.ts b/packages/backend/src/core/entities/EmojiEntityService.ts index d545326516..4848b74528 100644 --- a/packages/backend/src/core/entities/EmojiEntityService.ts +++ b/packages/backend/src/core/entities/EmojiEntityService.ts @@ -88,6 +88,7 @@ export class EmojiEntityService { aliases: emoji.aliases, category: emoji.category, publicUrl: emoji.publicUrl, + originalUrl: emoji.originalUrl, license: emoji.license, localOnly: emoji.localOnly, isSensitive: emoji.isSensitive, diff --git a/packages/backend/src/models/json-schema/emoji.ts b/packages/backend/src/models/json-schema/emoji.ts index 995287709f..175d34a0a7 100644 --- a/packages/backend/src/models/json-schema/emoji.ts +++ b/packages/backend/src/models/json-schema/emoji.ts @@ -131,6 +131,10 @@ export const packedEmojiDetailedAdminSchema = { type: 'string', optional: false, nullable: false, }, + originalUrl: { + type: 'string', + optional: false, nullable: false, + }, uri: { type: 'string', optional: false, nullable: true, diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/v2/list.ts b/packages/backend/src/server/api/endpoints/admin/emoji/v2/list.ts index 4fc707f1b2..d7c3dc0057 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/v2/list.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/v2/list.ts @@ -45,6 +45,7 @@ export const paramDef = { host: { type: 'string' }, uri: { type: 'string' }, publicUrl: { type: 'string' }, + originalUrl: { type: 'string' }, type: { type: 'string' }, aliases: { type: 'string' }, category: { type: 'string' }, diff --git a/packages/frontend/src/pages/admin/custom-emojis-grid.local.list.vue b/packages/frontend/src/pages/admin/custom-emojis-grid.local.list.vue index 3c7d77e89a..a725b5708d 100644 --- a/packages/frontend/src/pages/admin/custom-emojis-grid.local.list.vue +++ b/packages/frontend/src/pages/admin/custom-emojis-grid.local.list.vue @@ -57,6 +57,9 @@ updatedAt(to) + +
+