From b313da8cecd6269d545cd9d64ebc3d3b9c579897 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:38:32 +0900 Subject: [PATCH] wip --- packages/frontend-embed/package.json | 1 + .../frontend-embed/src/components/EmEmoji.vue | 2 +- .../src/components/EmMediaList.vue | 2 +- packages/frontend-shared/.gitignore | 1 + packages/frontend-shared/build.js | 104 + .../js}/const.ts | 2 +- .../js}/emojilist.json | 0 .../js}/emojilist.ts | 2 +- packages/frontend-shared/package.json | 18 +- packages/frontend-shared/tsconfig.json | 34 + packages/frontend/package.json | 1 + .../src/components/MkAutocomplete.vue | 2 +- .../src/components/MkEmojiPicker.section.vue | 2 +- .../frontend/src/components/MkEmojiPicker.vue | 4 +- .../components/MkReactionsViewer.details.vue | 2 +- .../components/MkReactionsViewer.reaction.vue | 2 +- .../src/components/global/MkEmoji.vue | 2 +- packages/frontend/src/emojilist.json | 1805 ----------------- .../src/scripts/check-reaction-permissions.ts | 2 +- packages/frontend/src/scripts/emojilist.ts | 73 - packages/frontend/test/emoji.test.ts | 2 +- pnpm-lock.yaml | 85 +- 22 files changed, 211 insertions(+), 1937 deletions(-) create mode 100644 packages/frontend-shared/build.js rename packages/{frontend-embed/src/to-be-shared => frontend-shared/js}/const.ts (98%) rename packages/{frontend-embed/src/to-be-shared => frontend-shared/js}/emojilist.json (100%) rename packages/{frontend-embed/src/to-be-shared => frontend-shared/js}/emojilist.ts (98%) create mode 100644 packages/frontend-shared/tsconfig.json delete mode 100644 packages/frontend/src/emojilist.json delete mode 100644 packages/frontend/src/scripts/emojilist.ts diff --git a/packages/frontend-embed/package.json b/packages/frontend-embed/package.json index b426f7d121..a65d6ab657 100644 --- a/packages/frontend-embed/package.json +++ b/packages/frontend-embed/package.json @@ -31,6 +31,7 @@ "is-file-animated": "1.0.2", "mfm-js": "0.24.0", "misskey-js": "workspace:*", + "frontend-shared": "workspace:*", "punycode": "2.3.1", "rollup": "4.19.1", "sanitize-html": "2.13.0", diff --git a/packages/frontend-embed/src/components/EmEmoji.vue b/packages/frontend-embed/src/components/EmEmoji.vue index a32a02d129..44666c3154 100644 --- a/packages/frontend-embed/src/components/EmEmoji.vue +++ b/packages/frontend-embed/src/components/EmEmoji.vue @@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only