Update 2025-04-13_17:31:30
This commit is contained in:
74
static/emoji.js
Normal file
74
static/emoji.js
Normal file
@ -0,0 +1,74 @@
|
||||
export const SHAPES = [
|
||||
"ring_x",
|
||||
"ring_cross",
|
||||
"circle",
|
||||
"square",
|
||||
"triangle_up",
|
||||
"triangle_down",
|
||||
"triangle_left",
|
||||
"triangle_right",
|
||||
"ring_x",
|
||||
"ring_cross",
|
||||
"cross",
|
||||
"star",
|
||||
"heart",
|
||||
"diamond",
|
||||
"arrow_up",
|
||||
"arrow_down",
|
||||
"arrow_left",
|
||||
"arrow_right",
|
||||
"asterisk",
|
||||
"double_excl",
|
||||
"question_double",
|
||||
"question_excl",
|
||||
"excl_question",
|
||||
"spiral",
|
||||
"dots1",
|
||||
"dots2",
|
||||
"flower",
|
||||
"pulsar",
|
||||
"mandala1",
|
||||
"mandala2",
|
||||
"mandala3",
|
||||
"mandala4",
|
||||
"mandala5"
|
||||
];;
|
||||
|
||||
export function shapeToEmoji(shape) {
|
||||
const map = {
|
||||
ring_x: "᳁",
|
||||
ring_cross: "᪠",
|
||||
circle: "●",
|
||||
square: "■",
|
||||
triangle_up: "▲",
|
||||
triangle_down: "▼",
|
||||
triangle_left: "◀",
|
||||
triangle_right: "▶",
|
||||
cross: "✖",
|
||||
star: "★",
|
||||
heart: "♥",
|
||||
diamond: "◆",
|
||||
arrow_up: "↑",
|
||||
arrow_down: "↓",
|
||||
arrow_left: "←",
|
||||
arrow_right: "→",
|
||||
asterisk: "※",
|
||||
double_excl: "‼",
|
||||
question_double: "⁇",
|
||||
question_excl: "⁈",
|
||||
excl_question: "⁉",
|
||||
spiral: "꩜",
|
||||
dots1: "𐮚",
|
||||
dots2: "𐮙",
|
||||
flower: "𐫱",
|
||||
pulsar: "𐫰",
|
||||
mandala1: "𐩕",
|
||||
mandala2: "𑁍",
|
||||
mandala3: "𑗊",
|
||||
mandala4: "𑗌",
|
||||
mandala5: "𑗍"
|
||||
};
|
||||
const emoji = map[shape] || "?";
|
||||
return emoji;
|
||||
}
|
||||
|
Reference in New Issue
Block a user