enhance: Unicode 15.0で新たに追加された絵文字をリアクションに使えるように (#12683)

This commit is contained in:
zyoshoka 2023-12-18 14:51:29 +09:00 committed by GitHub
parent 507d436699
commit 13990279c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 62 additions and 20 deletions

View file

@ -65,7 +65,7 @@
"@bull-board/api": "5.10.2",
"@bull-board/fastify": "5.10.2",
"@bull-board/ui": "5.10.2",
"@discordapp/twemoji": "14.1.2",
"@discordapp/twemoji": "15.0.2",
"@fastify/accepts": "4.3.0",
"@fastify/cookie": "9.2.0",
"@fastify/cors": "8.4.2",
@ -83,6 +83,7 @@
"@smithy/node-http-handler": "2.1.10",
"@swc/cli": "0.1.63",
"@swc/core": "1.3.100",
"@twemoji/parser": "15.0.0",
"accepts": "1.3.8",
"ajv": "8.12.0",
"archiver": "6.0.1",
@ -166,7 +167,6 @@
"tmp": "0.2.1",
"tsc-alias": "1.8.8",
"tsconfig-paths": "4.2.0",
"twemoji-parser": "14.0.0",
"typeorm": "0.3.17",
"typescript": "5.3.3",
"ulid": "2.3.0",

File diff suppressed because one or more lines are too long

View file

@ -25,7 +25,7 @@ export const commonHandlers = [
}),
rest.get('/twemoji/:codepoints.svg', async (req, res, ctx) => {
const { codepoints } = req.params;
const value = await fetch(`https://unpkg.com/@discordapp/twemoji@14.1.2/dist/svg/${codepoints}.svg`).then((response) => response.blob());
const value = await fetch(`https://unpkg.com/@discordapp/twemoji@15.0.2/dist/svg/${codepoints}.svg`).then((response) => response.blob());
return res(ctx.set('Content-Type', 'image/svg+xml'), ctx.body(value));
}),
];

View file

@ -17,13 +17,14 @@
"lint": "pnpm typecheck && pnpm eslint"
},
"dependencies": {
"@discordapp/twemoji": "14.1.2",
"@discordapp/twemoji": "15.0.2",
"@github/webauthn-json": "2.1.1",
"@rollup/plugin-json": "6.1.0",
"@rollup/plugin-replace": "5.0.5",
"@rollup/pluginutils": "5.1.0",
"@syuilo/aiscript": "0.16.0",
"@tabler/icons-webfont": "2.44.0",
"@twemoji/parser": "15.0.0",
"@vitejs/plugin-vue": "4.5.2",
"@vue/compiler-sfc": "3.3.12",
"aiscript-vscode": "github:aiscript-dev/aiscript-vscode#v0.0.6",
@ -65,7 +66,6 @@
"tinycolor2": "1.6.0",
"tsc-alias": "1.8.8",
"tsconfig-paths": "4.2.0",
"twemoji-parser": "14.0.0",
"typescript": "5.3.3",
"uuid": "9.0.1",
"v-code-diff": "1.7.2",

View file

@ -103,6 +103,7 @@
["🫥", "dotted_line_face", 0],
["🫤", "face_with_diagonal_mouth", 0],
["🥹", "face_holding_back_tears", 0],
["🫨", "shaking_face", 0],
["💩", "poop", 0],
["😈", "smiling_imp", 0],
["👿", "imp", 0],
@ -132,6 +133,8 @@
["✊", "fist", 1],
["🤛", "fist_left", 1],
["🤜", "fist_right", 1],
["🫷", "leftwards_pushing_hand", 1],
["🫸", "rightwards_pushing_hand", 1],
["✌", "v", 1],
["👌", "ok_hand", 1],
["✋", "raised_hand", 1],
@ -453,6 +456,7 @@
["🐸", "frog", 2],
["🦑", "squid", 2],
["🐙", "octopus", 2],
["🪼", "jellyfish", 2],
["🦐", "shrimp", 2],
["🐵", "monkey_face", 2],
["🦍", "gorilla", 2],
@ -466,7 +470,9 @@
["🐤", "baby_chick", 2],
["🐣", "hatching_chick", 2],
["🐥", "hatched_chick", 2],
["🪿", "goose", 2],
["🦆", "duck", 2],
["🐦‍⬛", "black_bird", 2],
["🦅", "eagle", 2],
["🦉", "owl", 2],
["🦇", "bat", 2],
@ -474,6 +480,7 @@
["🐗", "boar", 2],
["🐴", "horse", 2],
["🦄", "unicorn", 2],
["🫎", "moose", 2],
["🐝", "honeybee", 2],
["🐛", "bug", 2],
["🦋", "butterfly", 2],
@ -516,6 +523,7 @@
["🐐", "goat", 2],
["🐏", "ram", 2],
["🐑", "sheep", 2],
["🫏", "donkey", 2],
["🐎", "racehorse", 2],
["🐖", "pig2", 2],
["🐀", "rat", 2],
@ -546,6 +554,7 @@
["🐻‍❄️", "polar_bear", 2],
["🦤", "dodo", 2],
["🪶", "feather", 2],
["🪽", "wing", 2],
["🦭", "seal", 2],
["🐾", "paw_prints", 2],
["🐉", "dragon", 2],
@ -576,6 +585,7 @@
["🌻", "sunflower", 2],
["🌹", "rose", 2],
["🥀", "wilted_flower", 2],
["🪻", "hyacinth", 2],
["🌷", "tulip", 2],
["🌼", "blossom", 2],
["🌸", "cherry_blossom", 2],
@ -655,6 +665,7 @@
["🥝", "kiwi_fruit", 3],
["🥭", "mango", 3],
["🥑", "avocado", 3],
["🫛", "pea_pod", 3],
["🥦", "broccoli", 3],
["🍅", "tomato", 3],
["🍆", "eggplant", 3],
@ -668,6 +679,7 @@
["🌽", "corn", 3],
["🥬", "leafy_greens", 3],
["🍠", "sweet_potato", 3],
["🫚", "ginger_root", 3],
["🥜", "peanuts", 3],
["🧄", "garlic", 3],
["🧅", "onion", 3],
@ -850,9 +862,11 @@
["🎧", "headphones", 4],
["🎼", "musical_score", 4],
["🎹", "musical_keyboard", 4],
["🪇", "maracas", 4],
["🥁", "drum", 4],
["🎷", "saxophone", 4],
["🎺", "trumpet", 4],
["🪈", "flute", 4],
["🎸", "guitar", 4],
["🎻", "violin", 4],
["🪕", "banjo", 4],
@ -1108,6 +1122,7 @@
["🩹", "adhesive_bandage", 6],
["🩺", "stethoscope", 6],
["🪒", "razor", 6],
["🪮", "hair_pick", 6],
["🩻", "xray", 6],
["🩼", "crutch", 6],
["🧬", "dna", 6],
@ -1156,6 +1171,7 @@
["🎊", "confetti_ball", 6],
["🎉", "tada", 6],
["🎎", "dolls", 6],
["🪭", "folding_hand_fan", 6],
["🎐", "wind_chime", 6],
["🎌", "crossed_flags", 6],
["🏮", "izakaya_lantern", 6],
@ -1237,14 +1253,17 @@
["🪧", "placard", 6],
["💯", "100", 7],
["🔢", "1234", 7],
["🩷", "pink_heart", 7],
["❤️", "heart", 7],
["🧡", "orange_heart", 7],
["💛", "yellow_heart", 7],
["💚", "green_heart", 7],
["🩵", "light_blue_heart", 7],
["💙", "blue_heart", 7],
["💜", "purple_heart", 7],
["🤎", "brown_heart", 7],
["🖤", "black_heart", 7],
["🩶", "grey_heart", 7],
["🤍", "white_heart", 7],
["💔", "broken_heart", 7],
["❣", "heavy_heart_exclamation", 7],
@ -1263,6 +1282,7 @@
["☪", "star_and_crescent", 7],
["🕉", "om", 7],
["☸", "wheel_of_dharma", 7],
["🪯", "khanda", 7],
["✡", "star_of_david", 7],
["🔯", "six_pointed_star", 7],
["🕎", "menorah", 7],
@ -1358,6 +1378,7 @@
["🛃", "customs", 7],
["🛄", "baggage_claim", 7],
["🛅", "left_luggage", 7],
["🛜", "wireless", 7],
["♿", "wheelchair", 7],
["🚭", "no_smoking", 7],
["🚾", "wc", 7],

View file

@ -103,6 +103,7 @@
"🫥": ["depressed", "disappear", "hide", "introvert", "invisible", "tensen"],
"🫤": ["disappointed", "meh", "skeptical", "unsure"],
"🥹": ["angry", "cry", "proud", "resist", "sad"],
"🫨": ["earthquake", "face", "shaking", "shock", "vibrate"],
"💩": ["hankey", "shitface", "fail", "turd", "shit"],
"😈": ["devil", "horns"],
"👿": ["devil", "angry", "horns"],
@ -132,6 +133,8 @@
"✊": ["fingers", "hand", "grasp"],
"🤛": ["hand", "fistbump"],
"🤜": ["hand", "fistbump"],
"🫷": ["hand", "high_five", "leftward", "push", "refuse", "stop", "wait"],
"🫸": ["hand", "high_five", "push", "refuse", "rightward", "stop", "wait"],
"✌": ["fingers", "ohyeah", "hand", "peace", "victory", "two"],
"👌": ["fingers", "limbs", "perfect", "ok", "okay"],
"✋": ["fingers", "stop", "highfive", "palm", "ban"],
@ -453,6 +456,7 @@
"🐸": ["animal", "nature", "croak", "toad"],
"🦑": ["animal", "nature", "ocean", "sea"],
"🐙": ["animal", "creature", "ocean", "sea", "nature", "beach"],
"🪼": ["animal", "creature", "ocean", "sea", "nature", "beach"],
"🦐": ["animal", "ocean", "nature", "seafood"],
"🐵": ["animal", "nature", "circus"],
"🦍": ["animal", "nature", "circus"],
@ -466,7 +470,9 @@
"🐤": ["animal", "chicken", "bird"],
"🐣": ["animal", "chicken", "egg", "born", "baby", "bird"],
"🐥": ["animal", "chicken", "baby", "bird"],
"🪿": ["animal", "nature", "bird", "fowl", "goose", "honk", "silly"],
"🦆": ["animal", "nature", "bird", "mallard"],
"🐦‍⬛": ["animal", "nature", "bird", "black", "crow", "raven", "rook"],
"🦅": ["animal", "nature", "bird"],
"🦉": ["animal", "nature", "bird", "hoot"],
"🦇": ["animal", "nature", "blind", "vampire"],
@ -474,6 +480,7 @@
"🐗": ["animal", "nature"],
"🐴": ["animal", "brown", "nature"],
"🦄": ["animal", "nature", "mystical"],
"🫎": ["animal", "nature", "antlers", "elk", "mammal"],
"🐝": ["animal", "insect", "nature", "bug", "spring", "honey"],
"🐛": ["animal", "insect", "nature", "worm"],
"🦋": ["animal", "insect", "nature", "caterpillar"],
@ -516,6 +523,7 @@
"🐐": ["animal", "nature"],
"🐏": ["animal", "sheep", "nature"],
"🐑": ["animal", "nature", "wool", "shipit"],
"🫏": ["animal", "ass", "burro", "mammal", "mule", "stubborn"],
"🐎": ["animal", "gamble", "luck"],
"🐖": ["animal", "nature"],
"🐀": ["animal", "mouse", "rodent"],
@ -546,6 +554,7 @@
"🐻‍❄️": ["animal", "nature"],
"🦤": ["animal", "nature"],
"🪶": ["animal", "nature"],
"🪽": ["angelic", "aviation", "bird", "flying", "mythology"],
"🦭": ["animal", "nature"],
"🐾": ["animal", "tracking", "footprints", "dog", "cat", "pet", "feet"],
"🐉": ["animal", "myth", "nature", "chinese", "green"],
@ -576,6 +585,7 @@
"🌻": ["nature", "plant", "fall"],
"🌹": ["flowers", "valentines", "love", "spring"],
"🥀": ["plant", "nature", "flower"],
"🪻": ["plant", "nature", "flower", "bluebonnet", "lavender", "lupine", "snapdragon"],
"🌷": ["flowers", "plant", "nature", "summer", "spring"],
"🌼": ["nature", "flowers", "yellow"],
"🌸": ["nature", "plant", "spring", "flower"],
@ -655,6 +665,7 @@
"🥝": ["fruit", "food"],
"🥭": ["fruit", "food", "tropical"],
"🥑": ["fruit", "food"],
"🫛": ["beans", "edamame", "legume", "pea", "pod", "vegetable", "food"],
"🥦": ["fruit", "food", "vegetable"],
"🍅": ["fruit", "vegetable", "nature", "food"],
"🍆": ["vegetable", "nature", "food", "aubergine"],
@ -668,6 +679,7 @@
"🌽": ["food", "vegetable", "plant"],
"🥬": ["food", "vegetable", "plant", "bok choy", "cabbage", "kale", "lettuce"],
"🍠": ["food", "nature"],
"🫚": ["food", "nature", "beer", "root", "spice"],
"🥜": ["food", "nut"],
"🧄": ["food"],
"🧅": ["food"],
@ -850,9 +862,11 @@
"🎧": ["music", "score", "gadgets"],
"🎼": ["treble", "clef", "compose"],
"🎹": ["piano", "instrument", "compose"],
"🪇": ["instrument", "music", "percussion", "rattle", "shake"],
"🥁": ["music", "instrument", "drumsticks", "snare"],
"🎷": ["music", "instrument", "jazz", "blues"],
"🎺": ["music", "brass"],
"🪈": ["music", "fife", "pipe", "recorder", "woodwind"],
"🎸": ["music", "instrument"],
"🎻": ["music", "instrument", "orchestra", "symphony"],
"🪕": ["music", "instrument"],
@ -1108,6 +1122,7 @@
"🩹": ["health", "hospital", "medicine", "needle", "doctor", "nurse"],
"🩺": ["health", "hospital", "medicine", "needle", "doctor", "nurse"],
"🪒": ["health"],
"🪮": ["afro", "comb", "hair", "pick"],
"🩻": [],
"🩼": [],
"🧬": ["biologist", "genetics", "life"],
@ -1156,6 +1171,7 @@
"🎊": ["festival", "party", "birthday", "circus"],
"🎉": ["party", "congratulations", "birthday", "magic", "circus", "celebration"],
"🎎": ["japanese", "toy", "kimono"],
"🪭": ["cooling", "dance", "fan", "flutter", "hot", "shy"],
"🎐": ["nature", "ding", "spring", "bell"],
"🎌": ["japanese", "nation", "country", "border"],
"🏮": ["light", "paper", "halloween", "spooky"],
@ -1237,14 +1253,17 @@
"🪧": [],
"💯": ["score", "perfect", "numbers", "century", "exam", "quiz", "test", "pass", "hundred"],
"🔢": ["numbers", "blue-square"],
"🩷": ["love", "like", "affection", "valentines"],
"❤️": ["love", "like", "affection", "valentines"],
"🧡": ["love", "like", "affection", "valentines"],
"💛": ["love", "like", "affection", "valentines"],
"💚": ["love", "like", "affection", "valentines"],
"🩵": ["love", "like", "affection", "valentines"],
"💙": ["love", "like", "affection", "valentines"],
"💜": ["love", "like", "affection", "valentines"],
"🤎": ["love", "like", "affection", "valentines"],
"🖤": ["love", "like", "affection", "valentines"],
"🩶": ["love", "like", "affection", "valentines"],
"🤍": ["love", "like", "affection", "valentines"],
"💔": ["sad", "sorry", "break", "heart", "heartbreak"],
"❣": ["decoration", "love"],
@ -1263,6 +1282,7 @@
"☪": ["islam"],
"🕉": ["hinduism", "buddhism", "sikhism", "jainism"],
"☸": ["hinduism", "buddhism", "sikhism", "jainism"],
"🪯": ["religion", "sikh"],
"✡": ["judaism"],
"🔯": ["purple-square", "religion", "jewish", "hexagram"],
"🕎": ["hanukkah", "candles", "jewish"],
@ -1358,6 +1378,7 @@
"🛃": ["passport", "border", "blue-square"],
"🛄": ["blue-square", "airport", "transport"],
"🛅": ["blue-square", "travel"],
"🛜": ["blue-square", "computer", "internet", "network"],
"♿": ["blue-square", "disabled", "a11y", "accessibility"],
"🚭": ["cigarette", "blue-square", "smell", "smoke"],
"🚾": ["toilet", "restroom", "blue-square"],

View file

@ -75,8 +75,8 @@ importers:
specifier: 5.10.2
version: 5.10.2
'@discordapp/twemoji':
specifier: 14.1.2
version: 14.1.2
specifier: 15.0.2
version: 15.0.2
'@fastify/accepts':
specifier: 4.3.0
version: 4.3.0
@ -128,6 +128,9 @@ importers:
'@swc/core':
specifier: 1.3.100
version: 1.3.100
'@twemoji/parser':
specifier: 15.0.0
version: 15.0.0
accepts:
specifier: 1.3.8
version: 1.3.8
@ -377,9 +380,6 @@ importers:
tsconfig-paths:
specifier: 4.2.0
version: 4.2.0
twemoji-parser:
specifier: 14.0.0
version: 14.0.0
typeorm:
specifier: 0.3.17
version: 0.3.17(ioredis@5.3.2)(pg@8.11.3)
@ -653,8 +653,8 @@ importers:
packages/frontend:
dependencies:
'@discordapp/twemoji':
specifier: 14.1.2
version: 14.1.2
specifier: 15.0.2
version: 15.0.2
'@github/webauthn-json':
specifier: 2.1.1
version: 2.1.1
@ -673,6 +673,9 @@ importers:
'@tabler/icons-webfont':
specifier: 2.44.0
version: 2.44.0
'@twemoji/parser':
specifier: 15.0.0
version: 15.0.0
'@vitejs/plugin-vue':
specifier: 4.5.2
version: 4.5.2(vite@5.0.10)(vue@3.3.12)
@ -796,9 +799,6 @@ importers:
tsconfig-paths:
specifier: 4.2.0
version: 4.2.0
twemoji-parser:
specifier: 14.0.0
version: 14.0.0
typescript:
specifier: 5.3.3
version: 5.3.3
@ -3598,12 +3598,12 @@ packages:
- web-streams-polyfill
dev: false
/@discordapp/twemoji@14.1.2:
resolution: {integrity: sha512-Rkuu30/biwy8Zss0r5qfFvQzoQGPTHXzA7Y/MPMkCQqFd0WskoYvjfJRTz0iuZwUpMfrgbM8eakSsptCxmOqog==}
/@discordapp/twemoji@15.0.2:
resolution: {integrity: sha512-SrWKcv3SrGfrLQ/vfUnA+bAG73Q6Yjys01UuoY5SzUlc9iS03amQ6DxLhzVsjW/aTdgiMQdUatLidD+YPfYMCw==}
dependencies:
'@twemoji/parser': 15.0.0
fs-extra: 8.1.0
jsonfile: 5.0.0
twemoji-parser: 14.0.0
universalify: 0.1.2
dev: false